:root {
    --bg: #f6f1e8;
    --surface: #fbf7ef;
    --surface-soft: #f2e8da;
    --surface-muted: #fffaf3;
    --border: #d8cdbb;
    --border-strong: #c9baa2;
    --text: #221f1a;
    --muted: #7f6d57;
    --accent: #7a5431;
    --accent-strong: #624326;
    --success-bg: #e5f1e3;
    --success-text: #40623f;
    --warning-bg: #f8efd8;
    --warning-text: #7f5d34;
    --danger-bg: #fff1f1;
    --danger-text: #a53a2a;
    --shadow: 0 10px 34px rgba(71, 55, 29, 0.06);
    --font-body: "Manrope", "Segoe UI", Arial, sans-serif;
    --font-heading: "Source Serif 4", Georgia, serif;
    --font-display: var(--font-heading);
    --font-sans: var(--font-body);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #f8f3ea 0%, var(--bg) 100%);
    color: var(--text);
    font-family: var(--font-body);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.app-shell {
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 22px;
}

.sidebar,
.topbar,
.surface-card,
.message {
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px;
}

.brand-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 4px;
}

.brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--surface-muted);
    border: 1px solid var(--border);
}

.brand-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #9a835e;
}

.brand-title {
    margin-top: 2px;
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.1;
}

.menu {
    display: grid;
    gap: 8px;
}

.menu-link {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 18px;
    color: #5c4a37;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.menu-link:hover {
    background: #ece1d0;
}

.menu-link.is-active {
    background: var(--accent);
    color: #f2eadf;
    font-weight: 600;
}

.sidebar-logout {
    margin-top: auto;
    display: flex;
}

.workspace {
    display: grid;
    gap: 18px;
}

.topbar {
    display: block;
    padding: 24px 28px;
}

.page-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 3.3rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.page-subtitle {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.6;
    max-width: 760px;
}

.button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 18px;
    border: 1px solid transparent;
    font-weight: 600;
}

.button {
    background: var(--accent);
    color: #fff;
}

.ghost-button {
    width: auto;
    background: transparent;
    color: var(--muted);
    border-color: var(--border);
    cursor: pointer;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
}

.ghost-button:hover {
    background: var(--surface-muted);
    color: var(--accent);
}

.content-stack {
    display: grid;
    gap: 18px;
}

.surface-card {
    padding: 24px;
}

.surface-card h2,
.surface-card h3 {
    margin: 0 0 10px;
}

.surface-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.hero-grid,
.dual-grid,
.content-grid,
.stats-grid {
    display: grid;
    gap: 18px;
}

.hero-grid,
.dual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface-muted);
    padding: 20px;
}

.metric-label {
    color: #8c7a60;
    font-size: 0.95rem;
}

.metric-value {
    margin-top: 12px;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

.metric-hint {
    margin-top: 10px;
    color: var(--muted);
}

.info-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-muted);
    color: #5d4b38;
}

.chip.is-active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: 600;
}

.chip-ghost {
    margin-left: auto;
}

.info-tile,
.list-row,
.status-row {
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface-muted);
    padding: 18px;
}

.list-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.list-row strong,
.info-tile strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.45;
}

.muted {
    color: var(--muted);
    line-height: 1.6;
}

.stack {
    display: grid;
    gap: 16px;
}

.split-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.split-actions-start {
    justify-content: flex-start;
}

.inline-form-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.task-skill-formset {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.task-skill-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) auto;
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 250, 243, 0.72);
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    color: #5f503d;
    font-weight: 700;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: #5c4a37;
    font-size: 0.9rem;
}

.badge.success {
    background: var(--success-bg);
    color: var(--success-text);
}

.badge.warning {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.badge.danger {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.empty-state {
    padding: 24px;
    border-radius: 22px;
    border: 1px dashed var(--border-strong);
    background: rgba(255, 250, 243, 0.8);
}

.empty-state h2 {
    margin: 0 0 10px;
}

.messages {
    display: grid;
    gap: 10px;
}

.message,
.error-box,
.field-error {
    padding: 14px 16px;
}

.message {
    background: var(--surface-muted);
}

.error-box,
.field-error {
    color: var(--danger-text);
    background: var(--danger-bg);
    border: 1px solid #f0caca;
    border-radius: 16px;
}

.field-error {
    margin: 8px 0 0;
}

.auth-card,
.auth-note {
    padding: 28px;
}

.auth-form {
    display: grid;
    gap: 16px;
}

body.guest-shell {
    --guest-bg: #d8d0c5;
    --guest-card: #e8ded0;
    --guest-card-soft: #ddd0be;
    --guest-line: #c2b29c;
    --guest-ink: #20242b;
    --guest-muted: #68626a;
    --guest-accent: #bf8844;
    --guest-nav: #151c2b;
    background:
        linear-gradient(180deg, #151c2b 0%, #192132 14%, var(--guest-bg) 14%, #e2d8ca 100%);
    color: var(--guest-ink);
}

.guest-shell .app-shell {
    width: min(1320px, calc(100% - 48px));
    padding: 36px 0 56px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.guest-shell .sidebar {
    display: grid;
    grid-template-columns: minmax(180px, auto) 1fr;
    align-items: center;
    min-height: 86px;
    padding: 18px;
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background: linear-gradient(180deg, #151c2b, #171e2d);
    box-shadow: none;
}

.guest-shell .brand-card {
    width: max-content;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: #f2eadf;
}

.guest-shell .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #d9a65e;
    background: rgba(238, 228, 215, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}

.guest-shell .brand-eyebrow {
    color: rgba(242, 234, 223, 0.52);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
}

.guest-shell .brand-title {
    color: #f2eadf;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 900;
}

.guest-shell .menu {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.guest-shell .menu-link {
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    color: rgba(242, 234, 223, 0.72);
    font-size: 0.86rem;
    font-weight: 800;
}

.guest-shell .menu-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f2eadf;
}

.guest-shell .menu-link.is-active {
    color: #0f172a;
    background: var(--guest-accent);
    border: 1px solid #f5e2ba;
    box-shadow: inset 0 0 0 2px rgba(15, 23, 42, 0.16);
}

.guest-shell .workspace {
    gap: 22px;
}

.guest-shell .topbar {
    overflow: hidden;
    min-height: 210px;
    padding: clamp(28px, 5vw, 48px);
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background:
        radial-gradient(circle at 88% 12%, rgba(238, 228, 215, 0.08), transparent 24%),
        linear-gradient(135deg, #192232 0%, #172031 56%, #24252d 100%);
    color: #f2eadf;
    box-shadow: 0 18px 48px rgba(16, 24, 40, 0.1);
}

.guest-shell .page-title {
    max-width: 900px;
    color: #f2eadf;
    font-family: var(--font-body);
    font-size: clamp(3rem, 6vw, 5.4rem);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 0.92;
    text-shadow: 2px 2px 0 rgba(159, 103, 45, 0.2);
}

.guest-shell .page-subtitle {
    max-width: 760px;
    color: rgba(242, 234, 223, 0.78);
    font-weight: 700;
}

.guest-shell .content-stack {
    gap: 22px;
}

.guest-shell .surface-card {
    border-color: var(--guest-line);
    background: rgba(232, 222, 208, 0.92);
    box-shadow: 0 18px 48px rgba(16, 24, 40, 0.08);
}

.guest-shell .section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    min-height: 24px;
    padding: 0 12px;
    border: 1px solid rgba(183, 121, 45, 0.22);
    border-radius: 999px;
    background: rgba(183, 121, 45, 0.08);
    color: #9b6a35;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.guest-login-grid,
.guest-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.7fr);
    gap: 22px;
}

.guest-login-copy,
.guest-main-card,
.guest-panel-card,
.guest-login-card {
    padding: clamp(26px, 4vw, 44px);
}

.guest-login-copy {
    min-height: 520px;
    border: 1px solid var(--guest-line);
    border-radius: 34px;
    background:
        radial-gradient(circle at 18% 18%, rgba(191, 136, 68, 0.16), transparent 26%),
        linear-gradient(135deg, #e8ded0, #ded0bd);
    box-shadow: 0 18px 48px rgba(16, 24, 40, 0.08);
}

.guest-login-copy h2,
.guest-main-card .section-title {
    max-width: 760px;
    margin: 22px 0 16px;
    color: var(--guest-ink);
    font-family: var(--font-body);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 0.92;
}

.guest-login-copy p,
.guest-main-card .section-subtitle,
.guest-panel-card .section-subtitle {
    max-width: 720px;
    color: var(--guest-muted);
    font-size: 1.05rem;
    font-weight: 650;
    line-height: 1.7;
}

.guest-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.guest-feature-card,
.guest-metric-row > div,
.guest-feature-list > div,
.guest-login-note {
    border: 1px solid var(--guest-line);
    border-radius: 22px;
    background: rgba(246, 241, 232, 0.64);
}

.guest-feature-card {
    min-height: 130px;
    padding: 18px;
}

.guest-feature-card strong,
.guest-feature-list strong {
    display: block;
    font-size: 1rem;
}

.guest-feature-card span,
.guest-feature-list span,
.guest-login-note span {
    display: block;
    margin-top: 8px;
    color: var(--guest-muted);
    line-height: 1.45;
}

.guest-login-card {
    align-self: start;
    border-radius: 34px;
}

.guest-login-card .section-title {
    margin-top: 18px;
    font-family: var(--font-body);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 950;
    letter-spacing: 0;
}

.guest-auth-form {
    margin-top: 24px;
}

.guest-auth-form .form-row input {
    min-height: 60px;
    border-color: var(--guest-line);
    background: rgba(246, 241, 232, 0.74);
}

.guest-login-button {
    width: 100%;
    min-height: 58px;
    border-radius: 18px;
    background: #101827;
    box-shadow: 0 16px 28px rgba(16, 24, 40, 0.16);
}

.guest-login-note {
    margin-top: 18px;
    padding: 16px 18px;
}

.guest-showcase {
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
}

.guest-main-card {
    grid-row: span 2;
    min-height: 520px;
    border-radius: 34px;
}

.guest-metric-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 32px 0;
}

.guest-metric-row > div {
    min-height: 112px;
    padding: 18px;
}

.guest-metric-row strong {
    display: block;
    color: #9b6a35;
    font-size: 0.76rem;
    letter-spacing: 0.16em;
}

.guest-metric-row span {
    display: block;
    margin-top: 20px;
    font-weight: 850;
}

.guest-panel-card {
    border-radius: 34px;
}

.guest-feature-list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.guest-feature-list > div {
    padding: 16px 18px;
}

.guest-panel-card.is-dark {
    background: linear-gradient(135deg, #192232, #24252d);
    color: #f2eadf;
}

.guest-panel-card.is-dark .section-title {
    color: #f2eadf;
    font-family: var(--font-body);
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
}

.guest-panel-card.is-dark .section-subtitle {
    color: rgba(242, 234, 223, 0.74);
}

.surface-card-inner {
    margin-top: 18px;
    background: var(--surface-muted);
}

.form-row {
    display: grid;
    gap: 8px;
}

.form-row label {
    color: #5f503d;
    font-weight: 600;
}

.form-row input,
.form-row select,
.form-row textarea,
.form-field input,
.form-field select,
.form-field textarea,
.plain-input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface-muted);
    color: var(--text);
}

.form-row textarea {
    min-height: 120px;
    padding: 16px;
    resize: vertical;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    color: #5f503d;
    font-weight: 600;
}

.form-field textarea {
    min-height: 120px;
    padding: 16px;
    resize: vertical;
}

.site-file-input {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-muted);
    color: var(--text);
    overflow: hidden;
}

.site-file-input-native {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

.site-file-input-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 250, 243, 0.78);
    color: var(--accent);
    font-weight: 750;
}

.site-file-input-name {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.formset-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.formset-grid-assets {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 160px;
}

.formset-card {
    padding: 18px;
    background: var(--surface-muted);
}

.checkbox-field {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface-muted);
    color: var(--text);
}

.checkbox-field input {
    width: auto;
    min-height: auto;
    margin: 0;
    padding: 0;
    accent-color: var(--accent);
}

.checkbox-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.checkbox-list > div,
.checkbox-list ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.checkbox-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-muted);
    font-weight: 600;
}

.checkbox-list input {
    width: auto;
    min-height: auto;
    accent-color: var(--accent);
}

.multi-check-picker {
    position: relative;
    width: 100%;
}

.multi-check-picker__details {
    position: relative;
}

.multi-check-picker__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-muted);
    color: var(--text);
    font-weight: 750;
    cursor: pointer;
    user-select: none;
}

.multi-check-picker__summary span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.multi-check-picker__summary::-webkit-details-marker {
    display: none;
}

.multi-check-picker__summary::after {
    content: "";
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.18s ease;
}

.multi-check-picker__details[open] .multi-check-picker__summary {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.multi-check-picker__details[open] .multi-check-picker__summary::after {
    transform: rotate(-135deg) translateY(-2px);
}

.multi-check-picker__panel {
    position: static;
    max-height: min(360px, 58vh);
    overflow: auto;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-muted);
    box-shadow: var(--shadow);
}

.multi-check-picker__grid > div,
.multi-check-picker__grid ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.multi-check-picker__grid label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-muted);
    color: var(--text);
    font-weight: 750;
    cursor: pointer;
}

.multi-check-picker__grid label:has(input:checked) {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}

.multi-check-picker__grid input {
    flex: 0 0 auto;
    width: auto;
    min-height: auto;
    margin: 0;
    accent-color: var(--accent);
}

.position-select-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-muted);
}

.position-select-form label {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 750;
}

.position-select-form select {
    width: auto;
    min-width: 68px;
    min-height: 34px;
    padding: 4px 28px 4px 10px;
    border-radius: 10px;
    font-weight: 750;
}

.task-export-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 10px;
}

.task-export-checkbox {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-muted);
    cursor: pointer;
    color: var(--text);
    font-weight: 750;
}

.task-export-checkbox input[type="checkbox"] {
    appearance: none;
    display: inline-grid;
    place-content: center;
    flex: 0 0 22px;
    width: 22px;
    min-width: 22px;
    height: 22px;
    min-height: 22px;
    margin: 0;
    padding: 0;
    border: 2px solid #d4b894;
    border-radius: 7px;
    background: #fffaf3;
    box-shadow: inset 0 1px 2px rgba(65, 44, 22, 0.08);
}

.task-export-checkbox input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 6px;
    margin-top: -2px;
    border-bottom: 2px solid #fffaf3;
    border-left: 2px solid #fffaf3;
    transform: rotate(-45deg) scale(0);
    transform-origin: center;
}

.task-export-checkbox input[type="checkbox"]:checked {
    border-color: var(--accent);
    background: var(--accent);
}

.task-export-checkbox input[type="checkbox"]:checked::before {
    transform: rotate(-45deg) scale(1);
}

.task-export-checkbox:has(input[type="checkbox"]:checked) {
    border-color: var(--accent);
    background: #fbf0df;
}

.notation-diff-card {
    display: grid;
    gap: 18px;
}

.notation-diff-field {
    display: grid;
    gap: 10px;
}

.notation-diff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.notation-diff-grid h4 {
    margin: 0 0 8px;
}

.notation-diff-grid pre {
    min-height: 90px;
    margin: 0;
    padding: 14px;
    overflow-x: auto;
    white-space: pre-wrap;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 250, 243, 0.75);
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    line-height: 1.55;
}

.show-more-form {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.rich-text {
    color: var(--text);
    line-height: 1.75;
}

.rich-text p {
    margin: 0 0 14px;
    color: var(--text);
}

.rich-text p:last-child {
    margin-bottom: 0;
}

.rich-text ul,
.rich-text ol {
    margin: 0 0 14px;
    padding-left: 22px;
}

.rich-text li {
    color: var(--text);
    margin-bottom: 6px;
}

.rich-text code,
.rich-text pre {
    font-family: "Consolas", "Courier New", monospace;
}

.rich-text code {
    padding: 2px 6px;
    border-radius: 8px;
    background: #efe4d4;
}

.rich-text pre {
    padding: 16px;
    overflow-x: auto;
    border-radius: 18px;
    background: #f1e8dc;
}

.rich-text table,
.math-box table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 14px;
}

.rich-text th,
.rich-text td,
.math-box th,
.math-box td {
    padding: 10px 12px;
    border: 1px solid var(--border);
    text-align: left;
}

.rich-text th,
.math-box th {
    background: rgba(255, 250, 243, 0.72);
    font-weight: 800;
}

.content-asset-stack {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.content-asset {
    margin: 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fffaf4;
}

.content-asset-image img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fff;
}

.content-asset-caption,
.content-asset-file-name {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.6;
}

.content-asset-missing {
    color: var(--danger-text);
    background: var(--danger-bg);
    border-style: dashed;
}

.content-inline-asset {
    display: inline-block;
    vertical-align: middle;
    max-height: 1.8em;
    width: auto;
    margin: 0 0.15em;
}

.content-inline-asset-missing {
    display: inline-block;
    vertical-align: middle;
    margin: 0 0.15em;
    color: var(--danger-text);
    font-size: 0.92em;
}

.auth-note ul {
    margin: 16px 0 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.8;
}

.section-title {
    margin: 0 0 6px;
    font-size: 2rem;
    line-height: 1.15;
}

.section-title-small {
    font-size: 1.35rem;
}

.section-subtitle {
    margin: 0 0 18px;
    color: var(--muted);
}

.editorial-title {
    max-width: 780px;
}

.task-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-column {
    display: grid;
    gap: 16px;
    align-content: start;
}

.catalog-card {
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface-muted);
    overflow: hidden;
}

.catalog-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    font-weight: 700;
    color: #2d241c;
    list-style: none;
}

.catalog-summary::-webkit-details-marker {
    display: none;
}

.catalog-card[open] .catalog-summary {
    border-bottom: 1px solid var(--border);
}

.catalog-links {
    display: grid;
    gap: 10px;
    padding: 16px 20px 20px;
}

.catalog-link {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: #4f4030;
}

.catalog-link:hover,
.catalog-link.is-active {
    background: var(--surface-soft);
    border-color: var(--border-strong);
    color: var(--text);
}

.catalog-link-accent {
    background: var(--surface-soft);
    border-color: var(--border-strong);
    font-weight: 700;
}

