:root {
    --bg: #f4f7fb;
    --panel: #ffffff;
    --text: #172033;
    --muted: #6c7890;
    --line: #e4e9f2;
    --sidebar-bg: #111827;
    --sidebar-link: #cbd5e1;
    --sidebar-link-hover: rgba(255, 255, 255, .08);
    --topbar-bg: rgba(244, 247, 251, .9);
    --input-bg: #ffffff;
    --button-soft: #eef3fb;
    --blue: #2f80ed;
    --teal: #00a6a6;
    --green: #21a67a;
    --amber: #f2a51a;
    --red: #e05a4f;
    --violet: #7c5cff;
    --shadow: 0 18px 50px rgba(23, 32, 51, .08);
}

html {
    scroll-behavior: smooth;
}

[data-theme="dark"] {
    --bg: #0b1220;
    --panel: #111827;
    --text: #eef4ff;
    --muted: #93a4bd;
    --line: #243149;
    --sidebar-bg: #070d19;
    --sidebar-link: #b9c6da;
    --sidebar-link-hover: rgba(47, 128, 237, .16);
    --topbar-bg: rgba(11, 18, 32, .9);
    --input-bg: #0b1220;
    --button-soft: #1c2940;
    --shadow: 0 18px 50px rgba(0, 0, 0, .24);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

input,
select,
button {
    font: inherit;
}

input[type="file"] {
    padding: 11px 14px;
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 260px;
    padding: 24px;
    background: var(--sidebar-bg);
    color: white;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 10;
}

.brand,
.brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand {
    margin-bottom: 32px;
}

.brand small,
.brand-row small {
    display: block;
    color: var(--muted);
}

.brand sup,
.brand-row sup {
    font-size: .58em;
    line-height: 0;
    vertical-align: super;
    margin-left: 2px;
    letter-spacing: .02em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    color: white;
    font-weight: 800;
    overflow: hidden;
}

.brand-icon {
    width: 30px;
    height: 30px;
    display: block;
    fill: currentColor;
}

.nav {
    display: grid;
    gap: 8px;
}

.nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--sidebar-link);
    font-weight: 700;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.nav a span {
    min-width: 0;
    flex: 1;
}

.nav a:hover {
    background: var(--sidebar-link-hover);
    color: white;
    transform: translateX(3px);
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: currentColor;
    opacity: .92;
}

.nav-badge {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--red);
    color: white;
    font-size: 12px;
    line-height: 1;
    box-shadow: 0 0 0 3px rgba(224, 90, 79, .18);
}

.main {
    width: 100%;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 32px;
    background: var(--topbar-bg);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 5;
    border-bottom: 1px solid var(--line);
}

.topbar-actions {
    display: grid;
    justify-items: end;
    gap: 6px;
}

.topbar-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar h1 {
    margin: 0 0 4px;
    font-size: 24px;
}

.topbar p,
.muted {
    margin: 0;
    color: var(--muted);
}

.content {
    flex: 1;
    padding: 28px 32px 42px;
}

.site-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    padding: 18px 32px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.grid,
.cards-grid {
    display: grid;
    gap: 18px;
}

.stats-grid {
    grid-template-columns: repeat(6, minmax(120px, 1fr));
    margin-bottom: 22px;
}

.stat-card,
.panel,
.item-card,
.install-card,
.login-panel,
.metric-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.stat-card {
    padding: 18px;
}

.stat-card span {
    color: var(--muted);
    font-size: 13px;
}

.stat-card strong {
    display: block;
    font-size: 30px;
    margin-top: 8px;
}

.stat-card.blue { border-top: 4px solid var(--blue); }
.stat-card.teal { border-top: 4px solid var(--teal); }
.stat-card.green { border-top: 4px solid var(--green); }
.stat-card.amber { border-top: 4px solid var(--amber); }
.stat-card.red { border-top: 4px solid var(--red); }
.stat-card.violet { border-top: 4px solid var(--violet); }

.activity-progress-card .progress {
    margin: 10px 0 8px;
}

.activity-progress-card small {
    color: var(--muted);
    font-size: 12px;
}

.panel {
    padding: 22px;
    margin-bottom: 22px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.panel h2,
.item-card h3 {
    margin: 0;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

th {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 700;
    background: var(--muted);
}

.badge.pending,
.badge.resubmitted,
.badge.enrolled,
.badge.in_progress,
.badge.learning,
.badge.submitted {
    background: var(--amber);
}

.badge.approved,
.badge.active,
.badge.completed,
.badge.passed {
    background: var(--green);
}

.badge.rejected,
.badge.suspended,
.badge.needs_revision {
    background: var(--red);
}

.badge.archived,
.badge.inactive,
.badge.not_started {
    background: var(--muted);
}

.badge.blue {
    background: var(--blue);
}

.cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.item-card {
    padding: 18px;
}

.item-card p {
    color: var(--muted);
    line-height: 1.5;
}

.button,
.icon-button {
    border: 0;
    border-radius: 12px;
    cursor: pointer;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    font-weight: 700;
    background: var(--button-soft);
    color: var(--text);
}

.button-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: currentColor;
}

.button.primary {
    background: var(--blue);
    color: white;
}

.button.danger {
    background: var(--red);
    color: white;
}

.button.ghost {
    background: var(--panel);
    border: 1px solid var(--line);
}

.button.small {
    min-height: 34px;
    padding: 0 12px;
    font-size: 14px;
}

.button.full {
    width: 100%;
}

button:disabled,
.button:disabled {
    cursor: not-allowed;
    opacity: .62;
}

.icon-button {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    background: var(--panel);
    border: 1px solid var(--line);
}

.icon-button span {
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
}

.theme-toggle {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
}

.theme-toggle-track {
    width: 38px;
    height: 22px;
    padding: 3px;
    border-radius: 999px;
    background: var(--button-soft);
    border: 1px solid var(--line);
}

.theme-toggle-knob {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--blue);
    transition: transform .18s ease;
}

[data-theme="dark"] .theme-toggle-knob {
    transform: translateX(16px);
}

