@font-face {
  font-family: 'Outfit';
  src: url('../assets/fonts/Outfit-Variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

* { user-select: none; -webkit-user-select: none; }
* { -ms-overflow-style: none; scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }

body {
  --cursor-arrow: url("../assets/cursors/light/arrow.cur"), auto;
  --cursor-hand: url("../assets/cursors/light/hand.cur"), pointer;
  --cursor-ibeam: url("../assets/cursors/light/ibeam.cur"), text;
  --cursor-crosshair: url("../assets/cursors/light/crosshair.cur"), crosshair;
  --cursor-help: url("../assets/cursors/light/help.cur"), help;
  --cursor-no: url("../assets/cursors/light/no.cur"), not-allowed;
  --cursor-wait: url("../assets/cursors/light/wait.ani"), wait;
  --cursor-appstarting: url("../assets/cursors/light/appstarting.ani"), progress;
  --cursor-sizeall: url("../assets/cursors/light/sizeall.cur"), move;
  --cursor-sizens: url("../assets/cursors/light/sizens.cur"), ns-resize;
  --cursor-sizewe: url("../assets/cursors/light/sizewe.cur"), ew-resize;
  --cursor-sizenwse: url("../assets/cursors/light/sizenwse.cur"), nwse-resize;
  --cursor-sizenesw: url("../assets/cursors/light/sizenesw.cur"), nesw-resize;
  font-family: 'Outfit', sans-serif;
  box-sizing: border-box;
}

body.app-dark {
  --cursor-arrow: url("../assets/cursors/dark/arrow.cur"), auto;
  --cursor-hand: url("../assets/cursors/dark/hand.cur"), pointer;
  --cursor-ibeam: url("../assets/cursors/dark/ibeam.cur"), text;
  --cursor-crosshair: url("../assets/cursors/dark/crosshair.cur"), crosshair;
  --cursor-help: url("../assets/cursors/dark/help.cur"), help;
  --cursor-no: url("../assets/cursors/dark/no.cur"), not-allowed;
  --cursor-wait: url("../assets/cursors/dark/wait.ani"), wait;
  --cursor-appstarting: url("../assets/cursors/dark/appstarting.ani"), progress;
  --cursor-sizeall: url("../assets/cursors/dark/sizeall.cur"), move;
  --cursor-sizens: url("../assets/cursors/dark/sizens.cur"), ns-resize;
  --cursor-sizewe: url("../assets/cursors/dark/sizewe.cur"), ew-resize;
  --cursor-sizenwse: url("../assets/cursors/dark/sizenwse.cur"), nwse-resize;
  --cursor-sizenesw: url("../assets/cursors/dark/sizenesw.cur"), nesw-resize;
}

body, body * { cursor: var(--cursor-arrow) !important; }
button, a, label[for], select, summary, [role="button"], [role="link"], [role="menuitem"],
input[type="button"], input[type="submit"], input[type="reset"] { cursor: var(--cursor-hand) !important; }
input:not([type]), input[type="text"], input[type="search"], input[type="email"], input[type="password"],
input[type="number"], input[type="url"], input[type="tel"], textarea, [contenteditable="true"] {
  cursor: var(--cursor-ibeam) !important;
}
button:disabled, input:disabled, select:disabled, textarea:disabled, [aria-disabled="true"] {
  cursor: var(--cursor-no) !important;
}
.timetable-panel.is-dragging, [data-cursor="move"] { cursor: var(--cursor-sizeall) !important; }
[data-cursor="crosshair"] { cursor: var(--cursor-crosshair) !important; }
[data-cursor="help"] { cursor: var(--cursor-help) !important; }
[data-cursor="wait"] { cursor: var(--cursor-wait) !important; }
[data-cursor="progress"] { cursor: var(--cursor-appstarting) !important; }
[data-cursor="ns-resize"] { cursor: var(--cursor-sizens) !important; }
[data-cursor="ew-resize"] { cursor: var(--cursor-sizewe) !important; }
[data-cursor="nwse-resize"] { cursor: var(--cursor-sizenwse) !important; }
[data-cursor="nesw-resize"] { cursor: var(--cursor-sizenesw) !important; }
button, button * { cursor: var(--cursor-hand) !important; }

.sidebar-btn { transition: all 0.2s; }
.sidebar-btn:hover { background: #d4d4d4; }
.logo-btn:hover { background: transparent; }
.sidebar-btn.active { background: #002147; color: white; }
.sidebar-nav-icon { width: 1.5rem; height: 1.5rem; filter: brightness(0) saturate(100%) invert(9%) sepia(92%) saturate(2100%) hue-rotate(185deg) brightness(78%) contrast(105%); }
.sidebar-btn.active .sidebar-nav-icon { filter: brightness(0) invert(1); }
body .subject-card, body .subject-card * { cursor: var(--cursor-hand) !important; }

.home-header-actions { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 0.6rem; }
.home-header-action { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid #002147; border-radius: 50%; background: #002147; color: #fff; font: inherit; font-size: 1.25rem; font-weight: 700; transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease; }
.home-header-action:hover { border-color: #123b65; background: #123b65; color: #fff; transform: translateY(-1px); }
.home-header-action:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.home-header-action i { color: #fff; }
.app-dark .home-header-action { border-color: #fff; background: #fff; color: #002147; }
.app-dark .home-header-action:hover { border-color: #e2e8f0; background: #e2e8f0; color: #002147; }
.app-dark .home-header-action i { color: #002147; }
.home-notifications { position: relative; }
.home-attention { position: relative; }
.home-notification-panel { box-sizing: border-box; position: absolute; z-index: 100; top: calc(100% + 0.75rem); right: 0; display: flex; flex-direction: column; width: 27rem; max-width: calc(100vw - 2rem); height: min(27rem, calc(100dvh - 10rem)); min-height: 0; overflow: hidden; border: 1px solid rgba(148, 163, 184, 0.3); border-radius: 1rem; background: #fff; color: #0f172a; box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22); }
.home-attention-panel { width: 24rem; height: min(23rem, calc(100dvh - 10rem)); }
.home-notification-panel[hidden] { display: none; }
.home-notification-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.9rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.3); background: #002147; }
.home-notification-header h2 { margin: 0; color: #fff; font-size: 0.95rem; font-weight: 800; }
.home-notification-header p { margin: 0.2rem 0 0; color: #cbd5e1; font-size: 0.73rem; }
.home-notification-close { flex: 0 0 auto; }
.home-notification-close,
.home-notification-close i { color: #fff !important; }
.home-notification-close:hover,
.home-notification-close:focus-visible { background-color: #e2e8f0 !important; color: #002147 !important; }
.home-notification-close:hover i,
.home-notification-close:focus-visible i { color: #002147 !important; }
.home-inbox-controls { display: flex; flex: 0 0 auto; align-items: center; gap: 0.55rem; padding: 0.7rem 0.75rem 0.15rem; }
.home-inbox-search { position: relative; display: block; flex: 1 1 auto; min-width: 0; }
.home-inbox-search i { position: absolute; top: 50%; left: 0.75rem; transform: translateY(-50%); color: #94a3b8; font-size: 0.8rem; }
.home-inbox-search input { box-sizing: border-box; width: 100%; height: 2.65rem; padding: 0.55rem 0.65rem 0.55rem 2.1rem; border: 1px solid #e2e8f0; border-radius: 0.7rem; outline: none; background: #f8fafc; color: #0f172a; font: inherit; font-size: 0.78rem; }
.home-inbox-search input:focus { border-color: #93c5fd; box-shadow: 0 0 0 3px #dbeafe; }
.home-inbox-filter span { min-width: 2.5rem; color: #334155; text-align: center; }
.home-notification-list { display: flex; flex: 1 1 auto; flex-direction: column; gap: 0.6rem; min-height: 0; overflow-y: auto; padding: 0.75rem; overscroll-behavior: contain; }
.home-notification-item { display: flex; flex: 0 0 auto; align-items: flex-start; gap: 0.7rem; min-height: 4.4rem; padding: 0.75rem; border: 1px solid #e2e8f0; border-radius: 0.75rem; background: #f8fafc; }
.home-notification-item[data-type="chat"] { border-color: #3b82f6; background: #93c5fd; }
.home-notification-item[data-type="mark"] { border-color: #d97706; background: #fcd34d; }
.home-notification-item[data-type="news"] { border-color: #ef4444; background: #fca5a5; }
.home-notification-item[data-type="chat"] .home-notification-copy strong,
.home-notification-item[data-type="chat"] .home-notification-copy p,
.home-notification-item[data-type="chat"] .home-notification-copy time,
.home-notification-item[data-type="chat"] .home-notification-meta { color: #082f62; }
.home-notification-item[data-type="mark"] .home-notification-copy strong,
.home-notification-item[data-type="mark"] .home-notification-copy p,
.home-notification-item[data-type="mark"] .home-notification-copy time,
.home-notification-item[data-type="mark"] .home-notification-meta { color: #422006; }
.home-notification-item[data-type="news"] .home-notification-copy strong,
.home-notification-item[data-type="news"] .home-notification-copy p,
.home-notification-item[data-type="news"] .home-notification-copy time,
.home-notification-item[data-type="news"] .home-notification-meta { color: #4c0519; }
.home-notification-icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 2.15rem; height: 2.15rem; border-radius: 50%; background: #002147; color: #fff; }
.home-notification-item[data-type="chat"] .home-notification-icon { background: #2563eb; color: #fff; }
.home-notification-item[data-type="mark"] .home-notification-icon { background: #a16207; color: #fff; }
.home-notification-item[data-type="news"] .home-notification-icon { background: #dc2626; color: #fff; }
.home-notification-item[data-type="chat"] .home-notification-kind { background: #2563eb; color: #fff; }
.home-notification-item[data-type="mark"] .home-notification-kind { background: #a16207; color: #fff; }
.home-notification-item[data-type="news"] .home-notification-kind { background: #dc2626; color: #fff; }
.home-attention-item { border-color: color-mix(in srgb, var(--attention-subject-color) 28%, #e2e8f0); }
.home-attention-icon { background: var(--attention-subject-color); color: #fff; }
.home-notification-copy { min-width: 0; }
.home-notification-copy { flex: 1 1 auto; }
.home-notification-copy strong { display: block; margin-bottom: 0.15rem; color: #0f172a; font-size: 0.82rem; font-weight: 800; }
.home-notification-copy p { margin: 0; color: #64748b; font-size: 0.75rem; line-height: 1.4; overflow-wrap: anywhere; }
.home-notification-copy time { display: block; margin-top: 0.35rem; color: #94a3b8; font-size: 0.68rem; }
.home-notification-meta { display: flex; align-items: center; gap: 0.4rem; margin: 0 0 0.18rem; color: #64748b; font-size: 0.66rem; font-weight: 700; }
.home-notification-kind { flex: 0 0 auto; padding: 0.2rem 0.42rem; border-radius: 999px; background: #e2e8f0; color: #334155; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.home-notification-empty { margin: auto; padding: 1.5rem; color: #64748b; font-size: 0.82rem; text-align: center; }
.app-dark .home-notification-panel { border-color: #123b65; background: #001a38; color: #e2e8f0; }
.app-dark .home-notification-header { border-color: rgba(255,255,255,0.3); background: #002147; }
.app-dark .home-notification-header h2, .app-dark .home-notification-copy strong { color: #f1f5f9; }
.app-dark .home-notification-header p, .app-dark .home-notification-meta, .app-dark .home-notification-empty { color: #a8b6c8; }
.app-dark .home-notification-close:hover,
.app-dark .home-notification-close:focus-visible { background-color: #123b65 !important; color: #fff !important; }
.app-dark .home-notification-close:hover i,
.app-dark .home-notification-close:focus-visible i { color: #fff !important; }
.app-dark .home-inbox-search input, .app-dark .home-inbox-filter { border-color: #24466b; background: #001a38; color: #e2e8f0; }
.app-dark .home-inbox-search input::placeholder { color: #8fa4bb; }
.app-dark .home-inbox-search input:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18); }
.app-dark .home-inbox-filter span { color: #e2e8f0; }
.app-dark .home-inbox-filter span { color: #e2e8f0; }
.app-dark .home-inbox-filter button { color: #a8b6c8; }
.app-dark .home-inbox-filter button:hover { background: #123b65; color: #fff; }
.app-dark .home-notification-item { border-color: #123b65; background: #002147; }
.app-dark .home-notification-item[data-type="chat"] { border-color: #3b82f6; background: #173b62; }
.app-dark .home-notification-item[data-type="mark"] { border-color: #b7791f; background: #49330e; }
.app-dark .home-notification-item[data-type="news"] { border-color: #b91c1c; background: #4b1d26; }
.app-dark .home-notification-icon { background: #fff; color: #002147; }
.app-dark .home-notification-item[data-type="chat"] .home-notification-icon { background: #2563eb; color: #fff; }
.app-dark .home-notification-item[data-type="mark"] .home-notification-icon { background: #f59e0b; color: #002147; }
.app-dark .home-notification-item[data-type="news"] .home-notification-icon { background: #dc2626; color: #fff; }
.app-dark .home-notification-item[data-type="chat"] .home-notification-kind { background: #173b62; color: #bfdbfe; }
.app-dark .home-notification-item[data-type="mark"] .home-notification-kind { background: #49330e; color: #fde68a; }
.app-dark .home-notification-item[data-type="news"] .home-notification-kind { background: #4b1d26; color: #fecaca; }
.app-dark .home-notification-item[data-type="chat"] .home-notification-copy strong,
.app-dark .home-notification-item[data-type="chat"] .home-notification-copy p,
.app-dark .home-notification-item[data-type="chat"] .home-notification-copy time,
.app-dark .home-notification-item[data-type="chat"] .home-notification-meta { color: #eff6ff; }
.app-dark .home-notification-item[data-type="mark"] .home-notification-copy strong,
.app-dark .home-notification-item[data-type="mark"] .home-notification-copy p,
.app-dark .home-notification-item[data-type="mark"] .home-notification-copy time,
.app-dark .home-notification-item[data-type="mark"] .home-notification-meta { color: #fffbeb; }
.app-dark .home-notification-item[data-type="news"] .home-notification-copy strong,
.app-dark .home-notification-item[data-type="news"] .home-notification-copy p,
.app-dark .home-notification-item[data-type="news"] .home-notification-copy time,
.app-dark .home-notification-item[data-type="news"] .home-notification-meta { color: #fff1f2; }
.app-dark .home-attention-item { border-color: color-mix(in srgb, var(--attention-subject-color) 55%, #123b65); }
.app-dark .home-attention-icon { background: var(--attention-subject-color); color: #fff; }
.app-dark .home-notification-copy p { color: #a8b6c8; }
.app-dark .home-notification-copy time { color: #8295ad; }
.app-dark .home-notification-kind { background: #123b65; color: #e2e8f0; }
@media (max-width: 480px) {
  .home-notification-panel { position: fixed; top: 5rem; right: 0.5rem; width: min(27rem, calc(100vw - 1rem)); max-width: calc(100vw - 1rem); height: min(27rem, calc(100dvh - 6rem)); }
  .home-attention-panel { width: min(24rem, calc(100vw - 1rem)); height: min(23rem, calc(100dvh - 6rem)); }
}

.home-student-id-dialog { width: min(35rem, calc(100vw - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); overflow: auto; padding: 0; border: 0; outline: none; border-radius: 1.25rem; background: #fff; color: #0f172a; box-shadow: 0 28px 80px rgba(15, 23, 42, 0.3); }
.home-student-id-dialog[open] { animation: student-id-dialog-enter 260ms cubic-bezier(0.2, 0.75, 0.25, 1) both; }
.home-student-id-dialog::backdrop { background: rgba(2, 6, 23, 0.52); backdrop-filter: blur(3px); animation: student-id-backdrop-enter 220ms ease-out both; }
@keyframes student-id-dialog-enter { from { opacity: 0; transform: translateY(0.8rem) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes student-id-backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .home-student-id-dialog[open], .home-student-id-dialog::backdrop { animation-duration: 1ms; }
}
.student-id-card { position: relative; overflow: hidden; border-radius: inherit; }
.student-id-card-header { display: flex; flex-direction: column; gap: 0.75rem; padding: 0.8rem 1.25rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.35); background: #002147; color: #fff; }
.student-id-card-topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.student-id-brand { display: flex; align-items: center; gap: 0.7rem; }
.student-id-brand-logo { display: block; width: 2.35rem; height: 2.35rem; object-fit: contain; }
.student-id-brand strong, .student-id-brand small { display: block; }
.student-id-brand strong { color: #fff; font-size: 0.95rem; font-weight: 800; letter-spacing: 0.06em; }
.student-id-brand small { margin-top: 0.08rem; color: #cbd5e1; font-size: 0.72rem; font-weight: 700; }
.student-id-close,
.student-id-close i { color: #fff !important; }
.student-id-identity { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.student-id-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 3.5rem; height: 3.5rem; overflow: hidden; border: 2px solid rgba(255,255,255,0.8); border-radius: 50%; background: #fff; color: #002147; font-size: 1rem; font-weight: 800; }
.student-id-avatar-image { width: 100%; height: 100%; object-fit: cover; }
.student-id-avatar-initials { display: grid; place-items: center; width: 100%; height: 100%; }
.student-id-profile-copy { min-width: 0; }
.student-id-kicker { color: #cbd5e1; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.14em; }
.student-id-profile-copy h2 { overflow: hidden; margin: 0.12rem 0 0; color: #fff; font-size: 1.35rem; font-weight: 800; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.student-id-number { margin: 0.25rem 0 0; color: #e2e8f0; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em; }
.student-id-card-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 0.85rem 1rem; padding: 0.9rem 1.25rem 0; background: #fff; }
.student-id-details { display: flex; flex-direction: column; justify-content: flex-start; gap: 0.65rem; min-width: 0; }
.student-id-details-heading { margin: 0 0 0.15rem; color: #002147; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; }
.student-id-detail-row { display: flex; align-items: center; gap: 0.65rem; min-width: 0; padding: 0.55rem 0.65rem; border: 1px solid rgba(255,255,255,0.35); border-radius: 0.75rem; background: #002147; color: #fff; }
.student-id-detail-icon { display: grid; flex: 0 0 auto; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #f1f5f9; color: #002147; font-size: 0.82rem; }
.student-id-detail-row > span:last-child { display: grid; gap: 0.08rem; min-width: 0; }
.student-id-detail-row small { color: #cbd5e1; font-size: 0.65rem; font-weight: 600; }
.student-id-detail-row strong { overflow: hidden; color: #fff; font-size: 0.88rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.student-id-qr-panel { display: grid; justify-items: center; align-content: start; gap: 0.8rem; width: 10.5rem; padding: 0; }
.student-id-qr { width: 8.1rem; padding: 0.45rem; border: 1px solid #64748b; border-radius: 0.75rem; background: #fff; }
.student-id-qr svg { display: block; width: 100%; height: auto; }
.student-id-qr-label { color: #002147; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-align: center; }
.student-id-qr-note { grid-column: 1 / -1; margin: 0 -1.25rem; padding: 0.65rem 1.25rem; border-top: 1px solid #e2e8f0; background: #fff; color: #002147; font-size: 0.72rem; font-weight: 700; text-align: center; }
.app-dark .home-student-id-dialog { background: #001a38; color: #e2e8f0; }
.app-dark .student-id-card-header { background: #002147; color: #fff; }
.app-dark .student-id-card-body { background: #002147; }
.app-dark .student-id-details-heading,
.app-dark .student-id-qr-label { color: #fff; }
.app-dark .student-id-qr-note { border-color: rgba(255,255,255,0.35); background: #002147; color: #fff; }
.app-dark #home-student-id-dialog .student-id-close,
.app-dark #home-student-id-dialog .student-id-close i { color: #fff !important; }
.app-dark .student-id-brand strong,
.app-dark .student-id-profile-copy h2 { color: #fff; }
.app-dark .student-id-brand small,
.app-dark .student-id-number,
.app-dark .student-id-kicker { color: #cbd5e1; }
.app-dark .student-id-detail-row { border-color: #fff; background: #fff; color: #002147; }
.app-dark .student-id-detail-icon { background: #001a38; color: #e2e8f0; }
.app-dark .student-id-detail-row small { color: #64748b; }
.app-dark .student-id-detail-row strong { color: #002147; }
.app-dark .student-id-detail-icon { background: #001a38; color: #e2e8f0; }
.app-dark .student-id-qr { border-color: #fff; }
@media (max-width: 480px) {
  .student-id-card-header { padding: 0.8rem 1rem 0.9rem; }
  .student-id-card-body { grid-template-columns: minmax(0, 1fr) 8rem; gap: 0.6rem; padding: 0.75rem 1rem 0; }
  .student-id-qr-panel { width: 8.5rem; padding: 0.25rem; }
  .student-id-qr { width: 7.3rem; }
  .student-id-qr-note { margin-right: -1rem; margin-left: -1rem; padding-right: 1rem; padding-left: 1rem; }
  .student-id-detail-row { gap: 0.45rem; padding: 0.45rem; }
}
@media (max-width: 350px) {
  .student-id-card-body { grid-template-columns: 1fr; }
  .student-id-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student-id-details-heading { grid-column: 1 / -1; }
  .student-id-detail-row { align-items: flex-start; flex-direction: column; }
  .student-id-qr-panel { width: 100%; padding: 0.75rem 0.25rem 0.25rem; border-top: 1px solid rgba(255,255,255,0.35); }
  .student-id-qr { width: 7rem; }
}
@media (max-height: 600px) {
  .student-id-card-header { gap: 0.5rem; padding-top: 0.65rem; padding-bottom: 0.7rem; }
  .student-id-card-body { padding-top: 0.65rem; }
  .student-id-qr { width: 6.75rem; }
}

.arrow-back-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border: 0 !important;
  border-radius: 50%;
  background: transparent !important;
  color: #334155;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.arrow-back-button:hover, .arrow-back-button:focus-visible {
  border: 0 !important;
  background-color: #e2e8f0 !important;
  background-image: none !important;
  color: #002147;
  transform: translateX(-2px);
}

.arrow-back-button:hover i,
.arrow-back-button:focus-visible i { color: inherit !important; }

.arrow-back-button:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }
.app-dark .arrow-back-button,
.app-dark .arrow-back-button i,
.app-dark .arrow-back-button svg { color: #fff !important; stroke: #fff !important; }
.app-dark .arrow-back-button:focus-visible {
  background-color: #123b65 !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #fff !important;
}
.app-dark .arrow-back-button:hover {
  background-color: #123b65 !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #fff !important;
}
.app-dark .arrow-back-button:focus-visible { outline-color: #60a5fa; }

.bg-main {
  background: linear-gradient(135deg, #000f1f 0%, #001a3d 20%, #00376e 50%, #001a3d 80%, #000f1f 100%);
  position: relative;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.bg-star-layer { position: absolute; inset: 0; pointer-events: none; }
.bg-star { position: absolute; border-radius: 50%; background: rgba(174, 223, 255, 0.9); opacity: 0; animation: starTwinkle 7s ease-in-out infinite alternate; }

@keyframes starTwinkle {
  0% { opacity: 0; transform: scale(0.5); }
  40% { opacity: 0.6; transform: scale(1); }
  80% { opacity: 0.2; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(0.6); }
}

.home-main-grid { display: flex; flex-direction: column; gap: 1.5rem; min-height: 0; flex: 1; height: 100%; }

@media (min-width: 1024px) {
  .home-main-grid { flex-direction: row; align-items: stretch; }
}

.home-left, .home-right { min-height: 0; }
.home-left { flex: 1; display: flex; flex-direction: column; gap: 1.5rem; min-height: 0; }
.home-right { width: min(360px, 100%); flex-shrink: 0; display: flex; flex-direction: column; gap: 1rem; min-height: 0; }
.home-right > div { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.missing-panel, .leaderboard-panel { background: rgba(255,255,255,0.95); border: 1px solid rgba(148,163,184,0.24); border-radius: 1.5rem; padding: 1.25rem; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08); display: flex; flex-direction: column; overflow: hidden; }
.leaderboard-panel { justify-content: space-between; }
.panel-content { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 0.75rem; }
.panel-content::-webkit-scrollbar { width: 6px; }
.panel-content::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.16); border-radius: 999px; }
.missing-panel h3, .leaderboard-panel h3 { margin: 0 0 0.75rem; font-size: 1rem; font-weight: 700; color: #0f172a; }
#home-missing-assignments-heading { margin-bottom: 0.25rem; }
.missing-item { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.9rem 1rem; border: 1px solid rgba(148,163,184,0.18); border-radius: 1rem; background: #f8fafc; }
.missing-item p { margin: 0; }
.missing-item-title { font-size: 0.95rem; font-weight: 600; color: #0f172a; }
.missing-item-meta { font-size: 0.82rem; color: #64748b; margin-bottom: 0.24rem; }
.missing-item-due { margin: 0; font-size: 0.8rem; color: #334155; }
.missing-item-badge { align-self: center; padding: 0.25rem 0.6rem; border-radius: 999px; background: #002147; color: #fff; font-size: 0.75rem; font-weight: 700; }
.leaderboard-entry { position: relative; display: grid; flex: 0 0 auto; grid-template-columns: 1.5rem minmax(0,1fr) auto; align-items: center; gap: 0.65rem; overflow: hidden; padding: 0.75rem 0.85rem; border: 2px solid #e2e8f0; border-radius: 1rem; background: #f8fafc; }
.leaderboard-entry > * { position: relative; z-index: 1; }
.leaderboard-entry::before { position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 0.28rem; background: #002147; content: ""; }
.leaderboard-entry::after { position: absolute; z-index: 0; inset: 0; background: linear-gradient(112deg, transparent 25%, rgba(255,255,255,0.72) 46%, rgba(255,255,255,0.18) 52%, transparent 70%); background-size: 240% 100%; content: ""; pointer-events: none; }
.leaderboard-entry.leaderboard-tier-1::before { background: linear-gradient(180deg, #fff4b0, #d4a514 48%, #815700); }
.leaderboard-entry.leaderboard-tier-1 { border-color: #d4a514; background: linear-gradient(115deg, #fff8d6 0%, #f4d66f 26%, #fff1a8 47%, #d6aa2d 70%, #fff4c2 100%); }
.leaderboard-entry.leaderboard-tier-2::before { background: linear-gradient(180deg, #f8fafc, #98a2b3 48%, #667085); }
.leaderboard-entry.leaderboard-tier-2 { border-color: #aeb7c2; background: linear-gradient(115deg, #fbfcfd 0%, #c8d0d9 27%, #f8fafc 48%, #aeb7c2 73%, #eef1f4 100%); }
.leaderboard-entry.leaderboard-tier-3::before { background: linear-gradient(180deg, #ffd4b0, #b96b37 48%, #78401f); }
.leaderboard-entry.leaderboard-tier-3 { border-color: #b96b37; background: linear-gradient(115deg, #fff0e1 0%, #dda273 27%, #ffe4c9 48%, #bd7545 72%, #f7d6b8 100%); }
.leaderboard-entry.leaderboard-tier-standard { border-color: #002147; background: #eff6ff; }
.leaderboard-entry.leaderboard-tier-standard::before { background: #002147; }
.leaderboard-entry.leaderboard-tier-bottom { border-color: #d92d20; background: #fff1f0; }
.leaderboard-entry.leaderboard-tier-bottom::before { background: #d92d20; }
.leaderboard-entry.leaderboard-tier-1::after,
.leaderboard-entry.leaderboard-tier-2::after,
.leaderboard-entry.leaderboard-tier-3::after { animation: leaderboard-card-shine 5s ease-in-out infinite; }
.leaderboard-entry-rank { color: #64748b; font-size: 0.82rem; font-weight: 800; text-align: center; }
.leaderboard-tier-1 .leaderboard-entry-rank { color: #805b00; }
.leaderboard-tier-2 .leaderboard-entry-rank { color: #566273; }
.leaderboard-tier-3 .leaderboard-entry-rank { color: #81431f; }
.leaderboard-tier-standard .leaderboard-entry-rank { color: #002147; }
.leaderboard-tier-bottom .leaderboard-entry-rank { color: #d92d20; }
.leaderboard-entry-name { font-size: 0.95rem; font-weight: 600; color: #0f172a; }
.leaderboard-entry-score { font-size: 0.95rem; font-weight: 700; color: #1d4ed8; }
.home-right .leaderboard-entry.leaderboard-tier-1 .leaderboard-entry-score { color: #805b00; }
.home-right .leaderboard-entry.leaderboard-tier-2 .leaderboard-entry-score { color: #566273; }
.home-right .leaderboard-entry.leaderboard-tier-3 .leaderboard-entry-score { color: #81431f; }
.home-right .leaderboard-entry.leaderboard-tier-standard .leaderboard-entry-score { color: #002147; }
.home-right .leaderboard-entry.leaderboard-tier-bottom .leaderboard-entry-score { color: #b42318; }
.app-dark aside { border-color: #002147 !important; background: #001a38 !important; }
.app-dark aside.home-right { border-color: transparent !important; background: transparent !important; }
.app-dark .sidebar-btn:not(.active) { color: #cbd5e1; }
.app-dark .sidebar-btn:not(.active) .sidebar-nav-icon { filter: brightness(0) invert(0.82); }
.app-dark .sidebar-btn.active .sidebar-nav-icon { filter: brightness(0) invert(1); }
.app-dark .sidebar-btn:not(.active):hover { background: #002147; }
.app-dark .bg-white, .app-dark .missing-panel, .app-dark .leaderboard-panel { border-color: #002147; background-color: #001a38; color: #e2e8f0; }
.app-dark .text-gray-900, .app-dark .text-gray-800, .app-dark .text-slate-900, .app-dark .text-slate-800 { color: #f1f5f9; }
.app-dark .text-gray-600, .app-dark .text-gray-500, .app-dark .text-slate-600, .app-dark .text-slate-500 { color: #a8b6c8; }
.app-dark .bg-gray-50, .app-dark .bg-slate-50, .app-dark .bg-gray-100, .app-dark .bg-slate-100 { background-color: #002147; }
.app-dark .missing-panel, .app-dark .leaderboard-panel { border-color: #123b65; border-radius: 1.5rem; background: #001a38; }
.app-dark .missing-panel h3, .app-dark .leaderboard-panel h3 { color: #f1f5f9; }
.app-dark .missing-panel > div:first-child > span, .app-dark .leaderboard-panel > div:first-child > span { color: #9aabc0; }
.app-dark .home-right .missing-item { border-color: #123b65; border-radius: 1rem; background: #002147; }
.app-dark .home-right .missing-item:hover { background: #0b3158; }
.app-dark .home-right .missing-item-title { color: #f1f5f9; }
.app-dark .home-right .missing-item-meta { color: #a8b6c8; }
.app-dark .home-right .missing-item-due { color: #d0dbea; }
.app-dark .home-right .missing-item-badge { background: #fff; color: #002147; }
.app-dark .home-right .leaderboard-entry { border-color: #123b65; background: #002147; }
.app-dark .home-right .leaderboard-entry::after { background: linear-gradient(112deg, transparent 25%, rgba(255,255,255,0.14) 46%, rgba(255,255,255,0.04) 52%, transparent 70%); }
.app-dark .home-right .leaderboard-entry.leaderboard-tier-1 { border-color: #8b6b19; background: linear-gradient(115deg, #302819 0%, #4a3a1d 28%, #342a1c 50%, #57451f 74%, #302819 100%); }
.app-dark .home-right .leaderboard-entry.leaderboard-tier-1::before { background: linear-gradient(180deg, #f0cb69, #a17a22 50%, #665019); }
.app-dark .home-right .leaderboard-entry.leaderboard-tier-2 { border-color: #647386; background: linear-gradient(115deg, #222f40 0%, #354253 30%, #263344 52%, #425062 75%, #222f40 100%); }
.app-dark .home-right .leaderboard-entry.leaderboard-tier-2::before { background: linear-gradient(180deg, #d0d8e2, #8996a7 50%, #5a687a); }
.app-dark .home-right .leaderboard-entry.leaderboard-tier-3 { border-color: #855332; background: linear-gradient(115deg, #34251e 0%, #4a3022 30%, #39281f 52%, #563725 75%, #34251e 100%); }
.app-dark .home-right .leaderboard-entry.leaderboard-tier-3::before { background: linear-gradient(180deg, #e3ad80, #a76537 50%, #734321); }
.app-dark .home-right .leaderboard-entry.leaderboard-tier-standard { border-color: #123b65; background: #001a38; }
.app-dark .home-right .leaderboard-entry.leaderboard-tier-standard::before { background: #4777a8; }
.app-dark .home-right .leaderboard-entry.leaderboard-tier-bottom { border-color: #753943; background: #281720; }
.app-dark .home-right .leaderboard-entry.leaderboard-tier-bottom::before { background: #a94e5a; }
.app-dark .home-right .leaderboard-entry-rank { color: #93c5fd; }
.app-dark .home-right .leaderboard-entry.leaderboard-tier-1 .leaderboard-entry-rank { color: #f0cb69; }
.app-dark .home-right .leaderboard-entry.leaderboard-tier-2 .leaderboard-entry-rank { color: #d0d8e2; }
.app-dark .home-right .leaderboard-entry.leaderboard-tier-3 .leaderboard-entry-rank { color: #e3ad80; }
.app-dark .home-right .leaderboard-entry.leaderboard-tier-bottom .leaderboard-entry-rank { color: #f28b98; }
.app-dark .home-right .leaderboard-entry-name { color: #f1f5f9; }
.app-dark .home-right .leaderboard-entry-score { color: #93c5fd; }
.app-dark .home-right .leaderboard-entry.leaderboard-tier-1 .leaderboard-entry-score { color: #f0cb69; }
.app-dark .home-right .leaderboard-entry.leaderboard-tier-2 .leaderboard-entry-score { color: #d0d8e2; }
.app-dark .home-right .leaderboard-entry.leaderboard-tier-3 .leaderboard-entry-score { color: #e3ad80; }
.app-dark .home-right .leaderboard-entry.leaderboard-tier-standard .leaderboard-entry-score { color: #93c5fd; }
.app-dark .home-right .leaderboard-entry.leaderboard-tier-bottom .leaderboard-entry-score { color: #f28b98; }

@keyframes leaderboard-card-shine {
  0%, 35% { background-position: 140% 0; }
  70%, 100% { background-position: -60% 0; }
}

.subject-card.collision-bounce { animation: none !important; }

.subject-card.collision-reverse { animation: none !important; }

@keyframes collideBounce {
  0% { transform: translateY(0); }
  40% { transform: translateY(18px); }
  60% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

@keyframes collideReverse {
  0% { transform: translateY(0); }
  40% { transform: translateY(-18px); }
  60% { transform: translateY(8px); }
  100% { transform: translateY(0); }
}

body[data-color-theme="pink"] {
  --portal-accent: #9d174d;
  --portal-accent-hover: #831843;
  --portal-accent-ink: #9d174d;
  --portal-accent-soft: #fce7f3;
  --portal-accent-border: #f9a8d4;
  --portal-backdrop-start: #1f0a19;
  --portal-backdrop-mid: #3c102d;
  --portal-backdrop-end: #701d4d;
}
body[data-color-theme="purple"] {
  --portal-accent: #6d28d9;
  --portal-accent-hover: #5b21b6;
  --portal-accent-ink: #6d28d9;
  --portal-accent-soft: #ede9fe;
  --portal-accent-border: #c4b5fd;
  --portal-backdrop-start: #100c25;
  --portal-backdrop-mid: #211342;
  --portal-backdrop-end: #47277e;
}
body[data-color-theme="orange"] {
  --portal-accent: #c2410c;
  --portal-accent-hover: #9a3412;
  --portal-accent-ink: #c2410c;
  --portal-accent-soft: #ffedd5;
  --portal-accent-border: #fdba74;
  --portal-backdrop-start: #210e07;
  --portal-backdrop-mid: #3b1b0a;
  --portal-backdrop-end: #78300e;
}
body[data-color-theme="green"] {
  --portal-accent: #15803d;
  --portal-accent-hover: #166534;
  --portal-accent-ink: #15803d;
  --portal-accent-soft: #dcfce7;
  --portal-accent-border: #86efac;
  --portal-backdrop-start: #06190e;
  --portal-backdrop-mid: #0e2b19;
  --portal-backdrop-end: #1b5430;
}
body[data-color-theme="cyan"] {
  --portal-accent: #0e7490;
  --portal-accent-hover: #155e75;
  --portal-accent-ink: #0e7490;
  --portal-accent-soft: #cffafe;
  --portal-accent-border: #67e8f9;
  --portal-backdrop-start: #061820;
  --portal-backdrop-mid: #0b2f3d;
  --portal-backdrop-end: #14576b;
}
body[data-color-theme="yellow"] {
  --portal-accent: #a16207;
  --portal-accent-hover: #854d0e;
  --portal-accent-ink: #a16207;
  --portal-accent-soft: #fef3c7;
  --portal-accent-border: #fcd34d;
  --portal-backdrop-start: #1d1605;
  --portal-backdrop-mid: #362807;
  --portal-backdrop-end: #6a4c0a;
}
body[data-color-theme="red"] {
  --portal-accent: #b91c1c;
  --portal-accent-hover: #991b1b;
  --portal-accent-ink: #b91c1c;
  --portal-accent-soft: #fee2e2;
  --portal-accent-border: #fca5a5;
  --portal-backdrop-start: #210a0a;
  --portal-backdrop-mid: #3b1113;
  --portal-backdrop-end: #701e26;
}
body.app-dark[data-color-theme="pink"] { --portal-accent-ink: #f9a8d4; }
body.app-dark[data-color-theme="purple"] { --portal-accent-ink: #c4b5fd; }
body.app-dark[data-color-theme="orange"] { --portal-accent-ink: #fdba74; }
body.app-dark[data-color-theme="green"] { --portal-accent-ink: #86efac; }
body.app-dark[data-color-theme="cyan"] { --portal-accent-ink: #67e8f9; }
body.app-dark[data-color-theme="yellow"] { --portal-accent-ink: #fde68a; }
body.app-dark[data-color-theme="red"] { --portal-accent-ink: #fca5a5; }

body[data-color-theme]:not([data-color-theme="default"]) .bg-main {
  background: linear-gradient(135deg, var(--portal-backdrop-start) 0%, var(--portal-backdrop-mid) 52%, var(--portal-backdrop-end) 100%);
}
body:not(.app-dark)[data-color-theme]:not([data-color-theme="default"]) {
  --portal-light-surface: color-mix(in srgb, var(--portal-accent) 8%, #fff);
  --portal-light-surface-strong: color-mix(in srgb, var(--portal-accent) 13%, #fff);
}
body:not(.app-dark)[data-color-theme]:not([data-color-theme="default"]) #page-home > .home-main-grid .bg-white,
body:not(.app-dark)[data-color-theme]:not([data-color-theme="default"]) #page-home .missing-panel,
body:not(.app-dark)[data-color-theme]:not([data-color-theme="default"]) #page-home .leaderboard-panel {
  border-color: var(--portal-accent-border);
  background-color: var(--portal-light-surface);
}
body[data-color-theme]:not([data-color-theme="default"]) .sidebar-btn.active {
  background: var(--portal-accent);
}
body[data-color-theme]:not([data-color-theme="default"]) .sidebar-btn:not(.active):hover {
  background: var(--portal-accent-soft, #f1f5f9);
  color: var(--portal-accent-ink);
}
body[data-color-theme]:not([data-color-theme="default"]) .home-header-action,
body[data-color-theme]:not([data-color-theme="default"]) .home-notification-header {
  border-color: var(--portal-accent);
  background: var(--portal-accent);
}
body[data-color-theme]:not([data-color-theme="default"]) .home-header-action:hover {
  border-color: var(--portal-accent-hover);
  background: var(--portal-accent-hover);
}
body.app-dark[data-color-theme]:not([data-color-theme="default"]) .home-header-action {
  border-color: var(--portal-accent);
  background: var(--portal-accent);
  color: #fff;
}
body.app-dark[data-color-theme]:not([data-color-theme="default"]) .home-header-action:hover {
  border-color: var(--portal-accent-hover);
  background: var(--portal-accent-hover);
  color: #fff;
}
body.app-dark[data-color-theme]:not([data-color-theme="default"]) .home-header-action i {
  color: #fff;
}
body[data-color-theme]:not([data-color-theme="default"]) .home-notification-icon,
body[data-color-theme]:not([data-color-theme="default"]) .home-right .missing-item-badge {
  background: var(--portal-accent);
}
body[data-color-theme]:not([data-color-theme="default"]) .home-notification-close:hover,
body[data-color-theme]:not([data-color-theme="default"]) .home-notification-close:focus-visible {
  background-color: var(--portal-accent-soft) !important;
  color: var(--portal-accent-ink) !important;
}
body[data-color-theme]:not([data-color-theme="default"]) .home-notification-close:hover i,
body[data-color-theme]:not([data-color-theme="default"]) .home-notification-close:focus-visible i {
  color: var(--portal-accent-ink) !important;
}
body[data-color-theme]:not([data-color-theme="default"]) .leaderboard-entry.leaderboard-tier-standard {
  border-color: var(--portal-accent-border, #cbd5e1);
  background: var(--portal-accent-soft, #eff6ff);
}
body[data-color-theme]:not([data-color-theme="default"]) .leaderboard-entry.leaderboard-tier-standard::before {
  background: var(--portal-accent);
}
body[data-color-theme]:not([data-color-theme="default"]) .leaderboard-tier-standard .leaderboard-entry-rank,
body[data-color-theme]:not([data-color-theme="default"]) .home-right .leaderboard-entry.leaderboard-tier-standard .leaderboard-entry-score {
  color: var(--portal-accent-ink);
}
body.app-dark[data-color-theme]:not([data-color-theme="default"]) {
  --portal-accent-soft: color-mix(in srgb, var(--portal-accent) 24%, #111419);
  --portal-accent-border: color-mix(in srgb, var(--portal-accent) 48%, #2c333d);
  --portal-dark-surface: color-mix(in srgb, var(--portal-accent) 8%, #0b0f14);
}
body.app-dark[data-color-theme]:not([data-color-theme="default"]) .home-right .missing-item-badge {
  color: #fff;
}
body.app-dark[data-color-theme]:not([data-color-theme="default"]) .home-right .leaderboard-entry.leaderboard-tier-standard {
  border-color: var(--portal-accent-border);
  background: var(--portal-accent-soft);
}
body.app-dark[data-color-theme]:not([data-color-theme="default"]) .home-right .leaderboard-entry.leaderboard-tier-standard::before {
  background: var(--portal-accent);
}
body.app-dark[data-color-theme]:not([data-color-theme="default"]) .home-right .leaderboard-entry.leaderboard-tier-standard .leaderboard-entry-score,
body.app-dark[data-color-theme]:not([data-color-theme="default"]) .home-right .leaderboard-entry-rank {
  color: var(--portal-accent-ink);
}
body[data-color-theme]:not([data-color-theme="default"]) #nav-profile {
  background: linear-gradient(135deg, var(--portal-accent-hover), var(--portal-accent));
}
body.app-dark[data-color-theme]:not([data-color-theme="default"]) aside:not(.home-right) {
  border-color: var(--portal-accent-border) !important;
  background: var(--portal-dark-surface) !important;
}
body.app-dark[data-color-theme]:not([data-color-theme="default"]) #page-home > .home-main-grid .bg-white {
  border-color: var(--portal-accent-border);
  background-color: var(--portal-dark-surface);
}
body.app-dark[data-color-theme]:not([data-color-theme="default"]) .home-right .missing-item,
body.app-dark[data-color-theme]:not([data-color-theme="default"]) .home-right .leaderboard-entry:not(.leaderboard-tier-1):not(.leaderboard-tier-2):not(.leaderboard-tier-3):not(.leaderboard-tier-bottom) {
  border-color: var(--portal-accent-border);
  background: var(--portal-dark-surface);
}
body:not(.app-dark)[data-color-theme]:not([data-color-theme="default"]) #page-home .home-right .missing-panel,
body:not(.app-dark)[data-color-theme]:not([data-color-theme="default"]) #page-home .home-right .leaderboard-panel {
  border-color: var(--portal-accent-border);
  background: var(--portal-light-surface);
}
body.app-dark[data-color-theme]:not([data-color-theme="default"]) #page-home .home-right .missing-panel,
body.app-dark[data-color-theme]:not([data-color-theme="default"]) #page-home .home-right .leaderboard-panel {
  border-color: var(--portal-accent-border);
  background: var(--portal-dark-surface);
}

body[data-color-theme]:not([data-color-theme="default"]) .home-right .missing-item {
  border-color: var(--portal-accent-border);
  background: var(--portal-light-surface);
}
body[data-color-theme]:not([data-color-theme="default"]) .home-right .missing-item:hover {
  background: var(--portal-light-surface-strong);
}
body[data-color-theme]:not([data-color-theme="default"]) .home-right .missing-item-badge {
  background: var(--portal-accent);
  color: #fff;
}
body[data-color-theme]:not([data-color-theme="default"]) .home-right .leaderboard-entry:not(.leaderboard-tier-1):not(.leaderboard-tier-2):not(.leaderboard-tier-3):not(.leaderboard-tier-bottom) {
  border-color: var(--portal-accent-border);
  background: var(--portal-light-surface);
}
body[data-color-theme]:not([data-color-theme="default"]) .home-right .leaderboard-entry:not(.leaderboard-tier-1):not(.leaderboard-tier-2):not(.leaderboard-tier-3):not(.leaderboard-tier-bottom)::before {
  background: var(--portal-accent);
}
body[data-color-theme]:not([data-color-theme="default"]) .home-right .leaderboard-entry:not(.leaderboard-tier-1):not(.leaderboard-tier-2):not(.leaderboard-tier-3):not(.leaderboard-tier-bottom) .leaderboard-entry-score,
body[data-color-theme]:not([data-color-theme="default"]) .home-right .leaderboard-entry:not(.leaderboard-tier-1):not(.leaderboard-tier-2):not(.leaderboard-tier-3):not(.leaderboard-tier-bottom) .leaderboard-entry-rank {
  color: var(--portal-accent-ink);
}
body.app-dark[data-color-theme]:not([data-color-theme="default"]) .home-right .missing-item:hover {
  background: var(--portal-accent-soft);
}
body.app-dark[data-color-theme]:not([data-color-theme="default"]) .home-right .leaderboard-entry:not(.leaderboard-tier-1):not(.leaderboard-tier-2):not(.leaderboard-tier-3):not(.leaderboard-tier-bottom)::after {
  background: linear-gradient(112deg, transparent 25%, rgba(255,255,255,0.08) 46%, rgba(255,255,255,0.02) 52%, transparent 70%);
}
body[data-color-theme]:not([data-color-theme="default"]) .student-id-card-header {
  border-color: color-mix(in srgb, var(--portal-accent) 62%, white);
  background: linear-gradient(120deg, var(--portal-accent-hover), var(--portal-accent));
}
body[data-color-theme]:not([data-color-theme="default"]) .student-id-card-body,
body[data-color-theme]:not([data-color-theme="default"]) .student-id-qr-note {
  background: var(--portal-light-surface);
}
body[data-color-theme]:not([data-color-theme="default"]) .student-id-details-heading,
body[data-color-theme]:not([data-color-theme="default"]) .student-id-qr-label,
body[data-color-theme]:not([data-color-theme="default"]) .student-id-qr-note {
  color: var(--portal-accent-ink);
}
body[data-color-theme]:not([data-color-theme="default"]) .student-id-detail-row {
  border-color: var(--portal-accent-border);
  background: var(--portal-accent);
}
body[data-color-theme]:not([data-color-theme="default"]) .student-id-detail-icon {
  color: var(--portal-accent-ink);
}
body.app-dark[data-color-theme]:not([data-color-theme="default"]) .home-student-id-dialog {
  border: 1px solid var(--portal-accent-border);
  background: var(--portal-dark-surface);
}
body.app-dark[data-color-theme]:not([data-color-theme="default"]) .student-id-card-header {
  border-color: var(--portal-accent-border);
  background: linear-gradient(120deg, var(--portal-accent-hover), var(--portal-accent));
}
body.app-dark[data-color-theme]:not([data-color-theme="default"]) .student-id-card-body,
body.app-dark[data-color-theme]:not([data-color-theme="default"]) .student-id-qr-note {
  border-color: var(--portal-accent-border);
  background: var(--portal-dark-surface);
  color: #f1f5f9;
}
body.app-dark[data-color-theme]:not([data-color-theme="default"]) .student-id-details-heading,
body.app-dark[data-color-theme]:not([data-color-theme="default"]) .student-id-qr-label {
  color: var(--portal-accent-ink);
}
body.app-dark[data-color-theme]:not([data-color-theme="default"]) .student-id-detail-row {
  border-color: var(--portal-accent-border);
  background: var(--portal-accent);
  color: #fff;
}
body.app-dark[data-color-theme]:not([data-color-theme="default"]) .student-id-detail-row small {
  color: color-mix(in srgb, #fff 78%, var(--portal-accent));
}
body.app-dark[data-color-theme]:not([data-color-theme="default"]) .student-id-detail-row strong {
  color: #fff;
}
body.app-dark[data-color-theme]:not([data-color-theme="default"]) .student-id-detail-icon {
  background: var(--portal-dark-surface);
  color: var(--portal-accent-ink);
}