.catalog-links-inline {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.task-feed {
    display: grid;
    gap: 1.5rem;
}

.task-feed-card {
    display: grid;
    gap: 1.25rem;
}

.task-feed-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.task-feed-meta-left {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.task-feed-source {
    color: var(--muted);
    text-align: right;
}

.task-feed-content {
    margin-top: -0.25rem;
}

.task-inline-warning {
    width: fit-content;
    margin: -0.25rem 0 0;
    padding: 10px 14px;
    border: 1px solid rgba(201, 144, 46, 0.34);
    border-radius: 999px;
    background: var(--warning-bg);
    color: var(--warning-text);
    font-weight: 700;
}

[data-display-case-systems] {
    max-width: 100%;
}

[data-display-case-systems] .katex-display {
    margin: 0.65rem 0 0.5rem;
    padding-left: clamp(12px, 4vw, 54px);
    text-align: left;
}

[data-display-case-systems] .katex-display > .katex {
    text-align: left;
}

.analogue-task-condition {
    margin-top: 0.55rem;
    color: var(--text);
    line-height: 1.58;
}

.task-feed-details {
    display: grid;
    gap: 0.35rem;
}

.task-usage {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(171, 146, 107, 0.28);
    border-radius: 18px;
    background: rgba(255, 250, 240, 0.68);
}

.task-usage.has-target-match {
    border-color: rgba(172, 75, 68, 0.42);
    background: rgba(172, 75, 68, 0.06);
}

.task-usage-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.task-usage-head > strong {
    color: var(--text);
}

.task-usage-group {
    display: grid;
    gap: 6px;
}

.task-usage-title {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.task-usage-list {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.task-usage-list li {
    line-height: 1.45;
}

.task-usage-list li.is-target-student {
    font-weight: 700;
}

.task-usage-type {
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(11, 37, 69, 0.08);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
}

.task-usage-more {
    margin: 0;
}

.catalog-empty {
    padding: 16px 20px 20px;
    color: var(--muted);
}

.task-card-row {
    padding: 0;
    border: 0;
    background: transparent;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: #5c4a37;
}

.progress-track {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e6dccb;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--accent);
}

.success-soft {
    background: var(--success-bg);
    color: var(--success-text);
}

.warning-soft {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.accent-soft {
    background: var(--surface-soft);
}

.theory-card strong {
    margin-bottom: 12px;
}

.ranking-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ranking-place {
    width: 42px;
    height: 42px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    background: var(--surface);
    font-weight: 700;
}

.ranking-score {
    font-size: 1.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.current-ranking-row {
    background: var(--surface-soft);
    border-color: var(--border-strong);
}

details summary {
    cursor: pointer;
    font-weight: 600;
    color: #5c4a37;
}

details[open] summary {
    margin-bottom: 12px;
}

@media (max-width: 1180px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        min-height: auto;
        order: 2;
    }

    .workspace {
        order: 1;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guest-shell .sidebar,
    .guest-shell .workspace {
        order: initial;
    }

    .guest-login-grid,
    .guest-showcase {
        grid-template-columns: 1fr;
    }

    .guest-login-copy,
    .guest-main-card {
        min-height: auto;
    }
}

@media (max-width: 860px) {
    .topbar,
    .hero-grid,
    .dual-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .topbar {
        display: grid;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .task-grid,
    .inline-form-grid,
    .task-skill-row,
    .formset-grid,
    .formset-grid-assets,
    .catalog-grid,
    .notation-diff-grid {
        grid-template-columns: 1fr;
    }

    .app-shell {
        width: min(100% - 20px, 1440px);
        padding: 18px 0;
    }

    .guest-shell .app-shell {
        width: min(100% - 24px, 1320px);
        padding: 20px 0 44px;
    }

    .guest-shell .sidebar {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .guest-shell .brand-card {
        width: 100%;
    }

    .guest-shell .menu {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .guest-feature-grid,
    .guest-metric-row {
        grid-template-columns: 1fr;
    }

    .guest-shell .topbar {
        min-height: 180px;
    }

    .guest-login-copy h2,
    .guest-main-card .section-title,
    .guest-shell .page-title {
        letter-spacing: 0;
    }
}

body.student-shell {
    --student-bg: #d8d0c5;
    --student-bg-soft: #e2d8ca;
    --student-ink: #20242b;
    --student-muted: #68626a;
    --student-card: #e8ded0;
    --student-card-soft: #ddd0be;
    --student-line: #c2b29c;
    --student-line-strong: #ae9b82;
    --student-accent: #bf8844;
    --student-accent-strong: #8f5f2d;
    --student-nav: #151c2b;
    --student-nav-deep: #171e2d;
    --student-radius-xl: 34px;
    --student-radius-lg: 24px;
    --student-radius-md: 16px;
    --student-shadow: 0 18px 48px rgba(16, 24, 40, 0.1);
    background:
        linear-gradient(180deg, #151c2b 0%, #192132 12%, var(--student-bg) 12%, var(--student-bg-soft) 100%);
    color: var(--student-ink);
}

.student-shell .app-shell {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
    padding: 36px 0 56px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.student-shell .sidebar {
    position: static;
    display: grid;
    grid-template-columns: minmax(150px, auto) 1fr minmax(190px, auto);
    align-items: center;
    gap: 24px;
    min-height: 86px;
    padding: 18px 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background: linear-gradient(180deg, var(--student-nav), var(--student-nav-deep));
    box-shadow: none;
}

.student-shell .brand {
    display: inline-flex;
    align-items: center;
    width: max-content;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.student-shell .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #d9a65e;
    background: rgba(238, 228, 215, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}

.student-shell .brand-title {
    margin: 0;
    color: #f2eadf;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
}

.student-shell .nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.student-shell .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: rgba(242, 234, 223, 0.76);
    font-size: 0.82rem;
    font-weight: 700;
    transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.student-shell .nav-link:hover {
    color: #f2eadf;
    transform: translateY(-1px);
}

.student-shell .nav-link.is-active {
    color: #0f172a;
    background: var(--student-accent);
    border-color: #f5e2ba;
    box-shadow: inset 0 0 0 2px rgba(15, 23, 42, 0.16);
}

.student-shell .profile-card {
    justify-self: end;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 2px;
    min-width: 190px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: #f2eadf;
}

.student-shell .profile-name {
    font-size: 0.82rem;
    font-weight: 800;
}

.student-shell .profile-meta {
    color: rgba(242, 234, 223, 0.52);
    font-size: 0.74rem;
}

.student-shell .profile-logout {
    grid-row: span 2;
    margin: 0;
}

.student-shell .profile-logout-button {
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(242, 234, 223, 0.7);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 7px 9px;
}

.student-shell .workspace {
    display: grid;
    gap: 22px;
}

.student-shell .topbar {
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, auto);
    align-items: end;
    gap: 32px;
    min-height: 180px;
    padding: clamp(26px, 4vw, 40px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background:
        radial-gradient(circle at 92% 20%, rgba(238, 228, 215, 0.055), transparent 25%),
        linear-gradient(135deg, #192232 0%, #172031 56%, #24252d 100%);
    color: #f2eadf;
    box-shadow: var(--student-shadow);
}

.student-shell .eyebrow,
.student-shell .section-kicker,
.student-shell .pill {
    display: inline-flex;
    align-items: center;
    width: max-content;
    min-height: 24px;
    padding: 0 12px;
    border: 1px solid rgba(183, 121, 45, 0.22);
    border-radius: 999px;
    background: rgba(183, 121, 45, 0.08);
    color: #9b6a35;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.student-shell .topbar .eyebrow {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(242, 234, 223, 0.72);
}

.student-shell .page-title {
    max-width: 850px;
    margin: 14px 0 10px;
    color: #f2eadf;
    font-family: var(--font-body);
    font-size: clamp(3rem, 6vw, 5.2rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.9;
    text-shadow: 2px 2px 0 rgba(159, 103, 45, 0.2);
}

.student-shell .page-subtitle {
    margin: 0;
    color: rgba(242, 234, 223, 0.78);
    font-size: 1rem;
    font-weight: 700;
}

.student-shell .top-note {
    width: min(100%, 240px);
    padding: 18px 20px;
    border-left: 3px solid var(--student-accent);
    border-radius: 18px;
    background: rgba(232, 222, 208, 0.95);
    color: var(--student-ink);
}

.student-shell .top-note-label {
    color: #a98255;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.student-shell .top-note-value {
    margin-top: 6px;
    font-size: 1.15rem;
    font-weight: 900;
}

.student-shell .top-note-meta {
    margin-top: 4px;
    color: var(--student-muted);
    font-size: 0.82rem;
}

.student-shell .mobile-switcher {
    display: none;
}

.student-shell .messages {
    display: grid;
    gap: 10px;
}

.student-shell .message {
    border-color: var(--student-line);
    border-radius: 18px;
    background: #fff;
}

.student-shell .source-scope-row {
    align-items: center;
    padding: 14px 18px;
    border: 1px solid var(--student-line);
    border-radius: var(--student-radius-md);
    background: rgba(232, 222, 208, 0.66);
}

.student-shell .content-stack {
    display: grid;
    gap: 28px;
    padding-top: 8px;
}

.student-shell .hero,
.student-shell .section,
.student-shell .card,
.student-shell .assignment-card,
.student-shell .exam-card,
.student-shell .theory-card,
.student-shell .feed-card,
.student-shell .progress-card,
.student-shell .catalog-wrap,
.student-shell .ranking-list,
.student-shell .solve-card {
    border: 1px solid var(--student-line);
    border-radius: var(--student-radius-xl);
    background: var(--student-card);
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.035);
}

.student-shell .hero {
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: clamp(24px, 4vw, 54px);
    padding: clamp(28px, 4vw, 44px);
    background:
        radial-gradient(circle at 6% 12%, rgba(183, 121, 45, 0.07), transparent 28%),
        linear-gradient(135deg, #e9dece 0%, #e3d7c8 54%, #d9cab8 100%);
}

.student-shell .dashboard-focus {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
    gap: clamp(20px, 4vw, 42px);
    background:
        radial-gradient(circle at 6% 10%, rgba(191, 136, 68, 0.06), transparent 28%),
        linear-gradient(135deg, #e8ded0 0%, #e1d5c5 100%);
}

.student-shell .hero-main {
    align-self: center;
}

.student-shell .hero-title {
    max-width: 760px;
    margin: 14px 0 20px;
    font-family: var(--font-body);
    font-size: clamp(2.2rem, 4.6vw, 4.2rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.93;
}

.student-shell .hero-text {
    max-width: 720px;
    color: var(--student-muted);
    line-height: 1.7;
}

.student-shell .hero-actions,
.student-shell .filter-actions,
.student-shell .inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.student-shell .hero-panel,
.student-shell .side-panel {
    min-height: 190px;
    padding: 24px;
    border: 1px solid var(--student-line);
    border-radius: 24px;
    background: #d9ccb9;
}

.student-shell .panel-title {
    margin: 12px 0 8px;
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.06;
}

.student-shell .panel-text {
    margin: 0;
    color: var(--student-muted);
    line-height: 1.65;
}

.student-shell .btn,
.student-shell .button,
.student-shell button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    border: 1px solid #101828;
    border-radius: 13px;
    background: #101828;
    color: #fff;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(16, 24, 40, 0.13);
}

.student-shell .btn-secondary,
.student-shell .button.secondary,
.student-shell .btn.is-light {
    border-color: var(--student-line);
    background: #eee4d7;
    color: #101828;
    box-shadow: none;
}

.student-shell .section {
    padding: clamp(24px, 3vw, 36px);
}

.student-shell .section-head {
    margin-bottom: 22px;
}

.student-shell .section-title {
    margin: 8px 0 6px;
    font-family: var(--font-body);
    font-size: clamp(1.85rem, 3vw, 2.9rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
}

.student-shell .section-subtitle {
    margin: 0;
    color: var(--student-muted);
}

.student-shell .student-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    border: 1px solid var(--student-line);
    border-radius: var(--student-radius-lg);
    background: var(--student-card);
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.035);
}

.student-shell .student-toolbar .filter-actions,
.student-shell .student-toolbar .inline-actions {
    justify-content: flex-end;
    margin-top: 0;
}

.student-shell .grid-4,
.student-shell .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.student-shell .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.student-shell .grid-2,
.student-shell .two-column-grid,
.student-shell .catalog-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.student-shell .stat-card,
.student-shell .note-card {
    min-height: 130px;
    padding: 22px;
    border: 1px solid var(--student-line);
    border-radius: 22px;
    background: var(--student-card);
}

.student-shell .stat-card {
    border-left: 3px solid var(--student-accent);
}

.student-shell .stat-label,
.student-shell .meta-label {
    color: #9d7650;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.student-shell .stat-value {
    margin-top: 12px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.95;
}

.student-shell .stat-hint {
    margin-top: 8px;
    color: var(--student-muted);
}

.student-shell .note-index {
    display: inline-flex;
    align-items: center;
    width: auto;
    height: auto;
    border-radius: 999px;
    background: transparent;
    color: var(--student-accent-strong);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.student-shell .note-card h3,
.student-shell .assignment-card h2,
.student-shell .assignment-card h3,
.student-shell .exam-card h2,
.student-shell .theory-card h2,
.student-shell .feed-title,
.student-shell .ranking-user {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0;
}

.student-shell .note-card p,
.student-shell .assignment-meta,
.student-shell .feed-meta,
.student-shell .theory-snippet,
.student-shell .card-text,
.student-shell .empty {
    color: var(--student-muted);
    line-height: 1.6;
}

.student-shell .assignment-list,
.student-shell .exam-list,
.student-shell .theory-list,
.student-shell .feed-list,
.student-shell .ranking-list {
    display: grid;
    gap: 18px;
}

.student-shell .assignment-card,
.student-shell .exam-card,
.student-shell .theory-card,
.student-shell .feed-card,
.student-shell .ranking-row {
    display: grid;
    gap: 16px;
    padding: 24px;
    box-shadow: none;
}

.student-shell .assignment-card {
    grid-template-columns: minmax(0, 1fr) minmax(160px, auto);
    align-items: center;
}

.student-shell .card-side,
.student-shell .stack-actions {
    display: grid;
    justify-items: end;
    gap: 10px;
}

.student-shell .assignment-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.student-shell .data-box {
    padding: 14px 16px;
    border: 1px solid var(--student-line);
    border-radius: 14px;
    background: #f0e7da;
}

.student-shell .chip,
.student-shell .status-chip {
    display: inline-flex;
    align-items: center;
    width: max-content;
    min-height: 28px;
    padding: 0 12px;
    border: 1px solid var(--student-line);
    border-radius: 999px;
    background: #f8efe3;
    color: #9b6a35;
    font-size: 0.75rem;
    font-weight: 800;
}

.student-shell .status-chip.is-success {
    background: #e8f4ee;
    color: #2d7051;
}

.student-shell .status-chip.is-warning {
    background: #fff7e8;
    color: #8a5d20;
}

.student-shell .status-chip.is-danger {
    background: #fff0ec;
    color: #a43e2c;
}

.student-shell .chip.is-active {
    border-color: var(--student-accent);
    background: var(--student-accent);
    color: #101828;
}

.student-shell .catalog-wrap {
    padding: 28px;
}

.student-shell .catalog-column {
    display: grid;
    gap: 16px;
}

.student-shell details.catalog-card {
    overflow: hidden;
    border: 1px solid var(--student-line);
    border-radius: 20px;
    background: var(--student-card);
}

.student-shell .catalog-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 900;
}

.student-shell details.catalog-card[open] .catalog-summary {
    border-bottom: 1px solid var(--student-line);
    background: #e4d7c6;
}

.student-shell .catalog-links {
    display: grid;
    gap: 10px;
    padding: 16px 20px;
}

.student-shell .catalog-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--student-line);
    border-radius: 14px;
    background: #f0e7da;
    font-weight: 800;
}

.student-shell .catalog-link:hover {
    border-color: var(--student-line-strong);
}

.student-shell .feed-card {
    gap: 18px;
}

.student-shell .assignment-task-list {
    display: grid;
    gap: 18px;
}

.student-shell .assignment-task-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.34fr);
    gap: 20px;
    padding: clamp(18px, 2.4vw, 26px);
    border: 1px solid var(--student-line);
    border-radius: 24px;
    background: rgba(238, 228, 215, 0.88);
}

.student-shell .assignment-task-main {
    min-width: 0;
}

.student-shell .assignment-task-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.student-shell .assignment-task-header .inline-actions {
    margin-top: 0;
}

.student-shell .assignment-task-title {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.08;
    text-align: right;
}

.student-shell .assignment-task-condition {
    min-height: 92px;
    padding: clamp(18px, 2vw, 24px);
    background: #f0e5d6;
    color: var(--student-ink);
    font-size: 1.05rem;
    line-height: 1.75;
}

.student-shell .assignment-instruction-box {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.student-shell .assignment-instruction-box .math-box {
    padding: 16px 18px;
    background: rgba(255, 248, 238, 0.72);
    border-style: dashed;
}

.student-shell .assignment-task-aside {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--student-line);
    border-radius: 20px;
    background: #ded1c0;
}

.student-shell .assignment-task-score strong {
    display: block;
    margin: 6px 0 2px;
    font-size: clamp(2.1rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.9;
}

.student-shell .assignment-task-aside .btn {
    width: 100%;
}

.student-shell .assignment-inline-form {
    margin-top: 16px;
    padding: 16px;
    border-top: 1px solid rgba(124, 90, 57, 0.18);
    border-radius: 18px;
    background: rgba(222, 209, 192, 0.62);
}

.student-shell .assignment-inline-form textarea {
    min-height: 78px;
}

.student-shell .assignment-inline-form .student-file-upload-label {
    grid-template-columns: auto minmax(0, 1fr);
}

.student-shell .assignment-inline-form .student-file-upload-button {
    width: auto;
}

.student-shell .assignment-inline-form .btn {
    width: max-content;
}

.student-shell .bank-task-card {
    background: rgba(238, 228, 215, 0.9);
}

.student-shell .bank-answer-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.28fr);
    gap: 18px;
    align-items: stretch;
}

.student-shell .bank-answer-main {
    min-width: 0;
}

.student-shell .bank-inline-form {
    display: grid;
    gap: 12px;
    margin-top: 0;
    padding: 16px;
    border: 1px solid rgba(124, 90, 57, 0.18);
    border-radius: 18px;
    background: rgba(222, 209, 192, 0.62);
}

.student-shell .bank-inline-form input[type="text"] {
    min-height: 52px;
    font-size: 1.04rem;
    font-weight: 800;
}

.student-shell .bank-inline-form .btn {
    width: max-content;
}

.student-shell .bank-answer-summary {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--student-line);
    border-radius: 20px;
    background: #ded1c0;
}

.student-shell .bank-answer-summary strong {
    font-size: clamp(2rem, 4vw, 2.7rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.95;
}

.student-shell .bank-answer-summary p {
    margin: 0;
    color: var(--student-muted);
    font-weight: 800;
}

.student-shell .bank-attempt-history {
    display: grid;
    gap: 8px;
    padding-top: 4px;
}

.student-shell .attempt-limit-note {
    margin: 0;
    color: var(--student-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.student-shell .attempt-limit-box {
    padding: 14px 16px;
    border: 1px solid rgba(164, 62, 44, 0.24);
    border-radius: 14px;
    background: #fff0ec;
    color: #8f3728;
    font-weight: 800;
}

.student-shell .attempt-limit-box.is-success {
    border-color: rgba(45, 112, 81, 0.24);
    background: #e8f4ee;
    color: #2d7051;
}

.student-shell .assignment-inline-status {
    min-height: 22px;
    color: var(--student-muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.student-shell .assignment-inline-status.is-success {
    color: #2d7051;
}

.student-shell .assignment-inline-status.is-danger {
    color: #a43e2c;
}

.student-shell .assignment-feedback-panel {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid rgba(45, 112, 81, 0.24);
    border-radius: 22px;
    background: #edf5ef;
}

.student-shell .assignment-feedback-panel h3 {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.student-shell .student-solution-panel {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(7, 27, 53, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
}

.student-shell .student-solution-panel summary {
    cursor: pointer;
    color: var(--student-ink);
    font-weight: 900;
}

.student-shell .student-solution-panel summary span {
    margin-right: 8px;
}

.student-shell .student-solution-panel summary small {
    color: var(--student-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.student-shell .student-solution-panel .rich-text {
    margin-top: 10px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.student-shell .assignment-feedback-files {
    display: grid;
    gap: 12px;
}

.student-shell .assignment-feedback-file {
    overflow: hidden;
    border: 1px solid var(--student-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.55);
}

.student-shell .assignment-feedback-preview,
.student-shell .assignment-feedback-pdf {
    display: block;
    width: 100%;
    border: 0;
    background: #fff;
}

.student-shell .assignment-feedback-preview {
    max-height: 520px;
    object-fit: contain;
}

.student-shell .assignment-feedback-pdf {
    height: 520px;
}

.teacher-review-hero,
.teacher-review-layout,
.teacher-review-main,
.teacher-review-block {
    width: min(1180px, calc(100vw - 48px));
    margin-inline: auto;
}

.teacher-review-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.teacher-review-main {
    display: grid;
    gap: 22px;
}

.teacher-review-block {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.teacher-review-fields {
    display: grid;
    grid-template-columns: minmax(160px, 240px) 1fr;
    gap: 18px;
}

.teacher-review-fields .form-row:nth-child(n + 2) {
    grid-column: 1 / -1;
}

.review-file-grid {
    display: grid;
    gap: 18px;
}

.review-file-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.46);
}

.review-file-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.review-file-image,
.review-file-pdf {
    display: block;
    width: 100%;
    border: 0;
    background: #fff;
}

.review-file-image {
    max-height: 76vh;
    object-fit: contain;
}

.review-file-pdf {
    height: 72vh;
}

.pdf-viewer {
    display: block;
    width: 100%;
    min-height: 720px;
    border: 0;
    background: #fff;
}

.pdf-viewer-fallback {
    display: grid;
    min-height: 320px;
    place-items: center;
    gap: 16px;
    padding: 32px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: 18px;
}

.teacher-feedback-list {
    margin-top: 18px;
}

@media (max-width: 760px) {
    .pdf-viewer {
        min-height: 460px;
    }

    .teacher-review-hero {
        flex-direction: column;
    }

    .teacher-review-fields {
        grid-template-columns: 1fr;
    }
}

.student-shell .assignment-lock-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: clamp(18px, 2.4vw, 26px);
    border: 1px solid var(--student-line);
    border-radius: var(--student-radius-xl);
    background: #ded1c0;
}

.student-shell .assignment-lock-banner strong {
    color: var(--student-ink);
    font-size: 1.1rem;
}

.student-shell .assignment-attempt-history {
    display: grid;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(124, 90, 57, 0.2);
}

.student-shell .assignment-attempt-history p {
    margin: 0;
    color: var(--student-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.student-shell .assignment-submit-review {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid var(--student-line);
    border-radius: var(--student-radius-xl);
    background: #ded1c0;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.04);
}

.student-shell .assignment-submit-review form {
    margin: 0;
}

.student-shell .student-submit-modal[hidden] {
    display: none;
}

.student-shell .student-submit-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.student-shell .student-submit-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(10px);
}

.student-shell .student-submit-modal-card {
    position: relative;
    width: min(560px, 100%);
    padding: clamp(24px, 4vw, 34px);
    border: 1px solid rgba(238, 228, 215, 0.28);
    border-radius: 28px;
    background:
        radial-gradient(circle at 88% 12%, rgba(201, 144, 72, 0.16), transparent 30%),
        linear-gradient(135deg, #eee4d7 0%, #ded1c0 100%);
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.34);
}

body.student-modal-open {
    overflow: hidden;
}

.student-shell .feed-card-header,
.student-shell .exam-card,
.student-shell .ranking-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.student-shell .math-box,
.student-shell .answer-panel,
.student-shell .attempt-panel {
    padding: 18px;
    border: 1px solid var(--student-line);
    border-radius: 18px;
    background: #e3d7c7;
}

.student-shell .math-box img,
.student-shell .rich-content img,
.student-shell .task-condition img {
    max-width: 100%;
    height: auto;
}

.student-shell .solve-focus {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.36fr);
    gap: 24px;
    padding: clamp(22px, 3.2vw, 34px);
    border: 1px solid var(--student-line);
    border-radius: var(--student-radius-xl);
    background:
        radial-gradient(circle at 4% 12%, rgba(183, 121, 45, 0.06), transparent 28%),
        linear-gradient(135deg, #eee5d8 0%, #e6dacb 100%);
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.04);
}

.student-shell .solve-focus-title {
    max-width: 760px;
    margin: 12px 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.95;
}

.student-shell .solve-focus-text {
    max-width: 720px;
    margin: 0;
    color: var(--student-muted);
    line-height: 1.65;
}

.student-shell .solve-focus-panel {
    align-self: stretch;
    padding: 22px;
    border: 1px solid var(--student-line);
    border-radius: 22px;
    background: #ded1c0;
}

.student-shell .solve-mini-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(124, 90, 57, 0.2);
    color: var(--student-muted);
}

.student-shell .solve-mini-meta strong {
    color: var(--student-ink);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.student-shell .solve-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(340px, 0.58fr);
    align-items: start;
    gap: 18px;
}

.student-shell .solve-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
    gap: 18px;
}

.student-shell .solve-card {
    padding: clamp(22px, 3vw, 32px);
}

.student-shell .solve-condition-card .task-condition {
    min-height: 260px;
    padding: clamp(20px, 2.4vw, 28px);
    background: #f0e5d6;
    font-size: 1.08rem;
    line-height: 1.8;
}

.student-shell .solve-answer-card {
    position: sticky;
    top: 18px;
}

.student-shell .solve-form {
    display: grid;
    gap: 14px;
}

.student-shell .student-form-field {
    display: grid;
    gap: 8px;
}

.student-shell .route-focus-card {
    display: grid;
    gap: 10px;
    margin-top: 24px;
    padding: 20px;
    border: 1px solid rgba(210, 180, 140, 0.7);
    border-radius: 28px;
    background: rgba(255, 250, 243, 0.72);
}

.student-shell .route-focus-card h3 {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.student-shell .route-focus-card p {
    margin: 0;
    max-width: 720px;
    color: var(--student-muted);
}

.student-shell .solve-form input,
.student-shell .solve-form textarea,
.student-shell .solve-form select,
.student-shell .solve-form .file-input {
    width: 100%;
    border: 1px solid var(--student-line);
    border-radius: 14px;
    background: #f0e7da;
    color: var(--student-ink);
    padding: 12px 14px;
}

.student-shell .solve-form textarea {
    min-height: 118px;
    resize: vertical;
}

.student-shell .student-file-upload {
    position: relative;
}

.student-shell .student-file-upload input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.student-shell .student-file-upload-label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 8px;
    border: 1px solid var(--student-line);
    border-radius: 16px;
    background: #f0e7da;
    cursor: pointer;
}

.student-shell .student-file-upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    background: #101828;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 900;
}

.student-shell .student-file-upload-name {
    overflow: hidden;
    color: var(--student-muted);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-shell .student-file-upload-label:focus-visible,
.student-shell [data-student-file-upload].is-dragging .student-file-upload-label,
.student-shell [data-student-file-upload].is-dragging .homework-upload-zone {
    border-color: #477ba9;
    outline: 3px solid rgba(36, 107, 209, 0.12);
    background: #f5f9fc;
}

.student-shell .student-upload-file-list {
    display: grid;
    max-height: 280px;
    margin-top: 8px;
    overflow-y: auto;
    border-top: 1px solid var(--student-line);
}

.student-shell .student-upload-file-list[hidden] {
    display: none;
}

.student-shell .student-upload-file-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 9px 2px;
    border-bottom: 1px solid var(--student-line);
}

.student-shell .student-upload-file-preview,
.student-shell .student-upload-file-badge {
    width: 48px;
    height: 48px;
    border: 1px solid var(--student-line);
    border-radius: 6px;
    background: #fff;
}

.student-shell .student-upload-file-preview {
    object-fit: cover;
}

.student-shell .student-upload-file-badge {
    display: grid;
    place-items: center;
    color: var(--student-muted);
    font-size: 0.66rem;
    font-weight: 900;
}

.student-shell .student-upload-file-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.student-shell .student-upload-file-copy strong {
    overflow: hidden;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-shell .student-upload-file-copy small {
    color: var(--student-muted);
    font-size: 0.68rem;
}

.student-shell .student-upload-file-remove {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--student-line);
    border-radius: 6px;
    background: transparent;
    color: var(--student-muted);
    font: inherit;
    font-size: 0.68rem;
    font-weight: 800;
    cursor: pointer;
}

.student-shell .student-upload-file-remove:hover,
.student-shell .student-upload-file-remove:focus-visible {
    border-color: #c5756c;
    color: #9d3f36;
    outline: none;
}

.student-shell .student-upload-file-status {
    margin: 7px 0 0;
    color: #2f754b;
    font-size: 0.7rem;
    font-weight: 750;
}

.student-shell .student-upload-file-status[hidden] {
    display: none;
}

.student-shell .student-upload-file-status.is-error {
    color: #a43e2c;
}

.student-shell .form-errors,
.student-shell .errorlist {
    color: #a43e2c;
    font-weight: 700;
}

.student-shell .exam-score,
.student-shell .rank-score {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: 0;
}

.student-shell .ranking-row {
    border: 1px solid transparent;
    border-radius: 22px;
    background: var(--student-card);
}

.student-shell .ranking-row.current {
    border-color: var(--student-accent);
    background: #eadbc7;
}

.student-shell .rank-place {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--student-line);
    border-radius: 14px;
    background: #f0e7da;
    font-weight: 900;
}

.student-shell .ranking-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.student-shell .progress-card {
    padding: 26px;
}

.student-shell .foundation-card {
    display: grid;
    gap: 24px;
}

.student-shell .foundation-card-hero {
    padding: clamp(28px, 4vw, 44px);
    background:
        radial-gradient(circle at 88% 18%, rgba(183, 121, 45, 0.08), transparent 28%),
        linear-gradient(135deg, #e8dece 0%, #e2d6c7 62%, #d8c9b8 100%);
}

.student-shell .foundation-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
    gap: 24px;
    align-items: start;
}

.student-shell .foundation-score {
    padding: 20px;
    border: 1px solid var(--student-line);
    border-radius: 22px;
    background: rgba(238, 228, 215, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.student-shell .foundation-scale-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(159, 103, 45, 0.2);
    border-radius: 22px;
    background: rgba(248, 239, 227, 0.58);
}

.student-shell .foundation-scale-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.student-shell .foundation-scale-head > div {
    display: grid;
    gap: 4px;
}

.student-shell .foundation-scale-label,
.student-shell .foundation-scale-caption,
.student-shell .foundation-meter-meta em {
    color: #9b6a35;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.student-shell .foundation-scale-value {
    color: var(--student-ink);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.95;
}

.student-shell .foundation-scale-caption {
    align-self: center;
    max-width: 190px;
    padding: 8px 12px;
    border: 1px solid rgba(159, 103, 45, 0.18);
    border-radius: 999px;
    background: rgba(248, 239, 227, 0.68);
    color: var(--student-muted);
    text-align: right;
}

.student-shell .foundation-scale {
    position: relative;
    height: 24px;
    overflow: visible;
    border: 1px solid rgba(145, 101, 55, 0.35);
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0)),
        #d8cab8;
    box-shadow:
        inset 0 2px 8px rgba(82, 61, 37, 0.12),
        0 8px 20px rgba(82, 61, 37, 0.08);
}

.student-shell .foundation-scale-fill {
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #b7792d 0%, #d9973f 55%, #f0c879 100%);
    box-shadow: 0 8px 22px rgba(183, 121, 45, 0.28);
}

.student-shell .foundation-scale-marker {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    border: 3px solid #f8efe3;
    border-radius: 999px;
    background: #b7792d;
    box-shadow: 0 7px 18px rgba(82, 61, 37, 0.22);
    transform: translate(-50%, -50%);
}

.student-shell .foundation-scale-marker[style*="left: 0%"] {
    transform: translate(0, -50%);
}

.student-shell .foundation-meter-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 160px));
    gap: 10px;
    align-items: stretch;
}

.student-shell .foundation-meter-meta span {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid rgba(159, 103, 45, 0.18);
    border-radius: 16px;
    background: rgba(248, 239, 227, 0.72);
}

.student-shell .foundation-meter-meta strong {
    color: var(--student-ink);
    font-size: 1.25rem;
    line-height: 1;
}

.student-shell .practice-card-hero {
    background:
        radial-gradient(circle at 84% 12%, rgba(183, 121, 45, 0.09), transparent 30%),
        linear-gradient(135deg, #e9dfd1 0%, #e1d4c4 65%, #d5c4b2 100%);
}

.student-shell .practice-card-hero .foundation-scale-head {
    align-items: center;
}

.student-shell .foundation-details {
    overflow: hidden;
    border: 1px solid var(--student-line);
    border-radius: 22px;
    background: rgba(248, 239, 227, 0.7);
}

.student-shell .foundation-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    padding: 0 20px;
    cursor: pointer;
    color: var(--student-ink);
    font-weight: 900;
    list-style: none;
}

.student-shell .foundation-details summary::-webkit-details-marker {
    display: none;
}

.student-shell .foundation-details summary::after {
    content: "+";
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--student-line);
    border-radius: 999px;
    background: #efe4d4;
    color: #9b6a35;
    font-size: 1.2rem;
    line-height: 1;
}

.student-shell .foundation-details[open] summary {
    border-bottom: 1px solid var(--student-line);
}

.student-shell .foundation-details[open] summary::after {
    content: "−";
}

.student-shell .foundation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
}

.student-shell .foundation-number-grid {
    padding: 0;
    gap: 14px;
}

.student-shell .foundation-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 0.32fr);
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid var(--student-line);
    border-radius: 18px;
    background: #f0e7da;
}

.student-shell .foundation-number-card {
    min-height: 190px;
    background:
        radial-gradient(circle at 100% 0%, rgba(208, 145, 62, 0.08), transparent 36%),
        #f3eadf;
}

.student-shell .foundation-number-card.is-completed {
    border-color: rgba(71, 121, 86, 0.35);
    background:
        radial-gradient(circle at 100% 0%, rgba(71, 121, 86, 0.1), transparent 36%),
        #eef0df;
}

.student-shell .foundation-number-card.is-in_progress {
    border-color: rgba(183, 121, 45, 0.42);
}

.student-shell .foundation-row-main {
    display: grid;
    gap: 5px;
}

.student-shell .foundation-card-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.student-shell .foundation-number {
    width: max-content;
    padding: 4px 10px;
    border: 1px solid var(--student-line);
    border-radius: 999px;
    background: #f8efe3;
    color: #9b6a35;
    font-size: 0.75rem;
    font-weight: 900;
}

.student-shell .status-pill {
    width: max-content;
    padding: 4px 10px;
    border: 1px solid rgba(127, 89, 50, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    color: var(--student-muted);
    font-size: 0.72rem;
    font-weight: 900;
}

.student-shell .is-completed .status-pill {
    border-color: rgba(71, 121, 86, 0.25);
    background: rgba(71, 121, 86, 0.12);
    color: #315f3a;
}

.student-shell .is-in_progress .status-pill {
    border-color: rgba(183, 121, 45, 0.28);
    background: rgba(183, 121, 45, 0.12);
    color: #87551d;
}

.student-shell .foundation-row-main strong {
    font-size: 1rem;
}

.student-shell .foundation-row-main span,
.student-shell .foundation-row-progress {
    color: var(--student-muted);
}

.student-shell .foundation-row-progress {
    display: grid;
    gap: 8px;
    text-align: right;
}

.student-shell .foundation-row-progress strong {
    color: var(--student-ink);
}

.student-shell .foundation-row-meta {
    display: grid;
    gap: 3px;
    color: var(--student-muted);
    font-size: 0.82rem;
}

.student-shell .foundation-row-progress .btn-small {
    justify-self: end;
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.78rem;
}

.student-shell .practice-meter {
    margin-bottom: 18px;
}

.student-shell .progress-row {
    display: grid;
    gap: 10px;
    padding: 14px 0;
}

.student-shell .progress-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.student-shell .progress-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8ded0;
}

.student-shell .progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d0913e, #b7792d);
}

.student-shell .empty {
    padding: 24px;
    border: 1px dashed var(--student-line-strong);
    border-radius: 20px;
    background: rgba(238, 228, 215, 0.78);
}

.student-shell .muted {
    color: var(--student-muted);
}

.student-shell .rich-text,
.student-shell .rich-content {
    line-height: 1.75;
}

.student-shell .rich-text p:first-child,
.student-shell .rich-content p:first-child {
    margin-top: 0;
}

.student-shell .rich-text p:last-child,
.student-shell .rich-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1180px) {
    .student-shell .sidebar {
        position: static;
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .student-shell .brand,
    .student-shell .profile-card {
        justify-self: center;
    }

    .student-shell .hero,
    .student-shell .dashboard-focus,
    .student-shell .solve-focus,
    .student-shell .solve-workspace,
    .student-shell .solve-layout,
    .student-shell .grid-2,
    .student-shell .two-column-grid,
    .student-shell .catalog-columns,
    .student-shell .foundation-hero-grid,
    .student-shell .foundation-grid,
    .student-shell .student-toolbar,
    .student-shell .assignment-task-card,
    .student-shell .bank-answer-panel,
    .student-shell .assignment-lock-banner,
    .student-shell .assignment-submit-review {
        grid-template-columns: 1fr;
    }

    .student-shell .solve-answer-card {
        position: static;
    }

    .student-shell .grid-4,
    .student-shell .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-shell .foundation-meter-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 760px) {
    .student-shell .app-shell {
        width: min(100% - 20px, 1520px);
        padding-top: 18px;
    }

    .student-shell .sidebar .nav {
        display: none;
    }

    .student-shell .mobile-switcher {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding: 10px;
        border: 1px solid var(--student-line);
        border-radius: 18px;
        background: #fff;
    }

    .student-shell .mobile-switcher .nav-link {
        flex: 0 0 auto;
        color: var(--student-ink);
        background: #f7f1e8;
    }

    .student-shell .mobile-switcher .nav-link.is-active {
        color: #101828;
        background: var(--student-accent);
    }

    .student-shell .topbar,
    .student-shell .foundation-row,
    .student-shell .feed-card-header,
    .student-shell .assignment-task-header,
    .student-shell .assignment-card,
    .student-shell .exam-card,
    .student-shell .ranking-row {
        grid-template-columns: 1fr;
    }

    .student-shell .assignment-task-header {
        display: grid;
    }

    .student-shell .student-toolbar .filter-actions,
    .student-shell .student-toolbar .inline-actions {
        justify-content: flex-start;
    }

    .student-shell .foundation-row-progress {
        text-align: left;
    }

    .student-shell .foundation-meter-meta {
        grid-template-columns: 1fr;
    }

    .student-shell .foundation-row-progress .btn-small {
        justify-self: start;
    }

    .student-shell .assignment-task-title {
        text-align: left;
    }

    .student-shell .top-note {
        width: 100%;
    }

    .student-shell .page-title {
        font-size: clamp(2.6rem, 18vw, 4.1rem);
    }

    .student-shell .hero-title {
        font-size: clamp(2.2rem, 15vw, 3.6rem);
    }

    .student-shell .grid-4,
    .student-shell .grid-3,
    .student-shell .stats-grid,
    .student-shell .assignment-meta-grid {
        grid-template-columns: 1fr;
    }

    .student-shell .card-side,
    .student-shell .stack-actions {
        justify-items: stretch;
    }
}

/* EGETrack student workspace theme */

body.student-shell {
    --eg-page: #f7efe2;
    --eg-page-soft: #fbf7ef;
    --eg-surface: #fffdf8;
    --eg-surface-raised: #ffffff;
    --eg-ink: #0f1828;
    --eg-ink-soft: #5f6b7a;
    --eg-muted: #7d8794;
    --eg-navy: #081b33;
    --eg-cobalt: #2457e6;
    --eg-cobalt-dark: #173fb4;
    --eg-cobalt-soft: #eaf1ff;
    --eg-sage: #7f927f;
    --eg-sage-soft: #edf3ed;
    --eg-amber: #c9902e;
    --eg-amber-soft: #fff4dc;
    --eg-oxblood: #a7443e;
    --eg-oxblood-soft: #fff0ee;
    --eg-border: #e5d9c8;
    --eg-border-soft: #efe5d6;
    --eg-shadow-card: 0 24px 70px rgba(15, 24, 40, 0.10);
    --eg-shadow-soft: 0 14px 34px rgba(15, 24, 40, 0.07);
    --eg-radius-xl: 32px;
    --eg-radius-lg: 24px;
    --eg-radius-md: 18px;
    --eg-radius-sm: 12px;
    --student-bg: var(--eg-page);
    --student-surface: var(--eg-surface);
    --student-panel: var(--eg-page-soft);
    --student-line: var(--eg-border);
    --student-ink: var(--eg-ink);
    --student-muted: var(--eg-ink-soft);
    --student-accent: var(--eg-cobalt);
    background:
        radial-gradient(circle at 12% 10%, rgba(36, 87, 230, 0.11), transparent 24%),
        radial-gradient(circle at 78% 4%, rgba(201, 144, 46, 0.16), transparent 21%),
        linear-gradient(120deg, rgba(8, 27, 51, 0.035) 1px, transparent 1px),
        linear-gradient(210deg, rgba(8, 27, 51, 0.03) 1px, transparent 1px),
        var(--eg-page);
    background-size: auto, auto, 80px 80px, 92px 92px, auto;
    color: var(--eg-ink);
    font-family: var(--font-body);
}

.student-shell .app-shell {
    width: min(100% - 40px, 1560px);
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding: 28px 0;
}

.student-shell .sidebar {
    position: sticky;
    top: 28px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    align-items: start;
    align-content: start;
    justify-items: stretch;
    gap: 22px;
    min-height: calc(100vh - 56px);
    border: 1px solid rgba(229, 217, 200, 0.92);
    border-radius: var(--eg-radius-xl);
    background:
        linear-gradient(160deg, rgba(255, 253, 248, 0.96), rgba(251, 247, 239, 0.92)),
        radial-gradient(circle at 12% 8%, rgba(36, 87, 230, 0.10), transparent 24%);
    box-shadow: var(--eg-shadow-soft);
    padding: 22px;
    overflow: hidden;
}

.student-shell .brand {
    width: 100%;
    max-width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.student-shell .sidebar::after {
    content: "";
    position: absolute;
    inset: auto -44px -78px auto;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(36, 87, 230, 0.12);
    border-radius: 999px;
    pointer-events: none;
}

.student-shell .egetrack-brand {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 4px 2px 12px;
    color: var(--eg-navy);
    text-decoration: none;
}

.student-shell .brand-copy {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.student-shell .brand-title {
    font-family: var(--font-display);
    font-size: 1.62rem;
    line-height: 1;
    letter-spacing: 0;
    color: var(--eg-navy);
    white-space: nowrap;
}

.student-shell .brand-tagline {
    color: #667182;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.105em;
    text-transform: uppercase;
    white-space: normal;
}

.egetrack-mark {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 52% 48%, #fffdf8 0 18%, transparent 19%),
        linear-gradient(145deg, #ffffff, #edf4ff);
    box-shadow:
        inset 0 0 0 1px rgba(36, 87, 230, 0.20),
        inset 0 0 0 8px rgba(234, 241, 255, 0.70),
        0 16px 30px rgba(8, 27, 51, 0.12);
}

.egetrack-mark svg {
    width: 92%;
    height: 92%;
    overflow: visible;
}

.egetrack-mark-orbit,
.egetrack-mark-inner-orbit,
.egetrack-mark-grid,
.egetrack-mark-route {
    fill: none;
    vector-effect: non-scaling-stroke;
}

.egetrack-mark-grid {
    stroke: rgba(8, 27, 51, 0.13);
    stroke-width: 1;
}

.egetrack-mark-orbit {
    stroke: rgba(201, 144, 46, 0.70);
    stroke-width: 1.25;
}

.egetrack-mark-inner-orbit {
    stroke: rgba(8, 27, 51, 0.12);
    stroke-width: 1;
}

.egetrack-mark-route {
    stroke: rgba(127, 146, 127, 0.52);
    stroke-width: 1.2;
    stroke-dasharray: 3 4;
}

.egetrack-mark-needle {
    fill: #071a33;
    filter: drop-shadow(0 6px 8px rgba(8, 27, 51, 0.24));
}

.egetrack-mark-tail {
    fill: #123866;
    opacity: 0.92;
}

.egetrack-mark-core {
    fill: #fffdf8;
    stroke: #2457e6;
    stroke-width: 3;
}

.egetrack-mark-dot {
    fill: #fffdf8;
    stroke-width: 2;
}

.egetrack-mark-dot.is-amber {
    stroke: var(--eg-amber);
}

.egetrack-mark-dot.is-sage {
    stroke: var(--eg-sage);
}

.student-shell .brand .egetrack-mark {
    flex: 0 0 auto;
}

.student-shell .topbar .eyebrow,
.student-shell .egetrack-hero .section-kicker {
    border-color: rgba(36, 87, 230, 0.20);
    background: rgba(234, 241, 255, 0.84);
    color: #173fb4;
    text-shadow: none;
}

.student-shell .nav {
    align-self: start;
    margin-top: 2px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
}

.student-shell .nav-link {
    position: relative;
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 16px;
    color: var(--eg-ink-soft);
    font-weight: 800;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.student-shell .nav-link::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(36, 87, 230, 0.38);
    background: rgba(255, 253, 248, 0.8);
}

.student-shell .nav-link:hover {
    color: var(--eg-navy);
    background: rgba(36, 87, 230, 0.06);
    transform: translateX(2px);
}

.student-shell .nav-link.is-active {
    color: var(--eg-navy);
    border-color: rgba(36, 87, 230, 0.18);
    background: linear-gradient(135deg, #fff, #eef4ff);
    box-shadow: 0 12px 28px rgba(36, 87, 230, 0.10);
}

.student-shell .nav-link.is-active::before {
    background: var(--eg-cobalt);
    border-color: var(--eg-cobalt);
    box-shadow: 0 0 0 5px rgba(36, 87, 230, 0.10);
}

.student-shell .profile-card {
    margin-top: auto;
    align-self: end;
    width: 100%;
    justify-self: stretch;
    border: 1px solid var(--eg-border);
    border-radius: 22px;
    background: rgba(255, 253, 248, 0.78);
    box-shadow: none;
}

.student-shell .profile-name {
    color: var(--eg-navy);
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0;
}

.student-shell .profile-meta,
.student-shell .profile-logout-button {
    color: var(--eg-ink-soft);
}

.student-shell .workspace {
    min-width: 0;
    display: grid;
    gap: 22px;
}

.student-shell .topbar {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 22px;
    align-items: stretch;
    border: 1px solid rgba(229, 217, 200, 0.92);
    border-radius: var(--eg-radius-xl);
    background:
        radial-gradient(circle at 82% 20%, rgba(36, 87, 230, 0.10), transparent 24%),
        linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(251, 247, 239, 0.92));
    box-shadow: var(--eg-shadow-soft);
    overflow: hidden;
}

.student-shell .topbar::after {
    content: "";
    position: absolute;
    inset: 18px 24px auto auto;
    width: 190px;
    height: 86px;
    border-top: 1px solid rgba(8, 27, 51, 0.10);
    border-right: 1px solid rgba(8, 27, 51, 0.07);
    transform: skewX(-18deg);
    pointer-events: none;
}

.student-shell .eyebrow,
.student-shell .section-kicker,
.student-shell .pill,
.student-shell .stat-label,
.student-shell .meta-label {
    color: var(--eg-cobalt-dark);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.student-shell .page-title,
.student-shell .hero-title,
.student-shell .section-title {
    color: var(--eg-navy);
    font-family: var(--font-display);
    letter-spacing: 0;
}

.student-shell .page-title {
    max-width: 820px;
    margin-top: 8px;
    font-size: clamp(2.4rem, 5vw, 4.7rem);
    line-height: 0.92;
}

.student-shell .page-subtitle,
.student-shell .section-subtitle,
.student-shell .hero-text,
.student-shell .panel-text,
.student-shell .feed-meta,
.student-shell .card-text,
.student-shell .empty {
    color: var(--eg-ink-soft);
    line-height: 1.65;
}

.student-shell .top-note {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(36, 87, 230, 0.15);
    border-radius: 22px;
    background: linear-gradient(145deg, #fff, #eef4ff);
    box-shadow: 0 14px 30px rgba(36, 87, 230, 0.09);
}

.student-shell .top-note-label {
    color: var(--eg-cobalt-dark);
}

.student-shell .top-note-value {
    color: var(--eg-navy);
    font-family: var(--font-display);
    font-size: 1.7rem;
}

.student-shell .content-stack {
    display: grid;
    gap: 22px;
}

.student-shell .section,
.student-shell .card,
.student-shell .assignment-card,
.student-shell .exam-card,
.student-shell .theory-card,
.student-shell .feed-card,
.student-shell .progress-card,
.student-shell .catalog-wrap,
.student-shell .ranking-list,
.student-shell .solve-card,
.student-shell .student-toolbar,
.student-shell .assignment-lock-banner,
.student-shell .assignment-submit-review,
.student-shell .foundation-details {
    border: 1px solid rgba(229, 217, 200, 0.92);
    border-radius: var(--eg-radius-xl);
    background: rgba(255, 253, 248, 0.92);
    box-shadow: var(--eg-shadow-soft);
}

.student-shell .section,
.student-shell .catalog-wrap,
.student-shell .progress-card,
.student-shell .student-toolbar,
.student-shell .assignment-lock-banner,
.student-shell .assignment-submit-review,
.student-shell .foundation-details {
    padding: 26px;
}

.student-shell .egetrack-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 22px;
    min-height: 480px;
    border: 1px solid rgba(229, 217, 200, 0.94);
    border-radius: 36px;
    padding: 30px;
    background:
        radial-gradient(circle at 82% 18%, rgba(201, 144, 46, 0.16), transparent 23%),
        radial-gradient(circle at 22% 20%, rgba(36, 87, 230, 0.12), transparent 26%),
        linear-gradient(135deg, rgba(255, 253, 248, 0.97), rgba(251, 247, 239, 0.91));
    box-shadow: var(--eg-shadow-card);
    overflow: hidden;
}

.student-shell .egetrack-hero::before {
    content: "";
    position: absolute;
    inset: 24px;
    border-radius: 28px;
    background:
        linear-gradient(90deg, rgba(8, 27, 51, 0.045) 1px, transparent 1px),
        linear-gradient(0deg, rgba(8, 27, 51, 0.035) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 72% 45%, #000 0, transparent 54%);
    pointer-events: none;
}

.student-shell .egetrack-hero-content,
.student-shell .egetrack-compass-card {
    position: relative;
    z-index: 1;
}

.student-shell .hero-title {
    max-width: 780px;
    margin: 10px 0 16px;
    font-size: clamp(3rem, 6.4vw, 6rem);
    line-height: 0.88;
}

.student-shell .hero-text {
    max-width: 700px;
    font-size: 1.05rem;
}

.student-shell .hero-actions,
.student-shell .filter-actions,
.student-shell .inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.student-shell .hero-actions {
    margin-top: 24px;
}

.student-shell .egetrack-compass-card {
    display: grid;
    align-content: stretch;
    gap: 18px;
}

.student-shell .compass-orbit {
    position: relative;
    min-height: 238px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(229, 217, 200, 0.76);
    border-radius: 30px;
    background:
        radial-gradient(circle, transparent 0 24%, rgba(8, 27, 51, 0.08) 24.4% 24.8%, transparent 25.2% 42%, rgba(8, 27, 51, 0.06) 42.4% 42.8%, transparent 43.2%),
        linear-gradient(90deg, rgba(8, 27, 51, 0.05) 1px, transparent 1px),
        linear-gradient(0deg, rgba(8, 27, 51, 0.04) 1px, transparent 1px),
        rgba(255, 253, 248, 0.76);
    background-size: auto, 36px 36px, 36px 36px, auto;
}

.student-shell .compass-orbit .egetrack-mark {
    width: 132px;
    height: 132px;
    transform: rotate(-8deg);
}

.student-shell .next-action-card,
.student-shell .route-focus-card {
    border: 1px solid rgba(229, 217, 200, 0.92);
    border-radius: 26px;
    background: rgba(255, 253, 248, 0.86);
    padding: 22px;
    box-shadow: 0 16px 42px rgba(15, 24, 40, 0.08);
}

.student-shell .route-focus-card {
    max-width: 760px;
    margin-top: 24px;
    background: linear-gradient(135deg, rgba(255, 253, 248, 0.92), rgba(237, 243, 237, 0.72));
}

.student-shell .route-focus-card h3,
.student-shell .next-action-card h3,
.student-shell .note-card h3,
.student-shell .assignment-card h2,
.student-shell .exam-card h2,
.student-shell .theory-card h2,
.student-shell .feed-title,
.student-shell .ranking-user {
    color: var(--eg-navy);
    font-family: var(--font-display);
    letter-spacing: 0;
}

.student-shell .btn,
.student-shell .button,
.student-shell button.btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--eg-navy);
    border-radius: 999px;
    background: var(--eg-navy);
    color: #fffdf8;
    box-shadow: 0 16px 30px rgba(8, 27, 51, 0.18);
    font-weight: 900;
    letter-spacing: 0;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.student-shell .btn:hover,
.student-shell .button:hover,
.student-shell button.btn:hover {
    transform: translateY(-1px);
    background: #102946;
    box-shadow: 0 20px 38px rgba(8, 27, 51, 0.23);
}

.student-shell .btn-secondary,
.student-shell .button.secondary,
.student-shell .btn.is-light,
.student-shell .ghost-button {
    border-color: rgba(36, 87, 230, 0.20);
    background: rgba(255, 253, 248, 0.86);
    color: var(--eg-cobalt-dark);
    box-shadow: none;
}

.student-shell .btn-small {
    min-height: 34px;
    padding-inline: 14px;
    font-size: 0.84rem;
}

.student-shell .grid-4,
.student-shell .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.student-shell .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.student-shell .grid-2,
.student-shell .two-column-grid,
.student-shell .catalog-columns,
.student-shell .solve-workspace {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.student-shell .stat-card,
.student-shell .note-card,
.student-shell .data-box {
    border: 1px solid rgba(229, 217, 200, 0.82);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(251, 247, 239, 0.78));
    padding: 20px;
    box-shadow: 0 12px 26px rgba(15, 24, 40, 0.05);
}

.student-shell .note-card {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

/* Task bank: shared student and teacher workspace. */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.task-bank-page {
    --task-bank-ink: #081b33;
    --task-bank-text: #172338;
    --task-bank-muted: #667286;
    --task-bank-line: rgba(171, 146, 107, 0.30);
    --task-bank-line-strong: rgba(171, 146, 107, 0.50);
    --task-bank-surface: rgba(255, 251, 244, 0.90);
    --task-bank-surface-strong: #fffdf8;
    --task-bank-soft: rgba(247, 240, 228, 0.82);
    --task-bank-gold: #c9902e;
    --task-bank-gold-soft: rgba(201, 144, 46, 0.12);
}

.task-bank-page .content-stack {
    gap: 18px;
}

.task-bank-page .page-subtitle:empty {
    display: none;
}

.student-shell.student-today-page.task-bank-page .task-bank-student-hero {
    display: grid;
}

.task-bank-page.teacher-shell .topbar,
.task-bank-page.admin-shell .topbar {
    min-height: 170px;
    padding-right: 320px;
}

.task-bank-page.teacher-shell .topbar::after,
.task-bank-page.admin-shell .topbar::after {
    display: none;
}

.task-bank-topbar-action {
    position: absolute;
    top: 50%;
    right: 34px;
    z-index: 3;
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 20px;
    border: 1px solid rgba(7, 26, 51, 0.46);
    border-radius: 12px;
    background: rgba(255, 253, 248, 0.70);
    color: var(--task-bank-ink);
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-50%);
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.task-bank-topbar-action:hover {
    border-color: var(--task-bank-gold);
    background: #fff9ed;
    transform: translateY(calc(-50% - 1px));
}

.task-bank-toolbar {
    position: relative;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    min-height: 48px;
}

.task-bank-search-slot {
    min-width: 0;
}

.task-bank-search-control,
.task-bank-filter-menu,
.task-bank-subtopic-menu,
.task-bank-row-more {
    position: relative;
    margin: 0;
}

.task-bank-search-control > summary,
.task-bank-filter-menu > summary,
.task-bank-subtopic-menu > summary,
.task-bank-row-more > summary,
.task-bank-task-details > summary {
    list-style: none;
}

.task-bank-search-control > summary::-webkit-details-marker,
.task-bank-filter-menu > summary::-webkit-details-marker,
.task-bank-subtopic-menu > summary::-webkit-details-marker,
.task-bank-row-more > summary::-webkit-details-marker,
.task-bank-task-details > summary::-webkit-details-marker {
    display: none;
}

.task-bank-tool-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 16px;
    border: 1px solid var(--task-bank-line);
    border-radius: 12px;
    background: rgba(255, 253, 248, 0.78);
    color: var(--task-bank-ink);
    font-weight: 800;
    cursor: pointer;
    user-select: none;
}

.task-bank-tool-button:hover,
.task-bank-filter-menu[open] > .task-bank-tool-button,
.task-bank-filter-menu.is-active > .task-bank-tool-button {
    border-color: rgba(201, 144, 46, 0.48);
    background: rgba(255, 247, 231, 0.94);
}

.task-bank-tool-button svg,
.task-bank-search-field svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.task-bank-tool-button .task-bank-chevron {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
    transition: transform 0.18s ease;
}

.task-bank-filter-menu[open] .task-bank-chevron {
    transform: rotate(180deg);
}

.task-bank-search-control[open] > summary {
    display: none;
}

.task-bank-search-control[open] {
    width: min(100%, 880px);
}

.task-bank-search-form {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: stretch;
}

.task-bank-search-field {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: 11px;
    padding: 0 16px;
    border: 1px solid var(--task-bank-line-strong);
    border-right: 0;
    border-radius: 12px 0 0 12px;
    background: var(--task-bank-surface-strong);
    color: var(--task-bank-ink);
}

.task-bank-search-field:focus-within {
    border-color: rgba(7, 26, 51, 0.62);
    box-shadow: 0 0 0 3px rgba(201, 144, 46, 0.10);
}

.task-bank-search-field input {
    min-width: 0;
    width: 100%;
    height: 46px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--task-bank-ink);
    font: inherit;
    font-size: 1rem;
}

.task-bank-search-submit {
    min-width: 118px;
    padding: 0 22px;
    border: 1px solid var(--task-bank-ink);
    border-radius: 0 12px 12px 0;
    background: var(--task-bank-ink);
    color: #fffdf8;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.task-bank-search-clear {
    display: inline-flex;
    width: 42px;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    border: 1px solid var(--task-bank-line);
    border-radius: 12px;
    background: rgba(255, 253, 248, 0.74);
    color: var(--task-bank-muted);
    font-size: 1.5rem;
    text-decoration: none;
}

.task-bank-filter-actions {
    position: relative;
    z-index: 40;
    display: flex;
    justify-self: end;
    gap: 10px;
}

.task-bank-filter-popover,
.task-bank-subtopic-options,
.task-bank-row-more-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 100;
    display: grid;
    width: 300px;
    max-height: 420px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--task-bank-line);
    border-radius: 12px;
    background: #fffdf8;
    box-shadow: 0 20px 48px rgba(35, 26, 15, 0.16);
}

.task-bank-source-popover {
    width: 330px;
}

.task-bank-filter-option {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--task-bank-text);
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

.task-bank-filter-option:hover,
.task-bank-filter-option.is-active {
    background: var(--task-bank-gold-soft);
    color: var(--task-bank-ink);
}

.task-bank-active-query {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: -6px;
}

.task-bank-active-query > span {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 14px;
    border: 1px solid var(--task-bank-line);
    border-radius: 999px;
    background: rgba(255, 250, 240, 0.72);
    color: var(--task-bank-ink);
    font-weight: 700;
}

.task-bank-active-query > a:not(.task-bank-return-link) {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    margin-left: -22px;
    border-radius: 50%;
    color: var(--task-bank-muted);
    font-size: 1.2rem;
    text-decoration: none;
}

.task-bank-return-link,
.task-bank-back-link {
    color: #2457a7;
    font-weight: 750;
    text-decoration: none;
}

.task-bank-catalog {
    position: relative;
    z-index: 1;
}

.task-bank-catalog .section-head {
    margin-bottom: 8px;
}

.task-bank-page .task-bank-catalog .catalog-grid {
    gap: 10px;
    margin-top: 16px;
}

.task-bank-page .task-bank-catalog .catalog-column {
    gap: 8px;
}

.task-bank-page .task-bank-catalog .catalog-card {
    border-radius: 12px;
}

.task-bank-page .task-bank-catalog .catalog-summary {
    min-height: 52px;
    padding: 0 15px;
    font-size: 0.96rem;
}

.task-bank-section-link {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--task-bank-line);
    background: rgba(255, 251, 244, 0.74);
    color: var(--task-bank-ink);
    font-weight: 800;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.task-bank-section-link:hover {
    border-color: rgba(201, 144, 46, 0.46);
    background: #fff9ed;
    transform: translateY(-1px);
}

.task-bank-page .task-bank-catalog .badge,
.task-bank-count-badge {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid var(--task-bank-line);
    border-radius: 999px;
    background: rgba(255, 250, 240, 0.84);
    color: var(--task-bank-muted);
    font-weight: 800;
}

.task-bank-results {
    position: relative;
    z-index: 1;
}

.task-bank-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.task-bank-section-head .section-title {
    margin: 0;
}

.task-bank-section-head .section-subtitle {
    margin: 8px 0 0;
}

.task-bank-task-list,
.task-bank-teacher-list {
    display: grid;
    gap: 12px;
}

.task-bank-student-task,
.task-bank-teacher-task {
    min-width: 0;
    overflow: visible;
    border: 1px solid var(--task-bank-line);
    border-radius: 14px;
    background: rgba(255, 252, 247, 0.78);
}

.task-bank-task-details {
    border-radius: inherit;
}

.task-bank-task-details[open] {
    box-shadow: 0 14px 32px rgba(35, 26, 15, 0.07);
}

.task-bank-task-summary {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto 24px;
    gap: 18px;
    align-items: center;
    min-height: 88px;
    padding: 16px 20px;
    cursor: pointer;
}

.task-bank-student-task.has-exam-number .task-bank-task-summary {
    grid-template-columns: 64px 72px minmax(0, 1fr) auto 24px;
}

.task-bank-task-exam,
.task-bank-task-year,
.task-bank-task-code {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid rgba(201, 144, 46, 0.24);
    border-radius: 9px;
    background: rgba(201, 144, 46, 0.09);
    color: #80551a;
    font-weight: 800;
}

.task-bank-task-code {
    border-color: rgba(36, 87, 166, 0.18);
    background: rgba(36, 87, 166, 0.07);
    color: #35577e;
}

.task-bank-task-condition {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--task-bank-ink);
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: 500;
    line-height: 1.35;
}

.task-bank-task-condition > :first-child {
    margin-top: 0;
}

.task-bank-task-condition > :last-child {
    margin-bottom: 0;
}

.task-bank-task-chevron {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.18s ease;
}

.task-bank-task-details[open] .task-bank-task-chevron {
    transform: rotate(180deg);
}

.task-bank-answer-area {
    display: grid;
    gap: 16px;
    padding: 0 20px 20px 110px;
}

.task-bank-answer-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 12px 16px;
    align-items: end;
}

.task-bank-answer-form .student-form-field {
    grid-column: 1;
}

.task-bank-answer-form > .btn {
    grid-column: 2;
    min-height: 50px;
}

.task-bank-answer-form .attempt-limit-note,
.task-bank-answer-form .attempt-limit-box,
.task-bank-answer-form .form-errors,
.task-bank-answer-form .assignment-inline-status {
    grid-column: 1 / -1;
}

.task-bank-manual-form {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
    align-items: start;
}

.task-bank-manual-form .task-bank-manual-text {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.task-bank-manual-form .task-bank-manual-files,
.task-bank-manual-form > .btn {
    grid-column: 2;
}

.task-bank-manual-form textarea {
    width: 100%;
    min-height: 164px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 14px 16px;
    font: inherit;
    line-height: 1.5;
}

.task-bank-manual-form textarea:focus {
    border-color: var(--accent);
    outline: 3px solid color-mix(in srgb, var(--accent) 16%, transparent);
}

.task-bank-manual-feedback {
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--danger-text);
    border-radius: 8px;
    background: #fff;
    padding: 14px 16px;
}

.task-bank-manual-feedback.is-accepted {
    border-left-color: var(--success-text);
}

.task-bank-manual-feedback-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.task-bank-manual-feedback-head span,
.task-bank-teacher-comment {
    color: var(--muted);
}

.task-bank-feedback-files {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.task-bank-feedback-files a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.task-bank-feedback-link {
    justify-self: start;
}

.task-bank-teacher-task {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px 18px;
}

.task-bank-teacher-task-main {
    display: grid;
    min-width: 0;
    gap: 12px;
}

.task-bank-teacher-task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.task-bank-teacher-task-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.task-bank-teacher-task-actions form {
    margin: 0;
}

.task-bank-row-primary,
.task-bank-row-open,
.task-bank-analogue-toggle {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid var(--task-bank-ink);
    border-radius: 10px;
    background: var(--task-bank-ink);
    color: #fffdf8;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.task-bank-row-open,
.task-bank-analogue-toggle {
    border-color: var(--task-bank-line-strong);
    background: rgba(255, 253, 248, 0.78);
    color: var(--task-bank-ink);
}

.task-bank-row-more > summary {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--task-bank-line);
    border-radius: 10px;
    background: rgba(255, 253, 248, 0.78);
    color: var(--task-bank-ink);
    font-weight: 900;
    cursor: pointer;
}

.task-bank-row-more-menu {
    width: 230px;
}

.task-bank-row-more-menu a,
.task-bank-row-more-menu button {
    display: flex;
    width: 100%;
    min-height: 40px;
    align-items: center;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--task-bank-ink);
    font: inherit;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.task-bank-row-more-menu a:hover,
.task-bank-row-more-menu button:hover {
    background: var(--task-bank-gold-soft);
}

.task-bank-teacher-metadata {
    grid-column: 1 / -1;
    padding-top: 4px;
    color: var(--task-bank-muted);
}

.task-bank-teacher-metadata > summary {
    width: max-content;
    cursor: pointer;
    font-weight: 700;
}

.task-bank-teacher-metadata[open] > summary {
    margin-bottom: 12px;
}

.task-bank-collection-nav {
    min-height: 36px;
}

.task-bank-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.task-bank-secondary-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
}

.task-bank-subtopic-menu > summary {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--task-bank-line);
    border-radius: 10px;
    background: rgba(255, 253, 248, 0.74);
    color: var(--task-bank-ink);
    font-weight: 800;
    cursor: pointer;
}