.theme-toggle-icons {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
}

.theme-icon {
    grid-area: 1 / 1;
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: opacity .18s ease, transform .18s ease;
}

.theme-icon-moon {
    opacity: 0;
    transform: scale(.72) rotate(-18deg);
}

[data-theme="dark"] .theme-icon-sun {
    opacity: 0;
    transform: scale(.72) rotate(18deg);
}

[data-theme="dark"] .theme-icon-moon {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.auth-main {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-main .content {
    padding: 0;
}

.login-layout {
    min-height: calc(100vh - 72px);
    display: grid;
    grid-template-columns: minmax(320px, 480px) 1fr;
    flex: 1;
}

.login-panel {
    margin: auto;
    width: min(420px, calc(100% - 36px));
    padding: 32px;
}

.login-panel h1 {
    margin: 28px 0 8px;
    font-size: 34px;
}

label {
    display: grid;
    gap: 8px;
    margin: 16px 0;
    color: var(--muted);
    font-weight: 700;
}

input,
select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 14px;
    color: var(--text);
    background: var(--input-bg);
}

textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    color: var(--text);
    background: var(--input-bg);
    resize: vertical;
    font: inherit;
}

select {
    appearance: none;
    padding-right: 42px;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position:
        calc(100% - 22px) 20px,
        calc(100% - 16px) 20px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    cursor: pointer;
}

select:focus,
input:focus,
textarea:focus {
    border-color: var(--blue);
    outline: 3px solid rgba(47, 128, 237, .14);
}

.login-art {
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 32px;
    background:
        linear-gradient(120deg, rgba(47, 128, 237, .12), rgba(0, 166, 166, .16), rgba(33, 166, 122, .12)),
        repeating-linear-gradient(90deg, rgba(47, 128, 237, .08) 0 1px, transparent 1px 72px),
        repeating-linear-gradient(0deg, rgba(0, 166, 166, .08) 0 1px, transparent 1px 72px),
        #eaf1fb;
    background-size: 100% 100%, 144px 144px, 144px 144px, auto;
    animation: loginBackgroundDrift 18s ease-in-out infinite alternate;
}

[data-theme="dark"] .login-art {
    background:
        linear-gradient(120deg, rgba(47, 128, 237, .18), rgba(0, 166, 166, .14), rgba(33, 166, 122, .12)),
        repeating-linear-gradient(90deg, rgba(47, 128, 237, .08) 0 1px, transparent 1px 72px),
        repeating-linear-gradient(0deg, rgba(0, 166, 166, .08) 0 1px, transparent 1px 72px),
        #0f1a2d;
}

.login-art-content {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    display: grid;
    gap: 18px;
}

.learning-orbit {
    position: relative;
    min-height: 180px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 18px;
    background: rgba(255, 255, 255, .34);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

[data-theme="dark"] .learning-orbit {
    background: rgba(15, 26, 45, .42);
    border-color: rgba(255, 255, 255, .12);
}

.learning-orbit span {
    position: absolute;
    min-width: 92px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 999px;
    color: var(--text);
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 14px 34px rgba(23, 32, 51, .1);
    font-weight: 800;
    text-align: center;
    animation: learningFloat 7s ease-in-out infinite;
}

[data-theme="dark"] .learning-orbit span {
    background: rgba(17, 24, 39, .82);
    border-color: rgba(255, 255, 255, .16);
}

.learning-orbit span:nth-child(1) {
    top: 24px;
    left: 28px;
}

.learning-orbit span:nth-child(2) {
    top: 32px;
    right: 36px;
    animation-delay: -1.5s;
}

.learning-orbit span:nth-child(3) {
    right: 66px;
    bottom: 28px;
    animation-delay: -3s;
}

.learning-orbit span:nth-child(4) {
    left: 72px;
    bottom: 30px;
    animation-delay: -4.5s;
}

.metric-card {
    max-width: 360px;
    padding: 24px;
}

.ip-card {
    position: relative;
    max-width: none;
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 4px 14px;
    align-items: center;
}

.metric-card .globe-icon {
    grid-row: span 2;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--blue);
    background: rgba(47, 128, 237, .12);
    line-height: 0;
}

.metric-card .globe-icon svg {
    width: 28px;
    height: 28px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: globeSpin 5s linear infinite;
}

.metric-card strong,
.metric-card span {
    display: block;
}

.metric-card span {
    color: var(--muted);
    margin-top: 8px;
    line-height: 1.5;
}

.ip-card span:last-child {
    margin-top: 0;
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-weight: 800;
}

@keyframes loginBackgroundDrift {
    from {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }

    to {
        background-position: 0 0, 48px 24px, 24px 48px, 0 0;
    }
}

@keyframes learningFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes globeSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.demo-box {
    margin-top: 18px;
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 14px;
}

.auth-link {
    margin: 16px 0 0;
    text-align: center;
    color: var(--blue);
    font-weight: 700;
}

.alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin: 16px 0;
}

.alert.danger {
    background: #feeceb;
    color: #a23a33;
}

[data-theme="dark"] .alert.danger {
    background: #3a1718;
    color: #ffb4ad;
}

.alert.success {
    background: #e9f8f1;
    color: #147353;
}

[data-theme="dark"] .alert.success {
    background: #123225;
    color: #9ee8c8;
}

.empty-state,
.empty-inline {
    padding: 28px;
    color: var(--muted);
    text-align: center;
}

.chat-list {
    display: grid;
    gap: 10px;
}

.chat-row {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.chat-row span,
.chat-row small {
    display: block;
    color: var(--muted);
}

.chat-avatar {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--button-soft);
}

.progress {
    height: 10px;
    background: var(--button-soft);
    border-radius: 999px;
    overflow: hidden;
}

.progress span {
    display: block;
    height: 100%;
    background: var(--green);
}

.student-progress-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 22px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 20% 20%, rgba(47, 128, 237, .18), transparent 28%),
        linear-gradient(135deg, rgba(33, 166, 122, .16), rgba(47, 128, 237, .10)),
        var(--panel);
    box-shadow: var(--shadow);
}