.task-bank-subtopic-options {
    left: 0;
    right: auto;
    width: 390px;
}

.task-bank-analogue-toggle.is-active {
    border-color: rgba(201, 144, 46, 0.52);
    background: var(--task-bank-gold-soft);
    color: #80551a;
}

.task-bank-family-note,
.task-bank-admin-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.task-bank-family-note {
    justify-content: space-between;
    padding: 13px 16px;
    border: 1px solid var(--task-bank-line);
    border-radius: 12px;
    background: rgba(255, 250, 240, 0.68);
    color: var(--task-bank-ink);
    font-weight: 750;
}

.task-bank-family-note a {
    color: #2457a7;
}

.task-bank-empty-state {
    min-height: 180px;
}

@media (max-width: 1100px) {
    .task-bank-page.teacher-shell .topbar,
    .task-bank-page.admin-shell .topbar {
        padding-right: 250px;
    }

    .task-bank-task-summary,
    .task-bank-student-task.has-exam-number .task-bank-task-summary {
        grid-template-columns: auto minmax(0, 1fr) auto 22px;
    }

    .task-bank-student-task.has-exam-number .task-bank-task-year {
        display: none;
    }

    .task-bank-teacher-task {
        grid-template-columns: 1fr;
    }

    .task-bank-teacher-task-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .task-bank-page.teacher-shell .topbar,
    .task-bank-page.admin-shell .topbar {
        min-height: 0;
        padding-right: 22px;
    }

    .task-bank-topbar-action {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 18px;
        transform: none;
    }

    .task-bank-topbar-action:hover {
        transform: translateY(-1px);
    }

    .task-bank-toolbar {
        grid-template-columns: 1fr;
    }

    .task-bank-filter-actions {
        width: 100%;
        justify-self: stretch;
        justify-content: flex-end;
    }

    .task-bank-search-control[open] {
        width: 100%;
    }

    .task-bank-search-submit {
        min-width: 92px;
        padding: 0 14px;
    }

    .task-bank-filter-popover {
        width: min(320px, calc(100vw - 32px));
    }

    .task-bank-page .task-bank-catalog .catalog-grid {
        grid-template-columns: 1fr;
    }

    .task-bank-task-summary,
    .task-bank-student-task.has-exam-number .task-bank-task-summary {
        grid-template-columns: auto minmax(0, 1fr) 20px;
        gap: 12px;
        padding: 14px;
    }

    .task-bank-task-summary .status-chip {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .task-bank-student-task.has-exam-number .task-bank-task-year,
    .task-bank-task-chevron {
        display: none;
    }

    .task-bank-answer-area {
        padding: 0 14px 16px;
    }

    .task-bank-answer-form {
        grid-template-columns: 1fr;
    }

    .task-bank-answer-form > .btn,
    .task-bank-answer-form .student-form-field {
        grid-column: 1;
    }

    .task-bank-manual-form .task-bank-manual-text {
        grid-row: auto;
    }

    .task-bank-manual-feedback-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .task-bank-teacher-task-actions {
        align-items: stretch;
    }

    .task-bank-teacher-task-actions,
    .task-bank-teacher-task-actions form {
        width: 100%;
        flex-wrap: wrap;
    }

    .task-bank-row-primary,
    .task-bank-row-open {
        flex: 1;
    }

    .task-bank-subtopic-options {
        width: min(390px, calc(100vw - 32px));
    }
}

.student-shell .today-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.student-shell .today-primary-card,
.student-shell .today-secondary-row {
    border: 1px solid rgba(229, 217, 200, 0.88);
    background: rgba(255, 253, 248, 0.92);
    box-shadow: 0 18px 42px rgba(15, 24, 40, 0.07);
}

.student-shell .today-primary-card {
    display: grid;
    gap: 18px;
    min-width: 0;
    min-height: 360px;
    padding: clamp(22px, 3vw, 34px);
    border-radius: 34px;
}

.student-shell .today-primary-card.is-daily {
    border-color: rgba(72, 112, 87, 0.24);
    background:
        linear-gradient(135deg, rgba(255, 253, 248, 0.97), rgba(236, 246, 239, 0.88));
}

.student-shell .today-primary-card.is-empty {
    align-content: center;
    min-height: 340px;
}

.student-shell .today-card-topline,
.student-shell .today-actions,
.student-shell .today-empty-action,
.student-shell .today-reason-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.student-shell .today-card-topline {
    justify-content: space-between;
}

.student-shell .today-status {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(8, 27, 51, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.66);
    color: var(--eg-navy);
    font-size: 0.82rem;
    font-weight: 850;
}

.student-shell .today-title {
    max-width: none;
    margin: 0;
    color: var(--eg-navy);
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 3.2vw, 3.7rem);
    font-weight: 500;
    line-height: 1.02;
    overflow-wrap: anywhere;
}

.student-shell .today-empty-copy {
    display: grid;
    gap: 8px;
    max-width: 680px;
}

.student-shell .today-empty-copy p,
.student-shell .today-empty-copy span {
    margin: 0;
    color: #475467;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 700;
    line-height: 1.55;
}

.student-shell .today-empty-copy span {
    color: #667085;
    font-size: 0.95rem;
    font-weight: 750;
}

.student-shell .today-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.student-shell .today-meta-grid > div {
    display: grid;
    gap: 8px;
    min-height: 98px;
    padding: 16px;
    border: 1px solid rgba(229, 217, 200, 0.82);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.64);
}

.student-shell .today-meta-grid span,
.student-shell .today-secondary-row > span {
    color: #667085;
    font-size: 0.82rem;
    font-weight: 800;
}

.student-shell .today-meta-grid strong {
    color: var(--eg-cobalt);
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.05;
}

.student-shell .today-reason-row span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(72, 112, 87, 0.18);
    border-radius: 999px;
    background: rgba(236, 246, 239, 0.74);
    color: #42624b;
    font-size: 0.86rem;
    font-weight: 850;
}

.student-shell .today-context-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.student-shell .today-context-grid > div {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 13px 14px;
    border-top: 1px solid rgba(229, 217, 200, 0.88);
    border-bottom: 1px solid rgba(229, 217, 200, 0.64);
    background: rgba(255, 255, 255, 0.42);
}

.student-shell .today-context-grid span {
    color: #667085;
    font-size: 0.76rem;
    font-weight: 900;
}

.student-shell .today-context-grid strong {
    min-width: 0;
    color: var(--eg-navy);
    font-size: 1.02rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.student-shell .today-context-grid small {
    min-width: 0;
    color: #667085;
    font-size: 0.83rem;
    font-weight: 760;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.student-shell .today-task-preview {
    display: grid;
    gap: 10px;
}

.student-shell .today-task-preview-head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    justify-content: space-between;
}

.student-shell .today-task-preview-head span {
    color: #667085;
    font-size: 0.82rem;
    font-weight: 900;
}

.student-shell .today-task-preview-head small {
    color: #8a5d20;
    font-size: 0.82rem;
    font-weight: 850;
}

.student-shell .today-task-row {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) minmax(104px, auto);
    gap: 12px;
    align-items: center;
    min-height: 58px;
    padding: 12px 14px;
    border: 1px solid rgba(229, 217, 200, 0.82);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.58);
}

.student-shell .today-task-row.is-more {
    background: rgba(255, 253, 248, 0.68);
}

.student-shell .today-task-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border: 1px solid rgba(201, 144, 46, 0.28);
    border-radius: 12px;
    color: #9a6417;
    font-size: 0.85rem;
    font-weight: 900;
}

.student-shell .today-task-row strong {
    min-width: 0;
    color: #182230;
    font-size: 0.94rem;
    font-weight: 750;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.student-shell .today-task-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid rgba(8, 27, 51, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #4b5565;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.student-shell .today-task-state.is-done {
    border-color: rgba(72, 112, 87, 0.24);
    background: rgba(236, 246, 239, 0.8);
    color: #42624b;
}

.student-shell .today-task-state.is-pending {
    border-color: rgba(201, 144, 46, 0.28);
    background: rgba(255, 247, 232, 0.88);
    color: #8a5d20;
}

.student-shell .today-task-state.is-retry {
    border-color: rgba(180, 35, 24, 0.18);
    background: rgba(254, 243, 242, 0.88);
    color: #9f2f24;
}

.student-shell .today-main-action {
    min-width: 180px;
}

.student-shell .today-secondary-list {
    display: grid;
    gap: 10px;
}

.student-shell .today-secondary-panel,
.student-shell .today-plan-panel,
.student-shell .today-week {
    display: grid;
    gap: 14px;
    padding: clamp(18px, 2vw, 24px);
    border: 1px solid rgba(229, 217, 200, 0.88);
    border-radius: 28px;
    background: rgba(255, 253, 248, 0.74);
}

.student-shell .today-secondary-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 74px;
    padding: 14px 16px;
    border-radius: 22px;
    color: inherit;
    text-decoration: none;
}

.student-shell .today-secondary-row strong {
    min-width: 0;
    color: var(--eg-navy);
    font-size: 1rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.student-shell .today-plan-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.student-shell .today-plan-row {
    display: grid;
    gap: 8px;
    min-height: 118px;
    padding: 16px;
    border: 1px solid rgba(229, 217, 200, 0.88);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.68);
    color: inherit;
    text-decoration: none;
}

.student-shell .today-plan-row span {
    color: #8a5d20;
    font-size: 0.78rem;
    font-weight: 900;
}

.student-shell .today-plan-row strong {
    min-width: 0;
    color: var(--eg-navy);
    font-size: clamp(1.05rem, 1.7vw, 1.38rem);
    line-height: 1.16;
    overflow-wrap: anywhere;
}

.student-shell .today-plan-row small {
    min-width: 0;
    color: #4b5565;
    font-size: 0.88rem;
    font-weight: 760;
    line-height: 1.38;
    overflow-wrap: anywhere;
}

.student-shell .today-overview {
    display: grid;
    gap: 14px;
    padding: clamp(18px, 2vw, 24px);
    border: 1px solid rgba(229, 217, 200, 0.88);
    border-radius: 28px;
    background: rgba(255, 253, 248, 0.74);
}

.student-shell .today-activity {
    display: grid;
    gap: 14px;
    padding: clamp(18px, 2vw, 24px);
    border: 1px solid rgba(229, 217, 200, 0.88);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255, 253, 248, 0.78), rgba(245, 249, 245, 0.68));
}

.student-shell .today-overview-head {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    justify-content: space-between;
}