.student-progress-hero h2 {
    margin: 8px 0;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1;
}

.progress-ring {
    --angle: calc(var(--progress) * 3.6deg);
    width: 148px;
    height: 148px;
    display: grid;
    place-items: center;
    flex: 0 0 148px;
    border-radius: 50%;
    background: conic-gradient(var(--green) var(--angle), var(--button-soft) 0);
    animation: ring-pop .7s ease both;
}

.progress-ring span {
    width: 104px;
    height: 104px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--panel);
    font-size: 28px;
    font-weight: 900;
}

.student-stats-grid {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
}

.program-progress-list {
    display: grid;
    gap: 14px;
}

.program-progress-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(47, 128, 237, .05), transparent 70%), var(--input-bg);
}

.program-progress-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.program-progress-top h3 {
    margin: 10px 0 0;
}

.program-progress-top strong {
    font-size: 28px;
}

.program-progress-card p {
    color: var(--muted);
}

.program-progress-card small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.animated-progress {
    height: 16px;
    margin-top: 14px;
}

.animated-progress span {
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--teal), var(--green));
    animation: progress-fill .9s ease forwards;
}

.info-panel {
    margin-bottom: 22px;
    padding: 22px;
    border-radius: 16px;
    color: white;
    box-shadow: var(--shadow);
}

.info-panel h2 {
    margin: 0 0 12px;
}

.info-panel p {
    margin: 0;
    line-height: 1.6;
}

.info-panel.completion {
    border-top: 4px solid var(--green);
    color: var(--text);
    background: var(--panel);
}

.info-panel.completion p {
    text-align: justify;
}

.info-panel.school {
    background: linear-gradient(135deg, #00a6d6, #00b7a8);
}

.info-panel.policy {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.info-panel.privacy {
    background: linear-gradient(135deg, #e05a4f, #c83245);
}

.course-program-block {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: var(--input-bg);
}

.course-program-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-top: 4px solid var(--green);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(33, 166, 122, .08), transparent);
}

.course-program-heading h3 {
    margin: 0;
}

.course-program-heading span {
    color: var(--muted);
    font-weight: 700;
}

.study-panel {
    border-top: 4px solid var(--green);
}

.study-details,
.submission-detail-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px 24px;
    align-items: start;
}

.study-details strong,
.submission-detail-grid strong {
    text-align: right;
}

.text-link {
    color: var(--blue);
    font-weight: 700;
    word-break: break-word;
}

.review-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.chat-thread {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        radial-gradient(circle at 10% 10%, rgba(47, 128, 237, .08), transparent 24%),
        radial-gradient(circle at 90% 30%, rgba(33, 166, 122, .08), transparent 24%),
        var(--input-bg);
}

.chat-message {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    max-width: min(720px, 92%);
}

.chat-message.mine {
    justify-self: end;
    flex-direction: row-reverse;
}

.chat-message.theirs {
    justify-self: start;
}

.chat-bubble-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    color: white;
    font-size: 12px;
    font-weight: 900;
}

.chat-bubble-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-fallback {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    background: linear-gradient(135deg, var(--blue), var(--teal));
}

.avatar-fallback::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    transform: translateX(-50%);
}

.avatar-fallback::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 20px;
    height: 12px;
    border-radius: 999px 999px 6px 6px;
    background: rgba(255, 255, 255, .94);
    transform: translateX(-50%);
}

.avatar-fallback.student {
    background: linear-gradient(135deg, #21a67a, #83d65f);
}

.avatar-fallback.mentor {
    background: linear-gradient(135deg, #2f80ed, #00a6a6);
}

.avatar-fallback.admin {
    background: linear-gradient(135deg, #e05a8a, #f4a6c1);
}

.avatar-fallback.mentor::before,
.avatar-fallback.admin::before {
    top: 7px;
}

.avatar-fallback.mentor::after,
.avatar-fallback.admin::after {
    bottom: 5px;
    width: 22px;
    height: 13px;
}

.avatar-fallback.mentor {
    box-shadow: inset 0 -8px 0 rgba(255, 255, 255, .18);
}

.chat-bubble {
    padding: 12px 14px;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(23, 32, 51, .08);
}

.chat-message.student .chat-bubble,
.chat-message.mine.student .chat-bubble {
    background: #dff8d8;
    color: #143b1f;
}

.chat-message.mentor .chat-bubble,
.chat-message.theirs .chat-bubble {
    background: #dcecff;
    color: #142d4f;
}

.chat-message.admin .chat-bubble {
    background: #ffe1ec;
    color: #562033;
}

.chat-bubble-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
}

.chat-bubble-meta span {
    opacity: .72;
}

.chat-bubble p {
    margin: 0;
    line-height: 1.5;
}

.chat-bubble small {
    display: block;
    margin-top: 8px;
    opacity: .68;
    font-size: 11px;
}

.chat-compose {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 16px;
}

.submission-history-list {
    display: grid;
    gap: 16px;
}

.submission-history-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--input-bg);
}

.submission-history-card h3 {
    color: var(--text);
}

.submission-history-card.submitted {
    border-color: rgba(47, 128, 237, .28);
    background: rgba(47, 128, 237, .08);
}

.submission-history-card.submitted h3 {
    color: var(--blue);
}

.submission-history-card.approved {
    border-color: rgba(33, 166, 122, .28);
    background: rgba(33, 166, 122, .08);
}

.submission-history-card.approved h3 {
    color: var(--green);
}

.submission-history-card.rejected {
    border-color: rgba(224, 90, 79, .28);
    background: rgba(224, 90, 79, .08);
}

.submission-history-card.rejected h3 {
    color: var(--red);
}

[data-theme="dark"] .submission-history-card.submitted {
    background: rgba(47, 128, 237, .14);
}

[data-theme="dark"] .submission-history-card.approved {
    background: rgba(33, 166, 122, .14);
}

[data-theme="dark"] .submission-history-card.rejected {
    background: rgba(224, 90, 79, .14);
}