.student-shell .today-overview-head h2 {
    margin: 0;
    color: var(--eg-navy);
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 2.2vw, 2.2rem);
    font-weight: 500;
    line-height: 1.05;
}

.student-shell .today-overview-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.student-shell .today-week-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.student-shell .today-overview-card {
    display: grid;
    gap: 8px;
    min-height: 132px;
    padding: 16px;
    border: 1px solid rgba(229, 217, 200, 0.88);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.66);
    color: inherit;
    text-decoration: none;
}

.student-shell .today-overview-card span {
    color: #667085;
    font-size: 0.78rem;
    font-weight: 900;
}

.student-shell .today-overview-card strong {
    min-width: 0;
    color: var(--eg-cobalt);
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.student-shell .today-overview-card small {
    min-width: 0;
    color: #4b5565;
    font-size: 0.88rem;
    font-weight: 750;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.student-shell .today-activity-list {
    display: grid;
    gap: 10px;
}

.student-shell .today-activity-row {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) minmax(180px, 0.55fr);
    gap: 14px;
    align-items: center;
    min-height: 62px;
    padding: 12px 14px;
    border: 1px solid rgba(229, 217, 200, 0.88);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
    color: inherit;
    text-decoration: none;
}

.student-shell .today-activity-row > span {
    color: #8a5d20;
    font-size: 0.86rem;
    font-weight: 900;
}

.student-shell .today-activity-row strong {
    min-width: 0;
    color: var(--eg-navy);
    font-size: 0.98rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.student-shell .today-activity-row small {
    min-width: 0;
    color: #667085;
    font-size: 0.86rem;
    font-weight: 760;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

@media (max-width: 980px) {
    .teacher-shell .student-daily-plan-grid {
        grid-template-columns: 1fr;
    }

    .student-shell .today-secondary-row {
        grid-template-columns: 1fr;
    }

    .student-shell .today-secondary-row {
        align-items: stretch;
    }

    .student-shell .today-overview-grid,
    .student-shell .today-plan-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-shell .today-context-grid,
    .student-shell .today-week-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-shell .today-activity-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
}

@media (max-width: 680px) {
    .student-shell .today-primary-card {
        min-height: auto;
        border-radius: 26px;
    }

    .student-shell .today-plan-list {
        grid-template-columns: 1fr;
    }

    .student-shell .today-meta-grid {
        grid-template-columns: 1fr;
    }

    .student-shell .today-task-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .student-shell .today-actions .btn,
    .student-shell .today-empty-action .btn {
        width: 100%;
    }

    .student-shell .today-overview-grid {
        grid-template-columns: 1fr;
    }

    .student-shell .today-context-grid,
    .student-shell .today-week-grid {
        grid-template-columns: 1fr;
    }
}

.student-shell .note-card::after {
    content: none;
}

.student-shell .note-index {
    color: var(--eg-amber);
    font-family: var(--font-sans);
    font-size: 0.75rem;
}

.student-shell .stat-value,
.student-shell .exam-score,
.student-shell .rank-score,
.student-shell .foundation-score .stat-value {
    color: var(--eg-cobalt);
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 0.95;
}

.student-shell .stat-hint {
    color: var(--eg-sage);
    font-weight: 800;
}

.student-shell .assignment-list,
.student-shell .exam-list,
.student-shell .theory-list,
.student-shell .feed-list,
.student-shell .ranking-list,
.student-shell .assignment-task-list {
    display: grid;
    gap: 16px;
}

.student-shell .assignment-card,
.student-shell .exam-card,
.student-shell .theory-card,
.student-shell .ranking-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 22px;
}

.student-shell .feed-card,
.student-shell .assignment-task-card {
    padding: 22px;
}

.student-shell .assignment-task-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 18px;
    align-items: start;
}

.student-shell .card-side,
.student-shell .stack-actions {
    display: grid;
    gap: 12px;
    justify-items: end;
}

.student-shell .assignment-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.student-shell .chip,
.student-shell .status-chip {
    min-height: 29px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 11px;
    border: 1px solid rgba(36, 87, 230, 0.17);
    border-radius: 999px;
    background: var(--eg-cobalt-soft);
    color: var(--eg-cobalt-dark);
    font-size: 0.78rem;
    font-weight: 900;
}

.student-shell .status-chip.is-success,
.student-shell .chip.is-success {
    border-color: rgba(127, 146, 127, 0.24);
    background: var(--eg-sage-soft);
    color: #49694d;
}

.student-shell .status-chip.is-warning,
.student-shell .chip.is-warning {
    border-color: rgba(201, 144, 46, 0.30);
    background: var(--eg-amber-soft);
    color: #8a5c12;
}

.student-shell .status-chip.is-danger,
.student-shell .chip.is-danger {
    border-color: rgba(167, 68, 62, 0.26);
    background: var(--eg-oxblood-soft);
    color: var(--eg-oxblood);
}

.student-shell .chip.is-active,
.student-shell .filter-actions .chip.is-active {
    background: var(--eg-navy);
    border-color: var(--eg-navy);
    color: #fffdf8;
}

.student-shell .student-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.student-shell .catalog-wrap {
    position: relative;
    overflow: hidden;
}

.student-shell .catalog-wrap::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(36, 87, 230, 0.11);
    border-radius: 50%;
    pointer-events: none;
}

.student-shell .catalog-column {
    display: grid;
    gap: 14px;
}

.student-shell details.catalog-card {
    border: 1px solid rgba(229, 217, 200, 0.88);
    border-radius: 22px;
    background: rgba(255, 253, 248, 0.88);
    overflow: hidden;
}

.student-shell .catalog-summary {
    min-height: 64px;
    padding: 0 18px;
    color: var(--eg-navy);
    font-family: var(--font-display);
    font-size: 1.18rem;
}

.student-shell details.catalog-card[open] .catalog-summary {
    border-bottom: 1px solid var(--eg-border-soft);
    background: linear-gradient(90deg, rgba(36, 87, 230, 0.07), transparent);
}

.student-shell .catalog-links {
    padding: 14px;
}

.student-shell .catalog-link {
    border: 1px solid transparent;
    border-radius: 15px;
    color: var(--eg-ink);
}

.student-shell .catalog-link:hover {
    border-color: rgba(36, 87, 230, 0.18);
    background: rgba(36, 87, 230, 0.05);
}

.student-shell .math-box,
.student-shell .answer-panel,
.student-shell .attempt-panel,
.student-shell .assignment-instruction-box,
.student-shell .assignment-feedback-panel,
.student-shell .bank-answer-panel,
.student-shell .attempt-limit-box,
.student-shell .bank-answer-summary,
.student-shell .assignment-task-aside {
    border: 1px solid rgba(229, 217, 200, 0.86);
    border-radius: 20px;
    background: rgba(255, 253, 248, 0.82);
}

.student-shell .math-box {
    padding: 18px;
    color: var(--eg-ink);
}

.student-shell .assignment-task-condition,
.student-shell .task-condition {
    font-size: 1.03rem;
}

.student-shell .assignment-task-aside {
    position: sticky;
    top: 28px;
    display: grid;
    gap: 14px;
    padding: 18px;
}

.student-shell .assignment-task-score strong {
    color: var(--eg-cobalt);
    font-family: var(--font-display);
    font-size: 2.4rem;
}

.student-shell .bank-answer-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 16px;
    padding: 16px;
    margin-top: 18px;
    background: linear-gradient(135deg, rgba(251, 247, 239, 0.78), rgba(234, 241, 255, 0.50));
}

.student-shell .bank-answer-summary {
    display: grid;
    align-content: center;
    padding: 16px;
}

.student-shell .bank-answer-summary strong {
    color: var(--eg-cobalt);
    font-family: var(--font-display);
    font-size: 2rem;
}

.student-shell .solve-form {
    display: grid;
    gap: 14px;
}

.student-shell .solve-form input,
.student-shell .solve-form textarea,
.student-shell .solve-form select,
.student-shell .solve-form .file-input,
.student-shell .bank-inline-form input[type="text"],
.student-shell .assignment-inline-form textarea {
    border: 1px solid var(--eg-border);
    border-radius: 16px;
    background: #fff;
    color: var(--eg-ink);
    box-shadow: inset 0 1px 0 rgba(15, 24, 40, 0.03);
}

.student-shell .solve-form input:focus,
.student-shell .solve-form textarea:focus,
.student-shell .solve-form select:focus,
.student-shell .bank-inline-form input[type="text"]:focus {
    border-color: rgba(36, 87, 230, 0.54);
    box-shadow: 0 0 0 4px rgba(36, 87, 230, 0.10);
    outline: none;
}

.student-shell .student-file-upload-label {
    border: 1px dashed rgba(36, 87, 230, 0.32);
    border-radius: 18px;
    background: rgba(234, 241, 255, 0.55);
}

.student-shell .student-file-upload-button {
    background: var(--eg-navy);
    color: #fffdf8;
}

.student-shell .assignment-lock-banner,
.student-shell .assignment-submit-review {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(255, 244, 220, 0.64));
}

.student-shell .student-submit-modal-card {
    border: 1px solid var(--eg-border);
    border-radius: 28px;
    background: var(--eg-surface);
    box-shadow: var(--eg-shadow-card);
}

.student-shell .foundation-card-hero,
.student-shell .practice-card-hero {
    background:
        radial-gradient(circle at 88% 14%, rgba(36, 87, 230, 0.10), transparent 22%),
        linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(251, 247, 239, 0.92));
}

.student-shell .foundation-scale {
    background: rgba(8, 27, 51, 0.08);
}

.student-shell .foundation-scale-fill,
.student-shell .progress-fill {
    background: linear-gradient(90deg, var(--eg-cobalt), var(--eg-amber));
}

.student-shell .foundation-scale-marker {
    border-color: var(--eg-cobalt);
    background: var(--eg-surface);
}

.student-shell .foundation-number-card.is-completed {
    background: linear-gradient(145deg, rgba(237, 243, 237, 0.82), rgba(255, 253, 248, 0.92));
}

.student-shell .foundation-number-card.is-in_progress {
    background: linear-gradient(145deg, rgba(234, 241, 255, 0.82), rgba(255, 253, 248, 0.92));
}

.student-shell .ranking-row.current {
    border-color: rgba(36, 87, 230, 0.26);
    background: linear-gradient(135deg, rgba(234, 241, 255, 0.75), rgba(255, 253, 248, 0.94));
}

.student-shell .rank-place {
    background: var(--eg-navy);
    color: #fffdf8;
}

.student-shell .rich-text,
.student-shell .rich-content {
    color: var(--eg-ink);
    font-size: 1.04rem;
    line-height: 1.75;
}

.student-shell .empty {
    border: 1px dashed rgba(127, 146, 127, 0.32);
    border-radius: 20px;
    background: rgba(237, 243, 237, 0.38);
    padding: 20px;
}

.student-shell .messages .message {
    border: 1px solid rgba(36, 87, 230, 0.18);
    border-radius: 18px;
    background: #fff;
    color: var(--eg-navy);
}

@media (max-width: 1180px) {
    .student-shell .app-shell {
        grid-template-columns: 1fr;
    }

    .student-shell .sidebar {
        position: static;
        min-height: auto;
        order: 1;
    }

    .student-shell .workspace {
        order: 2;
    }

    .student-shell .egetrack-hero,
    .student-shell .topbar,
    .student-shell .solve-workspace,
    .student-shell .catalog-columns,
    .student-shell .student-toolbar,
    .student-shell .assignment-task-card,
    .student-shell .bank-answer-panel,
    .student-shell .assignment-lock-banner,
    .student-shell .assignment-submit-review {
        grid-template-columns: 1fr;
    }

    .student-shell .assignment-task-aside {
        position: static;
    }
}

@media (max-width: 760px) {
    .student-shell .app-shell {
        width: min(100% - 20px, 1560px);
        padding: 16px 0;
        gap: 16px;
    }

    .student-shell .sidebar,
    .student-shell .topbar,
    .student-shell .egetrack-hero,
    .student-shell .section,
    .student-shell .catalog-wrap,
    .student-shell .progress-card,
    .student-shell .student-toolbar {
        border-radius: 24px;
    }

    .student-shell .sidebar {
        padding: 16px;
    }

    .student-shell .egetrack-brand {
        grid-template-columns: 50px 1fr;
    }

    .student-shell .egetrack-brand .egetrack-mark {
        width: 50px;
        height: 50px;
    }

    .student-shell .brand-title {
        font-size: 1.38rem;
    }

    .student-shell .brand-tagline {
        font-size: 0.62rem;
        letter-spacing: 0.08em;
    }

    .student-shell .mobile-switcher {
        border-color: var(--eg-border);
        background: rgba(255, 253, 248, 0.86);
    }

    .student-shell .mobile-switcher .nav-link.is-active {
        background: var(--eg-navy);
        color: #fffdf8;
    }

    .student-shell .topbar,
    .student-shell .egetrack-hero,
    .student-shell .section,
    .student-shell .catalog-wrap,
    .student-shell .progress-card {
        padding: 18px;
    }

    .student-shell .page-title {
        font-size: clamp(2.25rem, 15vw, 3.7rem);
    }

    .student-shell .hero-title {
        font-size: clamp(2.35rem, 16vw, 4.1rem);
    }

    .student-shell .grid-4,
    .student-shell .grid-3,
    .student-shell .stats-grid,
    .student-shell .assignment-meta-grid {
        grid-template-columns: 1fr;
    }

    .student-shell .assignment-card,
    .student-shell .exam-card,
    .student-shell .theory-card,
    .student-shell .ranking-row {
        grid-template-columns: 1fr;
    }

    .student-shell .card-side,
    .student-shell .stack-actions {
        justify-items: stretch;
    }

    .student-shell .btn,
    .student-shell .button,
    .student-shell button.btn {
        width: 100%;
    }
}

/* EGETrack compact top navigation override */

.student-shell .app-shell {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 0 0 52px;
}

.student-shell .sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(220px, auto) minmax(0, 1fr) minmax(170px, auto);
    grid-template-rows: auto;
    align-items: center;
    gap: clamp(14px, 1.8vw, 28px);
    width: 100%;
    padding: 18px max(28px, calc((100vw - 1520px) / 2));
    border: 0;
    border-bottom: 1px solid rgba(229, 217, 200, 0.95);
    border-radius: 0;
    background:
        linear-gradient(90deg, rgba(255, 253, 248, 0.98), rgba(251, 247, 239, 0.96)),
        radial-gradient(circle at 10% 50%, rgba(36, 87, 230, 0.08), transparent 22%);
    box-shadow: 0 14px 34px rgba(15, 24, 40, 0.08);
    overflow: visible;
}

.student-shell .sidebar::after {
    display: none;
}

.student-shell .workspace {
    width: min(100% - 40px, 1520px);
    margin: 0 auto;
}

.student-shell .egetrack-brand {
    grid-template-columns: 58px auto;
    width: max-content;
    padding: 0;
}

.student-shell .brand-title {
    font-size: 1.82rem;
}

.student-shell .brand-tagline {
    white-space: nowrap;
}

.student-shell .nav {
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    min-width: 0;
    gap: clamp(8px, 0.9vw, 14px);
}

.student-shell .nav-link {
    min-height: 42px;
    padding: 0 clamp(10px, 0.9vw, 16px);
    white-space: nowrap;
}

.student-shell .profile-card {
    align-self: center;
    justify-self: end;
    width: auto;
    min-width: 190px;
    margin: 0;
}

@media (max-width: 1180px) {
    .student-shell .sidebar {
        grid-template-columns: 1fr;
        gap: 14px;
        justify-items: start;
        padding-inline: 20px;
    }

    .student-shell .sidebar .nav {
        display: none;
    }

    .student-shell .profile-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        width: 100%;
        min-width: 0;
        max-width: none;
        padding: 10px 12px;
        gap: 8px;
        margin: 0;
    }

    .student-shell .profile-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.95rem;
    }

    .student-shell .profile-meta {
        display: none;
    }

    .student-shell .profile-account-link {
        min-height: 36px;
        margin-top: 0;
        padding: 7px 12px;
        white-space: nowrap;
    }

    .student-shell .profile-logout {
        grid-row: auto;
    }

    .student-shell .profile-logout-button {
        min-height: 36px;
        padding: 7px 12px;
        white-space: nowrap;
    }
}

@media (max-width: 760px) {
    .student-shell .app-shell {
        width: 100%;
        padding-top: 0;
    }

    .student-shell .sidebar {
        padding: 14px 16px;
    }

    .student-shell .workspace {
        width: min(100% - 20px, 1520px);
    }

    .student-shell .egetrack-brand {
        grid-template-columns: 48px auto;
        gap: 10px;
    }

    .student-shell .brand-title {
        font-size: 1.42rem;
    }

    .student-shell .brand-tagline {
        font-size: 0.58rem;
    }
}

/* Student today reference screen */
.student-shell.student-today-page .app-shell {
    display: block;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: 0;
}

.student-shell.student-today-page .sidebar,
.student-shell.student-today-page .mobile-switcher {
    display: none;
}

.student-shell.student-today-page .workspace {
    width: 100%;
    max-width: none;
    padding: 0;
}

.student-shell.student-today-page .content-stack {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.student-shell .today-reference {
    display: grid;
    gap: 20px;
    min-height: 100vh;
    padding-bottom: 18px;
}

.student-shell .today-site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    min-height: 86px;
    padding: 14px 42px;
    border-bottom: 1px solid rgba(222, 211, 194, 0.88);
    background: rgba(255, 252, 247, 0.96);
    backdrop-filter: blur(18px);
}

.student-shell .today-site-brand,
.student-shell .today-site-nav,
.student-shell .today-site-profile,
.student-shell .today-profile-pill {
    display: flex;
    align-items: center;
}

.student-shell .today-site-brand {
    gap: 12px;
    color: var(--eg-navy);
    text-decoration: none;
}

.student-shell .today-site-brand .egetrack-mark {
    width: 52px;
    height: 52px;
}

.student-shell .today-site-brand span {
    display: grid;
    gap: 2px;
}

.student-shell .today-site-brand strong {
    color: var(--eg-navy);
    font-family: var(--font-display);
    font-size: 1.58rem;
    line-height: 1;
}

.student-shell .today-site-brand small {
    color: #a06a20;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.student-shell .today-site-nav {
    justify-content: center;
    gap: 10px;
    min-width: 0;
}

.student-shell .today-site-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #173252;
    text-decoration: none;
    font-weight: 850;
    white-space: nowrap;
}

.student-shell .today-site-nav a span {
    color: #0a3159;
    font-size: 1.12rem;
    line-height: 1;
}

.student-shell .today-site-nav a.is-active {
    border-color: rgba(218, 195, 160, 0.88);
    background: #fff4e5;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.student-shell .today-site-profile {
    justify-content: flex-end;
    gap: 12px;
}

.student-shell .today-profile-pill {
    gap: 10px;
    color: var(--eg-navy);
    text-decoration: none;
}

.student-shell .today-profile-pill span {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(218, 195, 160, 0.9);
    border-radius: 999px;
    background: #fff1dc;
    color: #9a6417;
    font-weight: 900;
}

.student-shell .today-profile-pill strong {
    max-width: 120px;
    overflow: hidden;
    color: var(--eg-navy);
    font-size: 0.98rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-shell .today-site-profile form {
    margin: 0;
}

.student-shell .today-site-profile button {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(218, 195, 160, 0.9);
    border-radius: 999px;
    background: #fffaf2;
    color: var(--eg-navy);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 900;
}

.student-shell .today-reference-inner {
    display: grid;
    gap: 20px;
    width: min(100% - 84px, 1600px);
    margin: 0 auto;
    padding: 22px 0 0;
}

.student-shell .today-reference-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
    gap: 20px;
    align-items: center;
    padding: 8px 0 0;
}

.student-shell .today-reference-hero h1 {
    margin: 0;
    color: var(--eg-navy);
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 4.2vw, 4.8rem);
    font-weight: 500;
    line-height: 0.96;
}

.student-shell .today-reference-hero p,
.student-shell .today-reference-quote p {
    margin: 10px 0 0;
    color: #27384f;
    font-size: 1rem;
    line-height: 1.55;
}

.student-shell .today-reference-quote {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    justify-self: end;
    max-width: 420px;
}

.student-shell .today-reference-quote p {
    margin: 0;
    color: #071b35;
    font-style: italic;
    font-weight: 650;
}

.student-shell .today-reference-quote strong {
    grid-column: 2;
    color: #667085;
    font-size: 0.9rem;
}

.student-shell .today-leaf-mark,
.student-shell .today-orbit-mark {
    position: relative;
    display: block;
}

.student-shell .today-leaf-mark {
    width: 64px;
    height: 64px;
    border: 1px solid rgba(201, 144, 46, 0.25);
    border-radius: 999px;
    background:
        linear-gradient(135deg, transparent 46%, rgba(10, 43, 78, 0.18) 47% 52%, transparent 53%),
        radial-gradient(circle at 62% 28%, rgba(201, 144, 46, 0.2), transparent 30%);
}

.student-shell .today-reference-grid {
    display: grid;
    grid-template-columns: 1.13fr 0.94fr 1.05fr;
    gap: 20px;
    align-items: stretch;
}

.student-shell .today-reference-card,
.student-shell .today-practice-card {
    min-width: 0;
    border: 1px solid rgba(229, 217, 200, 0.95);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(252, 248, 241, 0.86));
    box-shadow: 0 12px 28px rgba(15, 24, 40, 0.045);
}

.student-shell .today-practice-card {
    position: relative;
    min-height: 250px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 16px;
    overflow: hidden;
    padding: 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at 78% 42%, rgba(211, 151, 55, 0.2), transparent 24%),
        linear-gradient(135deg, #061a33, #0a3159 62%, #082748);
}

.student-shell .today-practice-card::after {
    content: "";
    position: absolute;
    inset: auto 26px 26px auto;
    width: 180px;
    aspect-ratio: 1;
    border: 1px solid rgba(226, 170, 74, 0.22);
    border-radius: 50%;
    box-shadow:
        0 0 0 36px rgba(226, 170, 74, 0.06),
        0 0 0 72px rgba(226, 170, 74, 0.035);
}

.student-shell .today-practice-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 16px;
    align-content: start;
}

.student-shell .today-practice-head {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.student-shell .today-practice-head h2,
.student-shell .today-reference-card h2,
.student-shell .today-reference-card h3 {
    margin: 0;
    color: inherit;
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.08;
}

.student-shell .today-practice-head h2 {
    font-size: clamp(1.4rem, 2vw, 2rem);
}

.student-shell .today-practice-head span,
.student-shell .today-practice-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff8ec;
    font-size: 0.86rem;
    font-weight: 800;
}

.student-shell .today-practice-card p {
    max-width: 390px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 650;
    line-height: 1.55;
}

.student-shell .today-practice-facts,
.student-shell .today-practice-tags,
.student-shell .today-inline-meta,
.student-shell .today-small-actions,
.student-shell .today-progress-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
}

.student-shell .today-practice-facts span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 850;
}

.student-shell .today-cream-button,
.student-shell .today-outline-button,
.student-shell .today-soft-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    width: fit-content;
    padding: 0 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 850;
}

.student-shell .today-cream-button {
    min-width: 210px;
    border: 1px solid rgba(239, 211, 169, 0.92);
    background: #fff4df;
    color: #071b35;
}

.student-shell .today-outline-button,
.student-shell .today-soft-button {
    border: 1px solid rgba(218, 195, 160, 0.9);
    background: rgba(255, 252, 247, 0.78);
    color: var(--eg-navy);
}

.student-shell .today-soft-button {
    min-height: 40px;
    color: #9a6417;
}

.student-shell .today-orbit-mark span {
    position: absolute;
    z-index: 1;
    inset: 76px 70px auto auto;
    width: 92px;
    height: 58px;
    clip-path: polygon(0 46%, 100% 0, 58% 100%, 45% 58%);
    background: linear-gradient(135deg, #ffffff, #d9e2ea);
    transform: rotate(-16deg);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
}

.student-shell .today-reference-card {
    display: grid;
    gap: 14px;
    padding: 24px;
    color: var(--eg-navy);
}

.student-shell .today-card-title-row,
.student-shell .today-icon-title {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.student-shell .today-icon-title {
    justify-content: flex-start;
}

.student-shell .today-icon-title > span {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(218, 195, 160, 0.82);
    border-radius: 12px;
    color: #b57923;
    background: #fff7ea;
    font-weight: 900;
}

.student-shell .today-reference-card h2 {
    font-size: clamp(1.35rem, 1.6vw, 1.8rem);
}

.student-shell .today-reference-card h3 {
    font-size: clamp(1.05rem, 1.25vw, 1.35rem);
}

.student-shell .today-reference-card p,
.student-shell .today-reference-card small,
.student-shell .today-reference-card li {
    color: #27384f;
    font-size: 0.94rem;
    line-height: 1.5;
}

.student-shell .today-mini-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(218, 195, 160, 0.86);
    border-radius: 10px;
    color: #8a5d20;
    background: #fffaf1;
    font-size: 0.86rem;
    font-weight: 850;
}

.student-shell .today-inner-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(229, 217, 200, 0.9);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.6);
}

.student-shell .today-small-actions a,
.student-shell .today-text-link {
    color: var(--eg-navy);
    text-decoration: none;
    font-weight: 850;
}

.student-shell .today-small-actions a {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(218, 195, 160, 0.82);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.74);
}

.student-shell .today-progress-layout {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}