.mini-chat-thread {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.mini-chat-message {
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--button-soft);
}

.mini-chat-message.student {
    background: #dff8d8;
    color: #143b1f;
}

.mini-chat-message.mentor {
    background: #dcecff;
    color: #142d4f;
}

.mini-chat-message.admin {
    background: #ffe1ec;
    color: #562033;
}

.mini-chat-message strong,
.mini-chat-message span {
    display: block;
}

.mini-chat-message span {
    margin-top: 3px;
    opacity: .7;
    font-size: 12px;
}

.mini-chat-message p {
    margin: 8px 0 0;
    line-height: 1.5;
}

@keyframes progress-fill {
    to {
        width: var(--progress-width);
    }
}

@keyframes ring-pop {
    from {
        opacity: 0;
        transform: scale(.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.install-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.install-card {
    width: min(520px, 100%);
    padding: 28px;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 22px;
    align-items: start;
}

.profile-card {
    text-align: center;
}

.profile-card h2 {
    margin: 16px 0 6px;
}

.profile-card p {
    margin: 0;
    color: var(--muted);
}

.profile-avatar {
    width: 118px;
    height: 118px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    color: white;
    font-size: 34px;
    font-weight: 800;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-meta {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

.form-help {
    margin: -8px 0 16px;
    color: var(--muted);
    font-size: 14px;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-actions form {
    margin: 0;
}

.assignment-fields {
    display: none;
}

.assignment-fields.is-visible {
    display: block;
}

.user-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    padding: 26px;
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 10% 10%, rgba(47, 128, 237, .16), transparent 28%),
        radial-gradient(circle at 92% 20%, rgba(0, 166, 166, .14), transparent 30%),
        var(--panel);
    box-shadow: var(--shadow);
}

.user-hero h2 {
    margin: 8px 0;
    font-size: 30px;
}

.user-hero p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.eyebrow {
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.user-hero-actions,
.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-stats-grid {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    margin-bottom: 22px;
}

.user-form-panel {
    overflow: hidden;
}

.user-form-section {
    padding: 18px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(47, 128, 237, .04), transparent 70%), var(--panel);
}

.user-form-section h3 {
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-grid.compact {
    align-items: end;
}

.assignment-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.assignment-header h3 {
    margin: 0 0 6px;
}

.assignment-layout {
    display: grid;
    grid-template-columns: minmax(240px, .85fr) minmax(280px, 1.15fr);
    gap: 16px;
}

.program-workspace {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.1fr);
    gap: 22px;
}

.inline-course-form {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(47, 128, 237, .05), transparent 70%), var(--input-bg);
}

.inline-course-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.inline-course-header h4 {
    margin: 0 0 4px;
}

.program-list {
    display: grid;
    gap: 16px;
}

.program-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.program-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.program-card h3 {
    margin: 12px 0 6px;
    font-size: 22px;
}

.program-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.course-strip {
    display: grid;
    gap: 10px;
}

.program-courses {
    margin-top: 14px;
}

.compact-table th,
.compact-table td {
    padding: 10px;
}

.compact-table td strong {
    display: block;
}

.table-link {
    display: inline-block;
    margin-top: 4px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
}

.list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.search-field {
    width: min(420px, 100%);
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.search-field input {
    min-height: 42px;
}

.list-summary {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.field-status {
    min-height: 18px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.field-status.available {
    color: var(--green);
}

.field-status.taken,
.field-status.error {
    color: var(--red);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.backup-scope-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.backup-scope-option {
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: start;
    gap: 12px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--input-bg);
    color: var(--text);
}

.backup-scope-option input {
    width: 18px;
    min-height: 18px;
    margin-top: 2px;
}

.backup-scope-option strong,
.backup-scope-option small {
    display: block;
}

.backup-scope-option small {
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.45;
}

.backup-scope-option.is-disabled {
    opacity: .68;
}

.reminder-panel {
    margin-bottom: 22px;
}

.reminder-due-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    color: #8f3d00;
    background: #fff1d6;
    font-size: 13px;
    font-weight: 900;
}

[data-theme="dark"] .reminder-due-badge {
    color: #ffd28a;
    background: #3a2509;
}

.reminder-grid {
    display: grid;
    grid-template-columns: minmax(320px, .9fr) minmax(440px, 1.1fr);
    gap: 18px;
}

.reminder-calendar,
.reminder-side,
.reminder-list,
.due-reminders {
    min-width: 0;
}

.reminder-calendar {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--input-bg);
}

.reminder-calendar-header,
.reminder-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.reminder-calendar-header strong {
    font-size: 18px;
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.calendar-weekdays {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.calendar-day {
    position: relative;
    min-height: 58px;
    display: grid;
    align-content: space-between;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    color: var(--text);
    font-weight: 900;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.calendar-day:hover {
    border-color: var(--blue);
    box-shadow: 0 10px 24px rgba(47, 128, 237, .12);
    transform: translateY(-1px);
}

.calendar-day.empty {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
}

.calendar-day.today {
    border-color: var(--teal);
}

.calendar-day.selected {
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    border-color: transparent;
}

.calendar-day small {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    justify-self: end;
    border-radius: 50%;
    color: white;
    background: var(--blue);
    font-size: 12px;
}

.calendar-day.selected small {
    color: var(--blue);
    background: white;
}

.calendar-day.has-important::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--amber);
}

.reminder-side {
    display: grid;
    grid-template-columns: minmax(220px, .85fr) minmax(220px, 1fr);
    gap: 18px;
}

.reminder-form,
.reminder-list {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--input-bg);
}

.reminder-form h3,
.reminder-list h3,
.due-reminders h3 {
    margin: 0;
}

.reminder-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(96px, .45fr);
    gap: 12px;
}

.reminder-form label,
.reminder-form input,
.reminder-form select,
.reminder-form textarea {
    min-width: 0;
}

.reminder-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--blue);
    border-radius: 12px;
    background: var(--panel);
}

.reminder-item + .reminder-item {
    margin-top: 10px;
}

.reminder-item.important {
    border-left-color: var(--amber);
}

.reminder-item.completed {
    opacity: .68;
}

.reminder-item.completed strong {
    text-decoration: line-through;
}

.reminder-item strong,
.reminder-item span,
.reminder-item p {
    display: block;
}

.reminder-item span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.reminder-item p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.reminder-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.due-reminders {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--input-bg);
}