.student-shell .today-ring {
    display: grid;
    place-items: center;
    width: 138px;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle, #fffaf3 56%, transparent 57%),
        conic-gradient(#407a50 var(--progress-angle, 0%), #e8efe5 0);
}

.student-shell .today-ring strong {
    color: var(--eg-navy);
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1;
}

.student-shell .today-ring span {
    margin-top: -32px;
    color: #27384f;
    font-size: 0.75rem;
    font-weight: 800;
}

.student-shell .today-progress-card,
.student-shell .today-activity-card {
    grid-column: span 2;
}

.student-shell .today-chart {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
    min-height: 130px;
    padding: 12px 8px 4px;
    border-bottom: 1px solid rgba(229, 217, 200, 0.95);
}

.student-shell .today-chart-col {
    display: grid;
    justify-items: center;
    gap: 6px;
    align-items: end;
    color: #667085;
    font-size: 0.78rem;
    font-weight: 800;
}

.student-shell .today-chart-col span {
    display: block;
    width: 100%;
    max-width: 38px;
    border-radius: 999px 999px 6px 6px;
    background: linear-gradient(180deg, #2365ae, #e49a27);
}

.student-shell .today-chart-col.is-today span {
    background: linear-gradient(180deg, #071b35, #2365ae);
}

.student-shell .today-progress-stats {
    justify-content: space-between;
}

.student-shell .today-progress-stats div {
    display: grid;
    gap: 4px;
}

.student-shell .today-progress-stats span {
    color: #667085;
    font-size: 0.78rem;
    font-weight: 850;
}

.student-shell .today-progress-stats strong {
    color: var(--eg-navy);
    font-size: 1.15rem;
}

.student-shell .today-focus-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 18px;
}

.student-shell .today-plan-card ol {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.student-shell .today-plan-card li,
.student-shell .today-reference-activity-list a,
.student-shell .today-reference-activity-list div {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.student-shell .today-plan-card li > span {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    color: #9a6417;
    background: #fff0d8;
    font-weight: 900;
}

.student-shell .today-plan-card a,
.student-shell .today-plan-card strong {
    display: grid;
    gap: 4px;
    color: var(--eg-navy);
    text-decoration: none;
    font-size: 0.95rem;
}

.student-shell .today-plan-card small {
    color: #667085;
}

.student-shell .today-reference-activity-list {
    display: grid;
    gap: 12px;
}

.student-shell .today-reference-activity-list a,
.student-shell .today-reference-activity-list div {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 30px;
    color: inherit;
    text-decoration: none;
}

.student-shell .today-reference-activity-list span {
    color: var(--eg-navy);
    font-weight: 750;
}

.student-shell .today-reference-activity-list small {
    color: #667085;
    white-space: nowrap;
}

.student-shell .today-theory-card {
    grid-column: span 2;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.student-shell .today-theory-card .today-icon-title,
.student-shell .today-theory-card h3,
.student-shell .today-theory-card p,
.student-shell .today-theory-card small {
    grid-column: 1;
}

.student-shell .today-theory-card .today-soft-button {
    grid-column: 1;
}

.student-shell .today-theory-card::after {
    content: "";
    grid-column: 2;
    grid-row: 1 / span 5;
    width: 136px;
    aspect-ratio: 1;
    align-self: center;
    border: 1px solid rgba(36, 101, 174, 0.18);
    border-radius: 16px;
    background:
        linear-gradient(135deg, transparent 48%, rgba(226, 170, 74, 0.3) 49% 53%, transparent 54%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(236, 241, 246, 0.72));
    transform: rotate(4deg);
}

.student-shell .today-reference-footer {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    padding: 16px 28px;
    border: 1px solid rgba(229, 217, 200, 0.95);
    border-radius: 18px;
    background:
        linear-gradient(90deg, rgba(255, 247, 232, 0.9), rgba(255, 253, 248, 0.94));
}

.student-shell .today-reference-footer div {
    display: grid;
    gap: 4px;
}

.student-shell .today-reference-footer strong {
    color: var(--eg-navy);
    font-size: 1.05rem;
}

.student-shell .today-reference-footer span {
    color: #27384f;
}

.student-shell .today-reference-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    color: #ffffff;
    background: var(--eg-navy);
    text-decoration: none;
    font-weight: 850;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .student-shell .today-site-header {
        grid-template-columns: 1fr auto;
        gap: 14px;
        padding-inline: 22px;
    }

    .student-shell .today-site-nav {
        grid-column: 1 / -1;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .student-shell .today-reference-inner {
        width: min(100% - 44px, 980px);
    }

    .student-shell .today-reference-grid,
    .student-shell .today-reference-hero {
        grid-template-columns: 1fr;
    }

    .student-shell .today-reference-quote {
        justify-self: start;
    }

    .student-shell .today-progress-card,
    .student-shell .today-activity-card,
    .student-shell .today-theory-card {
        grid-column: span 1;
    }
}

@media (max-width: 720px) {
    .student-shell .today-site-header {
        position: static;
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .student-shell .today-site-brand .egetrack-mark {
        width: 44px;
        height: 44px;
    }

    .student-shell .today-site-nav {
        gap: 8px;
    }

    .student-shell .today-site-nav a {
        min-height: 38px;
        padding: 0 12px;
        font-size: 0.88rem;
    }

    .student-shell .today-site-profile {
        justify-content: space-between;
    }

    .student-shell .today-reference-inner {
        width: min(100% - 28px, 640px);
        padding-top: 14px;
    }

    .student-shell .today-practice-card,
    .student-shell .today-progress-layout,
    .student-shell .today-theory-card {
        grid-template-columns: 1fr;
    }

    .student-shell .today-orbit-mark,
    .student-shell .today-theory-card::after,
    .student-shell .today-reference-quote {
        display: none;
    }

    .student-shell .today-reference-footer {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Public EGETrack landing */

body.guest-shell {
    --guest-page: #282828;
    --guest-paper: #fbf7ef;
    --guest-paper-soft: #f5eddf;
    --guest-ivory: #fffaf1;
    --guest-line: #dacbb5;
    --guest-line-strong: #c9b48f;
    --guest-ink: #0d1a2f;
    --guest-muted: #667182;
    --guest-navy: #071a33;
    --guest-navy-soft: #0e2746;
    --guest-cobalt: #2457e6;
    --guest-sage: #7f927f;
    --guest-amber: #c9902e;
    --guest-shadow: 0 30px 90px rgba(0, 0, 0, 0.30);
    background:
        radial-gradient(circle at 10% 20%, rgba(201, 144, 46, 0.12), transparent 24%),
        radial-gradient(circle at 86% 14%, rgba(36, 87, 230, 0.10), transparent 28%),
        var(--guest-page);
    color: var(--guest-ink);
}

.guest-shell .app-shell {
    width: min(1660px, calc(100% - 48px));
    margin: 56px auto;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 250, 241, 0.42);
    border-radius: 34px;
    background:
        radial-gradient(circle at 8% 48%, rgba(201, 144, 46, 0.08), transparent 26%),
        radial-gradient(circle at 92% 20%, rgba(127, 146, 127, 0.10), transparent 24%),
        linear-gradient(135deg, rgba(255, 250, 241, 0.98), rgba(246, 238, 225, 0.98));
    box-shadow: var(--guest-shadow);
}

.guest-shell .sidebar {
    display: grid;
    grid-template-columns: minmax(260px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    min-height: auto;
    padding: 24px 54px 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.guest-shell .guest-brand {
    display: grid;
    grid-template-columns: 72px auto;
    align-items: center;
    gap: 16px;
    width: max-content;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--guest-ink);
    text-decoration: none;
}

.guest-shell .guest-brand .egetrack-mark {
    width: 72px;
    height: 72px;
    box-shadow:
        inset 0 0 0 1px rgba(36, 87, 230, 0.20),
        inset 0 0 0 8px rgba(234, 241, 255, 0.70),
        0 18px 38px rgba(8, 27, 51, 0.12);
}

.guest-shell .brand-copy {
    display: grid;
    gap: 4px;
}

.guest-shell .brand-title {
    color: var(--guest-ink);
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 3.2rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: 0;
}

.guest-shell .brand-tagline {
    color: var(--guest-amber);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: lowercase;
}

.guest-shell .menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
}

.guest-shell .guest-nav-note {
    color: #687386;
    font-size: 0.95rem;
    font-weight: 800;
    white-space: nowrap;
}

.guest-shell .menu-link {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 16px;
    color: #1d293b;
    font-size: 0.96rem;
    font-weight: 800;
    white-space: nowrap;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.guest-shell .menu-link:hover {
    color: var(--guest-navy);
    background: rgba(255, 255, 255, 0.46);
    border-color: rgba(201, 180, 143, 0.45);
    transform: translateY(-1px);
}

.guest-shell .menu-link.is-active,
.guest-shell .guest-login-link {
    min-width: 92px;
    justify-content: center;
    border-color: rgba(8, 27, 51, 0.48);
    background: rgba(255, 250, 241, 0.52);
    color: var(--guest-navy);
}

.guest-shell .menu-link-cta {
    min-width: 160px;
    justify-content: center;
    border-color: rgba(201, 144, 46, 0.82);
    background: linear-gradient(135deg, #071a33, #0e2746);
    color: #fffaf1;
    box-shadow: 0 12px 24px rgba(8, 27, 51, 0.18);
}

.guest-shell .workspace {
    display: grid;
    gap: 0;
    padding: 0 54px 54px;
}

.guest-shell .topbar {
    display: none !important;
}

.guest-shell .content-stack {
    display: grid;
    gap: 0;
}

.landing-page {
    display: grid;
    gap: 22px;
}

.landing-hero {
    position: relative;
    min-height: 460px;
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(560px, 1.08fr);
    align-items: stretch;
    gap: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 250, 241, 0.12);
    border-radius: 28px;
    background:
        linear-gradient(90deg, rgba(7, 26, 51, 0.99), rgba(8, 27, 51, 0.94) 47%, rgba(14, 39, 70, 0.92)),
        radial-gradient(circle at 82% 50%, rgba(36, 87, 230, 0.18), transparent 30%);
    color: #fff8e8;
    box-shadow: 0 18px 52px rgba(8, 27, 51, 0.22);
}

.landing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 250, 241, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 250, 241, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(90deg, transparent, #000 25%, #000 100%);
    pointer-events: none;
}

.landing-hero-copy {
    position: relative;
    z-index: 2;
    display: grid;
    align-content: center;
    justify-items: start;
    padding: clamp(34px, 5vw, 72px);
}

.landing-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #c9902e;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.landing-kicker::after {
    content: "";
    width: 72px;
    height: 1px;
    background: linear-gradient(90deg, rgba(201, 144, 46, 0.88), transparent);
}

.landing-hero h1,
.landing-story-card h2,
.landing-dark-card h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0;
}

.landing-hero h1 {
    max-width: 720px;
    color: #fff8e8;
    font-size: clamp(3.8rem, 5.8vw, 6.7rem);
    line-height: 0.9;
    text-shadow: 0 2px 0 rgba(201, 144, 46, 0.18);
}

.landing-hero p {
    max-width: 640px;
    margin: 24px 0 0;
    color: rgba(255, 248, 232, 0.78);
    font-size: 1.13rem;
    font-weight: 650;
    line-height: 1.7;
}

.landing-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.landing-action-note {
    max-width: 260px;
    color: rgba(255, 248, 232, 0.72);
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.35;
}

.landing-action-note.is-dark {
    color: #647083;
}

.landing-button,
.landing-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 58px;
    padding: 0 26px;
    border-radius: 12px;
    font-weight: 900;
    text-decoration: none;
}

.landing-button {
    border: 1px solid rgba(246, 218, 163, 0.82);
    background: linear-gradient(135deg, #d0a050, #a97431);
    color: #fffaf1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 14px 30px rgba(86, 52, 12, 0.22);
}

.landing-button.is-navy {
    border-color: rgba(8, 27, 51, 0.88);
    background: linear-gradient(135deg, #071a33, #0e2746);
}

.landing-ghost {
    border: 1px solid rgba(255, 250, 241, 0.46);
    background: rgba(255, 250, 241, 0.06);
    color: #fff8e8;
}

.landing-story-card .landing-ghost,
.landing-auth-card .landing-ghost {
    color: var(--guest-navy);
    border-color: rgba(8, 27, 51, 0.28);
    background: rgba(255, 255, 255, 0.40);
}

.landing-compass {
    position: relative;
    z-index: 1;
    min-height: 100%;
    display: grid;
    place-items: center;
    padding: 16px 38px 16px 0;
}

.landing-compass svg {
    width: min(100%, 820px);
    height: auto;
    overflow: visible;
}

.landing-grid-lines,
.landing-orbits {
    fill: none;
    stroke: rgba(255, 248, 232, 0.24);
    stroke-width: 1.2;
}

.landing-grid-lines {
    stroke-width: 1;
}

.landing-orbits {
    stroke: rgba(201, 144, 46, 0.40);
}

.landing-route {
    fill: none;
    stroke: rgba(127, 146, 127, 0.70);
    stroke-width: 2;
    stroke-dasharray: 7 8;
}

.landing-axis-labels {
    fill: rgba(255, 248, 232, 0.46);
    font-family: var(--font-display);
    font-size: 22px;
    font-style: italic;
}

.landing-needle-shadow {
    fill: rgba(0, 0, 0, 0.22);
}

.landing-needle-light {
    fill: url(#landingNeedle);
}

.landing-needle-dark {
    fill: url(#landingNeedleDark);
}

.landing-needle-core {
    fill: var(--guest-navy);
    stroke: #fff8e8;
    stroke-width: 7;
}

.landing-dot {
    fill: currentColor;
    stroke: rgba(255, 248, 232, 0.58);
    stroke-width: 2;
}

.landing-dot.is-amber {
    color: var(--guest-amber);
}

.landing-dot.is-sage {
    color: var(--guest-sage);
}

.landing-dot.is-blue {
    color: var(--guest-cobalt);
}

.landing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
    gap: 22px;
}

.landing-story-card,
.landing-panel,
.landing-dark-card,
.landing-login-copy,
.landing-auth-card {
    border: 1px solid rgba(201, 180, 143, 0.74);
    border-radius: 24px;
    background:
        radial-gradient(circle at 12% 8%, rgba(201, 144, 46, 0.08), transparent 28%),
        linear-gradient(145deg, rgba(255, 250, 241, 0.92), rgba(245, 237, 223, 0.86));
    box-shadow: 0 16px 44px rgba(8, 27, 51, 0.08);
}

.landing-story-card {
    min-height: 560px;
    padding: clamp(34px, 5vw, 58px);
}

.landing-story-card h2 {
    max-width: 860px;
    color: var(--guest-ink);
    font-size: clamp(3.2rem, 5.2vw, 5.4rem);
    line-height: 0.95;
}

.landing-story-card > p {
    max-width: 760px;
    margin: 24px 0 0;
    color: #4f5a69;
    font-size: 1.18rem;
    font-weight: 650;
    line-height: 1.7;
}

.landing-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.landing-steps > div {
    min-height: 150px;
    padding: 22px;
    border: 1px solid rgba(201, 180, 143, 0.72);
    border-radius: 22px;
    background: rgba(255, 250, 241, 0.58);
}

.landing-steps strong {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border: 1px solid rgba(201, 144, 46, 0.50);
    border-radius: 999px;
    color: var(--guest-amber);
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
}

.landing-steps span {
    display: block;
    color: var(--guest-ink);
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-weight: 700;
}

.landing-steps p {
    margin: 8px 0 0;
    color: var(--guest-muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.landing-side {
    display: grid;
    gap: 22px;
}

.landing-panel {
    padding: 30px;
}

.landing-panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--guest-ink);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
}

.landing-panel-title::after {
    content: "";
    width: 72px;
    height: 1px;
    background: linear-gradient(90deg, rgba(201, 144, 46, 0.72), transparent);
}

.landing-feature-list {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.landing-feature-list > div {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 96px;
    padding: 16px 18px;
    border: 1px solid rgba(201, 180, 143, 0.66);
    border-radius: 18px;
    background: rgba(255, 250, 241, 0.54);
}

.landing-feature-list strong {
    display: block;
    color: var(--guest-ink);
    font-family: var(--font-display);
    font-size: 1.16rem;
}

.landing-feature-list p {
    margin: 5px 0 0;
    color: #5f6977;
    font-size: 0.95rem;
    line-height: 1.4;
}

.landing-feature-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fffaf1;
    font-size: 1.35rem;
    font-weight: 800;
}

.landing-feature-icon.is-blue {
    background: #2457a4;
}

.landing-feature-icon.is-sage {
    background: #69826a;
}

.landing-feature-icon.is-amber {
    background: #c9902e;
}

.landing-dark-card {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(250px, 0.82fr);
    gap: 16px;
    align-items: center;
    padding: 34px 36px;
    border-color: rgba(8, 27, 51, 0.45);
    background:
        linear-gradient(135deg, rgba(7, 26, 51, 0.99), rgba(10, 38, 70, 0.94)),
        var(--guest-navy);
    color: #fff8e8;
}

.landing-dark-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 248, 232, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 248, 232, 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 42%, #000 100%);
    pointer-events: none;
}

.landing-dark-card > * {
    position: relative;
    z-index: 1;
}

.landing-dark-card h2 {
    max-width: 520px;
    color: #fff8e8;
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    line-height: 0.98;
}

.landing-dark-card p {
    max-width: 520px;
    margin: 18px 0 0;
    color: rgba(255, 248, 232, 0.72);
    font-size: 1rem;
    line-height: 1.65;
}

.landing-dark-card svg {
    width: 100%;
    height: auto;
    overflow: visible;
    justify-self: end;
}

.landing-dark-card .mini-axis,
.landing-dark-card .mini-orbit {
    fill: none;
    stroke: rgba(255, 248, 232, 0.24);
    stroke-width: 1.2;
}

.landing-dark-card .mini-orbit {
    stroke: rgba(127, 146, 127, 0.46);
    stroke-dasharray: 5 7;
}

.landing-dark-card .mini-line {
    fill: none;
    stroke: var(--guest-amber);
    stroke-width: 3;
}

.landing-dark-card circle {
    fill: var(--guest-amber);
    stroke: rgba(255, 248, 232, 0.72);
    stroke-width: 2;
}

.landing-login-grid {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.58fr);
}

.landing-login-copy {
    min-height: 560px;
}

.landing-login-copy h2 {
    max-width: 760px;
    margin: 24px 0 16px;
    color: var(--guest-ink);
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 6vw, 6rem);
    font-weight: 500;
    letter-spacing: 0;
    line-height: 0.95;
}

.landing-login-copy p {
    max-width: 720px;
    color: #4f5a69;
    font-size: 1.12rem;
    font-weight: 650;
}

.landing-auth-card {
    padding: 34px;
}

.landing-auth-card .section-title {
    color: var(--guest-ink);
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
}

@media (max-width: 1180px) {
    .guest-shell .app-shell {
        width: min(100% - 28px, 1660px);
        margin: 24px auto;
    }

    .guest-shell .sidebar {
        grid-template-columns: 1fr;
        justify-items: start;
        padding: 22px 24px 14px;
    }

    .guest-shell .menu {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .guest-shell .workspace {
        padding: 0 24px 28px;
    }

    .landing-hero,
    .landing-grid,
    .landing-login-grid {
        grid-template-columns: 1fr;
    }

    .landing-compass {
        min-height: 280px;
        padding: 0 24px 24px;
    }

    .landing-story-card {
        min-height: auto;
    }
}

@media (max-width: 760px) {
    .guest-shell .app-shell {
        width: 100%;
        margin: 0;
        border-radius: 0;
        border-inline: 0;
    }

    .guest-shell .sidebar {
        gap: 18px;
        padding: 18px 16px 12px;
    }

    .guest-shell .guest-brand {
        grid-template-columns: 58px auto;
    }

    .guest-shell .guest-brand .egetrack-mark {
        width: 58px;
        height: 58px;
    }

    .guest-shell .brand-title {
        font-size: 2rem;
    }

    .guest-shell .brand-tagline {
        font-size: 0.8rem;
    }

    .guest-shell .menu {
        gap: 8px;
    }

    .guest-shell .menu-link {
        min-height: 40px;
        padding: 0 12px;
        font-size: 0.86rem;
    }

    .guest-shell .workspace {
        padding: 0 14px 24px;
    }

    .landing-hero {
        min-height: auto;
        border-radius: 22px;
    }

    .landing-hero-copy,
    .landing-story-card,
    .landing-panel,
    .landing-dark-card,
    .landing-login-copy,
    .landing-auth-card {
        padding: 24px;
        border-radius: 22px;
    }

    .landing-hero h1,
    .landing-story-card h2,
    .landing-login-copy h2 {
        font-size: clamp(3.2rem, 15vw, 4.4rem);
    }

    .landing-steps,
    .guest-feature-grid {
        grid-template-columns: 1fr;
    }

    .landing-feature-list > div {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .landing-feature-list > div > span:last-child {
        display: none;
    }

    .landing-dark-card {
        grid-template-columns: 1fr;
    }

    .landing-actions,
    .landing-button,
    .landing-ghost {
        width: 100%;
    }
}

/* Public landing v2: student-first, one CTA, no fake menu */

.eg-public {
    display: grid;
    gap: 22px;
}

.eg-public-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1fr);
    gap: 26px;
    align-items: stretch;
    overflow: hidden;
    min-height: 560px;
    padding: clamp(28px, 4vw, 54px);
    border: 1px solid rgba(8, 27, 51, 0.28);
    border-radius: 30px;
    background:
        radial-gradient(circle at 78% 18%, rgba(201, 144, 46, 0.14), transparent 28%),
        linear-gradient(135deg, #071a33 0%, #0b203b 54%, #102d50 100%);
    color: #fff8e8;
    box-shadow: 0 28px 84px rgba(8, 27, 51, 0.26);
}

.eg-public-copy {
    display: grid;
    align-content: center;
    justify-items: start;
}

.eg-public-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    color: #d4a44f;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eg-public-kicker::after {
    content: "";
    width: 76px;
    height: 1px;
    background: linear-gradient(90deg, rgba(201, 144, 46, 0.92), transparent);
}

.eg-public h1,
.eg-public h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0;
}

.eg-public h1 {
    max-width: 760px;
    font-size: clamp(4rem, 7vw, 7.4rem);
    line-height: 0.9;
    color: #fff8e8;
}

.eg-public-copy > p {
    max-width: 690px;
    margin: 26px 0 0;
    color: rgba(255, 248, 232, 0.76);
    font-size: 1.16rem;
    font-weight: 650;
    line-height: 1.75;
}

.eg-public-note {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.eg-public-note span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255, 248, 232, 0.18);
    border-radius: 999px;
    background: rgba(255, 248, 232, 0.07);
    color: rgba(255, 248, 232, 0.78);
    font-size: 0.9rem;
    font-weight: 800;
}

.eg-route-board {
    align-self: center;
    display: grid;
    place-items: center;
    min-height: 100%;
    margin: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.eg-route-image {
    display: block;
    width: min(92%, 780px);
    max-width: none;
    height: auto;
    overflow: hidden;
    border: 0;
    border-radius: 30px;
    filter: drop-shadow(0 28px 70px rgba(0, 0, 0, 0.22));
}

.eg-public-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.eg-public-card {
    min-height: 260px;
    padding: clamp(26px, 4vw, 38px);
    border: 1px solid rgba(201, 180, 143, 0.76);
    border-radius: 26px;
    background:
        radial-gradient(circle at 10% 8%, rgba(201, 144, 46, 0.08), transparent 30%),
        linear-gradient(145deg, rgba(255, 250, 241, 0.94), rgba(245, 237, 223, 0.88));
    box-shadow: 0 16px 44px rgba(8, 27, 51, 0.08);
}

.eg-public-card .eg-step {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
    border: 1px solid rgba(201, 144, 46, 0.52);
    border-radius: 999px;
    color: #b47b2e;
    font-family: var(--font-display);
    font-size: 1.35rem;
}

.eg-public-card h2 {
    color: var(--guest-ink);
    font-size: clamp(2.25rem, 3.6vw, 3.6rem);
    line-height: 0.98;
}

.eg-public-card p {
    margin: 18px 0 0;
    color: #566273;
    font-size: 1.02rem;
    font-weight: 650;
    line-height: 1.65;
}

.eg-public-card.is-dark {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 260px;
    border-color: rgba(8, 27, 51, 0.42);
    background:
        linear-gradient(135deg, rgba(7, 26, 51, 0.99), rgba(10, 38, 70, 0.95)),
        #071a33;
}

.eg-public-card.is-dark h2 {
    max-width: 420px;
    color: #fff8e8;
    font-size: clamp(2.2rem, 3.4vw, 3.6rem);
}

.eg-public-card.is-dark p {
    max-width: 460px;
    color: rgba(255, 248, 232, 0.72);
}

.eg-progress-image {
    align-self: end;
    justify-self: center;
    width: min(88%, 520px);
    max-width: none;
    margin-top: 20px;
    border-radius: 20px;
}

@media (max-width: 1180px) {
    .eg-public-hero,
    .eg-public-grid {
        grid-template-columns: 1fr;
    }

    .eg-public h1 {
        font-size: clamp(3.5rem, 10vw, 6rem);
    }
}

@media (max-width: 760px) {
    .eg-public-hero {
        min-height: auto;
        padding: 22px;
        border-radius: 24px;
    }

    .eg-public h1 {
        font-size: clamp(3rem, 16vw, 4.8rem);
    }

    .eg-route-board {
        margin: 0;
    }

    .eg-route-image {
        width: 100%;
    }
}

/* EGETrack typography correction: keep the editorial serif, remove the old over-bold SaaS feel. */
.student-shell,
.guest-shell,
.student-shell input,
.student-shell textarea,
.student-shell select,
.student-shell button,
.guest-shell input,
.guest-shell textarea,
.guest-shell select,
.guest-shell button {
    font-family: var(--font-body);
}

.student-shell .brand-title,
.guest-shell .brand-title,
.student-shell h1,
.student-shell h2,
.student-shell h3,
.guest-shell h1,
.guest-shell h2,
.guest-shell h3,
.student-shell .page-title,
.student-shell .hero-title,
.student-shell .section-title,
.student-shell .top-note-value,
.student-shell .stat-value,
.student-shell .progress-value,
.student-shell .metric-value,
.student-shell .leader-score,
.student-shell .assignment-title,
.student-shell .task-title,
.guest-shell .page-title,
.landing-hero h1,
.landing-story-card h2,
.landing-dark-card h2,
.landing-login-copy h2,
.guest-login-copy h2,
.guest-main-card .section-title,
.guest-panel-card .section-title,
.guest-login-card .section-title,
.landing-auth-card .section-title,
.eg-public h1,
.eg-public h2,
.eg-public-card .eg-step {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0;
}

.student-shell .brand-title,
.guest-shell .brand-title {
    font-weight: 600;
    letter-spacing: 0;
}

.student-shell .page-title,
.student-shell .hero-title,
.guest-shell .page-title,
.landing-hero h1,
.eg-public h1 {
    text-shadow: none;
}

.student-shell .page-title {
    line-height: 0.98;
}

.student-shell .eyebrow,
.student-shell .section-kicker,
.student-shell .pill,
.student-shell .stat-label,
.student-shell .meta-label,
.student-shell .brand-tagline,
.student-shell .nav-link,
.student-shell .button,
.student-shell .btn,
.student-shell .chip,
.student-shell .status-pill,
.guest-shell .brand-tagline,
.guest-shell .guest-nav-note,
.guest-shell .menu-link,
.guest-shell .menu-link-cta,
.guest-shell .button,
.guest-shell .landing-button,
.guest-shell .landing-kicker,
.guest-shell .eg-public-kicker,
.guest-shell .eg-public-note span {
    font-family: var(--font-body);
    font-weight: 600;
}

.student-shell strong,
.guest-shell strong,
.student-shell .card-title,
.student-shell .feed-title,
.student-shell .assignment-title,
.student-shell .task-title,
.student-shell .metric-title,
.student-shell .leader-name,
.guest-shell .guest-feature-card strong,
.guest-shell .guest-feature-list strong {
    font-weight: 600;
}

.student-shell .eyebrow,
.student-shell .section-kicker,
.student-shell .pill,
.student-shell .stat-label,
.student-shell .meta-label,
.guest-shell .landing-kicker,
.guest-shell .eg-public-kicker {
    letter-spacing: 0.08em;
}

.student-shell p,
.student-shell .page-subtitle,
.student-shell .section-subtitle,
.student-shell .hero-text,
.student-shell .panel-text,
.student-shell .feed-meta,
.student-shell .card-text,
.student-shell .empty,
.guest-shell p,
.guest-shell .page-subtitle,
.landing-hero p,
.eg-public-copy > p,
.eg-public-card p {
    font-weight: 400;
}

/* EGETrack restrained gold accents. Gold is an accent, not the whole interface. */
.student-shell,
.guest-shell {
    --eg-gold: #c9902e;
    --eg-gold-deep: #9f6b25;
    --eg-gold-soft: rgba(201, 144, 46, 0.13);
    --eg-gold-line: rgba(201, 144, 46, 0.42);
}

.student-shell .brand-tagline,
.guest-shell .brand-tagline {
    color: var(--eg-gold-deep);
}

.student-shell .nav-link.is-active {
    border-color: var(--eg-gold-line);
    background:
        radial-gradient(circle at 18% 50%, rgba(201, 144, 46, 0.16), transparent 34%),
        linear-gradient(135deg, #fffdf8, #f6eddf);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.70),
        0 12px 28px rgba(201, 144, 46, 0.10);
}

.student-shell .nav-link.is-active::before {
    background: var(--eg-gold);
    border-color: #fff8e8;
    box-shadow:
        0 0 0 5px rgba(201, 144, 46, 0.14),
        0 0 0 1px rgba(201, 144, 46, 0.34);
}

.guest-shell .menu-link.is-active,
.guest-shell .guest-login-link {
    border-color: var(--eg-gold-line);
    background:
        radial-gradient(circle at 50% 0%, rgba(201, 144, 46, 0.14), transparent 58%),
        rgba(255, 250, 241, 0.62);
}

.guest-shell .menu-link-cta,
.landing-button {
    border-color: rgba(227, 185, 104, 0.86);
    background: linear-gradient(135deg, #d2a450, #a8732f);
    color: #fffaf1;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 14px 30px rgba(115, 73, 22, 0.20);
}

.student-shell .button:not(.secondary),
.student-shell .btn:not(.btn-secondary):not(.is-light),
.student-shell button.btn:not(.btn-secondary):not(.is-light) {
    border-color: rgba(201, 144, 46, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 16px 30px rgba(8, 27, 51, 0.18),
        0 0 0 1px rgba(201, 144, 46, 0.08);
}

.student-shell .section-kicker,
.student-shell .eyebrow,
.guest-shell .landing-kicker,
.guest-shell .eg-public-kicker {
    color: var(--eg-gold-deep);
}

.guest-shell .landing-kicker::after,
.guest-shell .eg-public-kicker::after {
    background: linear-gradient(90deg, rgba(201, 144, 46, 0.92), transparent);
}

/* Login is a focused doorway, not a second landing page. */
body.guest-login-page {
    min-height: 100svh;
    padding: 10px 0;
}

.guest-login-page .app-shell {
    width: min(1440px, calc(100% - 20px));
    min-height: calc(100svh - 20px);
    margin: 0 auto;
    background:
        radial-gradient(circle at 14% 50%, rgba(201, 144, 46, 0.08), transparent 31%),
        radial-gradient(circle at 88% 52%, rgba(8, 27, 51, 0.045), transparent 34%),
        linear-gradient(135deg, rgba(255, 251, 244, 0.99), rgba(247, 238, 225, 0.98));
}

.guest-login-page .sidebar {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 26px 44px 14px;
}

.guest-login-page .guest-brand {
    grid-template-columns: 62px auto;
    gap: 14px;
}

.guest-login-page .guest-brand .egetrack-mark {
    width: 62px;
    height: 62px;
}

.guest-login-page .brand-title {
    font-size: clamp(2.2rem, 3vw, 2.8rem);
}

.guest-login-page .guest-menu {
    display: none;
}

.guest-login-page .workspace {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 0 44px 34px;
}

.login-stage {
    position: relative;
    min-height: clamp(560px, calc(100svh - 160px), 720px);
    display: grid;
    place-items: center;
    isolation: isolate;
}

.login-compass {
    position: absolute;
    z-index: -1;
    width: 660px;
    aspect-ratio: 1;
    opacity: 0.23;
    pointer-events: none;
}

.login-compass-left {
    top: 50%;
    left: -330px;
    transform: translateY(-52%) rotate(-10deg);
}

.login-compass-right {
    top: 50%;
    right: -285px;
    width: 570px;
    opacity: 0.13;
    transform: translateY(-42%) rotate(21deg);
}

.login-compass .egetrack-mark {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: transparent;
    box-shadow:
        inset 0 0 0 1px rgba(174, 125, 57, 0.34),
        0 0 0 68px rgba(174, 125, 57, 0.055),
        0 0 0 69px rgba(174, 125, 57, 0.20),
        0 0 0 138px rgba(174, 125, 57, 0.035),
        0 0 0 139px rgba(174, 125, 57, 0.14);
}

.login-compass .egetrack-mark svg {
    width: 94%;
    height: 94%;
}

.login-compass .egetrack-mark-grid,
.login-compass .egetrack-mark-orbit,
.login-compass .egetrack-mark-inner-orbit,
.login-compass .egetrack-mark-route {
    stroke: #aa7a40;
}

.login-compass .egetrack-mark-needle,
.login-compass .egetrack-mark-tail {
    fill: #aa7a40;
    filter: none;
}

.login-compass .egetrack-mark-core,
.login-compass .egetrack-mark-dot {
    fill: #fffaf1;
    stroke: #aa7a40;
}

.login-panel {
    position: relative;
    z-index: 1;
    width: min(660px, 100%);
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(194, 137, 55, 0.76);
    border-radius: 26px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.78), transparent 44%),
        linear-gradient(155deg, rgba(255, 253, 248, 0.985), rgba(249, 241, 229, 0.975));
    box-shadow:
        0 28px 64px rgba(82, 55, 27, 0.15),
        0 4px 12px rgba(82, 55, 27, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.login-panel::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(201, 144, 46, 0.12);
    border-radius: 20px;
    pointer-events: none;
}

.login-form-column {
    position: relative;
    display: grid;
    gap: 24px;
    padding: clamp(44px, 5.6vw, 66px) clamp(38px, 5.5vw, 68px) clamp(36px, 5vw, 54px);
}

.login-form-heading {
    text-align: center;
}

.login-kicker {
    display: grid;
    grid-template-columns: minmax(28px, 1fr) auto minmax(28px, 1fr);
    align-items: center;
    gap: 14px;
    color: #a66e27;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
}

.login-kicker > span:first-child,
.login-kicker > span:last-child {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 144, 46, 0.72));
}

.login-kicker > span:last-child {
    background: linear-gradient(90deg, rgba(201, 144, 46, 0.72), transparent);
}

.login-form-heading h1 {
    margin: 24px 0 0;
    color: var(--guest-ink);
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 5.1vw, 4.45rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 0.98;
    text-wrap: balance;
}

.login-heading-rule {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    margin: 24px 0 0;
}

.login-heading-rule span {
    height: 1px;
    background: rgba(201, 144, 46, 0.42);
}

.login-heading-rule b {
    color: #c9902e;
    font-size: 0.75rem;
    font-weight: 500;
}

.login-form-heading p {
    margin: 20px 0 0;
    color: #5f6977;
    font-size: 0.98rem;
    line-height: 1.55;
}

.login-form {
    gap: 18px;
}

.login-form .form-row {
    gap: 8px;
}

.login-form .form-row label {
    color: #182b45;
    font-size: 0.88rem;
    font-weight: 800;
}

.login-form .form-row input {
    width: 100%;
    min-height: 58px;
    padding: 0 17px;
    border: 1px solid rgba(187, 128, 45, 0.56);
    border-radius: 14px;
    background: rgba(255, 253, 249, 0.86);
    color: var(--guest-ink);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.84),
        0 2px 8px rgba(82, 55, 27, 0.035);
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.login-form .form-row input:focus {
    border-color: #b47728;
    outline: 0;
    background: #fffefb;
    box-shadow:
        0 0 0 3px rgba(201, 144, 46, 0.16),
        0 5px 14px rgba(82, 55, 27, 0.06);
}

.login-password-control {
    position: relative;
}

.login-password-control input {
    padding-right: 126px !important;
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 5px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #5b687a;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    transform: translateY(-50%);
    cursor: pointer;
    transition: color 140ms ease, background-color 140ms ease;
}

.login-password-toggle:focus-visible {
    outline: 3px solid rgba(201, 144, 46, 0.20);
    outline-offset: 1px;
}

.login-password-toggle[aria-pressed="true"] {
    color: #143253;
}

.login-password-eye {
    position: relative;
    width: 18px;
    height: 12px;
    flex: 0 0 auto;
    border: 1.5px solid currentColor;
    border-radius: 50% / 62%;
}

.login-password-eye::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.login-form .guest-login-button {
    width: 100%;
    min-height: 58px;
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    padding: 0 20px;
    border-color: #071a33;
    border-radius: 14px;
    background: linear-gradient(135deg, #071a33, #102b4c);
    color: #fff8e8;
    font-weight: 800;
    box-shadow:
        0 15px 26px rgba(8, 27, 51, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 160ms ease, background-color 160ms ease;
}

.login-form .guest-login-button:active {
    transform: scale(0.98);
}

.login-form .guest-login-button:focus-visible {
    outline: 3px solid rgba(201, 144, 46, 0.34);
    outline-offset: 3px;
}

.login-help {
    max-width: 42ch;
    margin: 0;
    justify-self: center;
    color: #687386;
    font-size: 0.84rem;
    line-height: 1.45;
    text-align: center;
}

.login-error {
    overflow-wrap: anywhere;
}

.login-error p {
    margin: 0;
}

@media (hover: hover) and (pointer: fine) {
    .login-password-toggle:hover {
        color: #143253;
        background: rgba(201, 144, 46, 0.08);
    }

    .login-form .guest-login-button:hover {
        transform: translateY(-1px);
        box-shadow:
            0 19px 32px rgba(8, 27, 51, 0.24),
            inset 0 1px 0 rgba(255, 255, 255, 0.10);
    }

    .login-form .guest-login-button:hover:active {
        transform: scale(0.98);
    }
}

@media (max-width: 760px) {
    body.guest-login-page {
        padding: 0;
    }

    .guest-login-page .app-shell {
        width: 100%;
        min-height: 100svh;
        margin: 0;
    }

    .guest-login-page .sidebar {
        padding: 18px 16px 10px;
    }

    .guest-login-page .guest-brand {
        grid-template-columns: 52px auto;
        gap: 11px;
    }

    .guest-login-page .guest-brand .egetrack-mark {
        width: 52px;
        height: 52px;
    }

    .guest-login-page .brand-title {
        font-size: 1.9rem;
    }

    .guest-login-page .workspace {
        padding: 0 12px 20px;
    }

    .login-stage {
        min-height: calc(100svh - 104px);
        align-items: start;
        padding-top: 12px;
    }

    .login-panel {
        border-radius: 21px;
        box-shadow:
            0 18px 38px rgba(82, 55, 27, 0.13),
            inset 0 1px 0 rgba(255, 255, 255, 0.84);
    }

    .login-form-column {
        gap: 20px;
        padding: 32px 22px 28px;
    }

    .login-kicker {
        gap: 9px;
        font-size: 0.68rem;
        letter-spacing: 0.14em;
    }

    .login-form-heading h1 {
        margin-top: 20px;
        font-size: clamp(2.65rem, 12.3vw, 3.25rem);
    }

    .login-heading-rule {
        margin-top: 19px;
    }

    .login-form-heading p {
        margin-top: 16px;
        font-size: 0.91rem;
    }

    .login-form {
        gap: 16px;
    }

    .login-form .form-row input {
        min-height: 56px;
    }

    .login-form .guest-login-button {
        min-height: 56px;
    }

    .login-compass-left {
        left: -310px;
        width: 520px;
        opacity: 0.18;
    }

    .login-compass-right {
        display: none;
    }

    .login-help {
        font-size: 0.79rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-form .guest-login-button {
        transition: box-shadow 140ms ease, background-color 140ms ease;
    }

    .login-form .guest-login-button:active,
    .login-form .guest-login-button:hover,
    .login-form .guest-login-button:hover:active {
        transform: none;
    }
}

.student-shell .top-note,
.student-shell .card,
.student-shell .assignment-card,
.student-shell .exam-card,
.student-shell .theory-card,
.student-shell .feed-card,
.student-shell .progress-card,
.student-shell .solve-card,
.guest-shell .eg-public-card,
.guest-shell .landing-story-card,
.guest-shell .landing-rail,
.guest-shell .landing-auth-card {
    border-color: rgba(201, 180, 143, 0.72);
}

/* EGETrack teacher workspace: dense editorial command center. */
.teacher-shell {
    --teacher-bg: #efe7d8;
    --teacher-bg-soft: #f7f1e6;
    --teacher-surface: rgba(255, 251, 243, 0.92);
    --teacher-surface-strong: #fffaf0;
    --teacher-navy: #071a33;
    --teacher-navy-soft: #102843;
    --teacher-text: #111827;
    --teacher-muted: #647084;
    --teacher-line: rgba(171, 146, 107, 0.34);
    --teacher-line-strong: rgba(171, 146, 107, 0.54);
    --teacher-gold: #c9902e;
    --teacher-gold-deep: #92611f;
    --teacher-gold-soft: rgba(201, 144, 46, 0.14);
    --teacher-sage: #6f8b72;
    --teacher-sage-soft: rgba(111, 139, 114, 0.16);
    --teacher-warning: #c9902e;
    --teacher-warning-soft: rgba(201, 144, 46, 0.16);
    --teacher-danger: #b94b3b;
    --teacher-danger-soft: rgba(185, 75, 59, 0.12);
    --accent: var(--teacher-navy);
    --accent-strong: #031225;
    --border: var(--teacher-line);
    --border-strong: var(--teacher-line-strong);
    --surface: var(--teacher-surface);
    --surface-muted: var(--teacher-surface-strong);
    --surface-soft: #f2e6d4;
    --text: var(--teacher-text);
    --muted: var(--teacher-muted);
    --shadow: 0 22px 60px rgba(35, 26, 15, 0.10);
    background:
        radial-gradient(circle at 18% 10%, rgba(201, 144, 46, 0.10), transparent 34%),
        radial-gradient(circle at 88% 0%, rgba(7, 26, 51, 0.10), transparent 32%),
        linear-gradient(180deg, #f7f1e6 0%, var(--teacher-bg) 100%);
    color: var(--teacher-text);
    font-family: var(--font-body);
    overflow-x: hidden;
}

.teacher-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(7, 26, 51, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 26, 51, 0.024) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 78%);
}

.teacher-shell .app-shell {
    width: min(1760px, calc(100% - 40px));
    grid-template-columns: 282px minmax(0, 1fr);
    gap: 24px;
    padding: 14px 0 34px;
}

.teacher-shell .sidebar,
.teacher-shell .topbar,
.teacher-shell .surface-card,
.teacher-shell .metric-card,
.teacher-shell .message,
.teacher-shell .teacher-review-hero,
.teacher-shell .teacher-review-main,
.teacher-shell .teacher-review-block,
.teacher-shell .formset-card,
.teacher-shell .catalog-card,
.teacher-shell .task-feed-card,
.teacher-shell .auth-card {
    border: 1px solid var(--teacher-line);
    background:
        linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(248, 241, 230, 0.88));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.74),
        0 22px 54px rgba(35, 26, 15, 0.08);
}

.teacher-shell .sidebar {
    position: sticky;
    top: 14px;
    align-self: start;
    min-height: calc(100vh - 28px);
    padding: 14px;
    border-radius: 34px;
}

.teacher-shell .teacher-brand {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 6px 6px 12px;
    border-bottom: 1px solid rgba(171, 146, 107, 0.22);
}

.teacher-shell .teacher-brand .egetrack-mark {
    width: 52px;
    height: 52px;
    box-shadow:
        inset 0 0 0 1px rgba(201, 144, 46, 0.25),
        inset 0 0 0 7px rgba(255, 250, 240, 0.72),
        0 14px 28px rgba(7, 26, 51, 0.10);
}

.teacher-shell .brand-copy {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.teacher-shell .brand-title,
.teacher-shell .page-title,
.teacher-shell .section-title,
.teacher-shell .metric-value,
.teacher-shell .ranking-score,
.teacher-shell .ranking-user strong,
.teacher-shell .task-feed-meta strong,
.teacher-shell .list-row strong {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0;
    color: var(--teacher-navy);
}

.teacher-shell .brand-title {
    font-size: 1.62rem;
    line-height: 0.95;
    white-space: nowrap;
}

.teacher-shell .brand-tagline {
    color: var(--teacher-gold-deep);
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.teacher-shell .teacher-menu {
    gap: 4px;
    margin-top: 0;
}

.teacher-shell .menu-link {
    position: relative;
    min-height: 40px;
    padding: 0 12px 0 32px;
    border: 1px solid transparent;
    border-radius: 15px;
    color: #5b6472;
    font-size: 0.95rem;
    font-weight: 700;
}

.teacher-shell .menu-link::before {
    content: "";
    position: absolute;
    left: 14px;
    width: 7px;
    height: 7px;
    border: 1px solid rgba(36, 87, 230, 0.42);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.74);
}

.teacher-shell .menu-link:hover {
    background: rgba(255, 250, 240, 0.78);
    border-color: rgba(201, 144, 46, 0.22);
    color: var(--teacher-navy);
    transform: translateX(2px);
}

.teacher-shell .menu-link.is-active {
    border-color: rgba(201, 144, 46, 0.42);
    background:
        radial-gradient(circle at 24px 50%, rgba(201, 144, 46, 0.18), transparent 34%),
        linear-gradient(135deg, #fffdf8, #f4ead9);
    color: var(--teacher-navy);
    box-shadow: 0 12px 28px rgba(201, 144, 46, 0.10);
}

.teacher-shell .menu-link.is-active::before {
    background: var(--teacher-gold);
    border-color: #fff8e8;
    box-shadow:
        0 0 0 5px rgba(201, 144, 46, 0.14),
        0 0 0 1px rgba(201, 144, 46, 0.30);
}

.teacher-shell .sidebar-logout .ghost-button {
    width: 100%;
}

.teacher-shell .workspace,
.teacher-shell .content-stack {
    gap: 22px;
}

.teacher-shell .topbar {
    position: relative;
    min-height: 154px;
    overflow: hidden;
    padding: 28px clamp(270px, 31vw, 420px) 28px 34px;
    border-radius: 28px;
}

.teacher-shell .topbar::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 18px;
    bottom: 18px;
    width: clamp(220px, 25vw, 360px);
    border: 1px solid rgba(201, 180, 143, 0.52);
    border-radius: 24px;
    background:
        linear-gradient(90deg, rgba(255, 253, 248, 0.06), rgba(7, 26, 51, 0.10)),
        url("/static/img/egetrack/math_compass.svg") center / cover no-repeat;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.58),
        inset 0 0 0 1px rgba(255, 250, 240, 0.16),
        0 18px 42px rgba(35, 26, 15, 0.08);
    opacity: 1;
    filter: saturate(0.96) contrast(1.02);
}

.teacher-shell .topbar-main {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.teacher-shell .eyebrow,
.teacher-shell .section-kicker,
.teacher-shell .metric-label,
.teacher-shell .meta-label {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    min-height: 28px;
    padding: 0 12px;
    border: 1px solid rgba(201, 144, 46, 0.32);
    border-radius: 999px;
    background: rgba(201, 144, 46, 0.10);
    color: var(--teacher-gold-deep);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.teacher-shell .page-title {
    margin-top: 14px;
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: clamp(2.55rem, 4vw, 4.5rem);
    line-height: 0.96;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.80);
}

.teacher-shell .page-subtitle,
.teacher-shell .section-subtitle,
.teacher-shell .muted,
.teacher-shell .metric-hint,
.teacher-shell .surface-card p {
    color: var(--teacher-muted);
}

.teacher-shell .page-subtitle {
    max-width: 880px;
    font-size: 1.06rem;
    font-weight: 500;
}

.teacher-shell.teacher-student-detail-page .page-subtitle {
    display: block !important;
}

.teacher-shell .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.teacher-shell .metric-card {
    min-height: 150px;
    padding: 22px;
    border-radius: 28px;
}

.teacher-shell .metric-label {
    padding: 0;
    border: 0;
    background: transparent;
}

.teacher-shell .metric-value {
    margin-top: 18px;
    font-size: clamp(2.6rem, 4vw, 4.2rem);
}

.teacher-shell .surface-card {
    padding: 26px;
    border-radius: 30px;
}

.teacher-shell .section-title {
    font-size: clamp(1.9rem, 2.7vw, 3rem);
    line-height: 1.05;
}

.teacher-shell .section-title-small {
    font-size: clamp(1.45rem, 2vw, 2rem);
}

.teacher-shell .dual-grid,
.teacher-shell .content-grid {
    gap: 22px;
}

.teacher-shell .list-row,
.teacher-shell .status-row,
.teacher-shell .info-tile,
.teacher-shell .empty-state,
.teacher-shell .catalog-link,
.teacher-shell .task-feed-details,
.teacher-shell .review-file-card,
.teacher-shell .math-box {
    border: 1px solid rgba(171, 146, 107, 0.28);
    background: rgba(255, 250, 240, 0.72);
}

.teacher-shell .list-row,
.teacher-shell .status-row {
    border-radius: 20px;
}

.teacher-shell .list-row {
    align-items: center;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.teacher-shell .list-row:hover {
    border-color: rgba(201, 144, 46, 0.38);
    box-shadow: 0 14px 34px rgba(35, 26, 15, 0.07);
    transform: translateY(-1px);
}

.teacher-shell .status-row {
    position: relative;
    padding-left: 42px;
}

.teacher-shell .status-row::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 24px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teacher-gold);
    box-shadow: 0 0 0 5px rgba(201, 144, 46, 0.12);
}

.teacher-shell .student-command-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: end;
}

.teacher-shell .student-command-main {
    display: grid;
    gap: 16px;
}

.teacher-shell .student-command-tags {
    margin: 0;
}

.teacher-shell .student-command-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.teacher-shell .student-profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    margin: 18px 0 22px;
    border-bottom: 1px solid rgba(171, 146, 107, 0.24);
}

.teacher-shell .student-profile-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    color: var(--teacher-muted);
    font-weight: 800;
    text-decoration: none;
}

.teacher-shell .student-profile-tab::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: transparent;
}