.due-reminder-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.due-reminder-list a {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}

.due-reminder-list span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.course-chip {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--input-bg);
}

.course-chip strong,
.course-chip span {
    display: block;
}

.course-chip span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.icon-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

.icon-field {
    position: relative;
}

.icon-field > .field-icon {
    margin-bottom: 0;
}

.field-icon {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    color: white;
    font-size: 13px;
    font-weight: 900;
}

.assignment-box {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    background: var(--input-bg);
    border-top: 4px solid var(--blue);
}

.assignment-box h3,
.assignment-box h4 {
    margin: 0 0 12px;
}

.checkbox-list {
    display: grid;
    gap: 10px;
}

.checkbox-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-weight: 700;
}

.checkbox-list input {
    width: auto;
    min-height: auto;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(5, 10, 20, .62);
    z-index: 50;
}

.modal-backdrop[hidden] {
    display: none;
}

.modal-card {
    width: min(440px, 100%);
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
    box-shadow: 0 26px 80px rgba(0, 0, 0, .28);
}

.modal-card h2 {
    margin: 14px 0 8px;
}

.modal-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: white;
    font-size: 24px;
    font-weight: 900;
}

.modal-icon.danger {
    background: var(--red);
}

.delete-user-summary {
    display: grid;
    gap: 4px;
    margin: 18px 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--input-bg);
}

.delete-user-summary span {
    color: var(--muted);
}

.confirm-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0;
}

.confirm-check input {
    width: auto;
    min-height: auto;
    margin-top: 4px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.mentor-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.mentor-picker.wide {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.mentor-picker label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.mentor-picker label:hover {
    border-color: var(--blue);
    transform: translateY(-1px);
}

.mentor-picker input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mentor-picker strong,
.mentor-picker small {
    display: block;
}

.mentor-picker small {
    margin-top: 4px;
    color: var(--muted);
}

.mentor-check {
    width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 26px;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: var(--input-bg);
}

.mentor-check::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
}

.mentor-picker input:checked + .mentor-check {
    border-color: var(--blue);
    background: rgba(47, 128, 237, .12);
}

.mentor-picker input:checked + .mentor-check::after {
    background: var(--blue);
}

.mentor-picker label:has(input:checked) {
    border-color: var(--blue);
    box-shadow: 0 10px 28px rgba(47, 128, 237, .14);
}

.internal-message-shell {
    overflow: hidden;
}

.message-header-actions,
.message-actions,
.message-recipient-groups {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.internal-message-layout {
    display: grid;
    grid-template-columns: 180px minmax(260px, 360px) minmax(0, 1fr);
    min-height: 620px;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.internal-message-layout.audit-layout {
    grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
}

.message-folders,
.message-list,
.message-reader {
    min-width: 0;
    background: var(--panel);
}

.message-folders {
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 12px;
    border-right: 1px solid var(--line);
    background: var(--input-bg);
}

.message-folders a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--muted);
    font-weight: 800;
}

.message-folders a.active,
.message-folders a:hover {
    background: var(--button-soft);
    color: var(--text);
}

.message-folder-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.message-folder-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: currentColor;
}

.message-list {
    border-right: 1px solid var(--line);
    overflow: auto;
}

.message-list-row a {
    display: grid;
    grid-template-columns: 10px 22px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 14px;
    border-bottom: 1px solid var(--line);
}

.message-list-row.unread {
    background: rgba(47, 128, 237, .07);
}

.message-status-dot {
    width: 9px;
    height: 9px;
    margin-top: 7px;
    border-radius: 50%;
    background: transparent;
}

.message-list-row.unread .message-status-dot {
    background: var(--blue);
}

.message-star {
    color: var(--line);
    line-height: 1.4;
}

.message-star.is-flagged {
    color: var(--amber);
}

.message-row-main {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.message-row-main strong,
.message-row-main small,
.message-row-main span,
.message-list-row time {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-row-main small,
.message-row-main span,
.message-list-row time {
    color: var(--muted);
    font-size: 13px;
}

.message-reader {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 620px;
}

.message-reader-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.message-reader-header h3,
.message-reader-empty h3 {
    margin: 0 0 6px;
}

.message-reader-empty {
    display: grid;
    place-content: center;
    min-height: 360px;
    padding: 24px;
    text-align: center;
}

.internal-thread {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 18px;
    overflow: auto;
}

.internal-message-bubble {
    max-width: min(680px, 92%);
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--input-bg);
}

.internal-message-bubble.mine {
    justify-self: end;
    background: rgba(47, 128, 237, .1);
}

.message-bubble-meta {
    display: grid;
    gap: 3px;
    margin-bottom: 10px;
}

.message-bubble-meta span {
    color: var(--muted);
    font-size: 13px;
}

.message-body {
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.message-body p {
    margin: 0 0 10px;
}

.message-body p:last-child {
    margin-bottom: 0;
}

.message-body a {
    color: var(--blue);
    font-weight: 700;
    text-decoration: underline;
}

.message-body .ql-align-center {
    text-align: center;
}

.message-body .ql-align-right {
    text-align: right;
}

.message-body .ql-align-justify {
    text-align: justify;
}

.rich-message-form {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-top: 1px solid var(--line);
}

.rich-message-form-actions {
    display: flex;
    justify-content: flex-end;
}

.quill-message-wrap {
    display: block;
}

.quill-message-wrap .ql-toolbar {
    border-color: var(--line);
    border-radius: 12px 12px 0 0;
    background: var(--button-soft);
}

.quill-message-wrap .ql-container {
    min-height: 220px;
    border-color: var(--line);
    border-radius: 0 0 12px 12px;
    background: var(--input-bg);
    color: var(--text);
    font-size: 15px;
}

.quill-message-wrap.compact .ql-container {
    min-height: 130px;
}

.quill-message-wrap .ql-editor {
    min-height: 220px;
    line-height: 1.55;
}

.quill-message-wrap.compact .ql-editor {
    min-height: 130px;
}

.quill-emoji-group {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.quill-emoji-button {
    width: 28px !important;
    min-width: 28px;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 1 !important;
}

.message-group-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--input-bg);
    color: var(--text);
}

.message-group-chip input {
    width: auto;
    min-height: auto;
}

.audit-participants {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
}

.audit-participants div {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--input-bg);
}

.audit-participants span,
.audit-participants small {
    color: var(--muted);
}

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .reminder-grid,
    .reminder-side {
        grid-template-columns: 1fr;
    }

    .reminder-form-row {
        grid-template-columns: minmax(0, 1fr) minmax(120px, .45fr);
    }
}

@media (max-width: 820px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform .2s ease;
    }

    .sidebar-open .sidebar {
        transform: translateX(0);
    }

    .main {
        margin-left: 0;
    }

    .icon-button {
        display: inline-flex;
    }

    .topbar {
        padding: 16px;
    }

    .topbar-actions {
        gap: 8px;
    }

    .theme-toggle {
        padding: 0 10px;
    }

    .content {
        padding: 18px 16px 32px;
    }

    .auth-main .content {
        padding: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .student-progress-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .progress-ring {
        width: 120px;
        height: 120px;
        flex-basis: 120px;
    }

    .progress-ring span {
        width: 84px;
        height: 84px;
        font-size: 22px;
    }

    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-art {
        display: none;
    }

    .chat-row {
        grid-template-columns: 42px 1fr;
    }

    .chat-row small {
        grid-column: 2;
    }

    .profile-grid,
    .form-grid,
    .user-stats-grid,
    .assignment-layout,
    .program-workspace,
    .icon-form-grid,
    .course-chip,
    .study-details,
    .submission-detail-grid,
    .review-actions-grid,
    .chat-compose,
    .reminder-grid,
    .reminder-side,
    .reminder-form-row {
        grid-template-columns: 1fr;
    }

    .calendar-day {
        min-height: 48px;
        padding: 6px;
    }

    .reminder-item {
        grid-template-columns: 1fr;
    }

    .reminder-actions {
        justify-content: flex-start;
    }

    .study-details strong,
    .submission-detail-grid strong {
        text-align: left;
    }

    .chat-message {
        max-width: 100%;
    }

    .user-hero,
    .assignment-header,
    .program-card-header,
    .inline-course-header {
        display: grid;
    }

    .user-hero-actions,
    .form-actions,
    .list-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .pagination {
        justify-content: flex-start;
    }

    .internal-message-layout,
    .internal-message-layout.audit-layout {
        grid-template-columns: 1fr;
    }

    .message-folders {
        display: flex;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .message-folders a {
        flex: 0 0 auto;
    }

    .message-list {
        max-height: 360px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .message-list-row a {
        grid-template-columns: 10px 20px minmax(0, 1fr);
    }

    .message-list-row time {
        grid-column: 3;
    }

    .message-reader,
    .internal-message-layout {
        min-height: auto;
    }

    .message-reader-header,
    .message-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .message-actions form,
    .message-actions button {
        width: 100%;
    }

    .internal-message-bubble {
        max-width: 100%;
    }
}

/* ==========================================================================
   UI ENHANCEMENT LAYER
   Visual polish — no functional changes. Safe to revert by removing this block.
   ========================================================================== */

/* Font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* Placeholder */
::placeholder { color: var(--muted); opacity: .55; }

/* Page content fade-in */
@keyframes page-fade {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

.content {
    animation: page-fade .22s ease both;
}

/* ---- Sidebar enhancements ---- */

/* Make sidebar a flex column so footer can be absolute-positioned */
.sidebar {
    display: flex;
    flex-direction: column;
    padding-bottom: 92px;
}

/* Sidebar nav scrolls if many items */
.nav {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.1) transparent;
}

.nav::-webkit-scrollbar { width: 3px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 999px; }

/* Nav icon subtle scale on hover */
.nav-icon { transition: transform .16s ease; }
.nav a:hover .nav-icon { transform: scale(1.1); }

/* Active nav link highlight */
.nav a[aria-current="page"] {
    background: linear-gradient(135deg, rgba(47,128,237,.26), rgba(0,166,166,.15));
    color: #fff;
    box-shadow: 0 3px 14px rgba(47,128,237,.2);
}

.nav a[aria-current="page"] .nav-icon { opacity: 1; }

/* Brand mark shadow */
.brand-mark {
    box-shadow: 0 4px 16px rgba(47,128,237,.3);
    font-size: 15px;
    letter-spacing: -.02em;
}

/* Sidebar user footer card */
.sidebar-footer {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.06);
    min-width: 0;
    color: #fff;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.sidebar-footer:hover {
    background: rgba(47,128,237,.16);
    border-color: rgba(47,128,237,.35);
    transform: translateY(-1px);
}

.sidebar-user-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    overflow: hidden;
}

.sidebar-user-avatar svg {
    width: 17px;
    height: 17px;
    display: block;
    fill: currentColor;
}

.topbar-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.sidebar-user-info { min-width: 0; flex: 1; }

.sidebar-user-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    display: block;
    font-size: 11px;
    color: var(--sidebar-link);
    text-transform: capitalize;
    margin-top: 1px;
}

/* ---- Topbar enhancements ---- */

.topbar p { font-size: 13px; }

.topbar-login-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 4px;
    color: var(--muted);
}

.topbar-login-meta svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    fill: currentColor;
}

.topbar-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: default;
    user-select: none;
    overflow: hidden;
}

/* ---- Button transitions ---- */

.button {
    transition: background .15s ease, color .15s ease, border-color .15s ease,
                box-shadow .15s ease, transform .1s ease, opacity .15s ease;
}

.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(0); }