.teacher-shell .student-profile-tab:hover {
    color: var(--teacher-navy);
}

.teacher-shell .student-profile-tab.is-active {
    color: var(--teacher-gold-deep);
}

.teacher-shell .student-profile-tab.is-active::after {
    background: var(--teacher-gold);
}

.teacher-shell .student-priority-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 720px;
}

.teacher-shell .student-priority-strip > div {
    min-height: 92px;
    padding: 15px;
    border: 1px solid rgba(171, 146, 107, 0.28);
    border-radius: 18px;
    background: rgba(255, 250, 240, 0.72);
}

.teacher-shell .student-priority-strip span,
.teacher-shell .student-compact-row span {
    color: var(--teacher-muted);
    font-weight: 650;
}

.teacher-shell .student-priority-strip strong {
    display: block;
    margin-top: 10px;
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 500;
    line-height: 1;
    color: var(--teacher-navy);
}

.teacher-shell .student-work-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.teacher-shell .student-work-card {
    display: flex;
    min-height: 250px;
    flex-direction: column;
    gap: 16px;
}

.teacher-shell .student-work-card.is-hot {
    border-color: rgba(201, 144, 46, 0.48);
    background:
        radial-gradient(circle at 92% 12%, rgba(201, 144, 46, 0.16), transparent 34%),
        linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(248, 241, 230, 0.88));
}

.teacher-shell .student-card-head,
.teacher-shell .student-section-head {
    align-items: center;
}

.teacher-shell .student-card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 16px;
    background: var(--teacher-navy);
    color: #fffaf1;
    font-weight: 800;
}

.teacher-shell .student-work-card .split-actions,
.teacher-shell .student-work-card > .button,
.teacher-shell .student-work-card > .ghost-button {
    margin-top: auto;
}

.teacher-shell .student-daily-guidance {
    display: grid;
    gap: 8px;
    color: var(--teacher-muted);
    font-weight: 650;
    line-height: 1.45;
}

.teacher-shell .student-daily-guidance span {
    display: block;
    padding: 10px 12px;
    border: 1px solid rgba(171, 146, 107, 0.24);
    border-radius: 14px;
    background: rgba(255, 250, 240, 0.62);
}

.teacher-shell .student-daily-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.teacher-shell .student-daily-plan-grid > div {
    display: grid;
    gap: 8px;
    min-height: 126px;
    padding: 14px 16px;
    border: 1px solid rgba(171, 146, 107, 0.24);
    border-radius: 18px;
    background: rgba(255, 250, 240, 0.58);
}

.teacher-shell .student-daily-plan-grid > div > span {
    color: var(--teacher-muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.teacher-shell .student-daily-plan-grid > div > strong {
    color: var(--teacher-navy);
    font-size: 2rem;
    line-height: 1;
}

.teacher-shell .student-daily-plan-grid small {
    color: var(--teacher-muted);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.35;
}

.teacher-shell .student-route-quick-card {
    display: grid;
    gap: 18px;
    scroll-margin-top: 24px;
}

.teacher-shell .student-route-quick-card .inline-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.teacher-shell .student-route-rule-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.teacher-shell .student-route-rule-grid > div,
.teacher-shell .student-route-move-card {
    border: 1px solid rgba(171, 146, 107, 0.24);
    border-radius: 18px;
    background: rgba(255, 250, 240, 0.58);
}

.teacher-shell .student-route-rule-grid > div {
    display: grid;
    gap: 6px;
    min-height: 96px;
    padding: 14px 16px;
}

.teacher-shell .student-route-rule-grid strong,
.teacher-shell .student-route-move-card strong {
    color: var(--teacher-ink);
    font-size: 0.95rem;
    font-weight: 900;
}

.teacher-shell .student-route-rule-grid span,
.teacher-shell .student-route-move-card span {
    color: var(--teacher-muted);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
}

.teacher-shell .student-daily-settings-details {
    border: 1px solid rgba(171, 146, 107, 0.28);
    border-radius: 18px;
    background: rgba(255, 250, 240, 0.58);
    padding: 14px 16px;
}

.teacher-shell .student-route-move-card {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
}

.teacher-shell .student-route-move-card > div {
    display: grid;
    gap: 4px;
}

.teacher-shell .student-daily-settings-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
}

.teacher-shell .student-daily-settings-details summary::-webkit-details-marker {
    display: none;
}

.teacher-shell .student-daily-settings-details summary strong {
    color: var(--teacher-muted);
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
}

.teacher-shell .student-daily-settings-grid {
    grid-template-columns: minmax(180px, 0.8fr) minmax(160px, 0.7fr) minmax(180px, 0.8fr);
    margin-top: 14px;
}

.teacher-shell .student-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.teacher-shell .student-work-grid > .surface-card,
.teacher-shell .student-detail-grid > .surface-card {
    min-width: 0;
}

.teacher-shell .student-wide-card {
    grid-column: 1 / -1;
}

.teacher-shell .student-diagnostics-grid {
    grid-template-columns: 1fr;
}

.teacher-shell .student-compact-row {
    border: 1px solid rgba(171, 146, 107, 0.28);
    border-radius: 18px;
    background: rgba(255, 250, 240, 0.72);
}

.teacher-shell .student-compact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
}

.teacher-shell .student-compact-row strong {
    display: block;
    color: var(--teacher-navy);
}

.teacher-shell .student-diagnostics-card > details,
.teacher-shell .student-settings-details {
    display: grid;
    gap: 18px;
}

.teacher-shell .student-diagnostics-card summary,
.teacher-shell .student-settings-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
}

.teacher-shell .student-diagnostics-card summary::-webkit-details-marker,
.teacher-shell .student-settings-details summary::-webkit-details-marker {
    display: none;
}

.teacher-shell .student-route-summary {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.table-responsive table {
    min-width: 760px;
}

.katex-display {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.12em 0;
}

.math-box .katex,
.rich-text .katex,
[data-rich-math] .katex {
    font-size: 1.04em;
}

.teacher-shell .button,
.teacher-shell .ghost-button {
    min-height: 44px;
    border-radius: 15px;
    font-weight: 750;
}

.teacher-shell .button {
    border-color: rgba(7, 26, 51, 0.18);
    background: linear-gradient(135deg, var(--teacher-navy), var(--teacher-navy-soft));
    color: #fffaf1;
    box-shadow: 0 14px 26px rgba(7, 26, 51, 0.16);
}

.teacher-shell .button:hover {
    background: linear-gradient(135deg, #031225, #0c294a);
}

.teacher-shell .ghost-button {
    border-color: rgba(171, 146, 107, 0.38);
    background: rgba(255, 250, 240, 0.58);
    color: var(--teacher-navy);
}

.teacher-shell .ghost-button:hover {
    border-color: rgba(201, 144, 46, 0.46);
    background: rgba(255, 246, 227, 0.92);
    color: var(--teacher-gold-deep);
}

.teacher-shell .ghost-button.is-active {
    border-color: rgba(201, 144, 46, 0.68);
    background: rgba(255, 239, 204, 0.92);
    color: var(--teacher-gold-deep);
}

.teacher-shell .badge,
.teacher-shell .chip,
.teacher-shell .status-chip,
.teacher-shell .status-pill {
    border: 1px solid rgba(171, 146, 107, 0.28);
    background: rgba(255, 250, 240, 0.76);
    color: #5c6472;
    font-weight: 700;
}

.teacher-shell .badge.success,
.teacher-shell .is-success,
.teacher-shell .status-chip.is-success {
    border-color: rgba(111, 139, 114, 0.30);
    background: var(--teacher-sage-soft);
    color: #48654e;
}

.teacher-shell .badge.warning,
.teacher-shell .is-warning,
.teacher-shell .status-chip.is-warning {
    border-color: rgba(201, 144, 46, 0.34);
    background: var(--teacher-warning-soft);
    color: var(--teacher-gold-deep);
}

.teacher-shell .badge.danger,
.teacher-shell .is-danger,
.teacher-shell .status-chip.is-danger {
    border-color: rgba(185, 75, 59, 0.28);
    background: var(--teacher-danger-soft);
    color: var(--teacher-danger);
}

.teacher-shell .form-row input,
.teacher-shell .form-row select,
.teacher-shell .form-row textarea,
.teacher-shell .form-field input,
.teacher-shell .form-field select,
.teacher-shell .form-field textarea,
.teacher-shell .plain-input,
.teacher-shell .checkbox-field,
.teacher-shell .checkbox-list label,
.teacher-shell .task-export-checkbox,
.teacher-shell .site-file-input {
    border-color: rgba(171, 146, 107, 0.34);
    background: rgba(255, 250, 240, 0.76);
    color: var(--teacher-text);
}

.teacher-shell .form-row input:focus,
.teacher-shell .form-row select:focus,
.teacher-shell .form-row textarea:focus,
.teacher-shell .form-field input:focus,
.teacher-shell .form-field select:focus,
.teacher-shell .form-field textarea:focus,
.teacher-shell .plain-input:focus {
    outline: 0;
    border-color: rgba(201, 144, 46, 0.68);
    box-shadow: 0 0 0 4px rgba(201, 144, 46, 0.13);
}

.teacher-shell .form-row label,
.teacher-shell .form-field label,
.teacher-shell .checkbox-row,
.teacher-shell .checkbox-field {
    color: var(--teacher-navy);
}

.teacher-shell .site-file-input-button {
    border-color: rgba(201, 144, 46, 0.34);
    background: rgba(255, 246, 227, 0.88);
    color: var(--teacher-navy);
}

.teacher-shell .inline-form-grid,
.teacher-shell .formset-grid,
.teacher-shell .info-grid {
    gap: 14px;
}

.teacher-shell .catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.teacher-shell .catalog-column {
    display: grid;
    gap: 12px;
}

.teacher-shell .catalog-card {
    border-radius: 22px;
    overflow: hidden;
}

.teacher-shell .catalog-summary {
    min-height: 62px;
    padding: 0 18px;
    color: var(--teacher-navy);
    font-weight: 800;
}

.teacher-shell .catalog-links {
    border-top: 1px solid rgba(171, 146, 107, 0.22);
    padding: 12px;
    background: rgba(255, 250, 240, 0.48);
}

.teacher-shell .catalog-link {
    border-radius: 16px;
}

.teacher-shell .catalog-link-accent {
    border-color: rgba(201, 144, 46, 0.42);
    background: rgba(201, 144, 46, 0.12);
    color: var(--teacher-gold-deep);
}

.teacher-shell .task-feed {
    display: grid;
    gap: 18px;
}

.teacher-shell .task-feed-card {
    border-radius: 28px;
}

.teacher-shell .task-feed-meta {
    border-bottom: 1px solid rgba(171, 146, 107, 0.22);
    padding-bottom: 14px;
}

.teacher-shell .task-feed-content {
    margin-top: 18px;
}

.teacher-shell table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.teacher-shell th {
    color: var(--teacher-gold-deep);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-align: left;
    text-transform: uppercase;
}

.teacher-shell td {
    border-top: 1px solid rgba(171, 146, 107, 0.24);
    border-bottom: 1px solid rgba(171, 146, 107, 0.24);
    background: rgba(255, 250, 240, 0.72);
    padding: 14px;
}

.teacher-shell td:first-child {
    border-left: 1px solid rgba(171, 146, 107, 0.24);
    border-radius: 18px 0 0 18px;
}

.teacher-shell td:last-child {
    border-right: 1px solid rgba(171, 146, 107, 0.24);
    border-radius: 0 18px 18px 0;
}

.teacher-shell .progress-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
    color: #5f5343;
    font-weight: 650;
}

.teacher-shell .progress-header span:last-child {
    min-width: 54px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 144, 46, 0.28);
    border-radius: 999px;
    background: rgba(255, 250, 240, 0.72);
    color: var(--teacher-gold-deep);
    font-weight: 800;
}

.teacher-shell .progress-track {
    height: 9px;
    overflow: hidden;
    border: 1px solid rgba(171, 146, 107, 0.18);
    border-radius: 999px;
    background: rgba(7, 26, 51, 0.08);
}

.teacher-shell .progress-fill {
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(90deg, #c9902e, #b88027);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 0 0 1px rgba(201, 144, 46, 0.08);
}

.teacher-shell .ranking-place {
    background: var(--teacher-navy);
    color: #fffaf1;
}

.teacher-shell .ranking-score {
    color: #2457e6;
    font-size: clamp(2.4rem, 4vw, 4rem);
}

.teacher-shell .teacher-review-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px;
    border-radius: 30px;
}

.teacher-shell .teacher-review-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
}

.teacher-shell .teacher-review-main {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
    gap: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.teacher-shell .teacher-review-block {
    width: 100%;
    min-width: 0;
    margin-inline: 0;
    padding: 24px;
    border-radius: 28px;
}

.teacher-shell .teacher-review-block:first-child,
.teacher-shell .teacher-review-block:nth-child(2) {
    grid-column: 1;
}

.teacher-shell .teacher-review-form {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    position: sticky;
    top: 24px;
}

.teacher-shell .review-file-grid {
    gap: 14px;
}

.teacher-shell .review-file-card {
    border-radius: 22px;
}

.teacher-shell .student-file-upload-label {
    border-color: rgba(171, 146, 107, 0.34);
    background: rgba(255, 250, 240, 0.72);
}

.teacher-shell .error-box,
.teacher-shell .field-error,
.teacher-shell .form-errors {
    border-radius: 16px;
    color: var(--teacher-danger);
    background: var(--teacher-danger-soft);
}

.teacher-shell button[disabled],
.teacher-shell .ghost-button[disabled] {
    cursor: not-allowed;
    opacity: 0.55;
}

@media (max-width: 1180px) {
    .teacher-shell .app-shell {
        grid-template-columns: 1fr;
        width: min(100% - 24px, 1040px);
    }

    .teacher-shell .sidebar {
        position: relative;
        top: auto;
        min-height: auto;
    }

    .teacher-shell .teacher-menu {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .teacher-shell .stats-grid,
    .teacher-shell .dual-grid,
    .teacher-shell .content-grid,
    .teacher-shell .student-work-grid,
    .teacher-shell .student-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .teacher-shell .student-command-card {
        grid-template-columns: 1fr;
    }

    .teacher-shell .topbar {
        padding-right: 42px;
    }

    .teacher-shell .topbar::after {
        right: 18px;
        width: min(32vw, 280px);
        opacity: 0.16;
        box-shadow: none;
    }

    .teacher-shell .student-command-actions {
        justify-content: flex-start;
    }

    .teacher-shell .student-profile-tabs {
        gap: 20px;
    }

    .teacher-shell .student-route-quick-card .inline-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .teacher-shell .student-route-rule-grid {
        grid-template-columns: 1fr;
    }

    .teacher-shell .teacher-review-main {
        grid-template-columns: 1fr;
    }

    .teacher-shell .teacher-review-form,
    .teacher-shell .teacher-review-block:first-child,
    .teacher-shell .teacher-review-block:nth-child(2) {
        grid-column: auto;
        grid-row: auto;
        position: static;
    }
}

@media (max-width: 760px) {
    .teacher-shell .app-shell {
        width: min(100% - 18px, 640px);
        padding: 10px 0 24px;
    }

    .teacher-shell .sidebar,
    .teacher-shell .topbar,
    .teacher-shell .surface-card,
    .teacher-shell .teacher-review-hero,
    .teacher-shell .teacher-review-block {
        border-radius: 24px;
    }

    .teacher-shell .teacher-menu,
    .teacher-shell .stats-grid,
    .teacher-shell .dual-grid,
    .teacher-shell .content-grid,
    .teacher-shell .student-priority-strip,
    .teacher-shell .student-work-grid,
    .teacher-shell .student-detail-grid,
    .teacher-shell .catalog-grid,
    .teacher-shell .inline-form-grid,
    .teacher-shell .formset-grid {
        grid-template-columns: 1fr;
    }

    .teacher-shell .topbar {
        min-height: auto;
        padding: 26px 22px;
    }

    .teacher-shell .topbar::after {
        display: none;
    }

    .teacher-shell .page-title {
        overflow-wrap: normal;
        font-size: clamp(2.2rem, 10vw, 3rem);
    }

    .teacher-shell .list-row,
    .teacher-shell .teacher-review-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .teacher-shell .split-actions {
        width: 100%;
    }

    .teacher-shell .split-actions .button,
    .teacher-shell .split-actions .ghost-button,
    .teacher-shell .button,
    .teacher-shell .ghost-button {
        width: 100%;
    }

    .teacher-shell .student-profile-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .teacher-shell .student-route-quick-card .inline-form-grid {
        grid-template-columns: 1fr;
    }

    .teacher-shell .student-route-move-card {
        align-items: stretch;
        flex-direction: column;
    }
}

/* EGETrack admin workspace: system console, not a teacher/student surface. */
.admin-shell {
    --admin-bg: #e9e1d3;
    --admin-surface: rgba(255, 251, 242, 0.94);
    --admin-surface-strong: #fffaf0;
    --admin-panel: #f4ecde;
    --admin-ink: #0a1728;
    --admin-ink-soft: #334155;
    --admin-muted: #667085;
    --admin-navy: #06162b;
    --admin-navy-soft: #102338;
    --admin-copper: #b4742b;
    --admin-copper-deep: #87521f;
    --admin-copper-soft: rgba(180, 116, 43, 0.14);
    --admin-blue: #2457e6;
    --admin-line: rgba(113, 91, 62, 0.28);
    --admin-line-strong: rgba(113, 91, 62, 0.46);
    --admin-danger: #b33a2f;
    --admin-danger-soft: rgba(179, 58, 47, 0.12);
    --admin-success: #4e7255;
    --admin-success-soft: rgba(78, 114, 85, 0.14);
    --accent: var(--admin-navy);
    --accent-strong: #020c1a;
    --border: var(--admin-line);
    --border-strong: var(--admin-line-strong);
    --surface: var(--admin-surface);
    --surface-muted: var(--admin-surface-strong);
    --surface-soft: #eadfce;
    --text: var(--admin-ink);
    --muted: var(--admin-muted);
    --shadow: 0 24px 70px rgba(12, 18, 29, 0.12);
    background:
        radial-gradient(circle at 12% 0%, rgba(180, 116, 43, 0.12), transparent 30%),
        radial-gradient(circle at 88% 0%, rgba(7, 26, 51, 0.16), transparent 34%),
        linear-gradient(90deg, rgba(7, 26, 51, 0.035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(7, 26, 51, 0.025) 1px, transparent 1px),
        var(--admin-bg);
    background-size: auto, auto, 76px 76px, 76px 76px, auto;
    color: var(--admin-ink);
    font-family: var(--font-body);
}

.admin-shell .app-shell {
    width: min(1840px, calc(100% - 28px));
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 14px 0 34px;
}

.admin-shell .sidebar {
    position: sticky;
    top: 10px;
    z-index: 40;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-height: 76px;
    min-width: 0;
    padding: 10px 16px;
    border: 1px solid rgba(113, 91, 62, 0.30);
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255, 253, 248, 0.97), rgba(244, 236, 222, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 18px 48px rgba(12, 18, 29, 0.10);
}

.admin-shell .admin-brand {
    display: grid;
    grid-template-columns: 48px minmax(0, auto);
    align-items: center;
    gap: 10px;
    min-width: 220px;
    padding: 0;
}

.admin-shell .admin-brand .egetrack-mark {
    width: 48px;
    height: 48px;
    background:
        radial-gradient(circle at 52% 48%, #fffaf0 0 18%, transparent 19%),
        linear-gradient(145deg, #fffaf0, #eadfce);
    box-shadow:
        inset 0 0 0 1px rgba(180, 116, 43, 0.32),
        inset 0 0 0 7px rgba(255, 250, 240, 0.68),
        0 14px 28px rgba(7, 26, 51, 0.12);
}

.admin-shell .brand-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.admin-shell .brand-title,
.admin-shell .page-title,
.admin-shell .section-title,
.admin-shell .metric-value,
.admin-shell .list-row strong,
.admin-shell .task-feed-meta strong,
.admin-shell .ranking-score,
.admin-shell .ranking-user strong {
    font-family: var(--font-heading);
    color: var(--admin-navy);
    font-weight: 500;
    letter-spacing: 0;
}

.admin-shell .brand-title {
    font-size: 1.42rem;
    line-height: 0.95;
    white-space: nowrap;
}

.admin-shell .brand-tagline {
    color: var(--admin-copper-deep);
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.admin-shell .admin-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.admin-shell .menu-link {
    position: relative;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 14px 0 32px;
    border: 1px solid transparent;
    border-radius: 15px;
    color: #475569;
    font-size: 0.92rem;
    font-weight: 760;
    white-space: nowrap;
}

.admin-shell .menu-link::before {
    content: "";
    position: absolute;
    left: 14px;
    width: 7px;
    height: 7px;
    border: 1px solid rgba(180, 116, 43, 0.50);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.80);
}

.admin-shell .menu-link:hover {
    border-color: rgba(180, 116, 43, 0.28);
    background: rgba(255, 250, 240, 0.80);
    color: var(--admin-navy);
}

.admin-shell .menu-link.is-active {
    border-color: rgba(180, 116, 43, 0.46);
    background:
        radial-gradient(circle at 24px 50%, rgba(180, 116, 43, 0.20), transparent 32%),
        linear-gradient(135deg, #fffaf0, #efe2cf);
    color: var(--admin-navy);
    box-shadow: 0 12px 28px rgba(180, 116, 43, 0.12);
}

.admin-shell .menu-link.is-active::before {
    background: var(--admin-copper);
    border-color: #fff8e8;
    box-shadow:
        0 0 0 5px rgba(180, 116, 43, 0.16),
        0 0 0 1px rgba(180, 116, 43, 0.34);
}

.admin-shell .sidebar-logout {
    margin: 0;
    justify-self: end;
}

.admin-shell .sidebar-logout .ghost-button {
    width: auto;
    min-width: 92px;
}

.admin-shell .workspace,
.admin-shell .content-stack {
    gap: 20px;
}

.admin-shell .topbar {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    padding: 32px 40px;
    border: 1px solid rgba(113, 91, 62, 0.30);
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(6, 22, 43, 0.96), rgba(16, 35, 56, 0.94));
    color: #fffaf0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 24px 62px rgba(6, 22, 43, 0.18);
}

.admin-shell .topbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 250, 240, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 250, 240, 0.04) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.admin-shell .topbar::after {
    content: "";
    position: absolute;
    top: -34px;
    right: 34px;
    width: min(34vw, 430px);
    height: 260px;
    background: url("/static/img/egetrack/math_compass.svg") center / contain no-repeat;
    opacity: 0.10;
    filter: grayscale(0.4) sepia(0.2);
}

.admin-shell .topbar-main {
    position: relative;
    z-index: 1;
    max-width: 980px;
}

.admin-shell .eyebrow,
.admin-shell .section-kicker,
.admin-shell .metric-label,
.admin-shell .meta-label {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    min-height: 28px;
    padding: 0 12px;
    border: 1px solid rgba(180, 116, 43, 0.38);
    border-radius: 999px;
    background: rgba(180, 116, 43, 0.14);
    color: var(--admin-copper-deep);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.admin-shell .topbar .eyebrow {
    color: #f0c17d;
    border-color: rgba(240, 193, 125, 0.42);
    background: rgba(240, 193, 125, 0.10);
}

.admin-shell .page-title {
    margin-top: 14px;
    color: #fffaf0;
    font-size: clamp(3rem, 4.8vw, 5.1rem);
    line-height: 0.93;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.20);
}

.admin-shell .page-subtitle {
    max-width: 940px;
    color: rgba(255, 250, 240, 0.76);
    font-size: 1.05rem;
    font-weight: 500;
}

.admin-shell .surface-card,
.admin-shell .metric-card,
.admin-shell .message,
.admin-shell .formset-card,
.admin-shell .catalog-card,
.admin-shell .task-feed-card,
.admin-shell .auth-card {
    border: 1px solid var(--admin-line);
    background:
        linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(246, 239, 228, 0.90));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.74),
        0 20px 54px rgba(12, 18, 29, 0.08);
}

.admin-shell .surface-card {
    padding: 25px;
    border-radius: 28px;
}

.admin-shell .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.admin-shell .metric-card {
    min-height: 154px;
    padding: 22px;
    border-radius: 26px;
}

.admin-shell .metric-label {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--admin-copper-deep);
}

.admin-shell .metric-value {
    margin-top: 16px;
    font-size: clamp(2.5rem, 4vw, 4.1rem);
}

.admin-shell .metric-hint,
.admin-shell .section-subtitle,
.admin-shell .muted,
.admin-shell .surface-card p {
    color: var(--admin-muted);
}

.admin-shell .section-title {
    font-size: clamp(1.85rem, 2.5vw, 2.8rem);
    line-height: 1.04;
}

.admin-shell .dual-grid,
.admin-shell .content-grid {
    gap: 20px;
}

.admin-shell .list-row,
.admin-shell .status-row,
.admin-shell .info-tile,
.admin-shell .empty-state,
.admin-shell .catalog-link,
.admin-shell .task-feed-details,
.admin-shell .math-box {
    border: 1px solid rgba(113, 91, 62, 0.25);
    background: rgba(255, 250, 240, 0.70);
}

.admin-shell .list-row,
.admin-shell .status-row {
    border-radius: 18px;
}

.admin-shell .list-row {
    align-items: center;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.admin-shell .list-row:hover {
    border-color: rgba(180, 116, 43, 0.36);
    box-shadow: 0 14px 34px rgba(12, 18, 29, 0.07);
    transform: translateY(-1px);
}

.admin-shell .status-row {
    position: relative;
    padding-left: 40px;
}

.admin-shell .status-row::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 23px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--admin-copper);
    box-shadow: 0 0 0 5px rgba(180, 116, 43, 0.12);
}

.admin-shell .button,
.admin-shell .ghost-button {
    min-height: 44px;
    border-radius: 14px;
    font-weight: 760;
}

.admin-shell .button {
    border-color: rgba(6, 22, 43, 0.18);
    background: linear-gradient(135deg, var(--admin-navy), var(--admin-navy-soft));
    color: #fffaf0;
    box-shadow: 0 14px 28px rgba(6, 22, 43, 0.17);
}

.admin-shell .ghost-button {
    border-color: rgba(113, 91, 62, 0.34);
    background: rgba(255, 250, 240, 0.62);
    color: var(--admin-navy);
}

.admin-shell .ghost-button:hover {
    border-color: rgba(180, 116, 43, 0.48);
    background: rgba(255, 246, 230, 0.92);
    color: var(--admin-copper-deep);
}

.admin-shell .badge,
.admin-shell .chip,
.admin-shell .status-chip,
.admin-shell .status-pill {
    border: 1px solid rgba(113, 91, 62, 0.26);
    background: rgba(255, 250, 240, 0.76);
    color: #475569;
    font-weight: 750;
}

.admin-shell .badge.success,
.admin-shell .is-success,
.admin-shell .status-chip.is-success {
    border-color: rgba(78, 114, 85, 0.30);
    background: var(--admin-success-soft);
    color: var(--admin-success);
}

.admin-shell .badge.warning,
.admin-shell .is-warning,
.admin-shell .status-chip.is-warning {
    border-color: rgba(180, 116, 43, 0.34);
    background: var(--admin-copper-soft);
    color: var(--admin-copper-deep);
}

.admin-shell .badge.danger,
.admin-shell .is-danger,
.admin-shell .status-chip.is-danger {
    border-color: rgba(179, 58, 47, 0.30);
    background: var(--admin-danger-soft);
    color: var(--admin-danger);
}

.admin-shell .form-row input,
.admin-shell .form-row select,
.admin-shell .form-row textarea,
.admin-shell .plain-input,
.admin-shell .checkbox-field,
.admin-shell .checkbox-list label,
.admin-shell .task-export-checkbox {
    border-color: rgba(113, 91, 62, 0.32);
    background: rgba(255, 250, 240, 0.78);
    color: var(--admin-ink);
}

.admin-shell .form-row input:focus,
.admin-shell .form-row select:focus,
.admin-shell .form-row textarea:focus,
.admin-shell .plain-input:focus {
    outline: 0;
    border-color: rgba(180, 116, 43, 0.66);
    box-shadow: 0 0 0 4px rgba(180, 116, 43, 0.13);
}

.admin-shell .form-row label,
.admin-shell .checkbox-row,
.admin-shell .checkbox-field {
    color: var(--admin-navy);
}

.admin-shell .catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.admin-shell .catalog-column {
    display: grid;
    gap: 12px;
}

.admin-shell .catalog-card {
    border-radius: 22px;
    overflow: hidden;
}

.admin-shell .catalog-summary {
    min-height: 60px;
    padding: 0 18px;
    color: var(--admin-navy);
    font-weight: 820;
}

.admin-shell .catalog-links {
    border-top: 1px solid rgba(113, 91, 62, 0.22);
    padding: 12px;
    background: rgba(255, 250, 240, 0.50);
}

.admin-shell .catalog-link-accent {
    border-color: rgba(180, 116, 43, 0.42);
    background: rgba(180, 116, 43, 0.12);
    color: var(--admin-copper-deep);
}

.admin-shell .task-feed {
    display: grid;
    gap: 18px;
}

.admin-shell .task-feed-card {
    border-radius: 27px;
}

.admin-shell .task-feed-meta {
    border-bottom: 1px solid rgba(113, 91, 62, 0.22);
    padding-bottom: 14px;
}

.admin-shell table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.admin-shell th {
    color: var(--admin-copper-deep);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-align: left;
    text-transform: uppercase;
}

.admin-shell td {
    border-top: 1px solid rgba(113, 91, 62, 0.23);
    border-bottom: 1px solid rgba(113, 91, 62, 0.23);
    background: rgba(255, 250, 240, 0.74);
    padding: 14px;
}

.admin-shell td:first-child {
    border-left: 1px solid rgba(113, 91, 62, 0.23);
    border-radius: 17px 0 0 17px;
}

.admin-shell td:last-child {
    border-right: 1px solid rgba(113, 91, 62, 0.23);
    border-radius: 0 17px 17px 0;
}

.admin-shell .progress-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 8px;
    color: #514838;
    font-weight: 650;
}

.admin-shell .progress-header span:last-child {
    min-width: 54px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(180, 116, 43, 0.28);
    border-radius: 999px;
    background: rgba(255, 250, 240, 0.74);
    color: var(--admin-copper-deep);
    font-weight: 820;
}

.admin-shell .progress-track {
    height: 9px;
    overflow: hidden;
    border: 1px solid rgba(113, 91, 62, 0.18);
    border-radius: 999px;
    background: rgba(6, 22, 43, 0.09);
}

.admin-shell .progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--admin-copper), #936326);
}

.admin-shell .notation-diff-card pre {
    max-height: 360px;
    overflow: auto;
    border: 1px solid rgba(113, 91, 62, 0.24);
    border-radius: 16px;
    background: rgba(6, 22, 43, 0.92);
    color: #fffaf0;
    padding: 14px;
}

.admin-shell .error-box,
.admin-shell .field-error,
.admin-shell .form-errors {
    border-radius: 16px;
    color: var(--admin-danger);
    background: var(--admin-danger-soft);
}

@media (max-width: 1180px) {
    .admin-shell .app-shell {
        width: min(100% - 24px, 1180px);
    }

    .admin-shell .sidebar {
        grid-template-columns: 1fr auto;
        align-items: start;
    }

    .admin-shell .admin-brand {
        grid-column: 1;
    }

    .admin-shell .sidebar-logout {
        grid-column: 2;
        grid-row: 1;
    }

    .admin-shell .admin-menu {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-top: 8px;
    }

    .admin-shell .stats-grid,
    .admin-shell .dual-grid,
    .admin-shell .content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .admin-shell .app-shell {
        width: min(100% - 18px, 640px);
        padding: 10px 0 24px;
    }

    .admin-shell .sidebar {
        grid-template-columns: 1fr;
        gap: 12px;
        position: relative;
        top: auto;
        border-radius: 22px;
    }

    .admin-shell .admin-brand {
        min-width: 0;
    }

    .admin-shell .admin-menu {
        justify-content: flex-start;
        padding-bottom: 4px;
    }

    .admin-shell .sidebar-logout {
        justify-self: stretch;
    }

    .admin-shell .sidebar-logout .ghost-button {
        width: 100%;
    }

    .admin-shell .topbar,
    .admin-shell .surface-card {
        border-radius: 24px;
    }

    .admin-shell .topbar {
        min-height: auto;
        padding: 26px 22px;
    }

    .admin-shell .topbar::after {
        display: none;
    }

    .admin-shell .page-title {
        font-size: clamp(2.4rem, 14vw, 3.9rem);
    }

    .admin-shell .stats-grid,
    .admin-shell .dual-grid,
    .admin-shell .content-grid,
    .admin-shell .catalog-grid,
    .admin-shell .inline-form-grid,
    .admin-shell .formset-grid {
        grid-template-columns: 1fr;
    }

    .admin-shell .list-row {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-shell .split-actions .button,
    .admin-shell .split-actions .ghost-button,
    .admin-shell .button,
    .admin-shell .ghost-button {
        width: 100%;
    }
}

/* Teacher navigation belongs to the top: logo, screen switcher, account action. */
.teacher-shell .app-shell {
    width: 100%;
    max-width: 1840px;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 14px 24px 34px;
}

.teacher-shell .sidebar {
    position: relative;
    top: auto;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    min-height: 66px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 8px 14px;
    border-radius: 22px;
    background: #fffaf0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 18px 42px rgba(35, 26, 15, 0.13);
}

.teacher-shell .teacher-brand {
    grid-template-columns: 44px minmax(0, auto);
    gap: 10px;
    min-width: 196px;
    padding: 0;
    border-bottom: 0;
}

.teacher-shell .teacher-brand .egetrack-mark {
    width: 44px;
    height: 44px;
}

.teacher-shell .teacher-brand .brand-title {
    font-size: 1.32rem;
}

.teacher-shell .teacher-brand .brand-tagline {
    font-size: 0.58rem;
    letter-spacing: 0.13em;
}

.teacher-shell .teacher-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    margin: 0;
    overflow: visible;
}

.teacher-shell .teacher-menu .menu-link {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 10px 0 26px;
    font-size: 0.84rem;
    white-space: nowrap;
}

.teacher-shell .teacher-menu .menu-group {
    position: relative;
    flex: 0 0 auto;
}

.teacher-shell .teacher-menu .menu-summary {
    cursor: pointer;
    list-style: none;
}

.teacher-shell .teacher-menu .menu-summary::-webkit-details-marker {
    display: none;
}

.teacher-shell .teacher-menu .menu-summary::marker {
    content: "";
}

.teacher-shell .teacher-menu .menu-dropdown {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    left: 0;
    display: grid;
    min-width: 238px;
    padding: 8px;
    border: 1px solid rgba(201, 144, 46, 0.26);
    border-radius: 16px;
    background: rgba(255, 252, 246, 0.98);
    box-shadow: 0 18px 44px rgba(47, 35, 22, 0.14);
}

.teacher-shell .teacher-menu .menu-dropdown a {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 11px;
    color: var(--teacher-navy);
    font-size: 0.88rem;
    font-weight: 700;
}

.teacher-shell .teacher-menu .menu-dropdown a:hover {
    background: rgba(201, 144, 46, 0.10);
    color: var(--teacher-gold-deep);
}

.teacher-shell .sidebar-logout {
    margin: 0;
    justify-self: end;
}

.teacher-shell .sidebar-logout .ghost-button {
    width: auto;
    min-width: 72px;
    min-height: 38px;
    padding-inline: 12px;
    border-radius: 14px;
    font-size: 0.84rem;
}

.teacher-shell .sidebar-profile-link {
    width: auto;
    min-width: 92px;
    min-height: 42px;
    margin: 0;
    padding-inline: 18px;
    border-radius: 14px;
    color: var(--teacher-navy);
    font-size: 0.92rem;
    font-weight: 850;
}

@media (max-width: 1420px) {
    .teacher-shell .app-shell {
        width: 100%;
        padding-inline: 16px;
    }

    .teacher-shell .sidebar {
        grid-template-columns: 1fr auto;
        align-items: start;
        order: 1;
    }

    .teacher-shell .workspace {
        order: 2;
    }

    .teacher-shell .teacher-brand {
        grid-column: 1;
    }

    .teacher-shell .sidebar-logout {
        grid-column: 2;
        grid-row: 1;
    }

    .teacher-shell .teacher-menu {
        grid-column: 1 / -1;
        justify-content: flex-start;
        flex-wrap: wrap;
        overflow: visible;
        padding-top: 8px;
    }
}

@media (max-width: 760px) {
    .teacher-shell .app-shell {
        width: 100%;
        padding-inline: 10px;
    }

    .teacher-shell .sidebar {
        grid-template-columns: 1fr;
        gap: 12px;
        position: relative;
        top: auto;
    }

    .teacher-shell .teacher-brand {
        min-width: 0;
    }

    .teacher-shell .teacher-menu {
        display: flex;
        gap: 7px;
        padding-bottom: 4px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .teacher-shell .teacher-menu .menu-dropdown {
        position: fixed;
        top: 76px;
        left: 12px;
        right: 12px;
        min-width: 0;
    }

    .teacher-shell .sidebar-logout {
        justify-self: stretch;
    }

    .teacher-shell .sidebar-logout .ghost-button {
        width: 100%;
    }
}

/* Keep screens action-first: remove static explanatory grey copy. */
.page-subtitle,
.section-subtitle,
.student-shell .hero-text,
.student-shell .panel-text,
.student-shell .next-action-card > p,
.student-shell .route-focus-card > p,
.student-shell .card-text,
.student-shell .theory-snippet,
.student-shell .source-scope-row > .muted,
.section-head .section-subtitle,
.student-toolbar .section-subtitle,
.surface-card > .section-subtitle,
.surface-card .list-row .section-subtitle,
.assignment-lock-banner .section-subtitle,
.assignment-submit-review .section-subtitle,
.note-card > p,
.empty-state > .muted {
    display: none !important;
}

.mock-builder-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
}

.mock-builder-column,
.mock-source-block {
    display: grid;
    gap: 12px;
}

.mock-choice-list {
    display: grid;
    gap: 10px;
}

.mock-choice-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--ink);
    font-weight: 700;
}

@media (max-width: 860px) {
    .mock-builder-grid {
        grid-template-columns: 1fr;
    }
}

.note-card {
    min-height: auto;
}

.student-shell .nav {
    gap: clamp(5px, 0.55vw, 9px);
}

.student-shell .nav-link {
    min-height: 38px;
    padding-inline: clamp(7px, 0.62vw, 11px);
    font-size: clamp(0.72rem, 0.72vw, 0.82rem);
}

:is(.student-shell, .teacher-shell, .admin-shell) :is(
    .assignment-task-condition,
    .task-condition,
    .task-feed-content,
    .js-rich-math
),
:is(.student-shell, .teacher-shell, .admin-shell) :is(
    .assignment-task-condition,
    .task-condition,
    .task-feed-content,
    .js-rich-math
) :is(p, li, span) {
    color: #111111;
}

.error-shell {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(255, 250, 243, 0.92), rgba(246, 241, 232, 0.94)),
        var(--bg);
}

.error-page {
    min-height: 100vh;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    place-items: center;
    padding: 36px 0;
}

.error-card {
    width: 100%;
    min-height: 420px;
    padding: clamp(32px, 6vw, 72px);
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.error-card::after {
    content: "";
    position: absolute;
    inset: 28px 28px auto auto;
    width: min(32vw, 260px);
    aspect-ratio: 1;
    border: 1px solid rgba(122, 84, 49, 0.18);
    border-radius: 50%;
    opacity: 0.55;
}

.error-mark {
    width: fit-content;
    min-width: 82px;
    min-height: 48px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 20px;
    padding: 0 18px;
    border: 1px solid #d5b26a;
    border-radius: 999px;
    color: var(--accent);
    background: #fff8e8;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.error-card h1 {
    max-width: 760px;
    margin: 12px 0 0;
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 6.8rem);
    line-height: 0.95;
    color: #071b35;
}

.error-card p {
    max-width: 620px;
    margin: 24px 0 0;
    color: #27384f;
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    line-height: 1.55;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

@media (max-width: 680px) {
    .error-card {
        min-height: auto;
        padding: 28px;
    }

    .error-card::after {
        display: none;
    }

    .error-actions {
        display: grid;
    }
}

.profile-account-link,
.sidebar-profile-link {
    text-decoration: none;
}

.profile-account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-top: 10px;
    padding: 8px 14px;
    border: 1px solid rgba(202, 150, 64, 0.32);
    border-radius: 999px;
    color: #071b35;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.58);
}

.profile-account-link:hover,
.profile-account-link.is-active {
    border-color: rgba(202, 150, 64, 0.68);
    color: #9a6417;
    background: rgba(247, 226, 185, 0.58);
}

.sidebar-profile-link {
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
}

.teacher-shell .sidebar-profile-link {
    width: auto;
    min-width: 92px;
    min-height: 42px;
    margin: 0;
    padding-inline: 18px;
    border-radius: 14px;
    color: var(--teacher-navy);
    font-size: 0.92rem;
    font-weight: 850;
}

.account-profile-layout {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.account-identity-card {
    position: sticky;
    top: 18px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(247, 226, 185, 0.34)),
        radial-gradient(circle at 82% 18%, rgba(4, 31, 59, 0.12), transparent 32%);
}

.account-identity-name {
    margin-top: 10px;
    margin-bottom: 0;
    color: #071b35;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5.8vw, 5.2rem);
    font-weight: 500;
    line-height: 0.94;
    overflow-wrap: anywhere;
}

.account-settings-stack {
    display: grid;
    gap: 18px;
}

.account-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.account-facts span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(202, 150, 64, 0.28);
    border-radius: 999px;
    color: #071b35;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.66);
}

.account-form-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: clamp(24px, 3vw, 34px);
}

.account-card-title {
    margin: 0;
    color: #071b35;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.1vw, 3.3rem);
    font-weight: 500;
    line-height: 1;
}

.account-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.account-form .form-field {
    display: grid;
    gap: 7px;
}

.account-form .form-field:only-of-type,
.account-form .form-field:nth-last-child(2):first-child {
    grid-column: 1 / -1;
}

.account-form label {
    color: #071b35;
    font-weight: 800;
}

.account-form input {
    width: 100%;
}

.account-form .button {
    justify-self: start;
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    .account-profile-layout {
        grid-template-columns: 1fr;
    }

    .account-identity-card {
        position: static;
        min-height: 170px;
    }

    .account-form {
        grid-template-columns: 1fr;
    }
}

/* Final student Today reference layout. Keep this at the end so older student shell rules do not win. */
body.student-today-page {
    overflow-x: hidden;
    background:
        radial-gradient(circle at 72% 16%, rgba(212, 168, 92, 0.16), transparent 28%),
        linear-gradient(180deg, #fffdf8 0%, #fbf3e6 100%);
}

.student-shell.student-today-page .app-shell,
.student-shell.student-today-page .workspace,
.student-shell.student-today-page .content-stack {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.student-shell.student-today-page .sidebar,
.student-shell.student-today-page .mobile-switcher,
.student-shell.student-today-page .topbar {
    display: none;
}

.student-shell.student-today-page .today-reference {
    display: block;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

.student-shell.student-today-page .today-site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 28px;
    width: 100%;
    min-height: 90px;
    padding: 14px clamp(28px, 3vw, 48px);
    border-bottom: 1px solid rgba(222, 211, 194, 0.9);
    background: rgba(255, 252, 247, 0.97);
    box-sizing: border-box;
}

.student-shell.student-today-page .today-site-brand {
    flex: 0 0 300px;
    min-width: 0;
}

.student-shell.student-today-page .today-site-brand .egetrack-mark {
    width: 56px;
    height: 56px;
}

.student-shell.student-today-page .today-site-nav {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
}

.student-shell.student-today-page .today-site-nav a {
    flex: 0 1 auto;
    min-width: 0;
    padding-inline: clamp(12px, 1.2vw, 18px);
    font-size: 0.98rem;
}

.student-shell.student-today-page .today-nav-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border: 2px solid #0a3159;
    border-radius: 6px;
    box-sizing: border-box;
}

.student-shell.student-today-page .today-nav-icon::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #d5972e;
}

.student-shell.student-today-page .today-nav-icon.is-today {
    border-radius: 999px;
}

.student-shell.student-today-page .today-nav-icon.is-lessons::after {
    width: 10px;
    height: 2px;
    box-shadow: 0 -5px 0 #d5972e, 0 5px 0 #d5972e;
}

.student-shell.student-today-page .today-nav-icon.is-homework::after {
    width: 11px;
    height: 11px;
    border-radius: 2px;
}

.student-shell.student-today-page .today-nav-icon.is-bank::after {
    width: 3px;
    height: 12px;
    border-radius: 999px;
    box-shadow: -5px 0 0 #d5972e, 5px 0 0 #d5972e;
}

.student-shell.student-today-page .today-nav-icon.is-stats::after {
    width: 12px;
    height: 9px;
    border-radius: 0;
    background: linear-gradient(90deg, #d5972e 0 25%, transparent 25% 37%, #0a3159 37% 62%, transparent 62% 74%, #d5972e 74%);
}

.student-shell.student-today-page .today-site-profile {
    flex: 0 0 170px;
}

.student-shell.student-today-page .today-site-profile button {
    width: auto;
    min-width: 62px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 0.82rem;
}

.student-shell.student-today-page .today-reference-inner {
    width: min(calc(100% - 84px), 1540px);
    margin: 0 auto;
    padding: 24px 0 28px;
}

.student-shell.student-today-page .today-reference-hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
    margin-bottom: 18px;
}

.student-shell.student-today-page .today-reference-hero h1 {
    font-size: clamp(2.15rem, 2.9vw, 3.2rem);
    line-height: 1.08;
}

.student-shell.student-today-page .today-reference-hero p {
    margin-top: 8px;
    font-size: 0.98rem;
}

.student-shell.student-today-page .today-reference-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.student-shell.student-today-page .today-reference-card,
.student-shell.student-today-page .today-practice-card {
    min-width: 0;
    min-height: 0;
    border-radius: 18px;
    box-sizing: border-box;
}

.student-shell.student-today-page .today-practice-card {
    grid-column: 1 / span 4;
    min-height: 270px;
    grid-template-columns: minmax(0, 1fr) 142px;
    padding: 24px 28px;
}

.student-shell.student-today-page .today-practice-head h2 {
    max-width: 340px;
    font-size: clamp(1.45rem, 1.55vw, 1.86rem);
    line-height: 1.08;
}

.student-shell.student-today-page .today-practice-card p {
    max-width: 360px;
    font-size: 0.94rem;
    line-height: 1.48;
}

.student-shell.student-today-page .today-reference-card {
    padding: 24px 26px;
}

.student-shell.student-today-page .today-reference-card h2 {
    font-size: clamp(1.35rem, 1.45vw, 1.72rem);
}

.student-shell.student-today-page .today-reference-card h3 {
    font-size: clamp(1.03rem, 1.12vw, 1.25rem);
}

.student-shell.student-today-page .today-inner-card {
    min-height: 126px;
    align-content: center;
}

.student-shell.student-today-page .today-progress-layout {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 18px;
}

.student-shell.student-today-page .today-ring {
    width: 118px;
}

.student-shell.student-today-page .today-lesson-card {
    grid-column: 5 / span 4;
}

.student-shell.student-today-page .today-homework-card {
    grid-column: 9 / span 4;
}

.student-shell.student-today-page .today-progress-card {
    grid-column: 1 / span 6;
}

.student-shell.student-today-page .today-focus-card {
    grid-column: 7 / span 3;
}

.student-shell.student-today-page .today-plan-card {
    grid-column: 10 / span 3;
}

.student-shell.student-today-page .today-activity-card {
    grid-column: 1 / span 6;
}

.student-shell.student-today-page .today-theory-card {
    grid-column: 7 / span 6;
}

.student-shell.student-today-page .today-theory-card.is-wide {
    grid-column: 1 / -1;
}

.student-shell.student-today-page .today-reference-footer {
    margin-top: 24px;
}

@media (max-width: 1280px) {
    .student-shell.student-today-page .today-site-header {
        flex-wrap: wrap;
    }

    .student-shell.student-today-page .today-site-brand {
        flex-basis: 260px;
    }

    .student-shell.student-today-page .today-site-nav {
        order: 3;
        flex-basis: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .student-shell.student-today-page .today-site-profile {
        margin-left: auto;
    }

    .student-shell.student-today-page .today-reference-hero {
        grid-template-columns: 1fr;
    }

    .student-shell.student-today-page .today-practice-card,
    .student-shell.student-today-page .today-lesson-card,
    .student-shell.student-today-page .today-homework-card,
    .student-shell.student-today-page .today-progress-card,
    .student-shell.student-today-page .today-focus-card,
    .student-shell.student-today-page .today-plan-card,
    .student-shell.student-today-page .today-activity-card,
    .student-shell.student-today-page .today-theory-card {
        grid-column: span 6;
    }

    .student-shell.student-today-page .today-theory-card.is-wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .student-shell.student-today-page .today-site-header {
        position: static;
        gap: 14px;
        padding: 14px;
    }

    .student-shell.student-today-page .today-site-brand,
    .student-shell.student-today-page .today-site-profile,
    .student-shell.student-today-page .today-site-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        flex-basis: 100%;
        overflow: visible;
    }

    .student-shell.student-today-page .today-site-nav a {
        justify-content: flex-start;
        width: 100%;
        padding-inline: 10px;
        font-size: 0.88rem;
    }

    .student-shell.student-today-page .today-reference-hero {
        grid-template-columns: 1fr;
    }

    .student-shell.student-today-page .today-reference-hero h1 {
        font-size: clamp(2.1rem, 12vw, 3rem);
    }

    .student-shell.student-today-page .today-reference-hero p {
        max-width: 100%;
        font-size: 0.96rem;
    }

    .student-shell.student-today-page .today-reference-inner {
        width: min(calc(100% - 28px), 640px);
        padding-top: 18px;
    }

    .student-shell.student-today-page .today-reference-grid {
        gap: 16px;
    }

    .student-shell.student-today-page .today-practice-card,
    .student-shell.student-today-page .today-lesson-card,
    .student-shell.student-today-page .today-homework-card,
    .student-shell.student-today-page .today-progress-card,
    .student-shell.student-today-page .today-focus-card,
    .student-shell.student-today-page .today-plan-card,
    .student-shell.student-today-page .today-activity-card,
    .student-shell.student-today-page .today-theory-card {
        grid-column: 1 / -1;
    }
}

/* Teacher command center and compact analytics. */
.teacher-shell .teacher-command-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.75fr);
    gap: 20px;
    align-items: start;
}

.teacher-shell .teacher-section-heading,
.teacher-shell .teacher-analytics-toolbar,
.teacher-shell .teacher-analytics-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.teacher-shell .teacher-section-heading .section-title {
    margin-bottom: 0;
}

.teacher-shell .teacher-attention-list {
    margin-top: 18px;
}

.teacher-shell .teacher-attention-row {
    position: relative;
    padding-left: 22px;
}

.teacher-shell .teacher-attention-row::before {
    content: "";
    position: absolute;
    inset: 18px auto 18px 8px;
    width: 3px;
    border-radius: 3px;
    background: var(--teacher-warning);
}

.teacher-shell .teacher-attention-row.is-danger::before {
    background: var(--teacher-danger);
}

.teacher-shell .teacher-attention-row.is-neutral::before {
    background: var(--teacher-muted);
}