.button.primary:hover:not(:disabled) {
    background: #1a70d9;
    box-shadow: 0 8px 24px rgba(47,128,237,.3);
}

.button.danger:hover:not(:disabled) {
    background: #cc4840;
    box-shadow: 0 8px 24px rgba(224,90,79,.3);
}

.button.ghost:hover:not(:disabled) {
    border-color: var(--blue);
    background: rgba(47,128,237,.06);
}

/* ---- Table enhancements ---- */

tbody tr { transition: background .13s ease; }

tbody tr:hover { background: rgba(47,128,237,.04); }

[data-theme="dark"] tbody tr:hover { background: rgba(47,128,237,.09); }

/* Last table row — remove bottom border */
tbody tr:last-child td { border-bottom: 0; }

/* ---- Card hover effects ---- */

.stat-card {
    transition: box-shadow .18s ease, transform .18s ease;
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 56px rgba(23,32,51,.13);
}

[data-theme="dark"] .stat-card:hover {
    box-shadow: 0 24px 56px rgba(0,0,0,.28);
}

.item-card {
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.item-card:hover {
    box-shadow: 0 18px 44px rgba(23,32,51,.12);
    transform: translateY(-2px);
    border-color: rgba(47,128,237,.25);
}

.program-progress-card {
    transition: box-shadow .18s ease, transform .18s ease;
}

.program-progress-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 38px rgba(23,32,51,.1);
}

.program-card { transition: box-shadow .18s ease, transform .18s ease; }

.program-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 52px rgba(23,32,51,.13);
}

/* ---- Chat row hover ---- */

.chat-row {
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    cursor: pointer;
}

.chat-row:hover {
    border-color: var(--blue);
    box-shadow: 0 6px 18px rgba(47,128,237,.1);
    background: rgba(47,128,237,.025);
}

/* ---- Due reminder hover ---- */

.due-reminder-list a {
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.due-reminder-list a:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 14px rgba(47,128,237,.12);
    transform: translateY(-1px);
}

/* ---- Alert improvements (left-border emphasis) ---- */

.alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-left: 3px solid transparent;
}

.alert.danger { border-left-color: var(--red); }
.alert.success { border-left-color: var(--green); }

/* ---- Empty state improvements ---- */

.empty-inline {
    padding: 40px 28px;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* ---- Panel header divider ---- */

.panel-header {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 20px;
}

/* ---- Input focus ring ---- */

input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(47,128,237,.14), 0 1px 3px rgba(47,128,237,.06);
}

/* ---- Mentor picker card hover ---- */

.mentor-picker label {
    transition: border-color .17s ease, box-shadow .17s ease, transform .17s ease;
}

.mentor-picker label:hover {
    box-shadow: 0 8px 22px rgba(47,128,237,.1);
}

/* ---- Message list hover ---- */

.message-list-row a {
    transition: background .13s ease;
}

.message-list-row a:hover {
    background: rgba(47,128,237,.05);
}

/* ---- Mobile: 2-column stats grids instead of 1 ---- */

@media (max-width: 820px) {
    .stats-grid,
    .student-stats-grid,
    .user-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   LOGIN PAGE REDESIGN
   ========================================================================== */

/* ---- Left form panel ---- */

.lp-brand {
    margin-bottom: 4px;
}

.login-panel .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 16px;
    letter-spacing: -.02em;
    box-shadow: 0 6px 20px rgba(47,128,237,.35);
}

.login-panel .brand-icon {
    width: 36px;
    height: 36px;
}

.lp-heading {
    margin: 30px 0 8px;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1.15;
    color: var(--text);
}

.lp-sub {
    margin: 0 0 6px;
    font-size: 14.5px;
    line-height: 1.6;
}

/* Icon-wrapped inputs */
.lp-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.lp-field-icon {
    position: absolute;
    left: 14px;
    width: 16px;
    height: 16px;
    fill: var(--muted);
    opacity: .7;
    pointer-events: none;
    flex-shrink: 0;
    transition: opacity .15s ease;
}

.lp-input-wrap:focus-within .lp-field-icon {
    opacity: 1;
    fill: var(--blue);
}

.lp-input-wrap input {
    padding-left: 42px;
}

/* Sign-in button */
.lp-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    min-height: 50px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.01em;
    border-radius: 14px;
    background: linear-gradient(135deg, #2f80ed, #1a70d9);
    box-shadow: 0 6px 22px rgba(47,128,237,.36);
    transition: box-shadow .2s ease, transform .15s ease;
}

.lp-submit-btn svg {
    width: 18px;
    height: 18px;
    transition: transform .2s ease;
}

.lp-submit-btn:hover:not(:disabled) {
    box-shadow: 0 12px 32px rgba(47,128,237,.48);
    transform: translateY(-1px);
}

.lp-submit-btn:hover:not(:disabled) svg {
    transform: translateX(3px);
}

/* Security note */
.lp-secure-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding: 11px 14px;
    border-radius: 12px;
    background: var(--button-soft);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.lp-secure-note svg {
    width: 14px;
    height: 14px;
    fill: var(--green);
    flex-shrink: 0;
}

/* ---- Right art panel (full redesign) ---- */

.login-art {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 36px;
    background: linear-gradient(148deg, #0c1a3a 0%, #0e2747 30%, #092536 65%, #0a2e22 100%);
    animation: none; /* disable the old loginBackgroundDrift */
}

[data-theme="dark"] .login-art {
    background: linear-gradient(148deg, #060e1e 0%, #081830 30%, #061b24 65%, #071d16 100%);
}

/* Ambient orbs */
.la-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.la-orb-1 {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -80px;
    background: radial-gradient(circle, rgba(47,128,237,.38) 0%, transparent 68%);
    filter: blur(60px);
    animation: laOrbDrift 14s ease-in-out infinite alternate;
}

.la-orb-2 {
    width: 320px;
    height: 320px;
    bottom: -80px;
    left: -60px;
    background: radial-gradient(circle, rgba(0,166,166,.35) 0%, transparent 68%);
    filter: blur(55px);
    animation: laOrbDrift 18s ease-in-out infinite alternate-reverse;
}

.la-orb-3 {
    width: 200px;
    height: 200px;
    top: 55%;
    right: 15%;
    background: radial-gradient(circle, rgba(33,166,122,.3) 0%, transparent 68%);
    filter: blur(42px);
    animation: laOrbDrift 10s ease-in-out infinite alternate;
    animation-delay: -5s;
}

@keyframes laOrbDrift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(18px, 22px) scale(1.1); }
}

/* Dot grid pattern */
.la-dot-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.1) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    opacity: .5;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Art content above orbs */
.login-art-content {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Headline */
.la-headline {
    text-align: center;
    animation: laSlideUp .5s ease both;
}

.la-headline h2 {
    margin: 0 0 10px;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 900;
    color: #fff;
    letter-spacing: -.03em;
    line-height: 1.2;
}

.la-gradient-text {
    background: linear-gradient(90deg, #5badff, #00d4d4, #4dd4a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.la-headline p {
    margin: 0;
    color: rgba(255,255,255,.55);
    font-size: 13.5px;
    line-height: 1.65;
}

/* ---- Cards grid ---- */

.la-cards {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
}

/* Shared glass card base */
.la-card {
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.11);
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
}

/* Slide-up entrance */
@keyframes laSlideUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.la-headline  { animation: laSlideUp .45s ease .1s both; }
.la-card-main { animation: laSlideUp .45s ease .2s both, laFloat 7s  ease-in-out 1s infinite; grid-row: span 2; }
.la-card-stats{ animation: laSlideUp .45s ease .35s both, laFloat 9s  ease-in-out 2s infinite; }
.la-card-sub  { animation: laSlideUp .45s ease .5s both,  laFloat 8s  ease-in-out 3s infinite; }
.la-pills     { animation: laSlideUp .45s ease .65s both; }

@keyframes laFloat {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* Card A — Program progress */
.la-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.la-card-head strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
}

.la-card-head span {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,.5);
    margin-top: 2px;
}

.la-card-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.la-card-icon svg {
    width: 17px;
    height: 17px;
}

.la-icon-blue {
    background: rgba(47,128,237,.28);
    color: #90c4ff;
}

/* SVG progress ring */
.la-ring-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
}

.la-ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.la-ring-track {
    fill: none;
    stroke: rgba(255,255,255,.1);
    stroke-width: 9;
}

.la-ring-fill {
    fill: none;
    stroke-width: 9;
    stroke-linecap: round;
    /* circumference = 2 * π * 38 ≈ 238.76 */
    stroke-dasharray: 238.76;
    stroke-dashoffset: 238.76;
    animation: laRingDraw 1.8s cubic-bezier(.22,.61,.36,1) .6s forwards;
}

/* 71% filled -> offset = 238.76 * (1 - .71) = 69.24 */
@keyframes laRingDraw {
    to { stroke-dashoffset: 69.24; }
}

.la-ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.la-ring-center strong {
    display: block;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}

.la-ring-center span {
    display: block;
    font-size: 9px;
    color: rgba(255,255,255,.5);
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Course list */
.la-course-list {
    display: grid;
    gap: 8px;
}

.la-course-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,.82);
}

.la-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.la-dot-green { background: #21a67a; }
.la-dot-amber { background: #f2a51a; }
.la-dot-muted { background: rgba(255,255,255,.25); }

.la-course-name { flex: 1; }

/* Mini status chips */
.la-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .02em;
    white-space: nowrap;
}

.la-chip-green { background: rgba(33,166,122,.22); color: #6de4ba; }
.la-chip-amber { background: rgba(242,165,26,.22);  color: #ffd06a; }
.la-chip-muted { background: rgba(255,255,255,.1);  color: rgba(255,255,255,.55); }

/* Card B — Stats */
.la-stats-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.la-stat {
    flex: 1;
    text-align: center;
}

.la-stat strong {
    display: block;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.la-stat span {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,.48);
    margin-top: 3px;
}

.la-stat-sep {
    width: 1px;
    height: 30px;
    background: rgba(255,255,255,.12);
    flex-shrink: 0;
}

.la-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255,255,255,.55);
    margin-bottom: 6px;
}

.la-bar-track {
    height: 7px;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    overflow: hidden;
}

.la-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2f80ed, #00a6a6, #21a67a);
    width: 0;
    animation: laBarFill 1.6s cubic-bezier(.22,.61,.36,1) .8s forwards;
}

@keyframes laBarFill {
    to { width: var(--la-bar-pct); }
}

/* Card C — Latest submission */
.la-card-sub {
    display: flex;
    align-items: center;
    gap: 12px;
}

.la-sub-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(33,166,122,.22);
    color: #6de4ba;
    flex-shrink: 0;
}

.la-sub-icon svg {
    width: 18px;
    height: 18px;
}

.la-sub-info {
    flex: 1;
    min-width: 0;
}

.la-sub-info strong {
    display: block;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.la-sub-info small {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,.4);
    margin-top: 5px;
}

/* Live activity pulse dot */
.la-sub-pulse {
    flex-shrink: 0;
}

.la-pulse-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #21a67a;
    box-shadow: 0 0 0 0 rgba(33,166,122,.6);
    animation: laPulse 2s ease-in-out infinite;
}

@keyframes laPulse {
    0%   { box-shadow: 0 0 0 0   rgba(33,166,122,.6); }
    70%  { box-shadow: 0 0 0 8px rgba(33,166,122,0);  }
    100% { box-shadow: 0 0 0 0   rgba(33,166,122,0);  }
}

/* ---- Feature pills ---- */

.la-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.la-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.78);
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(8px);
    transition: background .2s ease, border-color .2s ease, transform .15s ease;
}

.la-pill:hover {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.25);
    transform: translateY(-1px);
}

.la-pill svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

/* ---- Login responsive ---- */

@media (max-width: 820px) {
    .login-art { display: none; }
}

@media (max-width: 500px) {
    .lp-heading { font-size: 26px; }
    .login-panel { padding: 24px 20px; }
}