.teacher-shell .teacher-attention-row p {
    margin: 6px 0 3px;
    color: var(--teacher-navy);
    font-weight: 750;
}

.teacher-shell .teacher-attention-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.teacher-shell .teacher-work-queue {
    display: grid;
    gap: 12px;
}

.teacher-shell .teacher-work-queue .section-title,
.teacher-shell .teacher-work-queue p {
    margin: 0;
}

.teacher-shell .teacher-work-count {
    color: var(--teacher-navy);
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 4rem;
    font-weight: 600;
    line-height: 1;
}

.teacher-shell .teacher-analytics-toolbar {
    padding: 0 2px;
}

.teacher-shell .teacher-period-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.teacher-shell .teacher-analytics-filter {
    padding: 14px 18px;
    border: 1px solid var(--teacher-line);
    border-radius: 8px;
    background: var(--teacher-gold-soft);
}

.teacher-shell .teacher-analytics-filter > div {
    display: grid;
    gap: 3px;
}

.teacher-shell .teacher-analytics-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.8fr) repeat(5, minmax(74px, 0.7fr)) minmax(96px, auto);
    gap: 14px;
    align-items: center;
    min-width: 0;
    padding: 14px 0;
    border-top: 1px solid var(--teacher-line);
}

.teacher-shell .teacher-analytics-row-head {
    padding: 0 0 10px;
    border-top: 0;
    color: var(--teacher-muted);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.teacher-shell .teacher-analytics-row.is-selected {
    background: var(--teacher-gold-soft);
    box-shadow: 12px 0 0 var(--teacher-gold-soft), -12px 0 0 var(--teacher-gold-soft);
}

.teacher-shell .teacher-analytics-student-name {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.teacher-shell .teacher-analytics-student-name strong,
.teacher-shell .teacher-analytics-student-name span {
    overflow-wrap: anywhere;
}

.teacher-shell .teacher-analytics-student-name span {
    color: var(--teacher-muted);
    font-size: 0.8rem;
}

.teacher-shell .teacher-analytics-actions {
    justify-self: end;
}

.teacher-shell .teacher-analytics-drilldown {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 20px;
    align-items: start;
}

.teacher-shell .teacher-exam-rows {
    display: grid;
    gap: 0;
}

.teacher-shell .teacher-exam-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.5fr) repeat(3, minmax(72px, 0.6fr)) auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 13px 0;
    border-top: 1px solid var(--teacher-line);
}

.teacher-shell .teacher-exam-row > div {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.teacher-shell .teacher-exam-row > div > span {
    color: var(--teacher-muted);
    font-size: 0.76rem;
}

.teacher-shell .teacher-exam-row > div:first-child span {
    overflow-wrap: anywhere;
}

.teacher-shell .teacher-topic-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--teacher-line);
}

.teacher-shell .teacher-topic-row strong {
    overflow-wrap: anywhere;
}

.student-shell .student-auto-correction {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(71, 122, 90, 0.28);
    border-radius: 8px;
    background: rgba(236, 246, 239, 0.9);
    color: #244b35;
}

.student-shell .student-auto-correction p {
    margin: 0;
}

@media (max-width: 1080px) {
    .teacher-shell .teacher-command-grid,
    .teacher-shell .teacher-analytics-drilldown {
        grid-template-columns: 1fr;
    }

    .teacher-shell .teacher-analytics-row-head {
        display: none;
    }

    .teacher-shell .teacher-analytics-row {
        grid-template-columns: minmax(170px, 1fr) repeat(3, minmax(80px, auto));
    }

    .teacher-shell .teacher-analytics-row > div[data-label]::before {
        content: attr(data-label);
        display: block;
        color: var(--teacher-muted);
        font-size: 0.7rem;
        font-weight: 750;
    }
}

@media (max-width: 760px) {
    .teacher-shell .teacher-section-heading,
    .teacher-shell .teacher-analytics-toolbar,
    .teacher-shell .teacher-analytics-filter,
    .teacher-shell .teacher-attention-row,
    .teacher-shell .teacher-topic-row {
        align-items: stretch;
        flex-direction: column;
    }

    .teacher-shell .teacher-analytics-row,
    .teacher-shell .teacher-exam-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .teacher-shell .teacher-analytics-student-name,
    .teacher-shell .teacher-analytics-actions,
    .teacher-shell .teacher-exam-row > div:first-child {
        grid-column: 1 / -1;
    }

    .teacher-shell .teacher-analytics-actions {
        justify-self: stretch;
    }
}

/* Final visual polish for the Today cards. */
.student-shell.student-today-page .today-reference-card {
    border-color: rgba(224, 211, 190, 0.92);
    background:
        radial-gradient(circle at 100% 0%, rgba(212, 168, 92, 0.08), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 242, 0.9));
    box-shadow:
        0 18px 44px rgba(15, 24, 40, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.student-shell.student-today-page .today-practice-card {
    border: 0;
    background:
        radial-gradient(circle at 77% 52%, rgba(214, 172, 95, 0.22), transparent 20%),
        radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.12), transparent 18%),
        linear-gradient(135deg, #06192f 0%, #08294e 54%, #0b365f 100%);
    box-shadow:
        0 28px 60px rgba(6, 25, 47, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    isolation: isolate;
}

.student-shell.student-today-page .today-practice-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.24;
    background:
        linear-gradient(90deg, transparent 0 49%, rgba(255, 255, 255, 0.16) 49% 50%, transparent 50%),
        linear-gradient(0deg, transparent 0 49%, rgba(255, 255, 255, 0.1) 49% 50%, transparent 50%);
    background-size: 78px 78px;
    mask-image: radial-gradient(circle at 72% 50%, #000 0 42%, transparent 68%);
}

.student-shell.student-today-page .today-practice-card::after {
    width: 204px;
    inset: auto 26px 34px auto;
    opacity: 0.82;
    border-color: rgba(221, 180, 108, 0.26);
    box-shadow:
        0 0 0 38px rgba(221, 180, 108, 0.075),
        0 0 0 82px rgba(221, 180, 108, 0.04);
}

.student-shell.student-today-page .today-orbit-mark span {
    inset: 80px 78px auto auto;
    width: 98px;
    height: 64px;
    background:
        linear-gradient(135deg, #ffffff 0%, #eef3f6 52%, #cdd9e2 100%);
    filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.2));
}

.student-shell.student-today-page .today-practice-head span,
.student-shell.student-today-page .today-practice-tags span,
.student-shell.student-today-page .today-practice-fact {
    min-height: 34px;
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.student-shell.student-today-page .today-practice-fact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff7ea;
}

.student-shell.student-today-page .today-practice-fact::before {
    content: "";
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border: 2px solid rgba(255, 247, 234, 0.86);
    box-sizing: border-box;
}

.student-shell.student-today-page .today-practice-fact.is-tasks::before {
    border-radius: 4px;
    background:
        linear-gradient(90deg, transparent 0 42%, rgba(255, 247, 234, 0.86) 42% 58%, transparent 58%),
        linear-gradient(0deg, transparent 0 42%, rgba(255, 247, 234, 0.86) 42% 58%, transparent 58%);
}

.student-shell.student-today-page .today-practice-fact.is-time::before {
    border-radius: 999px;
    background:
        linear-gradient(90deg, transparent 0 48%, rgba(255, 247, 234, 0.86) 48% 58%, transparent 58%),
        linear-gradient(180deg, transparent 0 18%, rgba(255, 247, 234, 0.86) 18% 56%, transparent 56%);
}

.student-shell.student-today-page .today-cream-button {
    min-height: 46px;
    border-color: rgba(255, 239, 211, 0.96);
    background: linear-gradient(180deg, #fff8e9, #ffe7bd);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.14);
}

.student-shell.student-today-page .today-outline-button,
.student-shell.student-today-page .today-soft-button {
    min-height: 42px;
    border-color: rgba(213, 189, 151, 0.92);
    background: linear-gradient(180deg, #fffdf8, #fff5e6);
}

.student-shell.student-today-page .today-title-with-icon,
.student-shell.student-today-page .today-icon-title {
    display: flex;
    gap: 12px;
    align-items: center;
}

.student-shell.student-today-page .today-card-title-row {
    gap: 12px;
}

.student-shell.student-today-page .today-card-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(222, 202, 170, 0.92);
    border-radius: 14px;
    background:
        radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.95), transparent 28%),
        linear-gradient(145deg, #fff8eb, #f7ead6);
    color: #b47621;
    box-shadow: 0 10px 22px rgba(139, 91, 27, 0.09);
}

.student-shell.student-today-page .today-card-icon::before,
.student-shell.student-today-page .today-card-icon::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
}

.student-shell.student-today-page .today-card-icon.is-calendar::before {
    width: 20px;
    height: 20px;
    border: 2px solid #12345a;
    border-radius: 5px;
}

.student-shell.student-today-page .today-card-icon.is-calendar::after {
    width: 14px;
    height: 2px;
    top: 17px;
    background: #d5972e;
    box-shadow: 0 7px 0 #d5972e;
}

.student-shell.student-today-page .today-card-icon.is-homework::before {
    width: 20px;
    height: 24px;
    border: 2px solid #12345a;
    border-radius: 5px;
}

.student-shell.student-today-page .today-card-icon.is-homework::after {
    width: 10px;
    height: 2px;
    top: 18px;
    background: #d5972e;
    box-shadow: 0 6px 0 #d5972e;
}

.student-shell.student-today-page .today-card-icon.is-progress::before {
    width: 4px;
    height: 18px;
    bottom: 11px;
    border-radius: 999px;
    background: #12345a;
    box-shadow: -8px 6px 0 #d5972e, 8px -4px 0 #d5972e;
}

.student-shell.student-today-page .today-card-icon.is-focus::before {
    width: 22px;
    height: 22px;
    border: 2px solid #12345a;
    border-radius: 999px;
    box-shadow: inset 0 0 0 5px #fff8eb;
}

.student-shell.student-today-page .today-card-icon.is-focus::after {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #d5972e;
}

.student-shell.student-today-page .today-card-icon.is-plan::before {
    width: 18px;
    height: 2px;
    background: #12345a;
    box-shadow: 0 -7px 0 #12345a, 0 7px 0 #12345a;
}

.student-shell.student-today-page .today-card-icon.is-plan::after {
    width: 4px;
    height: 4px;
    left: 10px;
    border-radius: 999px;
    background: #d5972e;
    box-shadow: 0 -7px 0 #d5972e, 0 7px 0 #d5972e;
}

.student-shell.student-today-page .today-card-icon.is-activity::before {
    width: 21px;
    height: 21px;
    border: 2px solid #12345a;
    border-radius: 6px;
}

.student-shell.student-today-page .today-card-icon.is-activity::after {
    width: 10px;
    height: 6px;
    border-left: 2px solid #d5972e;
    border-bottom: 2px solid #d5972e;
    transform: rotate(-45deg);
}

.student-shell.student-today-page .today-card-icon.is-theory::before {
    width: 22px;
    height: 18px;
    border: 2px solid #12345a;
    border-radius: 4px;
    transform: skewY(-3deg);
}

.student-shell.student-today-page .today-card-icon.is-theory::after {
    width: 2px;
    height: 18px;
    background: #d5972e;
}

.student-shell.student-today-page .today-inner-card {
    border-color: rgba(224, 211, 190, 0.92);
    background:
        radial-gradient(circle at 100% 0%, rgba(213, 151, 46, 0.08), transparent 34%),
        rgba(255, 255, 255, 0.64);
}

.student-shell.student-today-page .today-homework-card h3,
.student-shell.student-today-page .today-plan-card a {
    overflow-wrap: anywhere;
}

.student-shell.student-today-page .today-ring {
    box-shadow: 0 12px 26px rgba(64, 122, 80, 0.14);
}

.student-shell.student-today-page .today-chart {
    border-bottom-color: rgba(226, 211, 188, 0.95);
    background:
        linear-gradient(180deg, transparent 0 68%, rgba(234, 219, 198, 0.24) 68% 69%, transparent 69%);
}

.student-shell.student-today-page .today-chart-col span {
    box-shadow: 0 6px 14px rgba(18, 52, 90, 0.15);
}

.student-shell.student-today-page .today-progress-stats div {
    min-width: 120px;
    padding: 10px 12px;
    border: 1px solid rgba(226, 211, 188, 0.8);
    border-radius: 12px;
    background: rgba(255, 252, 247, 0.74);
}

.student-shell.student-today-page .today-reference-activity-list a,
.student-shell.student-today-page .today-reference-activity-list div,
.student-shell.student-today-page .today-plan-card li {
    padding: 8px;
    border-radius: 12px;
}

.student-shell.student-today-page .today-reference-activity-list a:hover,
.student-shell.student-today-page .today-plan-card li:hover {
    background: rgba(255, 244, 225, 0.72);
}

@media (max-width: 760px) {
    .student-shell.student-today-page .today-card-icon {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .student-shell.student-today-page .today-progress-stats {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* Final Today polish: reference-like line icons and richer cards. */
.student-shell.student-today-page .today-site-nav a {
    border-radius: 14px;
    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        transform 0.16s ease;
}

.student-shell.student-today-page .today-site-nav a:hover {
    border-color: rgba(218, 195, 160, 0.72);
    background: rgba(255, 247, 235, 0.82);
    transform: translateY(-1px);
}

.student-shell.student-today-page .today-site-nav a.is-active {
    border-color: rgba(218, 195, 160, 0.98);
    background: linear-gradient(180deg, #fff7e8, #fff0dc);
    box-shadow: 0 10px 24px rgba(122, 78, 22, 0.08);
}

.student-shell.student-today-page .today-nav-icon {
    position: relative;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #12345a;
}

.student-shell.student-today-page .today-site-nav a.is-active .today-nav-icon {
    color: #c37c18;
}

.student-shell.student-today-page .today-nav-icon::before,
.student-shell.student-today-page .today-nav-icon::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
    background: transparent;
}

.student-shell.student-today-page .today-nav-icon.is-today::before {
    inset: 5px;
    border: 2px solid currentColor;
    border-radius: 999px;
}

.student-shell.student-today-page .today-nav-icon.is-today::after {
    inset: 1px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-bottom-color: currentColor;
    border-radius: 999px;
    transform: rotate(45deg);
}

.student-shell.student-today-page .today-nav-icon.is-lessons::before {
    left: 4px;
    top: 5px;
    width: 17px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 5px;
}

.student-shell.student-today-page .today-nav-icon.is-lessons::after {
    left: 7px;
    top: 10px;
    width: 11px;
    height: 2px;
    background: #d5972e;
    box-shadow: 0 5px 0 #d5972e;
}

.student-shell.student-today-page .today-nav-icon.is-homework::before {
    left: 5px;
    top: 3px;
    width: 14px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 4px;
}

.student-shell.student-today-page .today-nav-icon.is-homework::after {
    left: 8px;
    top: 10px;
    width: 8px;
    height: 2px;
    background: #d5972e;
    box-shadow: 0 5px 0 #d5972e;
}

.student-shell.student-today-page .today-nav-icon.is-bank::before {
    left: 4px;
    top: 5px;
    width: 17px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 50% / 22%;
}

.student-shell.student-today-page .today-nav-icon.is-bank::after {
    left: 4px;
    top: 9px;
    width: 17px;
    height: 2px;
    border-top: 2px solid #d5972e;
    box-shadow: 0 5px 0 #d5972e;
}

.student-shell.student-today-page .today-nav-icon.is-stats::before {
    left: 5px;
    bottom: 4px;
    width: 3px;
    height: 8px;
    border-radius: 999px;
    background: #d5972e;
    box-shadow: 6px -5px 0 currentColor, 12px -9px 0 #d5972e;
}

.student-shell.student-today-page .today-nav-icon.is-stats::after {
    left: 3px;
    bottom: 3px;
    width: 18px;
    height: 14px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    border-radius: 0 0 0 5px;
}

.student-shell.student-today-page .today-practice-card {
    min-height: 296px;
    padding: 28px 30px;
}

.student-shell.student-today-page .today-practice-copy {
    gap: 16px;
}

.student-shell.student-today-page .today-practice-card p {
    color: rgba(255, 250, 241, 0.94);
    font-weight: 750;
}

.student-shell.student-today-page .today-practice-tags {
    margin-top: auto;
}

.student-shell.student-today-page .today-reference-card {
    border-radius: 20px;
}

.student-shell.student-today-page .today-lesson-card,
.student-shell.student-today-page .today-homework-card {
    background:
        radial-gradient(circle at 90% 8%, rgba(213, 151, 46, 0.12), transparent 28%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 239, 0.92));
}

.student-shell.student-today-page .today-homework-card .today-progress-layout {
    align-items: center;
    min-height: 176px;
}

.student-shell.student-today-page .today-homework-card h3 {
    margin-bottom: 8px;
    color: #0d2d50;
}

.student-shell.student-today-page .today-homework-card p {
    margin-bottom: 14px;
}

.student-shell.student-today-page .today-focus-card,
.student-shell.student-today-page .today-plan-card {
    background:
        radial-gradient(circle at 100% 90%, rgba(55, 119, 86, 0.09), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 243, 0.92));
}

.student-shell.student-today-page .today-focus-card ul {
    display: grid;
    gap: 10px;
    margin: 18px 0 22px;
    padding: 0;
    list-style: none;
}

.student-shell.student-today-page .today-focus-card li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid rgba(226, 211, 188, 0.82);
    border-radius: 12px;
    background: rgba(255, 252, 247, 0.72);
    font-weight: 850;
}

.student-shell.student-today-page .today-focus-card li::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 999px;
    background: #d5972e;
    box-shadow: 0 0 0 5px rgba(213, 151, 46, 0.13);
}

.student-shell.student-today-page .today-card-icon {
    border-radius: 15px;
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.95), transparent 30%),
        linear-gradient(145deg, #fff8eb, #f4e3c9);
}

.student-shell.student-today-page .today-progress-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 243, 0.9)),
        linear-gradient(90deg, rgba(213, 151, 46, 0.08), rgba(18, 52, 90, 0.07));
}

.student-shell.student-today-page .today-chart-col.is-today span {
    background: linear-gradient(180deg, #0b3765, #d79a37);
    box-shadow: 0 10px 24px rgba(11, 55, 101, 0.24);
}

@media (max-width: 760px) {
    .student-shell.student-today-page .today-site-brand,
    .student-shell.student-today-page .today-site-profile {
        display: flex;
        flex-basis: 100%;
        overflow: visible;
    }

    .student-shell.student-today-page .today-site-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        flex-basis: 100%;
        overflow: visible;
    }
}

/* SVG artwork and final reference composition for student Today. */
.student-shell.student-today-page .today-reference-card,
.student-shell.student-today-page .today-practice-card,
.student-shell.student-today-page .today-advice-card {
    position: relative;
    overflow: hidden;
}

.student-shell.student-today-page .today-advice-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 142px;
    gap: 18px;
    align-items: center;
    min-height: 142px;
    padding: 22px 24px;
    border: 1px solid rgba(224, 211, 190, 0.92);
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(213, 151, 46, 0.12), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(255, 249, 239, 0.92));
    box-shadow: 0 18px 44px rgba(15, 24, 40, 0.055);
}

.student-shell.student-today-page .today-advice-card div {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
}

.student-shell.student-today-page .today-advice-card h2 {
    margin: 0;
    color: #0d2d50;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 1.45vw, 1.72rem);
    line-height: 1.05;
}

.student-shell.student-today-page .today-advice-card p {
    max-width: 390px;
    margin: 0;
    color: #1f3248;
    font-weight: 760;
    line-height: 1.45;
}

.student-shell.student-today-page .today-advice-card img {
    width: 154px;
    max-width: 100%;
    justify-self: end;
    opacity: 0.74;
    filter: drop-shadow(0 18px 24px rgba(15, 24, 40, 0.11));
}

.student-shell.student-today-page .today-orbit-mark {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.student-shell.student-today-page .today-practice-art {
    position: absolute;
    right: -8px;
    bottom: 12px;
    width: min(56%, 250px);
    height: auto;
    opacity: 0.96;
    filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.18));
}

.student-shell.student-today-page .today-card-art {
    position: absolute;
    right: 18px;
    bottom: 12px;
    z-index: 0;
    width: 168px;
    max-width: 42%;
    opacity: 0.28;
    pointer-events: none;
    filter: drop-shadow(0 20px 24px rgba(15, 24, 40, 0.08));
}

.student-shell.student-today-page .today-card-art.is-lesson {
    right: 4px;
    bottom: -12px;
    width: 210px;
    opacity: 0.13;
}

.student-shell.student-today-page .today-card-art.is-notebook {
    right: 26px;
    bottom: 18px;
    width: 210px;
    opacity: 0.5;
}

.student-shell.student-today-page .today-card-art.is-rating {
    right: 4px;
    bottom: -8px;
    width: 196px;
    opacity: 0.42;
}

.student-shell.student-today-page .today-lesson-card > *:not(.today-card-art),
.student-shell.student-today-page .today-theory-card > *:not(.today-card-art),
.student-shell.student-today-page .today-rating-card > *:not(.today-card-art) {
    position: relative;
    z-index: 1;
}

.student-shell.student-today-page .today-homework-status {
    position: absolute;
    top: 24px;
    right: 26px;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(72, 112, 87, 0.18);
    border-radius: 999px;
    background: rgba(236, 246, 239, 0.78);
    color: #42624b;
    font-size: 0.82rem;
    font-weight: 900;
}

.student-shell.student-today-page .today-rating-card {
    grid-column: 1 / span 6;
    min-height: 250px;
    background:
        radial-gradient(circle at 90% 60%, rgba(213, 151, 46, 0.14), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 239, 0.94));
}

.student-shell.student-today-page .today-theory-card {
    grid-column: 7 / span 6;
    min-height: 250px;
}

.student-shell.student-today-page .today-theory-card.is-wide {
    grid-column: 7 / span 6;
}

.student-shell.student-today-page .today-rating-copy {
    display: grid;
    gap: 8px;
    max-width: 380px;
    margin-top: 34px;
}

.student-shell.student-today-page .today-rating-copy strong {
    color: #0d2d50;
    font-family: var(--font-display);
    font-size: 1.28rem;
    line-height: 1.12;
}

.student-shell.student-today-page .today-rating-copy span {
    color: #596a7d;
    font-weight: 760;
    line-height: 1.45;
}

.student-shell.student-today-page .today-card-icon.is-rating::before {
    width: 20px;
    height: 17px;
    border: 2px solid #12345a;
    border-top: 0;
    border-radius: 0 0 8px 8px;
}

.student-shell.student-today-page .today-card-icon.is-rating::after {
    width: 8px;
    height: 8px;
    top: 11px;
    border-radius: 999px;
    background: #d5972e;
    box-shadow: 0 12px 0 -2px #12345a;
}

@media (max-width: 1280px) {
    .student-shell.student-today-page .today-rating-card,
    .student-shell.student-today-page .today-theory-card,
    .student-shell.student-today-page .today-theory-card.is-wide {
        grid-column: span 6;
    }
}

@media (max-width: 760px) {
    .student-shell.student-today-page .today-advice-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .student-shell.student-today-page .today-advice-card img {
        width: 124px;
        justify-self: start;
        margin-top: -8px;
    }

    .student-shell.student-today-page .today-practice-art {
        right: -42px;
        bottom: 20px;
        width: 76%;
        opacity: 0.72;
    }

    .student-shell.student-today-page .today-card-art {
        right: -12px;
        bottom: -8px;
        width: 145px;
        max-width: 48%;
        opacity: 0.22;
    }

    .student-shell.student-today-page .today-card-art.is-notebook,
    .student-shell.student-today-page .today-card-art.is-rating {
        opacity: 0.26;
    }

    .student-shell.student-today-page .today-homework-status {
        position: static;
        width: fit-content;
        margin-top: 10px;
    }

    .student-shell.student-today-page .today-rating-card,
    .student-shell.student-today-page .today-theory-card,
    .student-shell.student-today-page .today-theory-card.is-wide {
        grid-column: 1 / -1;
    }
}

/* Final density pass for the student Today reference screen. */
.student-shell.student-today-page .today-reference-grid {
    align-items: start;
}

.student-shell.student-today-page .today-reference-card {
    align-content: start;
    align-items: start;
    gap: 16px;
}

.student-shell.student-today-page .today-practice-card {
    align-content: start;
    display: block;
    min-height: 292px;
}

.student-shell.student-today-page .today-practice-copy {
    align-content: start;
    max-width: 322px;
}

.student-shell.student-today-page .today-card-title-row,
.student-shell.student-today-page .today-title-with-icon,
.student-shell.student-today-page .today-icon-title {
    min-height: 0;
}

.student-shell.student-today-page .today-lesson-card,
.student-shell.student-today-page .today-homework-card {
    min-height: 292px;
}

.student-shell.student-today-page .today-lesson-card .today-inner-card {
    min-height: 132px;
}

.student-shell.student-today-page .today-homework-card .today-progress-layout {
    min-height: 0;
}

.student-shell.student-today-page .today-text-link {
    display: inline-flex;
    align-items: center;
    min-height: 0;
}

.student-shell.student-today-page .today-progress-card,
.student-shell.student-today-page .today-focus-card,
.student-shell.student-today-page .today-plan-card {
    min-height: 0;
}

.student-shell.student-today-page .today-practice-tags,
.student-shell.student-today-page .today-practice-facts {
    gap: 8px;
}

.student-shell.student-today-page .today-practice-tags {
    margin-top: 14px;
}

@media (max-width: 760px) {
    .student-shell.student-today-page .today-practice-copy {
        max-width: none;
    }
}

/* Real SVG icon set for the student Today screen. */
.student-shell.student-today-page .today-icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.student-shell.student-today-page .today-nav-icon::before,
.student-shell.student-today-page .today-nav-icon::after,
.student-shell.student-today-page .today-card-icon::before,
.student-shell.student-today-page .today-card-icon::after {
    content: none;
    display: none;
}

.student-shell.student-today-page .today-nav-icon,
.student-shell.student-today-page .today-card-icon {
    --today-icon-accent: #d5972e;
    color: #12345a;
}

.student-shell.student-today-page .today-nav-icon svg,
.student-shell.student-today-page .today-card-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.student-shell.student-today-page .today-nav-icon .today-icon-accent-stroke,
.student-shell.student-today-page .today-card-icon .today-icon-accent-stroke {
    stroke: var(--today-icon-accent);
}

.student-shell.student-today-page .today-nav-icon .today-icon-accent-fill,
.student-shell.student-today-page .today-card-icon .today-icon-accent-fill {
    fill: var(--today-icon-accent);
    stroke: none;
}

.student-shell.student-today-page .today-site-nav a {
    min-height: 44px;
    gap: 9px;
    padding-inline: 16px;
    color: #17375a;
    font-weight: 900;
}

.student-shell.student-today-page .today-site-nav a.is-active {
    color: #12345a;
}

.student-shell.student-today-page .today-site-nav a.is-active .today-nav-icon {
    color: #c27b18;
}

.student-shell.student-today-page .today-nav-icon {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
}

.student-shell.student-today-page .today-card-icon {
    width: 46px;
    height: 46px;
    padding: 10px;
    border: 1px solid rgba(219, 198, 164, 0.92);
    border-radius: 16px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.96), transparent 36%),
        linear-gradient(145deg, #fffaf0, #f7e8cf);
    box-shadow:
        0 14px 24px rgba(139, 91, 27, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.student-shell.student-today-page .today-card-icon.is-focus,
.student-shell.student-today-page .today-card-icon.is-plan {
    --today-icon-accent: #2f8b58;
}

.student-shell.student-today-page .today-card-icon.is-rating {
    --today-icon-accent: #d5972e;
}

.student-shell.student-today-page .today-card-icon.is-theory,
.student-shell.student-today-page .today-card-icon.is-calendar,
.student-shell.student-today-page .today-card-icon.is-homework {
    --today-icon-accent: #d5972e;
}

.student-shell.student-today-page .today-card-icon.is-progress {
    --today-icon-accent: #1f68a8;
}

.student-shell.student-today-page .today-title-with-icon,
.student-shell.student-today-page .today-icon-title {
    gap: 14px;
}

.student-shell.student-today-page .today-mini-pill,
.student-shell.student-today-page .today-homework-status {
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.student-shell.student-today-page .today-reference-card,
.student-shell.student-today-page .today-advice-card {
    border-color: rgba(222, 205, 178, 0.96);
    box-shadow:
        0 18px 42px rgba(16, 24, 40, 0.055),
        inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.student-shell.student-today-page .today-inner-card {
    border-radius: 17px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.student-shell.student-today-page .today-advice-card img {
    opacity: 0.82;
}

.student-shell.student-today-page .today-card-art.is-lesson {
    opacity: 0.2;
}

.student-shell.student-today-page .today-card-art.is-notebook {
    opacity: 0.58;
}

.student-shell.student-today-page .today-card-art.is-rating {
    opacity: 0.5;
}

.student-shell.student-today-page .today-progress-card {
    background:
        radial-gradient(circle at 94% 12%, rgba(31, 104, 168, 0.11), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 250, 243, 0.92));
}

.student-shell.student-today-page .today-plan-card,
.student-shell.student-today-page .today-focus-card {
    background:
        radial-gradient(circle at 98% 90%, rgba(47, 139, 88, 0.1), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.985), rgba(255, 250, 243, 0.93));
}

.student-shell.student-today-page .today-outline-button,
.student-shell.student-today-page .today-soft-button,
.student-shell.student-today-page .today-cream-button {
    border-radius: 12px;
}

.student-shell.student-today-page .today-outline-button,
.student-shell.student-today-page .today-soft-button {
    box-shadow:
        0 10px 18px rgba(139, 91, 27, 0.045),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

@media (max-width: 760px) {
    .student-shell.student-today-page .today-nav-icon {
        width: 23px;
        height: 23px;
        flex-basis: 23px;
    }

    .student-shell.student-today-page .today-card-icon {
        width: 42px;
        height: 42px;
        padding: 9px;
    }
}

/* Polished SVG illustration layer for Today cards. */
.student-shell.student-today-page .today-progress-card > *:not(.today-card-art),
.student-shell.student-today-page .today-focus-card > *:not(.today-card-art),
.student-shell.student-today-page .today-plan-card > *:not(.today-card-art),
.student-shell.student-today-page .today-lesson-card > *:not(.today-card-art),
.student-shell.student-today-page .today-theory-card > *:not(.today-card-art),
.student-shell.student-today-page .today-rating-card > *:not(.today-card-art) {
    position: relative;
    z-index: 1;
}

.student-shell.student-today-page .today-card-art.is-progress {
    right: -22px;
    bottom: -36px;
    width: 252px;
    max-width: 45%;
    opacity: 0.13;
}

.student-shell.student-today-page .today-card-art.is-target {
    right: -44px;
    bottom: -34px;
    width: 220px;
    max-width: 46%;
    opacity: 0.16;
}

.student-shell.student-today-page .today-card-art.is-plan {
    right: -8px;
    bottom: -20px;
    width: 196px;
    max-width: 43%;
    opacity: 0.17;
}

.student-shell.student-today-page .today-progress-card {
    min-height: 250px;
}

.student-shell.student-today-page .today-focus-card,
.student-shell.student-today-page .today-plan-card {
    min-height: 250px;
    padding-right: min(30px, 6vw);
}

.student-shell.student-today-page .today-theory-card .today-icon-title > div {
    display: grid;
    gap: 4px;
}

.student-shell.student-today-page .today-theory-card .today-icon-title p {
    margin: 0;
    color: #8b5f23;
    font-size: 0.84rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.student-shell.student-today-page .today-theory-card h3 {
    max-width: 380px;
}

.student-shell.student-today-page .today-theory-card p {
    max-width: 390px;
}

@media (max-width: 760px) {
    .student-shell.student-today-page .today-card-art.is-progress,
    .student-shell.student-today-page .today-card-art.is-target,
    .student-shell.student-today-page .today-card-art.is-plan {
        width: 160px;
        max-width: 50%;
        opacity: 0.12;
    }
}
