* {
    box-sizing: border-box;
}

:root {
    --font-sans: Inter, Aptos, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: Inter, Aptos, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

.login-body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(21, 156, 203, 0.24), transparent 30rem),
        linear-gradient(135deg, #07365f 0%, #0a2344 48%, #041c2f 100%);
    color: #ffffff;
}

.login-page-art {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.login-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(24rem, 0.82fr);
    gap: clamp(1.25rem, 3vw, 3rem);
    align-items: center;
    min-height: 100vh;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2.5rem) 0;
}

.login-story {
    position: relative;
    min-height: 34rem;
    padding: clamp(1.35rem, 3vw, 2.4rem);
}

.login-story-grid {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 3.8rem 3.8rem;
    animation: login-grid-drift 18s linear infinite;
}

.login-signal-line {
    position: absolute;
    left: -12%;
    width: 124%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 210, 31, 0.85), transparent);
    opacity: 0.8;
}

.login-signal-line.one {
    top: 24%;
    animation: login-scan 5.8s ease-in-out infinite;
}

.login-signal-line.two {
    bottom: 22%;
    animation: login-scan 7.5s ease-in-out infinite reverse;
}

.login-brand-row,
.login-story-copy,
.login-visual,
.login-proof-list {
    position: relative;
    z-index: 1;
}

.login-brand-row {
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
}

.login-brand-mark,
.login-card-mark {
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #ffffff;
    color: #0b62b4;
    font-weight: 950;
}

.login-brand-mark {
    width: 2.55rem;
    height: 2.55rem;
    font-size: 1.1rem;
}

.login-brand-row strong,
.login-brand-row small {
    display: block;
}

.login-brand-row strong {
    font-size: 0.98rem;
    font-weight: 900;
}

.login-brand-row small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.75rem;
    font-weight: 650;
}

.login-story-copy {
    max-width: 39rem;
    margin-top: clamp(3.2rem, 8vw, 6rem);
}

.login-kicker {
    margin: 0;
    color: #ffd21f;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.login-story-copy h1 {
    margin: 0.72rem 0 0;
    color: #ffffff;
    font-size: clamp(2.45rem, 5vw, 4.7rem);
    font-weight: 950;
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.login-story-copy p:last-child {
    max-width: 35rem;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(0.95rem, 1.4vw, 1.08rem);
    line-height: 1.55;
}

.login-visual-card {
    position: absolute;
    display: grid;
    gap: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.075);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
    padding: 0.72rem 0.85rem;
    animation: login-float 7s ease-in-out infinite;
}

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

.login-visual-card span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
}

.login-visual-card strong {
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 950;
}

.login-visual-card.main {
    left: clamp(1rem, 4vw, 5rem);
    bottom: clamp(7.5rem, 11vw, 12rem);
    width: min(15rem, 24vw);
    min-height: 6.15rem;
    background: rgba(255, 255, 255, 0.095);
}

.login-visual-card.main i {
    display: block;
    overflow: hidden;
    height: 0.5rem;
    margin-top: 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.login-visual-card.main i::before {
    content: "";
    display: block;
    width: 78%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffd21f, #23c1d6);
    animation: login-progress 4.5s ease-in-out infinite;
}

.login-visual-card.progress {
    top: clamp(7rem, 12vw, 10.5rem);
    right: clamp(2rem, 10vw, 11rem);
    opacity: 0.5;
    animation-delay: -1.4s;
}

.login-visual-card.reports {
    right: clamp(1.25rem, 5vw, 6rem);
    bottom: clamp(7.5rem, 10vw, 11rem);
    opacity: 0.62;
    animation-delay: -2.5s;
}

.login-visual-card.access {
    bottom: clamp(3rem, 5vw, 5.5rem);
    left: clamp(2rem, 15vw, 17rem);
    opacity: 0.58;
    animation-delay: -3.2s;
}

.login-visual-card.attendance {
    top: clamp(4rem, 10vw, 8.4rem);
    left: clamp(1.5rem, 7vw, 8rem);
    opacity: 0.48;
    animation-delay: -4.1s;
}

.login-visual-card.hybrid {
    top: clamp(13rem, 20vw, 19rem);
    right: clamp(1.5rem, 24vw, 28rem);
    opacity: 0.45;
    animation-delay: -5.2s;
}

.login-visual-card.activities {
    right: clamp(2rem, 13vw, 16rem);
    bottom: clamp(2.5rem, 4vw, 4.5rem);
    opacity: 0.42;
    animation-delay: -6s;
}

.login-visual-card.import {
    top: clamp(18rem, 30vw, 27rem);
    left: clamp(1rem, 4vw, 5rem);
    opacity: 0.38;
    animation-delay: -6.8s;
}

.login-proof-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 39rem;
    margin-top: 2rem;
}

.login-proof-list div {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px);
    padding: 0.78rem;
}

.login-proof-list strong,
.login-proof-list span {
    display: block;
}

.login-proof-list strong {
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
}

.login-proof-list span {
    margin-top: 0.28rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
    line-height: 1.35;
}

.login-panel {
    position: relative;
    z-index: 2;
    justify-self: end;
}

.login-card {
    border: 1px solid rgba(207, 224, 238, 0.88);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
    padding: clamp(1.2rem, 2.4vw, 2rem);
}

.login-card-head {
    text-align: center;
}

.login-card-mark {
    width: 3.35rem;
    height: 3.35rem;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #0b62b4, #234fe2);
    color: #ffffff;
    font-size: 1.35rem;
}

.login-card-head .login-kicker {
    color: #0b62b4;
}

.login-card-head h2 {
    margin: 0.42rem 0 0;
    color: #081426;
    font-size: 1.65rem;
    font-weight: 950;
}

.login-card-head p:last-child {
    margin: 0.35rem auto 0;
    max-width: 22rem;
    color: #5a7089;
    font-size: 0.88rem;
    line-height: 1.45;
}

.login-mobile-punchline {
    display: none;
}

.login-alert {
    margin-top: 1rem;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff1f2;
    color: #b91c1c;
    padding: 0.78rem 0.9rem;
    font-size: 0.86rem;
    font-weight: 750;
}

.login-google-form {
    margin-top: 1.2rem;
}

.login-google-button,
.login-submit {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 3rem;
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
}

.login-google-button {
    border: 1px solid #cfe0ee;
    background: #ffffff;
    color: #0d1828;
    text-decoration: none;
}

.login-google-button:hover {
    background: #f4f8fc;
}

.login-divider {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    margin: 1rem 0;
}

.login-divider span {
    height: 1px;
    background: #dbe7f2;
}

.login-divider small {
    color: #7b8fa6;
    font-size: 0.72rem;
    font-weight: 800;
}

.login-form {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.25rem;
}

.login-field {
    display: grid;
    gap: 0.38rem;
}

.login-field label {
    color: #0d1828;
    font-size: 0.78rem;
    font-weight: 900;
}

.login-field input {
    width: 100%;
    min-height: 3rem;
    border: 1px solid #c9d8e6;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.75rem 0.9rem;
    color: #0d1828;
    font-size: 0.95rem;
    font-weight: 650;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.login-field input:focus {
    border-color: #0b62b4;
    box-shadow: 0 0 0 4px rgba(11, 98, 180, 0.14);
}

.login-submit {
    border: 0;
    background: linear-gradient(135deg, #0b62b4, #234fe2);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(35, 79, 226, 0.22);
}

.login-submit:hover {
    background: linear-gradient(135deg, #084e91, #1d45c8);
}

.login-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 0.9rem;
    font-size: 0.82rem;
}

.login-links a {
    color: #0b62b4;
    font-weight: 900;
}

.login-links span {
    color: #6b7f95;
    font-size: 0.76rem;
}

.login-offline-note {
    margin-top: 1.2rem;
    border: 1px solid #d6e7f8;
    border-radius: 8px;
    background: #edf6ff;
    color: #395872;
    padding: 0.85rem;
    font-size: 0.8rem;
    line-height: 1.45;
}

.login-offline-note strong {
    color: #07365f;
}

.login-legal {
    margin: 1rem auto 0;
    max-width: 24rem;
    color: #6b7f95;
    font-size: 0.75rem;
    line-height: 1.45;
    text-align: center;
}

.login-legal a {
    color: #0b62b4;
    font-weight: 900;
}

@keyframes login-grid-drift {
    from { background-position: 0 0; }
    to { background-position: 3.3rem 3.3rem; }
}

@keyframes login-scan {
    0%, 100% { transform: translateY(-1.2rem); opacity: 0.25; }
    50% { transform: translateY(1.2rem); opacity: 0.82; }
}

@keyframes login-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-0.7rem); }
}

@keyframes login-progress {
    0%, 100% { width: 62%; }
    50% { width: 86%; }
}

@media (prefers-reduced-motion: reduce) {
    .login-story-grid,
    .login-signal-line,
    .login-visual-card,
    .login-visual-card.main i::before {
        animation: none;
    }
}

@media (max-width: 980px) {
    .login-shell {
        grid-template-columns: 1fr;
        width: min(44rem, calc(100% - 1rem));
    }

    .login-story {
        min-height: auto;
        padding-bottom: 0;
    }

    .login-story-copy {
        margin-top: 2.5rem;
    }

    .login-visual-card {
        opacity: 0.45;
    }

    .login-visual-card.progress,
    .login-visual-card.reports,
    .login-visual-card.hybrid,
    .login-visual-card.activities,
    .login-visual-card.import {
        display: none;
    }

    .login-visual-card.main {
        left: 1rem;
        bottom: 2rem;
        width: 13rem;
    }

    .login-visual-card.access {
        right: 1rem;
        left: auto;
        bottom: 1.4rem;
    }

    .login-visual-card.attendance {
        top: auto;
        bottom: 6.4rem;
        left: auto;
        right: 1.5rem;
    }
}

@media (max-width: 640px) {
    .login-body {
        background:
            radial-gradient(circle at 50% -12%, rgba(255, 210, 31, 0.2), transparent 14rem),
            linear-gradient(180deg, #07365f 0%, #082746 52%, #041c2f 100%);
    }

    .login-shell {
        width: min(100% - 1rem, 27rem);
        padding: 0.42rem 0;
        gap: 0.5rem;
    }

    .login-story {
        min-height: auto;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        background: rgba(7, 54, 95, 0.38);
        backdrop-filter: blur(14px);
        padding: 0.72rem 0.78rem;
    }

    .login-brand-row {
        display: none;
    }

    .login-story-copy {
        margin-top: 0;
        text-align: left;
    }

    .login-story-copy .login-kicker {
        font-size: 0.6rem;
    }

    .login-story-copy h1 {
        margin-top: 0.32rem;
        max-width: 20rem;
        font-size: 1.28rem;
        line-height: 1.06;
        letter-spacing: -0.02em;
    }

    .login-story-copy p:last-child {
        margin-top: 0.42rem;
        max-width: 20rem;
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .login-proof-list {
        display: none;
    }

    .login-visual-card {
        display: none;
    }

    .login-card {
        border-color: rgba(255, 255, 255, 0.34);
        background: rgba(255, 255, 255, 0.82);
        backdrop-filter: blur(18px);
        padding: 0.86rem 0.9rem;
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    }

    .login-card-mark {
        width: 2.45rem;
        height: 2.45rem;
        margin-bottom: 0.48rem;
        font-size: 1.05rem;
    }

    .login-card-head .login-kicker {
        font-size: 0.58rem;
    }

    .login-card-head h2 {
        margin-top: 0.28rem;
        font-size: 1.18rem;
    }

    .login-card-head p:last-child {
        max-width: 17rem;
        font-size: 0.72rem;
        line-height: 1.32;
    }

    .login-mobile-punchline {
        display: block;
        margin-top: 0.25rem;
        color: #07365f;
        font-size: 0.8rem;
        font-weight: 950;
        line-height: 1.22;
    }

    .login-form {
        gap: 0.62rem;
        margin-top: 0.72rem;
    }

    .login-field {
        gap: 0.28rem;
    }

    .login-field label {
        font-size: 0.7rem;
    }

    .login-field input,
    .login-submit,
    .login-google-button {
        min-height: 2.55rem;
    }

    .login-field input {
        padding: 0.62rem 0.76rem;
        font-size: 0.88rem;
    }

    .login-links {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 0.55rem;
        margin-top: 0.72rem;
        font-size: 0.72rem;
    }

    .login-links span {
        font-size: 0.68rem;
    }

    .login-offline-note {
        margin-top: 0.68rem;
        padding: 0.58rem 0.65rem;
        background: rgba(237, 246, 255, 0.72);
        font-size: 0.68rem;
        line-height: 1.32;
    }

    .login-legal {
        margin-top: 0.62rem;
        font-size: 0.64rem;
        line-height: 1.35;
    }

    .login-signal-line {
        display: none;
    }
}

body {
    margin: 0;
    font-family: var(--font-sans);
    line-height: 1.5;
    background: #f3f6fa;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1000;
    transform: translateY(-150%);
    border-radius: 0.75rem;
    background: #ffffff;
    color: #1d4ed8;
    padding: 0.75rem 1rem;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
    transition: transform 0.15s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

button,
input,
select,
textarea {
    font: inherit;
    font-family: var(--font-sans);
}

button,
a {
    touch-action: manipulation;
}

img,
video,
iframe {
    max-width: 100%;
}

/* Layout utilities used by PASADO templates. */
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }
.flex { display: flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-y-0 { top: 0; bottom: 0; }
.inset-x-0 { left: 0; right: 0; }
.left-0 { left: 0; }
.bottom-0 { bottom: 0; }
.top-0 { top: 0; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.whitespace-pre-line { white-space: pre-line; }
.capitalize { text-transform: capitalize; }
.uppercase { text-transform: uppercase; }
.transition { transition: 0.18s ease; }
.relative { position: relative; }
.text-left { text-align: left; }
.overflow-y-auto { overflow-y: auto; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-64 { width: 16rem; }
.max-w-md { max-width: 28rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.grid-cols-1 { grid-template-columns: minmax(0, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.divide-y > * + * { border-top-width: 1px; }
.divide-slate-100 > * + * { border-top-color: #f1f5f9; }

.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pb-20 { padding-bottom: 5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }

.rounded-xl { border-radius: 8px; }
.rounded { border-radius: 6px; }
.rounded-2xl { border-radius: 8px; }
.rounded-3xl { border-radius: 8px; }
.rounded-full { border-radius: 9999px; }
.border { border: 1px solid #e2e8f0; }
.border-t { border-top: 1px solid #e2e8f0; }
.border-b { border-bottom: 1px solid #e2e8f0; }
.border-dashed { border-style: dashed; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }
.border-red-200 { border-color: #fecaca; }
.border-yellow-200 { border-color: #fde68a; }
.border-green-200 { border-color: #bbf7d0; }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }

.shadow-sm { box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06); }
.shadow-md { box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1); }
.shadow-2xl { box-shadow: 0 22px 45px rgba(15, 23, 42, 0.22); }

.bg-white { background: #ffffff; }
.bg-app { background: #f3f6fa; }
.bg-slate-50 { background: #f8fafc; }
.bg-slate-100 { background: #f1f5f9; }
.bg-slate-900 { background: #0f172a; }
.bg-slate-950 { background: #020617; }
.bg-blue-50 { background: #eff6ff; }
.bg-blue-600 { background: #2563eb; }
.bg-blue-700 { background: #1d4ed8; }
.bg-blue-800 { background: #1e40af; }
.bg-green-50 { background: #f0fdf4; }
.bg-green-600 { background: #16a34a; }
.bg-green-700 { background: #15803d; }
.bg-red-50 { background: #fef2f2; }
.bg-red-600 { background: #dc2626; }
.bg-yellow-50 { background: #fefce8; }
.bg-purple-700 { background: #7e22ce; }
.bg-orange-50 { background: #fff7ed; }
.bg-orange-600 { background: #ea580c; }
.bg-white\/10 { background: rgba(255, 255, 255, 0.1); }
.bg-white\/20 { background: rgba(255, 255, 255, 0.2); }
.bg-white\/90 { background: rgba(255, 255, 255, 0.92); }
.bg-black\/30 { background: rgba(0, 0, 0, 0.3); }
.bg-gradient-to-br {
    background: linear-gradient(135deg, #1e3a8a, #0f172a 48%, #042f2e);
}

.text-white { color: #ffffff; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-slate-900 { color: #0f172a; }
.text-slate-950 { color: #020617; }
.text-blue-700 { color: #1d4ed8; }
.text-blue-800 { color: #1e40af; }
.text-green-700 { color: #15803d; }
.text-green-800 { color: #166534; }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.text-yellow-700 { color: #a16207; }
.text-yellow-800 { color: #854d0e; }
.text-purple-700 { color: #7e22ce; }
.text-orange-600 { color: #ea580c; }
.text-orange-700 { color: #c2410c; }
.text-emerald-700 { color: #047857; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.tracking-wide { letter-spacing: 0; }
.tracking-tight { letter-spacing: 0; }
.tracking-widest { letter-spacing: 0.08em; }
.backdrop-blur { backdrop-filter: blur(10px); }

.hover\:shadow-md:hover { box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1); }
.hover\:bg-blue-800:hover { background: #1e40af; }
.hover\:bg-slate-700:hover { background: #334155; }
.hover\:bg-white\/10:hover { background: rgba(255, 255, 255, 0.1); }
.hover\:bg-white\/20:hover { background: rgba(255, 255, 255, 0.2); }

.form-input {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 0.85rem 1rem;
    outline: none;
    font-size: 0.95rem;
}

.form-input:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.topbar-profile-avatar {
    width: 2.35rem;
    height: 2.35rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #dbe7f6;
    border-radius: 999px;
    background: linear-gradient(135deg, #0b62d8, #20a6b8);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 950;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

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

.label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.35rem;
}

.card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.app-shell {
    background: #f3f6fa;
}

.app-main {
    min-width: 0;
}

.content-wrap {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.topbar {
    background: rgba(255, 255, 255, 0.94);
}

.topbar-inner {
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) auto;
    gap: 1rem;
    align-items: center;
}

.topbar-inner.has-course-nav {
    grid-template-columns: minmax(12rem, 1fr) auto auto;
}

.topbar-identity {
    justify-self: start;
}

.topbar-identity h1 {
    max-width: min(34vw, 34rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-actions {
    justify-content: flex-end;
    min-width: 0;
}

.navbar-brand-mark {
    display: none;
}

@media (max-width: 1023px) {
    .navbar-brand-mark {
        display: grid;
    }
}

@media (min-width: 1024px) {
    body.sidebar-collapsed .topbar-inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    body.sidebar-collapsed .navbar-brand-mark {
        display: none;
    }

    body.sidebar-collapsed .topbar-identity h1 {
        max-width: min(42vw, 42rem);
    }
}

.course-navbar-tabs {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    justify-self: end;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #eef4fb;
    padding: 0.25rem;
}

.course-navbar-tabs > a {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    border-radius: 7px;
    padding: 0.5rem 0.72rem;
    color: #334155;
    font-size: 0.84rem;
    font-weight: 900;
    white-space: nowrap;
}

.course-navbar-tabs > a:hover {
    color: #0b5bd3;
    background: #ffffff;
}

.course-navbar-tabs > a.is-active,
.course-navbar-menu summary.is-active {
    background: #0b5bd3;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(11, 91, 211, 0.22);
}

.course-navbar-menu {
    display: block;
    position: relative;
}

.course-navbar-menu summary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.35rem;
    border: 0;
    border-radius: 7px;
    background: transparent;
    padding: 0.5rem 0.72rem;
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.course-navbar-menu summary::-webkit-details-marker {
    display: none;
}

.course-navbar-menu[open] summary {
    background: #ffffff;
    color: #0b5bd3;
}

.course-navbar-menu > div {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 40;
    min-width: 14rem;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.35rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.course-navbar-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: 7px;
    padding: 0.65rem 0.7rem;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 850;
}

.course-navbar-menu a:hover {
    background: #eef5ff;
    color: #0b5bd3;
}

.course-navbar-menu a.is-active {
    background: #0b5bd3;
    color: #ffffff;
}

.navbar-edit-mode {
    padding-left: 0.15rem;
}

.course-navbar-fullscreen {
    flex: 0 0 auto;
}

.brand-mark {
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: #0b5bd3;
    color: #fff;
    font-weight: 900;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
}

.sidebar {
    background: #08213f;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transition: width 0.2s ease;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #dbeafe;
    font-size: 0.94rem;
    font-weight: 700;
}

.sidebar-icon {
    width: 1.35rem;
    height: 1.35rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #93c5fd;
}

.server-icon {
    display: none;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 8px;
    background: rgba(22, 163, 74, 0.18);
    color: #86efac;
}

.sidebar-link:hover,
.sidebar-link.is-active {
    background: rgba(255, 255, 255, 0.11);
    color: #ffffff;
}

.sidebar-link:hover .sidebar-icon,
.sidebar-link.is-active .sidebar-icon {
    color: #ffffff;
}

.sidebar-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 9999px;
    background: #60a5fa;
    flex: 0 0 auto;
}

.sidebar-toggle {
    position: absolute;
    top: 1rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

body.sidebar-collapsed .sidebar {
    width: 5rem !important;
}

body.sidebar-collapsed .sidebar h2,
body.sidebar-collapsed .sidebar p,
body.sidebar-collapsed .sidebar-label {
    display: none;
}

body.sidebar-collapsed .sidebar-link {
    justify-content: center;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

body.sidebar-collapsed .brand-mark {
    margin: 0 auto;
}

body.sidebar-collapsed .server-icon {
    display: grid;
}

.sidebar-scrim {
    display: none;
}

.navbar-menu-btn,
.navbar-icon-btn {
    width: 2.45rem;
    height: 2.45rem;
    display: inline-grid;
    place-items: center;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    color: #0b5bd3;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.navbar-icon-btn:hover,
.navbar-menu-btn:hover {
    border-color: #9dbdf5;
    background: #eef5ff;
}

.student-url-chip {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    padding: 0.42rem 0.65rem;
    color: #0b5bd3;
    max-width: min(32vw, 22rem);
}

.student-url-chip i {
    flex: 0 0 auto;
}

.student-url-chip span,
.student-url-chip strong {
    display: block;
    line-height: 1.15;
}

.student-url-chip span {
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
}

.student-url-chip strong {
    overflow: hidden;
    color: #081426;
    font-size: 0.78rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-bottom-nav a,
.mobile-bottom-nav button {
    display: grid;
    gap: 0.18rem;
    justify-items: center;
}

.mobile-bottom-nav i {
    font-size: 1rem;
}

.mobile-bottom-nav {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: var(--mobile-visual-viewport-bottom, 0px) !important;
    transform: translateY(0);
    transition: box-shadow 0.24s ease;
    box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.1);
    will-change: bottom;
}

body.mobile-bottom-nav-hidden .mobile-bottom-nav {
    transform: translateY(0);
}

@media (min-width: 1024px) {
    body.sidebar-collapsed .app-main {
        margin-left: 5rem !important;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.5rem;
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.18s ease;
}

.btn-sm {
    min-height: 2.15rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.8rem;
}

.btn i,
.course-builder-tabs i,
.builder-back-link i {
    font-size: 0.95em;
}

.btn-primary {
    background: #0b5bd3;
    color: #ffffff;
}

.btn-primary:hover {
    background: #084aa9;
}

.btn-secondary {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}

.btn-soft {
    background: #eef5ff;
    color: #0b5bd3;
}

.btn-success {
    background: #12805c;
    color: #ffffff;
}

.btn-danger {
    background: #b91c1c;
    color: #ffffff;
}

.btn-danger:hover {
    background: #991b1b;
}

.danger-outline {
    border-color: #fecaca;
    color: #b91c1c;
}

.danger-outline:hover {
    background: #fef2f2;
}

.attendance-action-form {
    margin: 0;
}

.page-hero {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.kpi-card {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 1rem;
}

.kpi-card strong {
    display: block;
    color: #0f172a;
    font-size: 1.65rem;
    line-height: 1.1;
}

.progress-track {
    width: 100%;
    height: 0.55rem;
    border-radius: 9999px;
    background: #dbe3ef;
    overflow: hidden;
}

.progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #0b5bd3;
}

.course-card {
    display: block;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: 0.18s ease;
}

.course-card:hover {
    border-color: #9dbdf5;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.course-cover {
    min-height: 5rem;
    background: linear-gradient(135deg, #0b5bd3, #12805c);
}

.course-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.course-health-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.course-card-actions .btn {
    min-height: 2.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
}

.course-action-modal[hidden] {
    display: none !important;
}

.course-action-modal {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.course-action-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(5px);
}

.course-action-dialog {
    position: relative;
    width: min(40rem, 100%);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.34);
}

.course-action-dialog header {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem;
}

.course-action-dialog h3 {
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 900;
}

.course-action-dialog header p:last-child {
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 700;
}

.course-action-icon {
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #eef5ff;
    color: #0b5bd3;
}

.course-action-dialog.danger .course-action-icon {
    background: #fef2f2;
    color: #b91c1c;
}

.attendance-display-body {
    min-height: 100vh;
    margin: 0;
    background: #eef5ff;
    color: #0f172a;
}

.attendance-display {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.attendance-display-panel {
    width: min(68rem, 100%);
    min-height: calc(100vh - 2.5rem);
    display: grid;
    grid-template-rows: auto auto 1fr auto auto;
    align-items: center;
    gap: 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    padding: clamp(1rem, 3vw, 2rem);
    text-align: center;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.attendance-display-panel h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.08;
}

.attendance-display-panel p {
    margin: 0;
}

.attendance-qr-frame {
    width: min(58vh, 34rem, 100%);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    justify-self: center;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #ffffff;
    padding: clamp(0.6rem, 2vw, 1.25rem);
}

.attendance-qr-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

.attendance-display-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
    width: 100%;
}

.attendance-display-meta div,
.attendance-display-meta > span,
.attendance-result-card {
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #f8fafc;
    padding: 0.75rem;
    text-align: left;
}

.attendance-display-meta span,
.attendance-result-card span {
    display: block;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.attendance-display-meta strong,
.attendance-result-card strong {
    display: block;
    margin-top: 0.2rem;
    color: #0f172a;
    font-size: 1rem;
}

.attendance-display-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
}

.attendance-result,
.attendance-scanner-panel {
    max-width: 44rem;
    margin: 0 auto;
}

.attendance-result h1,
.attendance-scanner-panel h1 {
    margin: 0.2rem 0 0.4rem;
    color: #0f172a;
    font-size: clamp(1.55rem, 4vw, 2.2rem);
    line-height: 1.12;
}

.attendance-result.success {
    border-color: #bbf7d0;
}

.attendance-result.info {
    border-color: #bfdbfe;
}

.attendance-result.warning {
    border-color: #fde68a;
}

.attendance-result.error {
    border-color: #fecaca;
}

.attendance-scanner-box {
    position: relative;
    overflow: hidden;
    margin: 1rem 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #0f172a;
    aspect-ratio: 4 / 3;
}

.attendance-scanner-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.attendance-scanner-message {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    padding: 0.65rem 0.75rem;
    font-size: 0.86rem;
    font-weight: 700;
}

.attendance-manual-form {
    display: grid;
    gap: 0.75rem;
}

@media (max-width: 720px) {
    .attendance-display {
        align-items: start;
        padding: 0.75rem;
    }

    .attendance-display-panel {
        min-height: calc(100vh - 1.5rem);
    }

    .attendance-display-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .course-health-actions {
        align-items: stretch;
    }

    .course-health-actions .btn,
    .course-health-actions .attendance-action-form {
        width: 100%;
    }
}

.course-action-form {
    display: grid;
    gap: 0.75rem;
    padding: 1.25rem;
}

.course-option-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: flex-start;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.85rem;
}

.course-option-row input {
    margin-top: 0.2rem;
}

.course-option-row strong,
.course-option-row small,
.course-confirm-field span,
.course-confirm-field strong {
    display: block;
}

.course-option-row strong {
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 900;
}

.course-option-row small {
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
}

.course-activity-picker {
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #ffffff;
}

.course-activity-picker[hidden] {
    display: none !important;
}

.course-activity-picker summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem;
    cursor: pointer;
}

.course-activity-picker summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #64748b;
    font-size: 0.75rem;
}

.course-activity-picker[open] summary {
    border-bottom: 1px solid #e2e8f0;
}

.course-activity-picker summary strong,
.course-activity-picker summary small {
    display: block;
}

.course-activity-picker summary strong {
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 900;
}

.course-activity-picker summary small,
.course-activity-empty {
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
}

.course-activity-picker-list {
    display: grid;
    gap: 0.75rem;
    max-height: 18rem;
    overflow-y: auto;
    padding: 0.85rem;
}

.course-activity-picker-section {
    display: grid;
    gap: 0.4rem;
}

.course-activity-picker-section > strong {
    color: #334155;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.course-activity-picker-section label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    padding: 0.55rem 0.65rem;
    color: #0f172a;
    font-size: 0.84rem;
    font-weight: 800;
}

.course-activity-picker-section i {
    color: #0b5bd3;
}

.course-confirm-field {
    display: grid;
    gap: 0.35rem;
}

.course-confirm-field span {
    color: #334155;
    font-size: 0.82rem;
    font-weight: 900;
}

.course-confirm-field strong {
    color: #0f172a;
    font-size: 0.9rem;
}

.course-confirm-field input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
}

.course-action-form footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 0.25rem;
    padding-top: 1rem;
}

.course-player {
    display: grid;
    grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.course-player-single {
    grid-template-columns: minmax(0, 1fr);
}

.student-learning-player {
    border-color: #d7e3f0;
    background: #f7faff;
}

.learner-player-header {
    position: sticky;
    top: 0;
    z-index: 15;
    border-bottom: 1px solid #dce7f3;
    background: rgba(255, 255, 255, 0.96);
    padding: 0.75rem 1rem;
    backdrop-filter: blur(10px);
}

.learner-player-header .lesson-title-actions {
    align-items: center;
}

.learner-player-kicker {
    color: #0b5bd3;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.learner-player-header h2 {
    margin-top: 0.12rem;
    color: #0f172a;
    font-size: 1.12rem;
    line-height: 1.25;
    font-weight: 900;
}

.learner-player-header p:not(.learner-player-kicker) {
    margin-top: 0.15rem;
    max-width: 58rem;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.4;
}

.learner-player-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.course-index,
.course-content,
.teacher-panel {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.course-index {
    position: sticky;
    top: 5.25rem;
    max-height: calc(100vh - 6.5rem);
    overflow-y: auto;
}

.index-link {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    color: #334155;
}

.index-link:hover,
.index-link.is-current {
    background: #eef5ff;
    color: #0b5bd3;
}

.status-dot {
    width: 1.2rem;
    height: 1.2rem;
    display: grid;
    place-items: center;
    border-radius: 9999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 900;
    flex: 0 0 auto;
}

.status-dot.done {
    background: #dcfce7;
    color: #166534;
}

.activity-card {
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.learner-resource-card {
    border-color: #cfdeee;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.learner-task-card {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.activity-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #eef2f7;
}

.activity-body {
    padding: 1rem;
}

.learner-resource-card .activity-body {
    padding: 0.85rem;
}

.learner-resource-header {
    align-items: center;
    padding: 0.85rem 1rem;
    background: #ffffff;
}

.learner-resource-header h3 {
    font-size: 1.02rem;
    line-height: 1.25;
}

.learner-resource-header p {
    max-width: 62rem;
}

.completion-evidence-panel {
    margin-top: 0.9rem;
    border: 1px solid #d8e4f2;
    border-radius: 8px;
    background: #fbfdff;
    padding: 0.95rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.completion-evidence-panel.is-compact {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(20rem, 1fr);
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.7rem;
    padding: 0.62rem 0.7rem;
    box-shadow: none;
}

.completion-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    margin-top: 0.7rem;
    border: 1px solid #9fd7bd;
    border-radius: 8px;
    background: #f5fff9;
    padding: 0.55rem;
}

.completion-row .completion-evidence-panel.is-compact {
    margin-top: 0;
    border: 0;
    background: transparent;
    padding: 0;
}

.completion-evidence-panel.is-ready {
    border-color: #9fd7bd;
    background: #f5fff9;
}

.completion-evidence-panel.is-completed {
    border-color: #86d6a8;
    background: #f0fdf6;
}

.completion-evidence-head {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.completion-evidence-panel.is-compact .completion-evidence-head {
    align-items: center;
    min-width: 0;
    gap: 0.55rem;
}

.completion-evidence-icon {
    width: 2.45rem;
    height: 2.45rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e8f1ff;
    color: #0b5bd3;
    flex: 0 0 auto;
}

.completion-evidence-panel.is-compact .completion-evidence-icon {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.78rem;
}

.completion-evidence-panel.is-ready .completion-evidence-icon,
.completion-evidence-panel.is-completed .completion-evidence-icon {
    background: #dcfce7;
    color: #15803d;
}

.completion-evidence-head strong {
    display: block;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 900;
}

.completion-evidence-panel.is-compact .completion-evidence-head strong {
    font-size: 0.82rem;
}

.completion-evidence-head p {
    margin-top: 0.18rem;
    color: #526173;
    font-size: 0.86rem;
    line-height: 1.45;
}

.completion-evidence-panel.is-compact .completion-evidence-head p {
    margin-top: 0.05rem;
    font-size: 0.74rem;
    line-height: 1.25;
}

.completion-evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
    gap: 0.6rem;
    margin-top: 0.85rem;
}

.completion-evidence-panel.is-compact .completion-evidence-grid {
    grid-template-columns: repeat(auto-fit, minmax(5.8rem, 1fr));
    gap: 0.35rem;
    margin-top: 0;
}

.completion-evidence-grid div {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.7rem;
}

.completion-evidence-panel.is-compact .completion-evidence-grid div {
    padding: 0.42rem 0.5rem;
    background: rgba(255, 255, 255, 0.86);
}

.completion-evidence-grid span {
    display: block;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.completion-evidence-panel.is-compact .completion-evidence-grid span {
    font-size: 0.58rem;
}

.completion-evidence-grid strong {
    display: block;
    margin-top: 0.18rem;
    color: #111827;
    font-size: 0.95rem;
    font-weight: 900;
}

.completion-evidence-panel.is-compact .completion-evidence-grid strong {
    margin-top: 0.05rem;
    font-size: 0.78rem;
}

.completion-action-form {
    display: flex;
    justify-content: flex-end;
    margin-top: 0;
}

.completion-action-form .btn {
    min-height: 2.5rem;
    padding: 0.55rem 0.95rem;
    font-size: 0.84rem;
}

.learner-resource-header .btn,
.learner-task-card .btn {
    min-height: 2rem;
    padding: 0.35rem 0.7rem;
    border-radius: 7px;
    font-size: 0.76rem;
    line-height: 1;
}

.activity-runtime-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: 0.35rem;
    padding: 0.16rem 0.42rem;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.68rem;
    font-weight: 850;
    vertical-align: middle;
}

.completion-action-form .btn {
    width: auto;
    min-height: 2.15rem;
    padding: 0.45rem 0.75rem;
    border-radius: 7px;
    font-size: 0.78rem;
}

.completion-action-form .btn[disabled] {
    opacity: 0.58;
    cursor: not-allowed;
    filter: grayscale(0.25);
}

.evidence-summary-panel {
    margin-top: 1rem;
    border: 1px solid #d8e4f2;
    border-radius: 8px;
    background: #fbfdff;
    padding: 0.9rem;
}

.evidence-summary-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.evidence-summary-head > i {
    width: 2.15rem;
    height: 2.15rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e8f1ff;
    color: #0b5bd3;
}

.evidence-summary-head strong,
.evidence-summary-head span {
    display: block;
}

.evidence-summary-head strong {
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 900;
}

.evidence-summary-head span {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 750;
}

.evidence-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.evidence-summary-grid div {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.6rem;
}

.evidence-summary-grid span,
.evidence-summary-grid strong {
    display: block;
}

.evidence-summary-grid span {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 850;
    text-transform: uppercase;
}

.evidence-summary-grid strong {
    margin-top: 0.12rem;
    color: #111827;
    font-size: 1rem;
    font-weight: 900;
}

.evidence-watch-list {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.evidence-watch-list div {
    display: grid;
    grid-template-columns: auto minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 0.45rem;
    align-items: center;
    color: #475569;
    font-size: 0.78rem;
}

.evidence-watch-list i {
    color: #0b5bd3;
}

.evidence-watch-list span,
.evidence-watch-list strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.evidence-watch-list strong {
    color: #1f2937;
    font-weight: 850;
}

.evidence-watch-list p {
    color: #64748b;
    font-size: 0.8rem;
}

.type-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    background: #eef5ff;
    color: #0b5bd3;
    padding: 0.2rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.teacher-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1rem;
    align-items: start;
}

.teacher-workspace-wide {
    grid-template-columns: minmax(0, 1fr) 300px;
}

.gov-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #d7e1ee;
    border-top: 4px solid #174ea6;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.gov-hero-main {
    min-width: 0;
}

.gov-title {
    color: #081426;
    font-size: clamp(1.65rem, 2.2vw, 2.35rem);
    line-height: 1.15;
    font-weight: 900;
}

.gov-action-panel {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
    min-width: 18rem;
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.stat-strip > div {
    background: #ffffff;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.stat-strip span {
    display: block;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.stat-strip strong {
    display: block;
    margin-top: 0.35rem;
    color: #081426;
    font-size: 1.75rem;
    line-height: 1;
    font-weight: 900;
}

.premium-module {
    border-color: #d7e1ee;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.lesson-accordion.module-card,
.premium-module {
    position: relative;
    overflow: visible;
}

.lesson-accordion.has-open-menu {
    z-index: 90;
}

.premium-module-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    padding: 1.1rem;
    background: #ffffff;
    border-bottom: 1px solid #d7e1ee;
}

.module-drag-handle,
.activity-grip {
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    background: #f8fafc;
    cursor: grab;
    font-weight: 900;
}

.module-title-area h3 {
    margin-top: 0.45rem;
    color: #081426;
    font-size: 1.2rem;
    font-weight: 900;
}

.module-title-area p {
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.9rem;
}

.module-sequence {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    background: #eaf2ff;
    color: #174ea6;
    padding: 0.2rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 900;
}

.status-pill.success {
    background: #dcfce7;
    color: #166534;
}

.status-pill.danger {
    background: #fee2e2;
    color: #991b1b;
}

.status-pill.muted {
    background: #e2e8f0;
    color: #475569;
}

.status-pill i {
    margin-right: 0.3rem;
}

.module-toolbar,
.activity-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.icon-btn {
    min-width: 2.35rem;
    min-height: 2.35rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #174ea6;
    font-size: 0.95rem;
    font-weight: 900;
    cursor: pointer;
}

.icon-btn:hover {
    background: #eaf2ff;
    border-color: #9dbdf5;
}

.icon-btn-arrow,
.icon-btn-menu {
    width: 2.35rem;
    padding: 0;
    line-height: 1;
}

.icon-btn-menu {
    display: grid;
    place-items: center;
    font-size: 1.2rem;
}

.more-menu {
    position: relative;
}

.more-menu > summary {
    list-style: none;
}

.more-menu > summary::-webkit-details-marker {
    display: none;
}

.more-menu-panel {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.45rem);
    z-index: 80;
    width: 15rem;
    max-height: min(28rem, calc(100vh - 2rem));
    overflow-y: auto;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.16);
}

.more-menu[open] .more-menu-panel {
    display: block;
}

.more-menu-panel a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 0.9rem;
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 700;
}

.more-menu-panel button {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    border: 0;
    background: #ffffff;
    padding: 0.75rem 0.9rem;
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.more-menu-panel i {
    width: 1rem;
    color: #0b5bd3;
}

.more-menu-panel a:hover,
.more-menu-panel button:hover {
    background: #f1f5f9;
    color: #174ea6;
}

.more-menu-panel button.danger-action {
    color: #991b1b;
}

.more-menu-panel button.danger-action i {
    color: #dc2626;
}

.more-menu-panel button.danger-action:hover {
    background: #fef2f2;
    color: #7f1d1d;
}

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

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.confirm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(3px);
}

.confirm-modal-dialog {
    position: relative;
    width: min(30rem, 100%);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.26);
}

.confirm-modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.1rem 0.65rem;
}

.confirm-modal-icon {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b5bd3;
    flex: 0 0 auto;
}

.confirm-modal[data-tone="danger"] .confirm-modal-icon {
    background: #fef2f2;
    color: #dc2626;
}

.confirm-modal-title {
    margin: 0;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 900;
}

.confirm-modal-body {
    padding: 0 1.1rem 1rem;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.55;
}

.confirm-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    border-top: 1px solid #e2e8f0;
    padding: 0.85rem 1.1rem 1rem;
}

.confirm-modal-submit.is-danger {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

.confirm-modal-submit.is-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

.module-section-list {
    background: #f8fafc;
    padding: 1rem;
    overflow: visible;
}

.lesson-accordion > summary {
    list-style: none;
    cursor: pointer;
}

.lesson-accordion > summary::-webkit-details-marker {
    display: none;
}

.lesson-accordion:not([open]) .premium-module-header {
    border-bottom: 0;
}

.mixed-activity-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.9rem 1rem;
    margin-bottom: 0.9rem;
}

.mixed-activity-toolbar h4 {
    color: #334155;
    font-size: 0.88rem;
    font-weight: 900;
    text-transform: uppercase;
}

.mixed-activity-toolbar p {
    color: #64748b;
    font-size: 0.86rem;
}

.mixed-activity-list {
    padding: 0;
    overflow: visible;
}

.section-add-activity-btn {
    width: 3rem;
    height: 2.75rem;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: #0b5bd3;
    color: #ffffff;
    font-size: 1rem;
    box-shadow: 0 10px 22px rgba(11, 91, 211, 0.24);
    cursor: pointer;
}

.section-add-activity-btn:hover,
.section-add-inline:hover,
.section-add-line button:hover,
.empty-section-add:hover {
    background: #174ea6;
    color: #ffffff;
}

.section-add-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    border: 1px solid #b9cdf0;
    border-radius: 8px;
    background: #ffffff;
    padding: 0 0.95rem;
    color: #0b5bd3;
    font-weight: 900;
    cursor: pointer;
}

.section-add-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0 0.2rem;
}

.section-add-line span {
    height: 1px;
    background: #dbe3ef;
}

.section-add-line button {
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: #0b5bd3;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(11, 91, 211, 0.22);
    cursor: pointer;
}

.section-insert-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 1rem;
}

.section-insert-line > span {
    height: 1px;
    background: #dbe3ef;
}

.section-insert-line a {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid #b9cdf0;
    border-radius: 8px;
    background: #ffffff;
    padding: 0 0.9rem;
    color: #0b5bd3;
    font-size: 0.9rem;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(11, 91, 211, 0.08);
}

.section-insert-line a:hover {
    border-color: #0b5bd3;
    background: #eef5ff;
    color: #174ea6;
}

.section-insert-line i {
    width: 1.8rem;
    height: 1.8rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #0b5bd3;
    color: #ffffff;
}

.activity-insert-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0;
    opacity: 0.72;
    transition: opacity 0.15s ease;
}

.activity-insert-line:hover,
.activity-insert-line:focus-within {
    opacity: 1;
}

.activity-insert-line > span {
    height: 1px;
    background: #dbe3ef;
}

.activity-insert-line button {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border: 1px solid #b9cdf0;
    border-radius: 8px;
    background: #ffffff;
    color: #0b5bd3;
    font-size: 0.82rem;
    box-shadow: 0 6px 14px rgba(11, 91, 211, 0.1);
    cursor: pointer;
}

.activity-insert-line button:hover {
    border-color: #0b5bd3;
    background: #0b5bd3;
    color: #ffffff;
}

.autosave-status {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    padding: 0.75rem 0.85rem;
    color: #174ea6;
    font-size: 0.82rem;
    font-weight: 900;
}

.autosave-status i {
    color: #0b5bd3;
}

.autosave-status[data-state="saving"] {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.autosave-status[data-state="saving"] i {
    color: #d97706;
}

.autosave-status[data-state="saved"] {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

.autosave-status[data-state="saved"] i {
    color: #15803d;
}

.autosave-status[data-state="error"] {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.autosave-status[data-state="error"] i {
    color: #b91c1c;
}

.empty-section-add {
    width: 100%;
    min-height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    border: 1px dashed #9dbdf5;
    border-radius: 8px;
    background: #f8fbff;
    color: #0b5bd3;
    font-weight: 900;
    cursor: pointer;
}

.empty-section-add i {
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #0b5bd3;
    color: #ffffff;
}

.view-only {
    display: block;
}

body.edit-mode-on .view-only {
    display: none !important;
}

.activity-section {
    overflow: visible;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
}

.activity-section + .activity-section {
    margin-top: 0.9rem;
}

.activity-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #edf2f7;
}

.activity-section-heading h4 {
    color: #334155;
    font-size: 0.84rem;
    font-weight: 900;
    text-transform: uppercase;
}

.activity-section-heading a {
    color: #174ea6;
    font-size: 0.82rem;
    font-weight: 900;
}

.activity-dropzone {
    display: grid;
    gap: 0.65rem;
    padding: 0.8rem;
}

.activity-dropzone.is-drop-target {
    outline: 2px dashed #0b5bd3;
    outline-offset: 4px;
    background: #eef5ff;
}

.activity-row-premium {
    position: relative;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.75rem;
    scroll-margin-top: 6rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    overflow: visible;
    z-index: 1;
}

.activity-row-premium.has-open-menu {
    z-index: 100;
}

.activity-row-premium:hover {
    border-color: #9dbdf5;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
    transform: translateY(-1px);
}

.activity-row-premium:target {
    border-color: #0b5bd3;
    box-shadow: 0 0 0 3px rgba(11, 91, 211, 0.16);
}

.activity-row-premium[data-hidden-activity="true"] {
    background: #f8fafc;
    border-style: dashed;
}

.activity-row-premium[data-hidden-activity="true"] .activity-type-icon,
.activity-row-premium[data-hidden-activity="true"] .activity-row-title {
    opacity: 0.72;
}

.lesson-accordion[data-hidden-section="true"] > .premium-module-header {
    background: #f8fafc;
}

.lesson-accordion[data-hidden-section="true"] .module-title-area h3,
.lesson-accordion[data-hidden-section="true"] .module-title-area p {
    opacity: 0.76;
}

.activity-type-icon,
.mini-activity-icon {
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-weight: 900;
    position: relative;
}

.activity-type-icon {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 0.86rem;
}

.mini-activity-icon {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.68rem;
    flex: 0 0 auto;
}

.activity-type-icon i,
.mini-activity-icon i {
    line-height: 1;
}

.activity-type-icon.book,
.mini-activity-icon.book {
    background: #eaf2ff;
    color: #174ea6;
}

.activity-type-icon.task,
.mini-activity-icon.task {
    background: #f5f3ff;
    color: #6d28d9;
}

.activity-type-icon.quiz,
.mini-activity-icon.quiz {
    background: #fff7ed;
    color: #c2410c;
}

.activity-type-icon.h5p,
.mini-activity-icon.h5p {
    background: #ecfeff;
    color: #0e7490;
}

.mini-activity-icon.done {
    background: #dcfce7;
    color: #15803d;
}

.course-context-sidebar .course-sidebar-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem;
}

.course-sidebar-back {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.75rem 0.85rem;
    color: #dbeafe;
    font-size: 0.86rem;
    font-weight: 900;
}

.course-sidebar-preview-exit {
    margin-top: 0.55rem;
    background: #0b5bd3;
    color: #ffffff;
}

.course-sidebar-preview-exit:hover {
    background: #174ea6;
}

.course-sidebar-title {
    margin: 1rem 0 0.55rem;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.35;
    text-transform: uppercase;
}

.course-sidebar-section {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-radius: 8px;
    padding: 0.62rem 0.68rem;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 900;
}

.course-sidebar-section.is-current {
    background: rgba(59, 130, 246, 0.2);
    box-shadow: inset 3px 0 0 #60a5fa;
}

.course-sidebar-section.is-completed .course-sidebar-icon {
    background: #dcfce7;
    color: #15803d;
}

.course-sidebar-count {
    margin-left: auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.12rem 0.42rem;
    color: #cfe3ff;
    font-size: 0.64rem;
    font-weight: 900;
}

.course-sidebar-details > summary {
    list-style: none;
}

.course-sidebar-details > summary::-webkit-details-marker {
    display: none;
}

.course-sidebar-section:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-chevron {
    color: #93c5fd;
    font-size: 0.72rem;
    transition: transform 0.18s ease;
}

.course-sidebar-details[open] .sidebar-chevron {
    transform: rotate(180deg);
}

.course-sidebar-icon {
    width: 1.6rem;
    height: 1.6rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #0b5bd3;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    flex: 0 0 auto;
}

.course-sidebar-icon i {
    font-size: 0.78rem;
}

.course-sidebar-activities {
    display: grid;
    gap: 0.22rem;
    margin: 0.15rem 0 0.75rem 2.05rem;
}

.course-sidebar-activities > span,
.course-sidebar-activity,
.course-sidebar-activity-link {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #cbd5e1;
    font-size: 0.78rem;
    line-height: 1.35;
}

.course-sidebar-activity,
.course-sidebar-activity-link {
    border-radius: 8px;
    padding: 0.34rem 0.38rem;
    min-height: 2rem;
    text-decoration: none;
}

.course-sidebar-activity:hover,
.course-sidebar-activity-link:hover,
.course-sidebar-activity-link:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.course-sidebar-activity-link.is-current {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: inset 3px 0 0 #60a5fa;
}

.course-sidebar-activity-link.is-completed {
    color: #e6f8ee;
}

.course-sidebar-activity-link.is-completed .sidebar-label {
    color: #e6f8ee;
}

.mini-activity-icon.section-mini {
    background: rgba(255, 255, 255, 0.14);
    color: #dbeafe;
}

body.sidebar-collapsed .course-sidebar-back,
body.sidebar-collapsed .course-sidebar-title,
body.sidebar-collapsed .course-sidebar-activities {
    display: none;
}

.activity-kind {
    min-width: 6rem;
    border-radius: 9999px;
    padding: 0.3rem 0.6rem;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.activity-kind.resource {
    background: #eaf2ff;
    color: #174ea6;
}

.activity-kind.assignment {
    background: #f5f3ff;
    color: #6d28d9;
}

.activity-kind.quiz {
    background: #fff7ed;
    color: #c2410c;
}

.activity-row-title strong,
.activity-row-title span {
    display: block;
}

.activity-row-title strong {
    color: #081426;
    font-weight: 900;
}

.activity-row-title span {
    color: #64748b;
    font-size: 0.8rem;
}

.activity-description-preview {
    margin-top: 0.2rem;
    max-width: 100%;
}

.activity-description-preview > summary {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
}

.activity-description-preview > summary::-webkit-details-marker {
    display: none;
}

.activity-description-preview > summary::after {
    content: "Show more";
    flex: 0 0 auto;
    border-radius: 9999px;
    background: #eaf2ff;
    color: #174ea6;
    padding: 0.08rem 0.45rem;
    font-size: 0.68rem;
    font-weight: 900;
}

.activity-description-preview[open] > summary::after {
    content: "Show less";
}

.activity-description-line {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-description-preview[open] .activity-description-line {
    white-space: normal;
    overflow: visible;
}

.activity-description-preview > div {
    margin-top: 0.45rem;
    border-left: 3px solid #bfdbfe;
    padding: 0.45rem 0 0.45rem 0.75rem;
    color: #475569;
    font-size: 0.82rem;
    line-height: 1.5;
}

.empty-section-row {
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 0.85rem;
    color: #64748b;
    font-size: 0.88rem;
    text-align: center;
}

.is-dragging {
    opacity: 0.45;
}

.enrollment-key-box {
    margin-top: 1rem;
    border-radius: 8px;
    background: #eef4fb;
    padding: 1rem;
    text-align: center;
}

.enrollment-key-box span,
.enrollment-key-box strong {
    display: block;
}

.enrollment-key-box span {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.enrollment-key-box strong {
    margin-top: 0.35rem;
    color: #081426;
    font-size: 1.55rem;
    letter-spacing: 0.08em;
}

.side-action-stack {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
}

.section-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.section-title-row h3 {
    color: #081426;
    font-size: 1.25rem;
    font-weight: 900;
}

.section-title-row p {
    color: #64748b;
    font-size: 0.9rem;
}

.teacher-course-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.teacher-course-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 16rem;
    overflow: hidden;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transition: 0.18s ease;
}

.teacher-course-card:hover {
    border-color: #9dbdf5;
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.1);
}

.teacher-course-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #d7e1ee;
    background: #08213f;
    padding: 0.85rem 1rem;
    color: #ffffff;
}

.teacher-course-card-header span,
.teacher-course-card-header strong {
    font-size: 0.78rem;
    font-weight: 900;
}

.teacher-course-card-body {
    padding: 1.1rem;
}

.teacher-course-card-body h4 {
    margin-top: 0.55rem;
    color: #081426;
    font-size: 1.1rem;
    line-height: 1.25;
    font-weight: 900;
}

.teacher-course-card-body p:last-child {
    margin-top: 0.55rem;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 700;
}

.teacher-course-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #edf2f7;
    padding: 0.85rem 1rem;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 900;
}

.teacher-course-card-footer span:last-child {
    color: #174ea6;
}

.tool-list {
    display: grid;
    gap: 0.65rem;
}

.tool-list a {
    display: block;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.9rem;
}

.tool-list a:hover {
    border-color: #9dbdf5;
    background: #f8fbff;
}

.tool-list span,
.tool-list strong {
    display: block;
}

.tool-list span {
    color: #174ea6;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.tool-list strong {
    margin-top: 0.2rem;
    color: #081426;
    font-size: 0.9rem;
}

.teacher-home {
    display: grid;
    gap: 1.25rem;
}

.teacher-command {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: center;
    border: 1px solid #d7e1ee;
    border-top: 4px solid #0b5bd3;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(239, 246, 255, 0.78), rgba(255, 255, 255, 0.94)),
        #ffffff;
    padding: 1.35rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.teacher-command-copy {
    min-width: 0;
}

.eyebrow {
    color: #0b5bd3;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.teacher-command h2 {
    margin-top: 0.3rem;
    color: #081426;
    font-size: clamp(1.85rem, 3vw, 2.75rem);
    line-height: 1.05;
    font-weight: 900;
}

.teacher-command p:last-child {
    max-width: 46rem;
    margin-top: 0.55rem;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 650;
}

.teacher-command-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.teacher-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.teacher-kpi {
    min-height: 7rem;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.teacher-kpi span,
.teacher-kpi strong,
.teacher-kpi small {
    display: block;
}

.teacher-kpi span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.teacher-kpi strong {
    margin-top: 0.35rem;
    color: #081426;
    font-size: 1.85rem;
    line-height: 1;
    font-weight: 900;
}

.teacher-kpi small {
    margin-top: 0.65rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 750;
}

.teacher-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1rem;
    align-items: start;
}

.teacher-main-column,
.teacher-side-column {
    min-width: 0;
}

.teacher-side-column {
    display: grid;
    gap: 1rem;
}

.dashboard-panel {
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.dashboard-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashboard-panel-head.compact {
    margin-bottom: 0.8rem;
}

.dashboard-panel-head h3 {
    margin-top: 0.15rem;
    color: #081426;
    font-size: 1.15rem;
    line-height: 1.2;
    font-weight: 900;
}

.course-health-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.course-health-card {
    display: grid;
    gap: 1rem;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 1rem;
    transition: 0.18s ease;
}

.course-health-card:hover {
    border-color: #9dbdf5;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
}

.course-health-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.course-health-top h4 {
    margin-top: 0.35rem;
    color: #081426;
    font-size: 1.05rem;
    line-height: 1.25;
    font-weight: 900;
}

.course-health-top span:not(.health-status) {
    display: block;
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 800;
}

.course-code {
    color: #0b5bd3;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.health-status {
    flex: 0 0 auto;
    border-radius: 9999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 900;
    white-space: nowrap;
}

.health-status.success {
    background: #dcfce7;
    color: #166534;
}

.health-status.warning {
    background: #fef3c7;
    color: #92400e;
}

.health-status.danger {
    background: #fee2e2;
    color: #991b1b;
}

.health-meter {
    display: grid;
    gap: 0.45rem;
}

.health-meter-label {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 900;
}

.health-meter-label strong {
    color: #081426;
}

.course-health-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.course-health-metrics div {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.7rem;
}

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

.course-health-metrics span {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.course-health-metrics strong {
    margin-top: 0.15rem;
    color: #081426;
    font-size: 1rem;
    font-weight: 900;
}

.activity-mix {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.activity-mix span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid #d7e1ee;
    padding: 0.28rem 0.55rem;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 850;
}

.course-health-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 0.85rem;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 900;
}

.course-health-footer a {
    color: #0b5bd3;
}

.priority-list {
    display: grid;
    gap: 0.65rem;
}

.priority-item,
.priority-empty {
    position: relative;
    display: block;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.85rem 0.85rem 0.85rem 2.1rem;
}

.priority-item:hover {
    border-color: #9dbdf5;
    background: #f8fbff;
}

.priority-item strong,
.priority-item small,
.priority-empty strong,
.priority-empty small {
    display: block;
}

.priority-item strong,
.priority-empty strong {
    color: #081426;
    font-size: 0.88rem;
    font-weight: 900;
}

.priority-item small,
.priority-empty small {
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 750;
}

.priority-mark {
    position: absolute;
    left: 0.85rem;
    top: 1rem;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 9999px;
}

.priority-mark.success {
    background: #16a34a;
}

.priority-mark.warning {
    background: #f59e0b;
}

.priority-mark.danger {
    background: #dc2626;
}

.tool-list.refined a {
    background: #f8fbff;
}

.readiness-panel {
    background:
        linear-gradient(135deg, rgba(11, 91, 211, 0.1), rgba(18, 128, 92, 0.12)),
        #ffffff;
}

.readiness-panel h3 {
    margin-top: 0.25rem;
    color: #081426;
    font-size: 1.1rem;
    font-weight: 900;
}

.teacher-health-action {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.92);
}

.system-health-card {
    padding: 0;
    overflow: hidden;
}

.system-health-card.success {
    border-color: #9fd7bd;
}

.system-health-card.warning {
    border-color: #f8d47a;
}

.system-health-card.danger {
    border-color: #f6a4a4;
}

.system-health-entry {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    color: inherit;
}

.system-health-entry:hover {
    background: #f8fbff;
}

.system-health-entry-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}

.system-health-icon {
    width: 2.45rem;
    height: 2.45rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf3ff;
    color: #0b62d8;
}

.system-health-entry-top h3 {
    margin-top: 0.12rem;
    color: #081426;
    font-size: 1.05rem;
    font-weight: 900;
}

.system-health-entry-top > strong {
    color: #081426;
    font-size: 1.75rem;
    line-height: 1;
    font-weight: 950;
}

.system-health-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

.system-health-mini-grid div {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.58rem;
}

.system-health-mini-grid span,
.system-health-mini-grid strong {
    display: block;
}

.system-health-mini-grid span {
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.system-health-mini-grid strong {
    margin-top: 0.16rem;
    color: #081426;
    font-size: 0.9rem;
    font-weight: 950;
}

.system-health-open {
    color: #0b62d8;
    font-size: 0.8rem;
    font-weight: 900;
}

.system-health-page {
    max-width: 90rem;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.system-health-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid #d7e1ee;
    border-top: 4px solid #0b62d8;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff, #eef6ff);
    padding: 1.35rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.system-health-hero.success {
    border-top-color: #16a34a;
}

.system-health-hero.warning {
    border-top-color: #f59e0b;
}

.system-health-hero.danger {
    border-top-color: #dc2626;
}

.system-health-hero h2 {
    margin-top: 0.35rem;
    color: #081426;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1;
    font-weight: 950;
}

.system-health-hero p:not(.eyebrow) {
    margin-top: 0.55rem;
    color: #52657f;
    font-size: 0.96rem;
    font-weight: 750;
}

.system-health-score {
    min-width: 12rem;
    border: 1px solid #cfe0f4;
    border-radius: 8px;
    background: #ffffff;
    padding: 1rem;
    text-align: center;
}

.system-health-score strong,
.system-health-score span,
.system-health-score small {
    display: block;
}

.system-health-score strong {
    color: #081426;
    font-size: 3.2rem;
    line-height: 1;
    font-weight: 950;
}

.system-health-score span {
    margin-top: 0.25rem;
    color: #0b62d8;
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
}

.system-health-score small {
    margin-top: 0.5rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
}

.system-health-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.system-health-kpis article {
    min-height: 8.2rem;
    display: grid;
    align-content: start;
    gap: 0.3rem;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.system-health-kpis i {
    width: 2.2rem;
    height: 2.2rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf3ff;
    color: #0b62d8;
}

.system-health-kpis span,
.system-health-kpis strong,
.system-health-kpis small {
    display: block;
}

.system-health-kpis span {
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 950;
    text-transform: uppercase;
}

.system-health-kpis strong {
    color: #081426;
    font-size: 1.85rem;
    line-height: 1;
    font-weight: 950;
}

.system-health-kpis small {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 750;
}

.system-health-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22rem;
    gap: 1rem;
    align-items: start;
}

.system-health-main,
.system-health-side {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.system-meter-list {
    display: grid;
    gap: 0.9rem;
}

.system-meter-row {
    display: grid;
    gap: 0.45rem;
}

.system-meter-row > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.system-meter-row strong,
.system-meter-row span {
    color: #081426;
    font-size: 0.88rem;
    font-weight: 900;
}

.system-meter-row span {
    color: #64748b;
}

.system-meter-row i {
    height: 0.72rem;
    overflow: hidden;
    border-radius: 9999px;
    background: #e2e8f0;
}

.system-meter-row b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #16a34a, #0b62d8);
}

.system-connection-grid,
.system-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.system-connection-grid div,
.system-facts div {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.85rem;
}

.system-connection-grid span,
.system-connection-grid strong,
.system-facts span,
.system-facts strong {
    display: block;
}

.system-connection-grid span,
.system-facts span {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 950;
    text-transform: uppercase;
}

.system-connection-grid strong,
.system-facts strong {
    margin-top: 0.2rem;
    color: #081426;
    font-size: 1.2rem;
    font-weight: 950;
}

.system-warning-list {
    display: grid;
    gap: 0.55rem;
}

.system-warning-list div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
    border: 1px solid #fde68a;
    border-radius: 8px;
    background: #fffbeb;
    padding: 0.75rem;
    color: #92400e;
    font-size: 0.84rem;
    font-weight: 850;
}

.system-warning-list .is-clear {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.system-runtime {
    display: grid;
    gap: 0.65rem;
}

.system-runtime span,
.system-runtime strong {
    display: block;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.system-runtime strong {
    color: #081426;
    font-weight: 950;
}

.system-roster-panel {
    overflow: hidden;
}

.system-user-list {
    display: grid;
    gap: 0.65rem;
    max-height: 28rem;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.system-user-list.compact {
    max-height: 22rem;
}

.system-user-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.82rem;
}

.system-user-row.is-online {
    border-color: #9fd7bd;
    background: #f6fff9;
}

.system-user-row.is-offline {
    background: #fbfdff;
}

.system-user-avatar {
    width: 2.45rem;
    height: 2.45rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf3ff;
    color: #0b62d8;
    font-size: 0.95rem;
    font-weight: 950;
}

.system-user-row.is-online .system-user-avatar {
    background: #dcfce7;
    color: #166534;
}

.system-user-row.is-offline .system-user-avatar {
    background: #f1f5f9;
    color: #64748b;
}

.system-user-row strong,
.system-user-row small,
.system-user-row em,
.system-user-row span:not(.system-user-avatar) {
    display: block;
    min-width: 0;
}

.system-user-row strong {
    color: #081426;
    font-size: 0.92rem;
    line-height: 1.25;
    font-weight: 950;
}

.system-user-row small {
    margin-top: 0.15rem;
    color: #52657f;
    font-size: 0.76rem;
    font-weight: 850;
}

.system-user-row em {
    margin-top: 0.22rem;
    color: #64748b;
    font-size: 0.73rem;
    font-style: normal;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.system-user-row span:not(.system-user-avatar) {
    margin-top: 0.35rem;
    color: #0b62d8;
    font-size: 0.72rem;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.system-empty-list {
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    padding: 1rem;
}

.system-empty-list strong,
.system-empty-list span {
    display: block;
}

.system-empty-list strong {
    color: #081426;
    font-weight: 950;
}

.system-empty-list span {
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 750;
}

.daily-log-page {
    max-width: 90rem;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.daily-log-entry {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    color: inherit;
}

.daily-log-entry > span {
    width: 2.7rem;
    height: 2.7rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #dcfce7;
    color: #166534;
}

.daily-log-entry h3 {
    margin-top: 0.12rem;
    color: #081426;
    font-size: 1.02rem;
    font-weight: 950;
}

.daily-log-entry small {
    display: block;
    margin-top: 0.18rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 750;
}

.daily-log-controls .teacher-progress-filter-form {
    grid-template-columns: minmax(10rem, 0.35fr) minmax(16rem, 1fr) auto auto;
}

.daily-log-table-wrap {
    overflow-x: auto;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
}

.daily-log-table {
    width: 100%;
    min-width: 68rem;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
}

.daily-log-table th,
.daily-log-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem;
    text-align: left;
    vertical-align: middle;
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 800;
}

.daily-log-table thead th {
    background: #f8fbff;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.daily-log-table tbody th {
    width: 16rem;
}

.daily-log-table tbody tr:last-child th,
.daily-log-table tbody tr:last-child td {
    border-bottom: 0;
}

.daily-log-table strong,
.daily-log-table span {
    display: block;
}

.daily-log-table tbody th strong {
    color: #081426;
    font-size: 0.9rem;
    font-weight: 950;
}

.daily-log-table tbody th span {
    margin-top: 0.18rem;
    color: #64748b;
    font-size: 0.72rem;
}

.daily-log-table td i {
    display: block;
    width: 7rem;
    height: 0.42rem;
    overflow: hidden;
    border-radius: 9999px;
    background: #e2e8f0;
    margin-top: 0.35rem;
}

.daily-log-table td b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #16a34a, #0b62d8);
}

.achievement-chart-page {
    max-width: 76rem;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.achievement-chart-form {
    display: grid;
    gap: 1rem;
}

.achievement-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.achievement-chart-grid label,
.achievement-chart-grid span {
    display: block;
}

.achievement-chart-grid label > span {
    margin-bottom: 0.35rem;
    color: #52657f;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.achievement-assignment-list {
    display: grid;
    gap: 0.55rem;
}

.achievement-assignment-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #fbfdff;
    padding: 0.75rem;
}

.achievement-assignment-row:hover {
    border-color: #0b62d8;
    background: #f3f8ff;
}

.achievement-assignment-row input {
    width: 1rem;
    height: 1rem;
}

.achievement-assignment-row strong {
    display: block;
    color: #081426;
    font-size: 0.9rem;
    font-weight: 900;
}

.achievement-chart-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
}

.course-batch-page {
    max-width: 90rem;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.course-batch-layout {
    display: grid;
    grid-template-columns: minmax(20rem, 0.75fr) minmax(0, 1.25fr);
    gap: 1rem;
    align-items: start;
}

.course-batch-form,
.course-batch-list {
    display: grid;
    gap: 0.85rem;
}

.course-batch-form label,
.course-batch-form span,
.course-batch-form small {
    display: block;
}

.course-batch-form label > span,
.course-batch-active span {
    margin-bottom: 0.35rem;
    color: #52657f;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.course-batch-form small {
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
}

.course-batch-dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.course-batch-active {
    display: flex !important;
    gap: 0.55rem;
    align-items: center;
}

.course-batch-active span {
    margin: 0;
}

.course-batch-card {
    display: grid;
    grid-template-columns: minmax(12rem, 0.85fr) minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid #dbe7f6;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    padding: 1rem;
}

.course-batch-card h4 {
    margin: 0.55rem 0 0.25rem;
    color: #081426;
    font-size: 1rem;
    font-weight: 950;
}

.course-batch-card p,
.course-batch-card small {
    display: block;
    color: #52657f;
    font-size: 0.78rem;
    font-weight: 800;
}

.course-batch-roster {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.course-batch-roster span {
    border: 1px solid #dbe7f6;
    border-radius: 999px;
    background: #eef6ff;
    color: #17406f;
    padding: 0.28rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 850;
}

.course-batch-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.form-error-summary {
    margin-top: 0.8rem;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #991b1b;
    padding: 0.85rem;
    font-size: 0.84rem;
    font-weight: 800;
}

.reports-page {
    max-width: 90rem;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.reports-scope-card strong {
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    overflow-wrap: anywhere;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.report-feature-card {
    display: grid;
    gap: 1rem;
}

.report-feature-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
}

.report-feature-head > span {
    width: 2.8rem;
    height: 2.8rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf3ff;
    color: #0b62d8;
}

.report-feature-head h3 {
    margin-top: 0.12rem;
    color: #081426;
    font-size: 1.1rem;
    font-weight: 950;
}

.report-feature-head p:not(.eyebrow) {
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.45;
    font-weight: 750;
}

.report-course-list {
    display: grid;
    gap: 0.55rem;
    max-height: 22rem;
    overflow-y: auto;
}

.report-course-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #fbfdff;
    padding: 0.7rem;
}

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

.report-course-row strong {
    color: #081426;
    font-size: 0.86rem;
    line-height: 1.25;
    font-weight: 950;
}

.report-course-row span {
    margin-top: 0.18rem;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 800;
}

.reports-admin-note p {
    color: #52657f;
    font-size: 0.9rem;
    line-height: 1.55;
    font-weight: 750;
}

.reports-entry > span {
    background: #eaf3ff;
    color: #0b62d8;
}

.course-create-page {
    max-width: 90rem;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.course-create-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18rem;
    gap: 1rem;
    align-items: center;
    border: 1px solid #d7e1ee;
    border-top: 4px solid #0b62d8;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff, #eef6ff);
    padding: 1.35rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.course-create-hero h2 {
    margin-top: 0.25rem;
    color: #081426;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
    font-weight: 950;
}

.course-create-hero p:not(.eyebrow) {
    max-width: 46rem;
    margin-top: 0.55rem;
    color: #52657f;
    font-size: 0.95rem;
    font-weight: 750;
}

.course-create-principle {
    display: grid;
    gap: 0.35rem;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #ffffff;
    padding: 1rem;
}

.course-create-principle i {
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf3ff;
    color: #0b62d8;
}

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

.course-create-principle strong {
    color: #081426;
    font-size: 1rem;
    font-weight: 950;
}

.course-create-principle span {
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.4;
    font-weight: 750;
}

.course-create-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22rem;
    gap: 1rem;
    align-items: start;
}

.course-create-main,
.course-create-side {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.course-create-field {
    display: grid;
    gap: 0.35rem;
}

.course-create-field + .course-create-field {
    margin-top: 1rem;
}

.course-create-field label {
    color: #334155;
    font-size: 0.82rem;
    font-weight: 950;
}

.course-create-field.primary input {
    min-height: 3.25rem;
    font-size: 1.05rem;
    font-weight: 850;
}

.course-create-field p {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 750;
}

.form-field-error {
    color: #dc2626 !important;
}

.course-create-options {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 11rem;
    gap: 1rem;
    align-items: center;
}

.course-create-toggle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #fbfdff;
    padding: 0.9rem;
}

.course-create-toggle input {
    width: 1rem;
    height: 1rem;
}

.course-create-toggle strong,
.course-create-toggle small {
    display: block;
}

.course-create-toggle strong {
    color: #081426;
    font-size: 0.9rem;
    font-weight: 950;
}

.course-create-toggle small {
    margin-top: 0.18rem;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 750;
}

.course-create-auto-list {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.course-create-auto-list div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.65rem;
}

.course-create-auto-list i {
    color: #0b62d8;
}

.course-create-auto-list span {
    color: #334155;
    font-size: 0.82rem;
    font-weight: 850;
}

.course-create-submit {
    display: grid;
    gap: 0.65rem;
}

@media (max-width: 1100px) {
    .system-health-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .daily-log-controls .teacher-progress-filter-form {
        grid-template-columns: 1fr 1fr;
    }

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

    .course-batch-card {
        grid-template-columns: 1fr;
    }

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

    .course-create-hero,
    .course-create-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .system-health-hero {
        grid-template-columns: 1fr;
    }

    .system-health-score {
        width: 100%;
    }

    .system-health-kpis,
    .system-connection-grid,
    .system-facts {
        grid-template-columns: 1fr;
    }

    .system-health-mini-grid {
        grid-template-columns: 1fr;
    }

    .system-meter-row > div {
        display: grid;
    }

    .daily-log-controls .teacher-progress-filter-form {
        grid-template-columns: 1fr;
    }

    .achievement-chart-grid {
        grid-template-columns: 1fr;
    }

    .achievement-chart-actions {
        flex-direction: column-reverse;
    }

    .course-batch-dates {
        grid-template-columns: 1fr;
    }

    .course-batch-actions {
        flex-wrap: wrap;
    }

    .course-create-options {
        grid-template-columns: 1fr;
    }
}

.readiness-panel p:last-child {
    margin-top: 0.35rem;
    color: #475569;
    font-size: 0.86rem;
    font-weight: 750;
}

.connection-url-box {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    padding: 0.75rem;
    color: #0b5bd3;
    overflow: hidden;
}

.connection-url-box i {
    flex: 0 0 auto;
}

.connection-url-box span,
.connection-url-box strong {
    display: block;
}

.connection-url-box span {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.connection-url-box strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #081426;
    font-size: 0.9rem;
    font-weight: 900;
}

.qr-share-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.qr-share-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
}

.qr-card {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.75rem;
    text-align: center;
}

.qr-card img {
    width: min(100%, 9.5rem);
    aspect-ratio: 1;
    border-radius: 8px;
    image-rendering: pixelated;
}

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

.qr-card strong {
    color: #081426;
    font-size: 0.82rem;
    font-weight: 900;
}

.qr-card span {
    max-width: 100%;
    overflow: hidden;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-access-panel {
    display: grid;
    gap: 0.85rem;
}

.course-access-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.qr-display-link {
    min-height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #0b62d8;
    padding: 0 0.72rem;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.qr-display-link:hover {
    border-color: #0b62d8;
    background: #dbeafe;
}

.qr-share-grid.top-access {
    margin-top: 0;
}

.qr-share-grid.top-access .primary-qr {
    border-color: #0b62d8;
    background: #f8fbff;
}

.qr-share-grid.top-access .primary-qr img {
    width: 8.4rem;
    height: 8.4rem;
}

.compact-access-key {
    margin-top: 0;
}

.qr-display-body {
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(circle at top left, rgba(11, 98, 216, 0.16), transparent 32rem), #07111f;
    color: #ffffff;
}

.qr-display-screen {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem);
    gap: clamp(1rem, 3vw, 2.5rem);
    align-items: center;
    padding: clamp(1.25rem, 4vw, 4rem);
}

.qr-display-card {
    min-height: min(46rem, calc(100vh - 5rem));
    display: grid;
    justify-items: center;
    align-content: center;
    gap: clamp(1rem, 2.2vw, 1.7rem);
    border: 1px solid rgba(191, 219, 254, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: #081426;
    padding: clamp(1.2rem, 4vw, 3rem);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
    text-align: center;
}

.qr-display-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.qr-display-brand span,
.qr-display-brand strong {
    display: block;
    text-align: left;
}

.qr-display-brand span {
    color: #0b62d8;
    font-size: 0.8rem;
    font-weight: 950;
    text-transform: uppercase;
}

.qr-display-brand strong {
    color: #081426;
    font-size: 1.05rem;
    font-weight: 950;
}

.qr-display-card > img {
    width: min(52vh, 38rem, 78vw);
    height: auto;
    aspect-ratio: 1;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #ffffff;
    padding: clamp(0.7rem, 1.5vw, 1.2rem);
}

.qr-display-copy p,
.qr-display-copy h1,
.qr-display-copy strong,
.qr-display-copy span {
    display: block;
}

.qr-display-copy p {
    color: #0b62d8;
    font-size: clamp(0.8rem, 1vw, 1rem);
    font-weight: 950;
    text-transform: uppercase;
}

.qr-display-copy h1 {
    margin-top: 0.2rem;
    color: #081426;
    font-size: clamp(1.9rem, 4vw, 4rem);
    line-height: 1;
    font-weight: 950;
}

.qr-display-copy strong {
    margin-top: 0.7rem;
    color: #0f172a;
    font-size: clamp(1rem, 1.8vw, 1.7rem);
    font-weight: 950;
    overflow-wrap: anywhere;
}

.qr-display-copy span {
    margin-top: 0.45rem;
    color: #52657f;
    font-size: clamp(0.9rem, 1.25vw, 1.2rem);
    font-weight: 850;
}

.qr-display-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.qr-display-actions button,
.qr-display-actions a {
    min-height: 2.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid #cfe0f4;
    border-radius: 8px;
    background: #ffffff;
    color: #0b62d8;
    padding: 0 1rem;
    font-weight: 950;
    cursor: pointer;
}

.qr-display-actions button:hover,
.qr-display-actions a:hover {
    border-color: #0b62d8;
    background: #eff6ff;
}

.qr-display-wifi {
    display: grid;
    justify-items: center;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    padding: clamp(1rem, 2vw, 1.6rem);
    text-align: center;
}

.qr-display-wifi img {
    width: min(18rem, 68vw);
    border-radius: 8px;
    background: #ffffff;
    padding: 0.7rem;
}

.qr-display-wifi span,
.qr-display-wifi strong {
    display: block;
}

.qr-display-wifi span {
    color: #bfdbfe;
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
}

.qr-display-wifi strong {
    margin-top: 0.25rem;
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    font-weight: 950;
}

@media (max-width: 980px) {
    .qr-display-screen {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .course-access-head {
        display: grid;
    }

    .qr-display-link {
        width: 100%;
    }
}

.empty-dashboard-state {
    grid-column: 1 / -1;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    padding: 2rem;
    text-align: center;
}

.empty-dashboard-state h3 {
    color: #081426;
    font-size: 1.2rem;
    font-weight: 900;
}

.empty-dashboard-state p {
    margin: 0.4rem auto 1rem;
    max-width: 26rem;
    color: #64748b;
    font-size: 0.9rem;
}

.settings-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid #d7e1ee;
    border-top: 4px solid #0b5bd3;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
        #ffffff;
    padding: 1.35rem;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
}

.settings-hero-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.settings-avatar {
    width: 5.35rem;
    height: 5.35rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
    border: 3px solid #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, #0b62d8, #20a6b8);
    color: #ffffff;
    font-size: 2rem;
    font-weight: 950;
    box-shadow: 0 0 0 1px #bfdbfe, 0 18px 34px rgba(15, 23, 42, 0.14);
}

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

.settings-hero h2 {
    margin-top: 0.25rem;
    color: #081426;
    font-size: clamp(1.6rem, 2.4vw, 2.25rem);
    line-height: 1.1;
    font-weight: 900;
}

.settings-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    margin-top: 0.65rem;
}

.settings-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    min-height: 1.8rem;
    border: 1px solid #dbe7f6;
    border-radius: 999px;
    background: #ffffff;
    padding: 0.34rem 0.62rem;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 850;
}

.settings-hero-meta i {
    color: #0b5bd3;
}

.settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1rem;
    align-items: start;
}

.settings-main,
.settings-side {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.settings-panel {
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    padding: 1.05rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.065);
}

.settings-panel.compact {
    padding: 0.95rem;
}

.settings-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.05rem;
    border-bottom: 1px solid #e8eef7;
    padding-bottom: 0.95rem;
}

.settings-panel-head > i {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b5bd3;
    flex: 0 0 auto;
}

.settings-panel-head h3 {
    color: #081426;
    font-size: 1.05rem;
    font-weight: 900;
}

.settings-panel-head p {
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 750;
}

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

.settings-profile-form {
    display: grid;
    gap: 1rem;
}

.profile-form-section {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.9rem;
}

.profile-photo-section {
    background: #f8fbff;
}

.profile-section-title {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 0.85rem;
}

.profile-section-title > span {
    width: 2.1rem;
    height: 2.1rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #eefdf5;
    color: #15803d;
}

.profile-section-title h4 {
    color: #081426;
    font-size: 0.96rem;
    line-height: 1.2;
    font-weight: 900;
}

.profile-section-title p {
    margin-top: 0.18rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 750;
}

.settings-field-wide {
    grid-column: 1 / -1;
}

.settings-photo-field {
    display: grid;
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.9rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.settings-photo-preview {
    width: 100%;
    min-height: 9rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: linear-gradient(135deg, #0b62d8, #20a6b8);
    color: #ffffff;
    font-size: 1.55rem;
    font-weight: 950;
}

.settings-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #f8fbff;
}

.settings-photo-preview > span {
    width: 5rem;
    height: 5rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.school-logo-field {
    grid-template-columns: 11rem minmax(0, 1fr);
}

.school-logo-preview {
    min-height: 7.5rem;
    background: #f8fbff;
    color: #0b5bd3;
}

.school-logo-preview > span {
    border-radius: 8px;
    background: #eaf2ff;
    font-size: 1.45rem;
}

.settings-photo-control {
    display: grid;
    align-content: center;
    gap: 0.7rem;
    min-width: 0;
}

.settings-photo-control label {
    min-width: 0;
}

.settings-photo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: fit-content;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.55rem 0.72rem;
    color: #0b5bd3;
    font-size: 0.78rem;
    font-weight: 900;
}

.settings-form-grid label span {
    display: block;
    margin-bottom: 0.35rem;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 900;
}

.settings-form-grid label input,
.settings-form-grid label select,
.settings-form-grid label textarea,
.settings-photo-field input[type="file"] {
    background-color: #ffffff;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.settings-form-grid label input:hover,
.settings-form-grid label select:hover,
.settings-form-grid label textarea:hover,
.settings-photo-field input[type="file"]:hover {
    border-color: #9ab9e3;
    background-color: #fbfdff;
}

.settings-form-grid label em {
    display: block;
    margin-top: 0.28rem;
    color: #64748b;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 750;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    position: sticky;
    bottom: 0;
    z-index: 3;
    margin-top: 1rem;
    border-top: 1px solid #e8eef7;
    background: rgba(255, 255, 255, 0.94);
    padding-top: 0.9rem;
    backdrop-filter: blur(10px);
}

.settings-security-panel .settings-panel-head {
    margin-bottom: 0.8rem;
}

.security-summary-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.72rem;
    align-items: center;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.82rem;
}

.security-summary-card > span {
    width: 2.35rem;
    height: 2.35rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b5bd3;
}

.security-summary-card strong,
.security-summary-card small {
    display: block;
}

.security-summary-card strong {
    color: #081426;
    font-size: 0.9rem;
    font-weight: 900;
}

.security-summary-card small {
    margin-top: 0.16rem;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 750;
}

.settings-security-details {
    margin-top: 0.72rem;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.settings-security-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3rem;
    padding: 0.72rem 0.82rem;
    color: #081426;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 900;
    list-style: none;
}

.settings-security-details summary::-webkit-details-marker {
    display: none;
}

.settings-security-details summary span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-security-details summary i:last-child {
    color: #64748b;
    transition: transform 0.16s ease;
}

.settings-security-details[open] summary i:last-child {
    transform: rotate(180deg);
}

.security-password-form {
    border-top: 1px solid #e8eef7;
    padding: 0.85rem;
}

.security-actions {
    position: static;
    margin-top: 0.85rem;
    background: transparent;
    backdrop-filter: none;
}

.form-error {
    display: block;
    margin-top: 0.25rem;
    color: #b91c1c;
    font-size: 0.78rem;
    font-weight: 700;
}

.settings-link-list,
.settings-course-list,
.settings-status {
    display: grid;
    gap: 0.55rem;
}

.settings-link-list a,
.settings-course-list a,
.settings-status span {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.72rem;
    color: #081426;
    font-size: 0.86rem;
    font-weight: 850;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.settings-link-list a:hover,
.settings-course-list a:hover {
    transform: translateY(-1px);
    border-color: #b9d3f5;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.settings-status span {
    background: #f8fbff;
}

.settings-course-list a {
    align-items: flex-start;
    justify-content: space-between;
}

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

.settings-course-list span {
    color: #0b5bd3;
    font-size: 0.8rem;
    font-weight: 900;
}

.settings-course-list p {
    color: #64748b;
    font-size: 0.86rem;
}

.settings-link-list i,
.settings-status i {
    color: #0b5bd3;
}

.settings-join-form {
    display: grid;
    gap: 0.65rem;
}

.subscription-panel {
    display: grid;
    gap: 1rem;
}

.subscription-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
}

.subscription-hero h1 {
    margin-top: 0.25rem;
    color: #081426;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.1;
    font-weight: 950;
}

.subscription-hero p:not(.eyebrow) {
    max-width: 46rem;
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 750;
}

.subscription-price-card {
    min-width: 9rem;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    padding: 0.85rem 1rem;
    text-align: center;
}

.subscription-price-card span,
.subscription-price-card small {
    display: block;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.subscription-price-card strong {
    display: block;
    color: #0b5bd3;
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 950;
}

.subscription-alert {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    border: 1px solid #fde68a;
    border-radius: 8px;
    background: #fffbeb;
    padding: 0.8rem;
    color: #92400e;
}

.subscription-alert strong,
.subscription-alert span {
    display: block;
    font-size: 0.85rem;
}

.subscription-alert span {
    margin-top: 0.12rem;
    color: #a16207;
    font-weight: 750;
}

.subscription-course-list {
    display: grid;
    gap: 0.75rem;
}

.subscription-course-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(11rem, auto) auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.9rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045);
}

.subscription-course-card.is-selected {
    border-color: #0b5bd3;
    box-shadow: 0 0 0 3px rgba(11, 91, 211, 0.12);
}

.subscription-course-card p {
    color: #0b5bd3;
    font-size: 0.7rem;
    font-weight: 950;
    text-transform: uppercase;
}

.subscription-course-card h2 {
    margin-top: 0.1rem;
    color: #081426;
    font-size: 1rem;
    font-weight: 950;
}

.subscription-course-card span,
.subscription-course-status small {
    display: block;
    margin-top: 0.1rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 750;
}

.subscription-course-status strong {
    display: inline-flex;
    border-radius: 999px;
    background: #eef5ff;
    padding: 0.25rem 0.55rem;
    color: #0b5bd3;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.subscription-course-status strong.success {
    background: #dcfce7;
    color: #166534;
}

.subscription-course-status strong.warning {
    background: #fef3c7;
    color: #92400e;
}

.subscription-course-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.subscription-empty {
    border: 1px dashed #bfdbfe;
    border-radius: 8px;
    background: #f8fbff;
    padding: 1.5rem;
    text-align: center;
}

.subscription-empty h2 {
    color: #081426;
    font-size: 1.2rem;
    font-weight: 950;
}

.subscription-empty p {
    margin: 0.3rem 0 1rem;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 750;
}

.legal-panel,
.legal-document {
    max-width: 58rem;
    margin: 0 auto;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    padding: 1.4rem;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.legal-panel h1,
.legal-document h1 {
    margin-top: 0.25rem;
    color: #081426;
    font-size: clamp(1.55rem, 2.4vw, 2.2rem);
    line-height: 1.1;
    font-weight: 950;
}

.legal-panel p,
.legal-document p {
    margin-top: 0.45rem;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.62;
    font-weight: 700;
}

.legal-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.legal-summary-grid a {
    display: grid;
    gap: 0.2rem;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.9rem;
}

.legal-summary-grid i {
    color: #0b5bd3;
}

.legal-summary-grid span,
.legal-summary-grid strong {
    display: block;
}

.legal-summary-grid span {
    color: #081426;
    font-size: 0.9rem;
    font-weight: 950;
}

.legal-summary-grid strong {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 850;
}

.legal-accept-form,
.signup-panel form {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.legal-checkbox-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.8rem;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.45;
}

.legal-checkbox-row.compact {
    padding: 0.65rem;
    font-size: 0.78rem;
}

.legal-checkbox-row input {
    margin-top: 0.15rem;
}

.legal-checkbox-row a {
    color: #0b5bd3;
    font-weight: 950;
}

.legal-document section {
    margin-top: 1.2rem;
    border-top: 1px solid #e8eef7;
    padding-top: 1rem;
}

.legal-document h2 {
    color: #081426;
    font-size: 1rem;
    font-weight: 950;
}

.legal-version {
    color: #0b5bd3 !important;
    font-size: 0.8rem !important;
    font-weight: 950 !important;
}

.legal-note {
    margin-top: 1.2rem !important;
    border: 1px solid #fde68a;
    border-radius: 8px;
    background: #fffbeb;
    padding: 0.8rem;
    color: #92400e !important;
    font-size: 0.82rem !important;
}

.course-builder-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96)),
        #ffffff;
    padding: 0.9rem 1rem;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.course-builder-bar > div:first-child {
    min-width: 0;
}

.course-builder-bar h2 {
    color: #081426;
    font-size: 1.35rem;
    font-family: var(--font-display);
    font-weight: 900;
    overflow-wrap: anywhere;
}

.course-builder-tabs {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    border-radius: 8px;
    background: #eef4fb;
    padding: 0.25rem;
}

.course-builder-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
    border-radius: 7px;
    padding: 0.55rem 0.8rem;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 800;
}

.course-builder-tabs a.is-active {
    background: #0b5bd3;
    color: #ffffff;
}

.builder-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid #d7e1ee;
    border-top: 4px solid #0b5bd3;
    border-radius: 8px;
    background:
        radial-gradient(circle at top right, rgba(11, 91, 211, 0.12), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 1.35rem;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.builder-hero-copy {
    min-width: 0;
}

.builder-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #0b5bd3;
    font-size: 0.88rem;
    font-weight: 900;
}

.builder-hero h1 {
    margin-top: 0.35rem;
    color: #081426;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.08;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.builder-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.builder-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid #d7e1ee;
    border-radius: 9999px;
    background: #ffffff;
    padding: 0.35rem 0.7rem;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 850;
}

.builder-meta i {
    color: #0b5bd3;
}

.builder-hero-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(6.8rem, 1fr));
    gap: 0.55rem;
    max-width: 43rem;
    margin-top: 1rem;
}

.builder-hero-kpis div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "icon label"
        "icon value";
    align-items: center;
    column-gap: 0.55rem;
    min-height: 3.25rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    padding: 0.55rem 0.65rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045);
}

.builder-hero-kpis i {
    grid-area: icon;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b5bd3;
    font-size: 0.88rem;
}

.builder-hero-kpis span,
.builder-hero-kpis strong {
    display: block;
    min-width: 0;
}

.builder-hero-kpis span {
    grid-area: label;
    overflow: hidden;
    color: #64748b;
    font-size: 0.66rem;
    line-height: 1.1;
    font-weight: 950;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.builder-hero-kpis strong {
    grid-area: value;
    margin-top: 0.1rem;
    color: #081426;
    font-size: 1.15rem;
    line-height: 1;
    font-weight: 950;
}

.builder-hero-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.builder-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.builder-stat-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "icon label"
        "icon value";
    column-gap: 0.8rem;
    align-items: center;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.95rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.builder-stat-card > i {
    grid-area: icon;
    width: 2.65rem;
    height: 2.65rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b5bd3;
    font-size: 1.05rem;
}

.builder-stat-card span {
    grid-area: label;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.builder-stat-card strong {
    grid-area: value;
    color: #081426;
    font-size: 1.65rem;
    line-height: 1;
    font-weight: 900;
}

.course-fullscreen-btn {
    white-space: nowrap;
}

body.course-fullscreen .course-builder-workspace {
    grid-template-columns: minmax(0, 1fr);
}

body.course-fullscreen .course-player {
    grid-template-columns: minmax(0, 1fr);
}

body.course-fullscreen .progress-side-panel,
body.course-fullscreen .builder-hero,
body.course-fullscreen .builder-stat-grid {
    display: none;
}

body.course-fullscreen .content-wrap {
    max-width: none;
}

body.course-fullscreen .topbar,
body.course-fullscreen .sidebar,
body.course-fullscreen .mobile-bottom-nav {
    display: none !important;
}

body.course-fullscreen .app-main {
    margin-left: 0 !important;
}

body.course-fullscreen .course-content {
    min-height: calc(100vh - 2rem);
}

.lesson-title-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.edit-mode-switch {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 900;
    white-space: nowrap;
}

.edit-mode-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-track {
    width: 3rem;
    height: 1.55rem;
    position: relative;
    border-radius: 9999px;
    background: #cbd5e1;
    transition: 0.18s ease;
}

.switch-track::after {
    content: "";
    position: absolute;
    top: 0.2rem;
    left: 0.22rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 9999px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.24);
    transition: 0.18s ease;
}

.edit-mode-switch input:checked + .switch-track {
    background: #0b5bd3;
}

.edit-mode-switch input:checked + .switch-track::after {
    transform: translateX(1.42rem);
}

.edit-only {
    display: none !important;
}

body.edit-mode-on .edit-only {
    display: revert !important;
}

body.edit-mode-on .gov-action-panel.edit-only,
body.edit-mode-on .builder-hero-actions.edit-only,
body.edit-mode-on .action-row.edit-only,
body.edit-mode-on .module-toolbar .edit-only {
    display: flex !important;
}

body.edit-mode-on .module-drag-handle.edit-only,
body.edit-mode-on .activity-grip.edit-only,
body.edit-mode-on .icon-btn-menu.edit-only,
body.edit-mode-on .activity-type-icon.edit-only,
body.edit-mode-on .mini-activity-icon.edit-only {
    display: grid !important;
}

body.edit-mode-on .more-menu.edit-only {
    display: block !important;
}

body.edit-mode-on .section-add-activity-btn.edit-only,
body.edit-mode-on .section-add-line.edit-only,
body.edit-mode-on .section-insert-line.edit-only,
body.edit-mode-on .activity-insert-line.edit-only {
    display: grid !important;
}

body.edit-mode-on .section-add-inline.edit-only,
body.edit-mode-on .empty-section-add.edit-only {
    display: inline-flex !important;
}

body.activity-chooser-open {
    overflow: hidden;
}

.activity-chooser[hidden] {
    display: none !important;
}

.activity-chooser {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.activity-chooser-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(5px);
}

.activity-chooser-dialog {
    position: relative;
    width: min(64rem, 100%);
    max-height: min(44rem, calc(100vh - 2rem));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.34);
}

.activity-chooser-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.activity-chooser-header h2 {
    color: #0f172a;
    font-size: 1.65rem;
    font-weight: 900;
}

.activity-chooser-header span {
    display: block;
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 700;
}

.activity-chooser-close {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
}

.activity-chooser-close:hover {
    background: #eef5ff;
    color: #0b5bd3;
}

.activity-chooser-body {
    min-height: 0;
    display: grid;
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    overflow: hidden;
}

.activity-chooser-categories {
    display: grid;
    align-content: start;
    gap: 0.35rem;
    border-right: 1px solid #e2e8f0;
    padding-right: 1rem;
}

.activity-chooser-categories button {
    border: 0;
    border-radius: 8px;
    background: transparent;
    padding: 0.72rem 0.85rem;
    color: #334155;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.activity-chooser-categories button:hover,
.activity-chooser-categories button.is-active {
    background: #0b5bd3;
    color: #ffffff;
}

.activity-chooser-main {
    min-height: 0;
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 1rem;
}

.activity-chooser.is-reuse-mode .activity-chooser-main {
    grid-template-rows: minmax(0, 1fr);
}

.activity-chooser-search {
    position: relative;
}

.activity-chooser-search i {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    transform: translateY(-50%);
    color: #64748b;
}

.activity-chooser-search input {
    width: 100%;
    min-height: 2.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    padding: 0 1rem 0 2.55rem;
    color: #0f172a;
}

.activity-chooser-grid {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.activity-chooser-grid[hidden],
.activity-choice-card[hidden] {
    display: none !important;
}

.activity-choice-card {
    min-height: 8.65rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: start;
    gap: 0.65rem 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    padding: 1rem;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.activity-choice-card:hover,
.activity-choice-card:focus {
    border-color: #0b5bd3;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

.choice-icon {
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eef5ff;
    color: #0b5bd3;
    font-size: 1.05rem;
}

.choice-icon.pdf { background: #fef2f2; color: #b91c1c; }
.choice-icon.flipbook { background: #eef5ff; color: #0b5bd3; }
.choice-icon.video { background: #eef2ff; color: #4338ca; }
.choice-icon.image { background: #f0fdf4; color: #15803d; }
.choice-icon.html { background: #fff7ed; color: #c2410c; }
.choice-icon.text { background: #f8fafc; color: #334155; }
.choice-icon.link { background: #eff6ff; color: #174ea6; }
.choice-icon.epub { background: #ecfdf5; color: #047857; }
.choice-icon.presentation { background: #fff1f2; color: #be123c; }
.choice-icon.document { background: #eff6ff; color: #1d4ed8; }
.choice-icon.file { background: #f1f5f9; color: #475569; }
.choice-icon.assignment { background: #f5f3ff; color: #6d28d9; }
.choice-icon.quiz { background: #fff7ed; color: #c2410c; }
.choice-icon.h5p { background: #ecfeff; color: #0e7490; }
.choice-icon.package { background: #f0fdf4; color: #15803d; }
.choice-icon.imscc { background: #fdf4ff; color: #a21caf; }

.activity-choice-card strong {
    align-self: center;
    font-weight: 900;
}

.activity-choice-card p {
    grid-column: 1 / -1;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.45;
}

.activity-chooser-empty {
    min-height: 14rem;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.45rem;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #64748b;
    text-align: center;
}

.activity-chooser-empty[hidden] {
    display: none !important;
}

.activity-chooser-empty i {
    color: #94a3b8;
    font-size: 1.35rem;
}

.activity-chooser-empty strong {
    color: #0f172a;
    font-size: 0.95rem;
}

.activity-chooser-empty span {
    font-size: 0.85rem;
    font-weight: 700;
}

.reuse-activity-panel {
    display: grid;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0.9rem;
}

.reuse-activity-panel[hidden] {
    display: none;
}

.reuse-panel-toolbar {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.reuse-panel-toolbar > div strong,
.reuse-panel-toolbar > div span {
    display: block;
}

.reuse-panel-toolbar > div strong {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 950;
}

.reuse-panel-toolbar > div span {
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 750;
}

.reuse-picker {
    display: grid;
    grid-template-columns: 17rem minmax(0, 1fr);
    min-height: 0;
    height: min(24rem, calc(100vh - 20rem));
    overflow: hidden;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #ffffff;
}

.reuse-unit-list {
    display: grid;
    align-content: start;
    min-height: 0;
    max-height: 100%;
    overflow: auto;
    border-right: 1px solid #dbe7f6;
    background: #f8fbff;
    padding: 0.5rem;
}

.reuse-unit-list button {
    display: block;
    width: 100%;
    border-radius: 8px;
    padding: 0.7rem;
    text-align: left;
}

.reuse-unit-list button:hover,
.reuse-unit-list button.is-active {
    background: #eaf2ff;
    color: #0b62d8;
}

.reuse-unit-list strong,
.reuse-unit-list em,
.reuse-unit-list span,
.reuse-unit-list small {
    display: block;
}

.reuse-unit-list em {
    color: #64748b;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 850;
    line-height: 1.2;
}

.reuse-unit-list strong {
    margin-top: 0.28rem;
    font-size: 0.76rem;
    font-weight: 950;
    text-transform: uppercase;
}

.reuse-unit-list span {
    margin-top: 0.18rem;
    color: #0f172a;
    font-size: 0.82rem;
    line-height: 1.25;
    font-weight: 850;
}

.reuse-unit-list small {
    margin-top: 0.18rem;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 800;
}

.reuse-activity-list {
    min-height: 0;
    max-height: 100%;
    overflow: auto;
    padding: 0.8rem;
}

.reuse-source-course {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.65rem;
}

.reuse-source-course strong {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 950;
}

.reuse-source-course span {
    flex: 0 0 auto;
    border-radius: 9999px;
    background: #eef5ff;
    padding: 0.25rem 0.55rem;
    color: #0b5bd3;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.reuse-section-group + .reuse-section-group {
    margin-top: 1rem;
}

.reuse-section-group h3 {
    margin-bottom: 0.5rem;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
}

.reuse-activity-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.7rem;
    cursor: pointer;
}

.reuse-activity-row + .reuse-activity-row {
    margin-top: 0.5rem;
}

.reuse-activity-row:has(input:checked) {
    border-color: #93c5fd;
    background: #eff6ff;
}

.reuse-kind {
    width: 2.2rem;
    height: 2.2rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    flex: 0 0 auto;
    background: #e0f2fe;
    color: #0369a1;
}

.reuse-kind.assignment {
    background: #f3e8ff;
    color: #7e22ce;
}

.reuse-kind.quiz {
    background: #ffedd5;
    color: #c2410c;
}

.reuse-activity-row strong,
.reuse-activity-row small {
    display: block;
}

.reuse-activity-row strong {
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 950;
}

.reuse-activity-row small {
    margin-top: 0.14rem;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 750;
}

.reuse-panel-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 0.85rem 0 0;
}

.reuse-panel-actions > span,
.reuse-empty {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 800;
}

.reuse-panel-actions > span strong,
.reuse-panel-actions > span small {
    display: block;
}

.reuse-panel-actions > span strong {
    color: #0f172a;
    font-size: 0.95rem;
}

.reuse-panel-actions > span small {
    margin-top: 0.12rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 750;
}

.activity-chooser-footer {
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 0.9rem 1.5rem;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 700;
}

.activity-chooser.is-reuse-mode .activity-chooser-footer {
    display: none;
}

.progress-side-panel {
    position: sticky;
    top: 5.25rem;
}

.progress-side-panel .btn {
    width: 100%;
}

.progress-side-panel h3 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.progress-side-panel h3 i {
    color: #0b5bd3;
}

.progress-ring-wrap {
    display: grid;
    place-items: center;
    padding: 1.1rem 0 0.75rem;
}

.progress-ring {
    --progress: 0;
    width: 9.5rem;
    height: 9.5rem;
    display: grid;
    place-items: center;
    border-radius: 9999px;
    background:
        radial-gradient(circle at center, #ffffff 0 58%, transparent 59%),
        conic-gradient(#0b5bd3 calc(var(--progress) * 1%), #e2e8f0 0);
    box-shadow: inset 0 0 0 1px #d7e1ee;
}

.progress-ring span {
    color: #081426;
    font-size: 1.65rem;
    font-weight: 900;
}

.progress-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.progress-metrics div {
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #f8fafc;
    padding: 0.75rem;
}

.progress-metrics span,
.progress-metrics strong {
    display: block;
}

.progress-metrics span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.progress-metrics strong {
    margin-top: 0.2rem;
    color: #081426;
    font-size: 1.25rem;
    font-weight: 900;
}

.side-panel-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 1.1rem 0;
}

.activity-type-icon.book:empty::before,
.mini-activity-icon.book:empty::before {
    content: "";
    width: 54%;
    height: 62%;
    border: 2px solid currentColor;
    border-radius: 2px;
    box-shadow: inset 4px 0 0 rgba(255, 255, 255, 0.85);
}

.activity-type-icon.task:empty::before,
.mini-activity-icon.task:empty::before {
    content: "";
    width: 58%;
    height: 64%;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.activity-type-icon.task:empty::after,
.mini-activity-icon.task:empty::after {
    content: "";
    position: absolute;
    width: 42%;
    height: 22%;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    top: 42%;
    left: 31%;
}

.activity-type-icon.quiz:empty::before,
.mini-activity-icon.quiz:empty::before {
    content: "?";
    font-size: 1em;
    font-weight: 900;
}

.module-card {
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.module-header {
    padding: 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #dbe3ef;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.kpi-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 900;
    color: #0f172a;
    margin-top: 0.25rem;
}

.quick-card {
    display: block;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    transition: 0.2s ease;
}

.quick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.quick-card h3 {
    font-size: 1rem;
    font-weight: 900;
    color: #0f172a;
}

.quick-card p {
    margin-top: 0.35rem;
    font-size: 0.875rem;
    color: #64748b;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resource-frame {
    width: 100%;
    min-height: clamp(24rem, 62vh, 44rem);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}

.resource-viewer[data-resource-type="h5p"] .resource-frame,
.resource-viewer[data-resource-type="html"] .resource-frame,
.resource-viewer[data-resource-type="scorm"] .resource-frame,
.resource-viewer[data-resource-type="imscc"] .resource-frame {
    min-height: clamp(14rem, 42vh, 34rem);
}

.resource-viewer[data-resource-type="h5p"] .resource-frame {
    min-height: clamp(13rem, 36vh, 28rem);
}

.resource-viewer[data-resource-type="video"],
.resource-viewer[data-resource-type="image"] {
    display: grid;
    place-items: center;
    background: #f8fbff;
}

.resource-pdf-viewer .resource-frame {
    background: #f1f5f9;
}

.pdf-flipbook {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 72vh;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #111111;
    overflow: hidden;
}

.pdf-flipbook-stage {
    position: relative;
    min-height: 0;
    display: grid;
    place-items: center;
    padding: 3rem 3.6rem 2.5rem;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 34rem),
        #141414;
}

.pdf-flipbook-spread {
    width: min(100%, 70rem);
    min-height: 58vh;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    justify-content: center;
    gap: 0;
    filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.46));
    transform-origin: center center;
}

.pdf-flipbook-spread.is-single {
    grid-template-columns: minmax(0, 34rem);
}

.pdf-flipbook-spread.is-single [data-pdf-page-right] {
    display: none;
}

.pdf-flipbook-page {
    width: 100%;
    height: 58vh;
    border: 0;
    background: #f8fafc;
    overflow: hidden;
}

.pdf-flipbook-page + .pdf-flipbook-page {
    border-left: 1px solid #d1d5db;
}

.pdf-flipbook-page img,
.pdf-flipbook-page iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #f8fafc;
}

.pdf-flipbook-page img {
    object-fit: contain;
}

.pdf-flipbook-edge {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 2.9rem;
    height: 4.25rem;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
}

.pdf-flipbook-edge:hover {
    background: rgba(255, 255, 255, 0.16);
}

.pdf-flipbook-edge:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

.pdf-flipbook-prev {
    left: 0.6rem;
}

.pdf-flipbook-next {
    right: 0.6rem;
}

.pdf-flipbook-controls {
    display: grid;
    grid-template-columns: auto auto minmax(8rem, 1fr);
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.8rem;
    border-top: 1px solid #303030;
    background: #202020;
}

.pdf-flipbook-tools {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.pdf-flipbook-tools button,
.pdf-flipbook-controls button {
    min-width: 2rem;
    height: 2rem;
    border: 1px solid #3b4452;
    border-radius: 6px;
    background: #151922;
    color: #f8fafc;
    font-size: 0.8rem;
    font-weight: 900;
    cursor: pointer;
}

.pdf-flipbook-tools button.is-active {
    border-color: #60a5fa;
    background: #0b5bd3;
}

.pdf-flipbook-controls strong {
    min-width: 8rem;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
}

.pdf-flipbook-controls input[type="range"] {
    width: 100%;
    accent-color: #60a5fa;
}

.resource-pdf-fallback {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-top: 1px solid #d7e1ee;
    background: #ffffff;
    padding: 0.9rem 1rem;
}

.resource-pdf-fallback > i {
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 1.1rem;
}

.resource-pdf-fallback strong {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 900;
}

.resource-pdf-fallback p {
    margin-top: 0.1rem;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}

.resource-pdf-fallback a {
    display: inline-flex;
    align-items: center;
    margin-top: 0.35rem;
    color: #0b5bd3;
    font-size: 0.86rem;
    font-weight: 900;
}

.resource-viewer {
    position: relative;
    border: 1px solid #cbd9ea;
    border-radius: 8px;
    background: #ffffff;
    padding: 0;
    overflow: hidden;
    scroll-margin-top: 6rem;
}

.resource-viewer-toolbar {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 20;
    display: block;
    margin: 0;
    pointer-events: none;
}

.resource-viewer-toolbar strong {
    display: none;
}

.resource-viewer-toolbar strong i {
    color: #0b5bd3;
    margin-right: 0.35rem;
}

.resource-viewer-toolbar > div {
    display: flex;
    flex: 0 0 auto;
    gap: 0.4rem;
    border: 1px solid rgba(215, 225, 238, 0.92);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    padding: 0.25rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(8px);
    pointer-events: auto;
}

.resource-viewer-icon-btn {
    width: 2.1rem;
    height: 2.1rem;
    display: inline-grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 7px;
    background: #ffffff;
    color: #0b5bd3;
    font-size: 0.95rem;
    cursor: pointer;
}

.resource-viewer-icon-btn:hover {
    border-color: #9dbdf5;
    background: #eef5ff;
}

.resource-viewer-icon-btn:focus-visible {
    outline: 3px solid rgba(11, 91, 211, 0.24);
    outline-offset: 2px;
}

.resource-text-content {
    min-height: 12rem;
    padding: 3.6rem 1.15rem 1.15rem;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-line;
}

.resource-link-content {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-height: 10rem;
    padding: 3.6rem 1.15rem 1.15rem;
    color: #334155;
}

.resource-link-content > i {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eef5ff;
    color: #0b5bd3;
    flex: 0 0 auto;
}

.resource-link-content strong {
    display: block;
    color: #0f172a;
    font-weight: 900;
}

.resource-link-content p {
    margin-top: 0.2rem;
    color: #64748b;
}

.resource-link-content a {
    display: inline-flex;
    margin-top: 0.75rem;
    color: #0b5bd3;
    font-weight: 900;
}

body.resource-fullscreen-open {
    overflow: hidden;
}

body.resource-fullscreen-open .topbar,
body.resource-fullscreen-open .sidebar,
body.resource-fullscreen-open .mobile-bottom-nav {
    display: none !important;
}

body.resource-fullscreen-open .app-main {
    margin-left: 0 !important;
}

.resource-viewer.is-resource-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    border: 0;
    border-radius: 0;
    background: #eef4fb;
    padding: 0.35rem;
}

.resource-viewer.is-resource-fullscreen .resource-viewer-toolbar {
    top: 0.75rem;
    right: 0.75rem;
}

.resource-viewer.is-resource-fullscreen .resource-frame,
.resource-viewer.is-resource-fullscreen .pdf-flipbook,
.resource-viewer.is-resource-fullscreen .presentation-stage,
.resource-viewer.is-resource-fullscreen .media-viewer,
.resource-viewer.is-resource-fullscreen .resource-text-content,
.resource-viewer.is-resource-fullscreen .resource-link-content {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    border-radius: 8px;
}

.resource-viewer.is-resource-fullscreen .pdf-flipbook-page {
    height: calc(100vh - 4.5rem);
}

.resource-viewer.is-resource-fullscreen .pdf-flipbook-spread {
    min-height: calc(100vh - 4.5rem);
}

.resource-viewer.is-resource-fullscreen .presentation-slide img {
    max-height: calc(100vh - 5.8rem);
}

.resource-viewer.is-resource-fullscreen .image-viewer {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
}

.media-viewer {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(72vh, 46rem);
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border-radius: 8px;
    background: #020617;
}

.image-viewer {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(72vh, 46rem);
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.tesda-pdf-viewer {
    position: relative;
    border-color: #c3d2e4;
    background: #eef3f8;
}

.presentation-viewer {
    background: #111827;
}

.presentation-stage {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: clamp(22rem, 70vh, 48rem);
    background: #111827;
    color: #ffffff;
    overflow: hidden;
}

.presentation-slide-frame {
    display: grid;
    place-items: center;
    min-height: 0;
    padding: 3.1rem 3.2rem 1rem;
}

.presentation-slide {
    width: min(100%, 72rem);
    margin: 0;
    background: #ffffff;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
}

.presentation-slide.is-hidden {
    display: none;
}

.presentation-slide img {
    display: block;
    width: 100%;
    max-height: calc(78vh - 5rem);
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.presentation-edge {
    position: absolute;
    top: 50%;
    z-index: 8;
    width: 2.8rem;
    height: 4rem;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.presentation-edge:hover {
    background: rgba(255, 255, 255, 0.16);
}

.presentation-edge:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.presentation-prev {
    left: 0.65rem;
}

.presentation-next {
    right: 0.65rem;
}

.presentation-controls {
    display: grid;
    grid-template-columns: auto minmax(8rem, 1fr);
    align-items: center;
    gap: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: #0b1220;
    padding: 0.7rem 0.85rem;
}

.presentation-controls strong {
    min-width: 7rem;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
}

.presentation-controls input[type="range"] {
    width: 100%;
    accent-color: #60a5fa;
}

.tesda-pdf-scroll {
    max-height: min(82vh, 62rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: grid;
    gap: 0.75rem;
    justify-items: center;
    background: #eef3f8;
    padding: 0.8rem;
}

.tesda-pdf-page {
    width: min(100%, 70rem);
    margin: 0;
    background: #ffffff;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.16);
}

.tesda-pdf-page img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

.tesda-pdf-page figcaption {
    border-top: 1px solid #e2e8f0;
    padding: 0.32rem 0.75rem;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    text-align: center;
}

.resource-pdf-fallback.view-only {
    margin: 1rem;
}

.resource-viewer.is-resource-fullscreen .tesda-pdf-scroll {
    height: 100%;
    max-height: none;
}

.pasado-standalone-viewer {
    margin: 0;
    background: #e5e5e5;
}

.standalone-pdf-shell {
    min-height: 100vh;
}

.standalone-pdf-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #cfdbe8;
    background: #ffffff;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
}

.standalone-pdf-header p,
.standalone-pdf-header h1,
.standalone-pdf-header span {
    display: block;
}

.standalone-pdf-header p {
    color: #0b62d8;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.standalone-pdf-header h1 {
    margin-top: 0.12rem;
    color: #101827;
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 850;
}

.standalone-pdf-header span {
    margin-top: 0.1rem;
    color: #53657a;
    font-size: 0.78rem;
    font-weight: 750;
}

.standalone-pdf-pages {
    display: grid;
    gap: 0.75rem;
    justify-items: center;
    padding: 0.75rem;
}

.activity-order-list {
    display: grid;
    gap: 0.75rem;
}

.activity-order-row,
.choice-row,
.answer-choice,
.choice-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.activity-order-row {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.order-input {
    width: 4.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.55rem 0.65rem;
    font-weight: 800;
    color: #0f172a;
}

.choice-row {
    align-items: flex-start;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.choice-check,
.answer-choice {
    cursor: pointer;
    font-size: 0.875rem;
    color: #334155;
}

.answer-choice {
    padding: 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.quiz-question {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.quiz-question:last-of-type {
    border-bottom: 0;
}

.resource-builder {
    display: grid;
    gap: 1rem;
}

.resource-builder-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem);
    gap: 1rem;
    align-items: stretch;
    border: 1px solid #d7e1ee;
    border-top: 4px solid #0b5bd3;
    border-radius: 8px;
    background: #ffffff;
    padding: 1.25rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.builder-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #0b5bd3;
    font-size: 0.9rem;
    font-weight: 900;
}

.resource-eyebrow {
    margin-top: 1rem;
    color: #0b5bd3;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.resource-builder-hero h2 {
    margin-top: 0.15rem;
    color: #081426;
    font-size: clamp(1.75rem, 2.35vw, 2.55rem);
    line-height: 1.1;
    font-weight: 900;
}

.resource-builder-hero p {
    max-width: 58rem;
    margin-top: 0.55rem;
    color: #475569;
}

.resource-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.resource-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid #d7e1ee;
    border-radius: 9999px;
    background: #f8fafc;
    padding: 0.35rem 0.7rem;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 800;
}

.resource-readiness-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #f8fbff;
    padding: 1rem;
}

.resource-readiness-panel span {
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.resource-readiness-panel strong {
    display: block;
    margin-top: 0.25rem;
    color: #081426;
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
}

.resource-readiness-panel p {
    margin-top: 0.7rem;
    color: #64748b;
    font-size: 0.84rem;
}

.resource-readiness-track {
    height: 0.55rem;
    margin-top: 0.85rem;
    overflow: hidden;
    border-radius: 9999px;
    background: #dbe3ef;
}

.resource-readiness-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0b5bd3, #12805c);
    transition: width 0.2s ease;
}

.resource-builder-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 24rem);
    gap: 1rem;
    align-items: start;
}

.resource-authoring-surface {
    display: grid;
    gap: 1rem;
}

.resource-section,
.resource-side-panel,
.resource-submit-panel {
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.resource-section {
    padding: 1.15rem;
}

.resource-section-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.resource-section-head span {
    display: inline-flex;
    border-radius: 9999px;
    background: #eaf2ff;
    padding: 0.2rem 0.55rem;
    color: #174ea6;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.resource-section-head h3 {
    margin-top: 0.4rem;
    color: #081426;
    font-size: 1.1rem;
    font-weight: 900;
}

.resource-section-head p {
    max-width: 28rem;
    color: #64748b;
    font-size: 0.86rem;
}

.resource-type-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.resource-type-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.45rem 0.65rem;
    align-items: center;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.9rem;
    text-align: left;
    cursor: pointer;
    transition: 0.18s ease;
}

.resource-type-card:hover,
.resource-type-card.is-selected {
    border-color: #0b5bd3;
    background: #f8fbff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.resource-type-card i {
    width: 2.35rem;
    height: 2.35rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eef5ff;
    color: #0b5bd3;
}

.resource-type-card strong {
    color: #081426;
    font-weight: 900;
}

.resource-type-card span {
    grid-column: 1 / -1;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.4;
}

.resource-field {
    display: grid;
    gap: 0.45rem;
}

.resource-type-hidden {
    display: none;
}

.resource-field + .resource-field {
    margin-top: 0.95rem;
}

.resource-field-compact {
    margin-top: 1rem;
}

.resource-field label {
    color: #334155;
    font-size: 0.82rem;
    font-weight: 900;
}

.resource-form-control {
    width: 100%;
    min-height: 2.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.78rem 0.9rem;
    color: #0f172a;
    font-size: 0.94rem;
}

.resource-select-control {
    cursor: pointer;
}

.resource-form-control:focus,
.resource-file-input:focus {
    border-color: #0b5bd3;
    box-shadow: 0 0 0 3px rgba(11, 91, 211, 0.16);
    outline: none;
}

.resource-help,
.resource-error {
    font-size: 0.78rem;
}

.resource-help {
    color: #64748b;
}

.resource-error {
    color: #dc2626;
    font-weight: 800;
}

.resource-alert {
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    padding: 0.85rem 1rem;
    color: #991b1b;
    font-weight: 800;
}

.source-panels {
    display: grid;
    gap: 0.9rem;
}

.source-panel {
    display: grid;
    gap: 0.8rem;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #f8fafc;
    padding: 1rem;
}

.source-panel.is-hidden {
    display: none;
}

.source-panel-title {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.source-panel-title i {
    width: 2.45rem;
    height: 2.45rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b5bd3;
}

.source-panel-title strong,
.source-panel-title span {
    display: block;
}

.source-panel-title strong {
    color: #081426;
    font-weight: 900;
}

.source-panel-title span {
    margin-top: 0.1rem;
    color: #64748b;
    font-size: 0.84rem;
}

.resource-upload-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px dashed #9dbdf5;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.8rem;
}

.resource-file-input {
    max-width: 16rem;
    color: #334155;
    font-size: 0.9rem;
}

.resource-upload-zone span {
    min-width: 0;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-field-hint {
    margin: -0.25rem 0 0;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.45;
}

.resource-field-hint.is-hidden {
    display: none;
}

.resource-settings-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.resource-switch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.publish-mode-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.publish-mode-card {
    display: block;
    cursor: pointer;
}

.publish-mode-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.publish-mode-card > span {
    min-height: 8rem;
    display: grid;
    gap: 0.35rem;
    align-content: start;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    padding: 1rem;
    transition: 0.18s ease;
}

.publish-mode-card input:checked + span {
    border-color: #0b5bd3;
    background: #f8fbff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.publish-mode-card i {
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b5bd3;
}

.publish-mode-card strong,
.publish-mode-card small {
    display: block;
}

.publish-mode-card strong {
    color: #081426;
    font-weight: 900;
}

.publish-mode-card small {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.35;
}

.publish-schedule-field {
    margin-top: 1rem;
}

.publish-schedule-field.is-hidden {
    display: none;
}

.resource-switch {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.9rem;
    cursor: pointer;
}

.resource-switch-input {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
    margin-top: 0.15rem;
    accent-color: #0b5bd3;
}

.resource-switch strong,
.resource-switch small {
    display: block;
}

.resource-switch strong {
    color: #081426;
    font-size: 0.9rem;
    font-weight: 900;
}

.resource-switch small {
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.35;
}

.prerequisite-tool {
    display: grid;
    gap: 0.75rem;
}

.prerequisite-search {
    position: relative;
}

.prerequisite-search i {
    position: absolute;
    top: 50%;
    left: 0.9rem;
    color: #64748b;
    transform: translateY(-50%);
}

.prerequisite-search input {
    width: 100%;
    min-height: 2.7rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 0.9rem 0 2.55rem;
}

.resource-multi-select {
    min-height: 12rem;
}

.resource-multi-select option {
    padding: 0.45rem;
}

.selected-prerequisites {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    min-height: 2.5rem;
    align-items: center;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.55rem;
}

.selected-prerequisites > span {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 800;
}

.selected-prerequisite-chip {
    border-radius: 9999px;
    background: #eaf2ff;
    padding: 0.25rem 0.6rem;
    color: #174ea6 !important;
}

.resource-builder-sidebar {
    position: sticky;
    top: 5.25rem;
    display: grid;
    gap: 1rem;
}

.resource-side-panel,
.resource-submit-panel {
    padding: 1rem;
}

.resource-side-panel h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #081426;
    font-weight: 900;
}

.resource-side-panel h3 i {
    color: #0b5bd3;
}

.tracking-preview-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.9rem;
}

.tracking-preview-list div {
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #f8fafc;
    padding: 0.75rem;
}

.tracking-preview-list span,
.tracking-preview-list strong {
    display: block;
}

.tracking-preview-list span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.tracking-preview-list strong {
    margin-top: 0.2rem;
    color: #081426;
    font-size: 1rem;
    font-weight: 900;
}

.resource-impact-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.9rem;
}

.resource-impact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 700;
}

.resource-impact-list i {
    margin-top: 0.25rem;
    color: #94a3b8;
    font-size: 0.65rem;
}

.resource-impact-list li.is-complete {
    color: #166534;
}

.resource-impact-list li.is-complete i {
    color: #16a34a;
    font-size: 0.9rem;
}

.resource-submit-panel {
    display: grid;
    gap: 0.65rem;
}

.resource-submit-panel .btn {
    width: 100%;
}

.resource-submit-btn {
    min-height: 3rem;
}

@media (min-width: 640px) {
    .sm\:block { display: block; }
    .sm\:flex-row { flex-direction: row; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sm\:items-center { align-items: center; }
}

@media (min-width: 768px) {
    .md\:grid { display: grid; }
    .md\:flex-row { flex-direction: row; }
    .md\:items-center { align-items: center; }
    .md\:items-start { align-items: flex-start; }
    .md\:justify-between { justify-content: space-between; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .md\:gap-3 { gap: 0.75rem; }
    .md\:p-5 { padding: 1.25rem; }
    .md\:p-6 { padding: 1.5rem; }
    .md\:p-8 { padding: 2rem; }
    .md\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .md\:text-xl { font-size: 1.25rem; }
    .md\:text-3xl { font-size: 1.875rem; }
}

@media (min-width: 1024px) {
    .lg\:hidden { display: none; }
    .lg\:flex { display: flex; }
    .lg\:ml-64 { margin-left: 16rem; }
    .lg\:pb-0 { padding-bottom: 0; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
    .lg\:flex-row { flex-direction: row; }
    .lg\:items-center { align-items: center; }
    .lg\:items-start { align-items: flex-start; }
    .lg\:justify-between { justify-content: space-between; }
}

@media (max-width: 1320px) {
    .topbar-inner {
        grid-template-columns: minmax(10rem, 1fr) auto auto;
    }

    .topbar-identity h1 {
        max-width: min(36vw, 28rem);
    }
}

@media (max-width: 1023px) {
    .topbar-inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .course-navbar-menu {
        justify-self: end;
    }

    .topbar-actions {
        grid-column: 1 / -1;
        display: flex;
        justify-content: flex-end;
    }

    .sidebar {
        display: flex !important;
        width: min(19rem, calc(100vw - 2rem));
        z-index: 60;
        transform: translateX(-105%);
        transition: transform 0.2s ease;
        box-shadow: 24px 0 48px rgba(2, 6, 23, 0.28);
    }

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

    .sidebar-scrim {
        position: fixed;
        inset: 0;
        z-index: 50;
        display: none;
        border: 0;
        background: rgba(2, 6, 23, 0.48);
    }

    body.sidebar-mobile-open .sidebar-scrim {
        display: block;
    }

    .sidebar-toggle {
        display: none;
    }

    .student-url-chip {
        display: none;
    }

    body.sidebar-collapsed .sidebar {
        width: min(19rem, calc(100vw - 2rem));
    }

    body.sidebar-collapsed .sidebar h2,
    body.sidebar-collapsed .sidebar p,
    body.sidebar-collapsed .sidebar-label {
        display: initial;
    }

    body.sidebar-collapsed .sidebar-link {
        justify-content: flex-start;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .content-wrap {
        max-width: none;
    }

    .course-player,
    .teacher-workspace {
        grid-template-columns: 1fr;
    }

    .course-index {
        position: static;
        max-height: none;
    }

    .gov-hero {
        grid-template-columns: 1fr;
    }

    .gov-action-panel {
        justify-content: flex-start;
        min-width: 0;
    }

    .premium-module-header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .module-toolbar {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .course-builder-bar {
        grid-template-columns: 1fr;
    }

    .course-builder-tabs {
        overflow-x: auto;
    }

    .builder-hero {
        grid-template-columns: 1fr;
    }

    .subscription-hero,
    .subscription-course-card,
    .legal-summary-grid {
        grid-template-columns: 1fr;
    }

    .subscription-price-card {
        justify-self: start;
        text-align: left;
    }

    .subscription-course-actions {
        justify-content: flex-start;
    }

    .builder-hero-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }

    .builder-hero-actions {
        justify-content: flex-start;
    }

    .progress-side-panel {
        position: static;
    }

    .teacher-command,
    .settings-grid,
    .teacher-dashboard-grid,
    .resource-builder-hero,
    .resource-builder-layout {
        grid-template-columns: 1fr;
    }

    .resource-builder-sidebar {
        position: static;
    }

    .teacher-command-actions {
        justify-content: flex-start;
    }

    .teacher-side-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .teacher-side-column .readiness-panel {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 14px;
    }

    .app-main {
        padding-bottom: calc(4.1rem + env(safe-area-inset-bottom, 0px)) !important;
    }

    .app-main > section {
        padding: 0.55rem !important;
    }

    .content-wrap {
        max-width: 100%;
    }

    .topbar {
        position: sticky;
        top: 0;
        min-height: 3.75rem;
    }

    .topbar-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.45rem;
        min-height: 3.75rem;
        padding: 0.42rem 0.55rem !important;
    }

    .topbar-identity {
        gap: 0.5rem !important;
    }

    .topbar-identity p {
        max-width: 12.5rem;
        overflow: hidden;
        font-size: 0.58rem;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar h1 {
        max-width: 12.5rem;
        overflow: hidden;
        font-size: 0.98rem;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .navbar-menu-btn,
    .navbar-icon-btn,
    .topbar .btn {
        width: 2.35rem;
        height: 2.35rem;
        min-height: 2.35rem;
        padding: 0;
        border-radius: 8px;
        flex: 0 0 auto;
    }

    .topbar .navbar-brand-mark {
        display: none;
    }

    .topbar-actions {
        grid-column: auto;
        display: flex;
        justify-content: flex-end;
        gap: 0.42rem !important;
    }

    .topbar-actions .hidden,
    .topbar .logout-label {
        display: none;
    }

    .topbar-actions form {
        display: flex;
    }

    .course-navbar-menu summary span {
        display: none;
    }

    .course-navbar-menu > div {
        right: 0;
        width: min(14rem, calc(100vw - 1.5rem));
    }

    .navbar-edit-mode > span:first-child {
        display: none;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .activity-header {
        flex-direction: column;
        gap: 0.7rem;
        padding: 0.72rem;
    }

    .learner-player-header {
        position: static;
        padding: 0.72rem;
    }

    .learner-player-header .lesson-title-actions {
        gap: 0.75rem;
    }

    .learner-player-header h2 {
        font-size: 1.28rem;
    }

    .learner-player-header p:not(.learner-player-kicker) {
        font-size: 0.86rem;
    }

    .learner-player-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .learner-player-actions .btn {
        justify-content: center;
        width: 100%;
        min-height: 2.75rem;
        font-size: 0.88rem;
    }

    .learner-resource-card .activity-body {
        padding: 0.42rem;
    }

    .learner-resource-header h3 {
        font-size: 1rem;
    }

    .learner-resource-header p {
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .type-pill {
        padding: 0.16rem 0.5rem;
        font-size: 0.64rem;
    }

    .completion-evidence-panel.is-compact {
        grid-template-columns: 1fr;
        margin-top: 0.5rem;
        padding: 0.55rem;
    }

    .completion-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.45rem;
        align-items: center;
        padding: 0.45rem;
    }

    .completion-row .completion-evidence-panel.is-compact {
        margin-top: 0;
        padding: 0;
    }

    .completion-evidence-panel.is-compact .completion-evidence-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.28rem;
    }

    .completion-evidence-panel.is-compact .completion-evidence-head p {
        font-size: 0.7rem;
    }

    .completion-evidence-panel.is-compact .completion-evidence-grid div {
        padding: 0.36rem 0.38rem;
    }

    .completion-evidence-panel.is-compact .completion-evidence-grid span {
        font-size: 0.52rem;
    }

    .completion-evidence-panel.is-compact .completion-evidence-grid strong {
        font-size: 0.72rem;
    }

    .completion-action-form {
        justify-content: flex-end;
    }

    .completion-action-form .btn {
        width: auto;
        justify-content: center;
        min-height: 2.05rem;
        padding: 0.42rem 0.68rem;
        font-size: 0.74rem;
        white-space: nowrap;
    }

    .activity-row-premium {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .activity-kind,
    .activity-actions {
        grid-column: 1 / -1;
    }

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

    .teacher-course-grid {
        grid-template-columns: 1fr;
    }

    .resource-type-grid,
    .publish-mode-grid,
    .resource-settings-grid,
    .resource-switch-grid {
        grid-template-columns: 1fr;
    }

    .resource-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .resource-upload-zone {
        align-items: stretch;
        flex-direction: column;
    }

    .resource-file-input {
        max-width: 100%;
    }

    .section-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .teacher-kpi-grid,
    .course-health-grid,
    .builder-stat-grid,
    .teacher-side-column {
        grid-template-columns: 1fr;
    }

    .builder-hero {
        padding: 1rem;
    }

    .builder-hero-kpis {
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
    }

    .builder-hero-kpis div {
        min-height: 3rem;
        padding: 0.5rem;
    }

    .builder-hero-kpis i {
        width: 1.85rem;
        height: 1.85rem;
    }

    .settings-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .settings-hero-profile {
        align-items: flex-start;
    }

    .settings-avatar {
        width: 3.8rem;
        height: 3.8rem;
        font-size: 1.35rem;
    }

    .settings-form-grid {
        grid-template-columns: 1fr;
    }

    .settings-photo-field {
        grid-template-columns: 1fr;
    }

    .school-logo-field {
        grid-template-columns: 1fr;
    }

    .settings-photo-preview {
        min-height: 12rem;
    }

    .qr-share-grid {
        grid-template-columns: 1fr;
    }

    .settings-actions,
    .settings-actions .btn {
        width: 100%;
    }

    .builder-hero-actions .btn {
        width: 100%;
    }

    .teacher-command {
        padding: 1rem;
    }

    .teacher-command-actions .btn {
        width: 100%;
    }

    .course-health-top,
    .course-health-footer,
    .dashboard-panel-head,
    .lesson-title-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .lesson-title-actions .btn {
        width: 100%;
    }

    .resource-viewer {
        margin-left: 0;
        margin-right: 0;
        border-radius: 8px;
    }

    .resource-frame {
        min-height: min(56vh, 26rem);
        height: min(56vh, 26rem);
        border-radius: 8px;
    }

    .resource-viewer[data-resource-type="h5p"] .resource-frame,
    .resource-viewer[data-resource-type="html"] .resource-frame,
    .resource-viewer[data-resource-type="scorm"] .resource-frame,
    .resource-viewer[data-resource-type="imscc"] .resource-frame {
        min-height: 13.5rem;
        height: 42vh;
        max-height: 24rem;
    }

    .resource-viewer[data-resource-type="h5p"] .resource-frame {
        min-height: 12.5rem;
        height: 34vh;
        max-height: 21rem;
    }

    .resource-viewer[data-resource-type="video"] {
        min-height: 0;
    }

    .media-viewer,
    .image-viewer {
        max-height: 58vh;
        object-fit: contain;
    }

    .media-viewer {
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .resource-viewer[data-resource-type="image"] .image-viewer {
        max-height: 54vh;
    }

    .resource-link-content {
        min-height: 8rem;
    }

    .resource-text-content {
        min-height: 9rem;
        font-size: 0.86rem;
        line-height: 1.58;
    }

    .pdf-flipbook {
        min-height: 64vh;
    }

    .pdf-flipbook-stage {
        padding: 2.9rem 0.75rem 1.25rem;
    }

    .pdf-flipbook-spread {
        grid-template-columns: minmax(0, 1fr);
        width: min(100%, 28rem);
        min-height: 52vh;
    }

    .pdf-flipbook-page {
        height: 52vh;
    }

    .pdf-flipbook-page + .pdf-flipbook-page {
        display: none;
    }

    .pdf-flipbook-edge {
        width: 2.25rem;
        height: 3.2rem;
    }

    .pdf-flipbook-controls {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .pdf-flipbook-controls strong {
        min-width: 0;
    }

    .resource-viewer-toolbar {
        top: 0.42rem;
        right: 0.42rem;
    }

    .resource-viewer-toolbar > div {
        display: flex;
        gap: 0.3rem;
        padding: 0.2rem;
    }

    .resource-viewer-icon-btn {
        width: 2.35rem;
        height: 2.35rem;
        font-size: 0.9rem;
    }

    .resource-text-content,
    .resource-link-content {
        padding: 3.35rem 0.85rem 0.85rem;
    }

    .tesda-pdf-scroll {
        max-height: 56vh;
        padding: 0.42rem;
        gap: 0.45rem;
    }

    .presentation-stage {
        min-height: 17rem;
    }

    .presentation-slide-frame {
        padding: 2.9rem 0.65rem 0.55rem;
    }

    .presentation-slide img {
        max-height: 48vh;
    }

    .presentation-edge {
        width: 2.1rem;
        height: 3rem;
    }

    .presentation-prev {
        left: 0.35rem;
    }

    .presentation-next {
        right: 0.35rem;
    }

    .presentation-controls {
        grid-template-columns: 1fr;
        gap: 0.35rem;
        padding: 0.48rem 0.55rem;
    }

    .presentation-controls strong {
        min-width: 0;
        font-size: 0.72rem;
    }

    .tesda-pdf-page {
        width: 100%;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.13);
    }

    .tesda-pdf-page figcaption {
        padding: 0.2rem 0.45rem;
        font-size: 0.52rem;
    }

    .course-content,
    .activity-card,
    .learner-resource-card,
    .completion-evidence-panel {
        border-radius: 8px;
    }

    .course-content {
        border-left: 0;
        border-right: 0;
    }

    .student-learning-player > .p-4,
    .student-learning-player > .md\:p-5 {
        padding: 0.5rem !important;
    }

    .resource-viewer.is-resource-fullscreen {
        padding: 0.35rem;
        border-radius: 0;
    }

    .resource-viewer.is-resource-fullscreen .resource-viewer-toolbar {
        top: 0.55rem;
        right: 0.55rem;
    }

    .mixed-activity-toolbar,
    .module-toolbar,
    .activity-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .mixed-activity-toolbar .btn,
    .module-toolbar .btn,
    .activity-actions .btn {
        width: 100%;
    }

    .premium-module-header {
        gap: 0.75rem;
        padding: 0.9rem;
    }

    .module-section-list {
        padding: 0.75rem;
    }

    .more-menu-panel {
        left: 0;
        right: auto;
        width: min(17rem, calc(100vw - 3rem));
    }

    .section-add-activity-btn {
        width: 100%;
        height: 2.85rem;
    }

    .section-add-inline {
        width: 100%;
    }

    .section-insert-line {
        grid-template-columns: minmax(1.5rem, 1fr) auto minmax(1.5rem, 1fr);
        padding-inline: 0.25rem;
    }

    .section-insert-line strong {
        display: none;
    }

    .activity-insert-line {
        grid-template-columns: minmax(1.5rem, 1fr) auto minmax(1.5rem, 1fr);
    }

    .activity-chooser {
        align-items: end;
        padding: 0;
    }

    .activity-chooser-dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 8px 8px 0 0;
    }

    .activity-chooser-header {
        padding: 1rem;
    }

    .activity-chooser-header h2 {
        font-size: 1.25rem;
    }

    .activity-chooser-body {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        padding: 1rem;
    }

    .activity-chooser-categories {
        display: flex;
        gap: 0.45rem;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
        padding: 0 0 0.75rem;
    }

    .activity-chooser-categories button {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .activity-chooser-grid {
        grid-template-columns: 1fr;
        max-height: 55vh;
    }

    .reuse-picker {
        grid-template-columns: 1fr;
        height: min(28rem, calc(100vh - 17rem));
    }

    .reuse-unit-list {
        display: flex;
        gap: 0.45rem;
        max-height: 8.5rem;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid #dbe7f6;
    }

    .reuse-unit-list button {
        min-width: 12rem;
        flex: 0 0 auto;
    }

    .activity-choice-card {
        min-height: auto;
    }

    .activity-chooser-footer {
        padding: 0.85rem 1rem;
    }

    .reuse-panel-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .reuse-panel-actions .btn {
        width: 100%;
    }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
    .activity-order-row,
    .choice-row {
        align-items: stretch;
        flex-direction: column;
    }

    .order-input {
        width: 100%;
    }
}

/* TESDA E-Library inspired premium teacher workspace */
:root {
    --tesda-navy: #07365f;
    --tesda-sidebar: #082f57;
    --tesda-blue: #0b62b4;
    --tesda-sky: #159ccb;
    --tesda-yellow: #ffd21f;
    --tesda-page: #eaf2f8;
    --tesda-surface: #f8fbff;
    --tesda-border: #cfe0ee;
    --tesda-muted: #5a7089;
}

body {
    font-family: Roboto, "Segoe UI", Arial, sans-serif;
    background: var(--tesda-page);
    color: #0d1828;
}

.app-shell {
    background: var(--tesda-page);
}

.content-wrap {
    max-width: 1435px;
}

.topbar {
    background:
        linear-gradient(90deg, var(--tesda-sidebar) 0%, var(--tesda-blue) 58%, #1389b7 100%);
    border-bottom-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 24px rgba(7, 54, 95, 0.16);
}

.topbar-identity p {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.68rem;
    font-weight: 800;
}

.topbar-identity h1 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
}

.sidebar {
    background:
        linear-gradient(180deg, #07365f 0%, #082f57 54%, #052442 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.11);
    color: #ffffff;
    box-shadow: 10px 0 28px rgba(7, 54, 95, 0.16);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 0.82rem 0.88rem 0.55rem;
}

.sidebar-brand-main {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.brand-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: #ffffff;
    color: var(--tesda-blue);
    box-shadow: none;
}

.sidebar h2 {
    overflow: hidden;
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 850;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar h2::after {
    content: "";
}

.sidebar-brand p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 500;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    padding: 0.45rem 0.5rem 0.75rem !important;
}

.sidebar-section-label {
    margin: 1rem 0 0.28rem;
    padding: 0 0.5rem;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.78rem;
    font-weight: 800;
}

.sidebar-section-label:first-child {
    margin-top: 0.18rem;
}

.sidebar-link {
    min-height: 2.2rem;
    border-radius: 8px;
    padding: 0.48rem 0.58rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
    font-weight: 650;
}

.sidebar-link:hover,
.sidebar-link.is-active {
    background: var(--tesda-yellow);
    color: #081426;
}

.sidebar-link:hover .sidebar-icon,
.sidebar-link.is-active .sidebar-icon {
    color: #081426;
}

.sidebar-icon {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.98rem;
}

.sidebar-footer {
    margin-top: auto;
    padding: 0.45rem 0.42rem 0.55rem;
}

.sidebar-account-menu {
    position: relative;
}

.sidebar-account-menu summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.62rem;
    align-items: center;
    min-height: 3.65rem;
    border-radius: 12px;
    padding: 0.58rem 0.62rem;
    color: #ffffff;
    cursor: pointer;
    list-style: none;
}

.sidebar-account-menu summary::-webkit-details-marker {
    display: none;
}

.sidebar-account-menu summary:hover,
.sidebar-account-menu[open] summary {
    background: rgba(255, 255, 255, 0.12);
}

.sidebar-account-avatar {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 999px;
    background: #ffffff;
    color: var(--tesda-blue);
    font-size: 0.72rem;
    font-weight: 800;
}

.sidebar-account-avatar.large {
    width: 2.25rem;
    height: 2.25rem;
}

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

.sidebar-account-copy {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.sidebar-account-copy strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 520;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-account-copy span {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.72rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-account-chevron {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.78rem;
    transition: transform 0.16s ease;
}

.sidebar-account-menu[open] .sidebar-account-chevron {
    transform: rotate(-90deg);
}

.sidebar-account-popover {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.45rem);
    left: 0;
    z-index: 45;
    display: grid;
    gap: 0.45rem;
    border: 1px solid var(--tesda-border);
    border-radius: 16px;
    background: #ffffff;
    padding: 0.65rem;
    color: #0d1828;
    box-shadow: 0 18px 42px rgba(7, 54, 95, 0.24);
}

.sidebar-account-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.62rem;
    align-items: center;
    padding: 0.3rem 0.22rem 0.48rem;
}

.sidebar-account-card span:last-child {
    display: grid;
    min-width: 0;
}

.sidebar-account-card strong,
.sidebar-menu-item strong {
    overflow: hidden;
    color: #0d1828;
    font-size: 0.84rem;
    font-weight: 560;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-account-card small,
.sidebar-menu-item small {
    overflow: hidden;
    color: var(--tesda-muted);
    font-size: 0.72rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-menu-group {
    display: grid;
    gap: 0.12rem;
    border-top: 1px solid #e4edf5;
    padding-top: 0.45rem;
}

.sidebar-menu-item,
.sidebar-menu-link {
    display: grid;
    grid-template-columns: 1.28rem minmax(0, 1fr);
    gap: 0.5rem;
    align-items: center;
    width: 100%;
    min-height: 2.35rem;
    border: 0;
    border-radius: 9px;
    background: transparent;
    padding: 0.44rem 0.46rem;
    color: #0d1828;
    font-size: 0.84rem;
    text-align: left;
    cursor: pointer;
}

.sidebar-menu-link:hover {
    background: #edf6ff;
}

.sidebar-menu-form {
    margin: 0;
}

.sidebar-menu-item > i,
.sidebar-menu-link > i {
    color: var(--tesda-blue);
    text-align: center;
}

.sidebar-menu-item > span {
    display: grid;
    min-width: 0;
}

.sidebar-menu-item.access.is-success > i {
    color: #0f8a43;
}

.sidebar-menu-item.access.is-danger > i {
    color: #dc2626;
}

.sidebar-access-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    margin: 0.1rem 0.1rem 0.2rem;
}

.sidebar-access-grid > span {
    display: grid;
    gap: 0.12rem;
    border-radius: 9px;
    background: #edf6ff;
    padding: 0.48rem 0.55rem;
}

.sidebar-access-grid small {
    color: var(--tesda-muted);
    font-size: 0.68rem;
}

.sidebar-access-grid strong {
    color: var(--tesda-navy);
    font-size: 0.86rem;
    font-weight: 650;
}

.sidebar-menu-note {
    border-radius: 9px;
    background: #edf6ff;
    padding: 0.5rem 0.55rem;
    color: #395872;
    font-size: 0.72rem;
    line-height: 1.32;
}

body.sidebar-collapsed .sidebar-brand {
    justify-content: center;
    padding-left: 0.58rem;
    padding-right: 0.58rem;
}

body.sidebar-collapsed .sidebar-brand-main {
    justify-content: center;
}

body.sidebar-collapsed .sidebar-brand-toggle,
body.sidebar-collapsed .sidebar-section-label,
body.sidebar-collapsed .sidebar-account-copy,
body.sidebar-collapsed .sidebar-account-chevron,
body.sidebar-collapsed .sidebar-account-popover {
    display: none;
}

body.sidebar-collapsed .sidebar-footer {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
}

body.sidebar-collapsed .sidebar-account-menu summary {
    grid-template-columns: auto;
    justify-content: center;
    min-height: 2.6rem;
    padding: 0.3rem;
}

.topbar .navbar-menu-btn,
.topbar .navbar-icon-btn {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-shadow: none;
}

.topbar .navbar-menu-btn:hover,
.topbar .navbar-icon-btn:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.18);
}

.topbar .student-url-chip {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.topbar .student-url-chip i,
.topbar .student-url-chip span,
.topbar .student-url-chip strong {
    color: #ffffff;
}

.topbar .student-url-chip span {
    color: rgba(255, 255, 255, 0.74);
}

.btn {
    border-radius: 7px;
    font-weight: 800;
}

.btn-primary {
    background: #0b62d8;
    color: #ffffff;
    border-color: #0b62d8;
}

.btn-primary:hover {
    background: #084ea9;
    color: #ffffff;
}

.teacher-command .btn-primary {
    background: #ffffff;
    color: #081426;
    border-color: rgba(255, 255, 255, 0.65);
}

.teacher-command .btn-primary:hover {
    background: #edf6ff;
    color: #081426;
}

.btn-accent {
    background: var(--tesda-yellow);
    border-color: var(--tesda-yellow);
    color: #101827;
}

.btn-accent:hover {
    background: #f2c400;
    border-color: #f2c400;
}

.btn-soft {
    background: #ffffff;
    border-color: #0b62d8;
    color: #0b62d8;
}

.btn-secondary {
    border-color: #d2deeb;
    color: #0f172a;
}

.teacher-home {
    gap: 1rem;
}

.teacher-home,
.student-workspace,
.system-health-page,
.learner-dashboard {
    color: #0d1828;
}

.teacher-command {
    grid-template-columns: minmax(0, 1fr) minmax(28rem, 0.95fr);
    border: 0;
    border-radius: 7px;
    background:
        linear-gradient(105deg, #0d4d8a 0%, #126fe7 57%, #20a6b8 100%);
    color: #ffffff;
    padding: 1.45rem 1.6rem;
    box-shadow: 0 16px 28px rgba(7, 54, 95, 0.2);
}

.teacher-command .eyebrow {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.72rem;
}

.teacher-command h2 {
    color: #ffffff;
    font-size: clamp(1.45rem, 2.1vw, 2rem);
    font-weight: 800;
}

.teacher-command p:last-child {
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.93);
    font-size: 0.92rem;
    font-weight: 400;
}

.teacher-command-panel {
    display: grid;
    gap: 1rem;
}

.teacher-command-actions {
    justify-content: flex-end;
}

.teacher-hero-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

.teacher-hero-kpis article {
    min-height: 3.2rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.65rem 0.75rem;
}

.teacher-hero-kpis strong,
.teacher-hero-kpis span {
    display: block;
}

.teacher-hero-kpis strong {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1;
    font-weight: 900;
}

.teacher-hero-kpis span {
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.teacher-dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 345px;
}

.dashboard-panel {
    background: rgba(255, 255, 255, 0.96);
    border-color: var(--tesda-border);
    border-radius: 7px;
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(9, 42, 73, 0.06);
}

.dashboard-panel-head h3 {
    font-size: 1.05rem;
    font-weight: 800;
}

.eyebrow {
    color: #0b62d8;
    font-weight: 900;
}

.course-health-grid {
    gap: 0.85rem;
}

.course-health-card {
    gap: 0.85rem;
    border-color: var(--tesda-border);
    border-radius: 7px;
    background: #ffffff;
    padding: 0.95rem;
}

.course-health-card:hover {
    border-color: #93bfe8;
    box-shadow: 0 12px 24px rgba(9, 42, 73, 0.11);
}

.course-code {
    color: #0b62d8;
}

.course-health-top h4 {
    color: #0a1524;
    font-size: 1rem;
    font-weight: 800;
}

.course-health-top span:not(.health-status) {
    color: #53657a;
    font-size: 0.8rem;
    font-weight: 600;
}

.health-status {
    border-radius: 999px;
    padding: 0.22rem 0.6rem;
}

.health-status.success {
    background: #dff8e9;
    color: #0f7a36;
}

.health-status.warning {
    background: #fff4ca;
    color: #8a5c00;
}

.health-status.danger {
    background: #ffe2e2;
    color: #a4161a;
}

.progress-track {
    height: 0.42rem;
    background: #dfe7ef;
}

.progress-fill {
    background: linear-gradient(90deg, #1057a8, #159ccb);
}

.course-health-metrics div {
    border-color: #dce6f0;
    border-radius: 7px;
    background: #fbfdff;
    padding: 0.65rem;
}

.activity-mix span {
    border-color: #dce6f0;
    background: #f7faff;
}

.course-health-footer a {
    color: #0b62d8;
    font-weight: 900;
}

.priority-item,
.priority-empty,
.tool-list a,
.tool-list.refined div {
    border: 1px solid var(--tesda-border);
    border-radius: 7px;
    background: #fbfdff;
}

.tool-list.refined div {
    padding: 0.8rem;
}

.priority-item strong,
.priority-empty strong,
.tool-list strong {
    color: #101827;
    font-weight: 800;
}

.tool-list span {
    color: #0b62d8;
}

.readiness-panel {
    background: #ffffff;
}

.readiness-panel h3 {
    font-size: 1.05rem;
    font-weight: 800;
}

.connection-url-box {
    border-color: #b8d9ff;
    background: #edf7ff;
    color: #0b62d8;
}

.qr-card {
    border-color: var(--tesda-border);
    border-radius: 7px;
}

@media (max-width: 1180px) {
    .teacher-command,
    .teacher-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .teacher-command-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .teacher-command {
        padding: 1rem;
    }

    .teacher-command-panel,
    .teacher-hero-kpis {
        grid-template-columns: 1fr 1fr;
    }

    .teacher-command-actions {
        grid-column: 1 / -1;
    }
}

.student-workspace {
    display: grid;
    gap: 1rem;
}

.student-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.6fr);
    gap: 1rem;
    align-items: center;
    border-radius: 7px;
    background: linear-gradient(105deg, #0d4d8a 0%, #126fe7 57%, #20a6b8 100%);
    color: #ffffff;
    padding: 1.35rem 1.5rem;
    box-shadow: 0 16px 28px rgba(7, 54, 95, 0.2);
}

.student-hero.compact {
    grid-template-columns: minmax(0, 1fr) auto;
}

.student-hero .eyebrow,
.student-hero .builder-back-link {
    color: rgba(255, 255, 255, 0.86);
}

.student-hero h2 {
    margin-top: 0.25rem;
    color: #ffffff;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.1;
    font-weight: 850;
}

.student-hero p:last-child {
    margin-top: 0.45rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
}

.student-join-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
}

#join-class,
#progress {
    scroll-margin-top: 6rem;
}

#join-class:target,
#progress:target,
#join-class.is-anchor-highlighted,
#progress.is-anchor-highlighted {
    outline: 3px solid rgba(11, 98, 216, 0.18);
    outline-offset: 4px;
}

[data-scroll-target] {
    cursor: pointer;
}

.student-join-card input {
    min-height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.95);
    padding: 0 0.8rem;
}

.student-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.student-kpi-grid article,
.student-course-progress {
    border: 1px solid var(--tesda-border);
    border-radius: 7px;
    background: #ffffff;
    padding: 0.9rem;
}

.student-kpi-grid span,
.student-kpi-grid strong,
.student-course-progress span,
.student-course-progress strong {
    display: block;
}

.student-kpi-grid span,
.student-course-progress span {
    color: #53657a;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.student-kpi-grid strong,
.student-course-progress strong {
    margin-top: 0.2rem;
    color: #101827;
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 900;
}

.student-course-progress {
    min-width: 9rem;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
}

.student-course-progress strong,
.student-course-progress span {
    color: #ffffff;
}

.student-course-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.student-course-card {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--tesda-border);
    border-radius: 7px;
    background: #ffffff;
    transition: 0.18s ease;
}

.student-course-card:hover {
    border-color: #93bfe8;
    box-shadow: 0 12px 24px rgba(9, 42, 73, 0.11);
    transform: translateY(-1px);
}

.student-card-cover {
    min-height: 5rem;
    background: linear-gradient(105deg, #126fe7 0%, #11856f 100%);
}

.student-course-body,
.learning-outcome-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
}

.student-course-body h4,
.learning-outcome-card h4 {
    color: #101827;
    font-size: 1.05rem;
    line-height: 1.25;
    font-weight: 850;
}

.student-course-body > span,
.learning-outcome-card > div > span {
    color: #53657a;
    font-size: 0.86rem;
}

.student-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.student-card-meta span {
    border-radius: 999px;
    background: #f1f5f9;
    padding: 0.28rem 0.62rem;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 800;
}

.student-open-link {
    justify-self: end;
    color: #0b62d8;
    font-size: 0.88rem;
}

.unit-card .student-course-body {
    min-height: 17rem;
}

.learning-outcome-list {
    display: grid;
    gap: 0.85rem;
}

.learning-outcome-card {
    border: 1px solid var(--tesda-border);
    border-radius: 7px;
    background: #ffffff;
}

.learning-outcome-card .btn {
    justify-self: end;
}

.premium-path {
    gap: 0.7rem;
}

.learning-outcome-accordion {
    overflow: hidden;
    border: 1px solid var(--tesda-border);
    border-radius: 7px;
    background: #ffffff;
}

.learning-outcome-accordion summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    list-style: none;
}

.learning-outcome-accordion summary::-webkit-details-marker {
    display: none;
}

.learning-outcome-accordion[open] {
    border-color: #93bfe8;
    box-shadow: 0 12px 24px rgba(9, 42, 73, 0.08);
}

.learning-outcome-accordion[open] summary {
    border-bottom: 1px solid #e0e9f2;
    background: #fbfdff;
}

.outcome-summary-main h4 {
    color: #101827;
    font-size: 1.02rem;
    line-height: 1.25;
    font-weight: 850;
}

.outcome-summary-main span {
    display: block;
    margin-top: 0.25rem;
    color: #53657a;
    font-size: 0.84rem;
}

.outcome-summary-progress {
    min-width: 6rem;
    text-align: right;
}

.outcome-summary-progress strong,
.outcome-summary-progress span {
    display: block;
}

.outcome-summary-progress strong {
    color: #0b62d8;
    font-size: 1.15rem;
    font-weight: 900;
}

.outcome-summary-progress span {
    color: #53657a;
    font-size: 0.74rem;
    font-weight: 800;
}

.outcome-chevron {
    color: #64748b;
    transition: transform 0.18s ease;
}

.learning-outcome-accordion[open] .outcome-chevron {
    transform: rotate(180deg);
}

.outcome-expanded {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
}

.student-activity-list {
    display: grid;
    gap: 0.55rem;
}

.student-activity-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    border: 1px solid #dce6f0;
    border-radius: 7px;
    background: #ffffff;
    padding: 0.75rem;
    transition: 0.18s ease;
}

.student-activity-row:hover {
    border-color: #93bfe8;
    background: #f7fbff;
}

.student-activity-icon {
    width: 2.2rem;
    height: 2.2rem;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #eaf2ff;
    color: #0b62d8;
}

.student-activity-icon.assignment {
    background: #f3e8ff;
    color: #7c3aed;
}

.student-activity-icon.quiz {
    background: #fff7ed;
    color: #ea580c;
}

.student-activity-row strong,
.student-activity-row small {
    display: block;
}

.student-activity-row strong {
    color: #101827;
    font-size: 0.92rem;
    font-weight: 850;
}

.student-activity-row small {
    margin-top: 0.12rem;
    color: #53657a;
    font-size: 0.76rem;
    font-weight: 750;
}

.activity-state {
    border-radius: 999px;
    background: #eaf2ff;
    padding: 0.28rem 0.62rem;
    color: #0b62d8;
    font-size: 0.74rem;
    font-style: normal;
    font-weight: 900;
}

.activity-state.done {
    background: #dcfce7;
    color: #15803d;
}

.student-activity-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 7px;
    background: #f8fafc;
    padding: 1rem;
    color: #53657a;
    font-size: 0.86rem;
    font-weight: 750;
}

.learner-command-center {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.9fr);
}

.learner-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 345px;
    gap: 1rem;
    align-items: start;
}

.learner-main-column,
.learner-side-column {
    display: grid;
    gap: 1rem;
}

.continue-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid #d6e4f2;
    border-radius: 8px;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 12px 26px rgba(9, 42, 73, 0.08);
}

.continue-panel-copy h3 {
    margin-top: 0.2rem;
    color: #0f172a;
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 900;
}

.continue-panel-copy span {
    display: block;
    margin-top: 0.25rem;
    color: #52657a;
    font-size: 0.88rem;
    font-weight: 700;
}

.continue-panel-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.continue-progress-ring {
    --progress: 0;
    width: 4.5rem;
    height: 4.5rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background:
        radial-gradient(circle at center, #ffffff 57%, transparent 58%),
        conic-gradient(#0b62d8 calc(var(--progress) * 1%), #e2e8f0 0);
}

.continue-progress-ring strong,
.continue-progress-ring span {
    grid-area: 1 / 1;
    display: block;
    text-align: center;
}

.continue-progress-ring strong {
    margin-top: -0.55rem;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 900;
}

.continue-progress-ring span {
    margin-top: 1.15rem;
    color: #64748b;
    font-size: 0.58rem;
    font-weight: 900;
    text-transform: uppercase;
}

.student-course-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.student-course-topline em {
    border-radius: 999px;
    background: #eaf2ff;
    padding: 0.22rem 0.55rem;
    color: #0b62d8;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 900;
}

.course-next-step {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.5rem 0.6rem;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 800;
}

.course-next-step i {
    color: #0b62d8;
    font-size: 0.72rem;
}

.learner-task-list,
.learner-recent-list,
.learner-progress-list {
    display: grid;
    gap: 0.55rem;
}

.learner-task-row,
.learner-recent-list a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.68rem;
    text-decoration: none;
}

.learner-task-row:hover,
.learner-recent-list a:hover {
    border-color: #91bde8;
    background: #f8fbff;
}

.learner-task-row.is-overdue {
    border-color: #fecaca;
    background: #fff7f7;
}

.learner-task-icon,
.learner-recent-list a > i {
    width: 2.15rem;
    height: 2.15rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b62d8;
}

.learner-task-icon.assignment {
    background: #f3e8ff;
    color: #7c3aed;
}

.learner-task-icon.quiz {
    background: #fff7ed;
    color: #ea580c;
}

.learner-task-row strong,
.learner-task-row small,
.learner-task-row em,
.learner-recent-list strong,
.learner-recent-list small {
    display: block;
}

.learner-task-row strong,
.learner-recent-list strong {
    min-width: 0;
    overflow: hidden;
    color: #101827;
    font-size: 0.84rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.learner-task-row small,
.learner-recent-list small {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
}

.learner-task-row em {
    margin-top: 0.12rem;
    color: #0b62d8;
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 850;
}

.learner-progress-list div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem 0.65rem;
    align-items: center;
}

.learner-progress-list span,
.learner-progress-list strong {
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 900;
}

.learner-progress-list span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.learner-progress-list i {
    grid-column: 1 / -1;
    height: 0.42rem;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.learner-progress-list b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0b62d8, #20a6b8);
}

.learner-empty-mini {
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    padding: 0.8rem;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 750;
}

.learner-progress-page {
    gap: 1rem;
}

.progress-hero {
    grid-template-columns: minmax(0, 1fr) auto;
}

.progress-hero-meter {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    padding: 0.8rem 1rem;
    backdrop-filter: blur(10px);
}

.continue-progress-ring.large {
    width: 5.2rem;
    height: 5.2rem;
}

.continue-progress-ring.large strong {
    font-size: 1.18rem;
}

.progress-hero-meter strong,
.progress-hero-meter span,
.progress-hero-meter small {
    display: block;
}

.progress-hero-meter > div:last-child strong {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
}

.progress-hero-meter > div:last-child span,
.progress-hero-meter > div:last-child small {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
    font-weight: 750;
}

.progress-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.progress-overview-grid article {
    position: relative;
    overflow: hidden;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.9rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.progress-overview-grid span,
.progress-overview-grid strong {
    display: block;
}

.progress-overview-grid span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.progress-overview-grid strong {
    margin-top: 0.24rem;
    color: #081426;
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 900;
}

.progress-overview-grid i {
    position: absolute;
    right: -1rem;
    bottom: -1rem;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 999px;
    opacity: 0.16;
}

.progress-overview-grid i.success,
.progress-stacked-chart .done,
.progress-track.multi .done,
.progress-legend i.done {
    background: #15803d;
}

.progress-overview-grid i.active,
.progress-stacked-chart .active,
.progress-track.multi .active,
.progress-legend i.active {
    background: #0b62d8;
}

.progress-overview-grid i.pending,
.progress-stacked-chart .pending,
.progress-track.multi .pending,
.progress-legend i.pending {
    background: #f59e0b;
}

.progress-overview-grid i.points {
    background: #7c3aed;
}

.progress-stacked-chart .locked,
.progress-track.multi .locked,
.progress-legend i.locked {
    background: #94a3b8;
}

.progress-chart-panel {
    display: grid;
    gap: 0.75rem;
}

.progress-stacked-chart,
.progress-track.multi {
    display: flex;
    height: 0.85rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.progress-stacked-chart span,
.progress-track.multi span {
    display: block;
    min-width: 0;
}

.progress-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 850;
}

.progress-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.progress-legend i {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
}

.learner-progress-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 1rem;
    align-items: start;
}

.learner-progress-main,
.learner-progress-side,
.progress-course-list {
    display: grid;
    gap: 1rem;
}

.progress-course-card {
    display: grid;
    gap: 0.75rem;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    padding: 0.85rem;
}

.progress-course-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.progress-course-summary h4,
.progress-course-summary span,
.progress-course-summary strong {
    display: block;
}

.progress-course-summary h4 {
    margin-top: 0.2rem;
    color: #081426;
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 900;
}

.progress-course-summary span {
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 750;
}

.progress-course-summary > strong {
    color: #0b62d8;
    font-size: 1.25rem;
    font-weight: 900;
}

.progress-next-action {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.55rem 0.65rem;
    color: #0b62d8;
    font-size: 0.8rem;
    font-weight: 900;
}

.completion-matrix-wrap {
    overflow-x: auto;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
}

.completion-matrix {
    width: 100%;
    min-width: 42rem;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
}

.completion-matrix th,
.completion-matrix td {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem;
    text-align: left;
    vertical-align: middle;
}

.completion-matrix thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fbff;
    color: #334155;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.completion-matrix tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 16rem;
    background: #ffffff;
}

.completion-matrix tbody tr:last-child th,
.completion-matrix tbody tr:last-child td {
    border-bottom: 0;
}

.completion-matrix th span,
.completion-matrix th strong,
.completion-matrix td strong,
.completion-matrix td small {
    display: block;
}

.completion-matrix th span {
    color: #0b62d8;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.completion-matrix th strong {
    margin-top: 0.2rem;
    color: #081426;
    font-size: 0.88rem;
    line-height: 1.25;
    font-weight: 900;
}

.completion-matrix td strong {
    color: #081426;
    font-size: 0.9rem;
    font-weight: 900;
}

.completion-matrix td small {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
}

.matrix-cell-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(1.9rem, 1fr));
    gap: 0.25rem;
    min-width: 20rem;
}

.matrix-cell {
    height: 1.8rem;
    display: grid;
    place-items: center;
    border-radius: 5px;
    color: #ffffff;
    font-size: 0.72rem;
    position: relative;
    cursor: help;
    transition: box-shadow 0.16s ease, transform 0.16s ease, outline-color 0.16s ease;
}

.matrix-cell.done {
    background: #6da83b;
}

.matrix-cell.active {
    background: #0b62d8;
}

.matrix-cell.pending {
    background: #f6c343;
    color: #111827;
}

.matrix-cell.locked {
    background: #0c5785;
}

.matrix-cell:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.14);
}

.matrix-cell.is-inspected,
.matrix-cell:focus-visible {
    outline: 3px solid rgba(11, 98, 216, 0.24);
    outline-offset: 2px;
}

.matrix-activity-popover {
    position: fixed;
    z-index: 80;
    width: min(18rem, calc(100vw - 2rem));
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.2);
    padding: 0.7rem 0.8rem;
    pointer-events: none;
}

.matrix-activity-popover span,
.matrix-activity-popover strong,
.matrix-activity-popover small,
.matrix-activity-popover em {
    display: block;
}

.matrix-activity-popover span {
    color: #0b62d8;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.matrix-activity-popover strong {
    margin-top: 0.18rem;
    color: #081426;
    font-size: 0.88rem;
    line-height: 1.25;
    font-weight: 900;
}

.matrix-activity-popover small {
    margin-top: 0.28rem;
    color: #475569;
    font-size: 0.74rem;
    font-weight: 750;
}

.matrix-activity-popover em {
    margin-top: 0.45rem;
    color: #0b62d8;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 900;
}

.matrix-empty {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 750;
}

.teacher-progress-page {
    max-width: 90rem;
    margin: 0 auto;
}

.teacher-progress-hero {
    align-items: center;
}

.teacher-progress-meter {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 17rem;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    padding: 1rem;
}

.teacher-progress-meter strong,
.teacher-progress-meter span {
    display: block;
}

.teacher-progress-meter strong {
    color: #081426;
    font-size: 1.7rem;
    line-height: 1;
    font-weight: 950;
}

.teacher-progress-meter span {
    margin-top: 0.25rem;
    color: #52657f;
    font-size: 0.78rem;
    font-weight: 850;
}

.teacher-progress-controls {
    margin-bottom: 1rem;
}

.teacher-progress-filter-form {
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) repeat(3, minmax(9.5rem, 0.55fr)) auto auto;
    gap: 0.75rem;
    align-items: end;
}

.teacher-progress-filter-form label {
    display: grid;
    gap: 0.3rem;
}

.teacher-progress-filter-form label > span {
    color: #52657f;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.teacher-progress-filter-form input,
.teacher-progress-filter-form select {
    width: 100%;
    min-height: 2.6rem;
    border: 1px solid #cfe0f4;
    border-radius: 8px;
    background: #ffffff;
    color: #081426;
    padding: 0 0.75rem;
    font-size: 0.88rem;
    font-weight: 800;
    outline: none;
}

.teacher-progress-filter-form input:focus,
.teacher-progress-filter-form select:focus {
    border-color: #0b62d8;
    box-shadow: 0 0 0 3px rgba(11, 98, 216, 0.13);
}

.teacher-progress-search {
    position: relative;
}

.teacher-progress-search i {
    position: absolute;
    left: 0.78rem;
    bottom: 0.82rem;
    color: #64748b;
    font-size: 0.85rem;
}

.teacher-progress-search input {
    padding-left: 2.25rem;
}

.teacher-progress-matrix-panel {
    margin-bottom: 1.5rem;
}

.teacher-completion-matrix {
    min-width: 58rem;
}

.teacher-completion-matrix tbody th {
    width: 18rem;
}

.progress-legend.compact {
    margin-top: 0;
    justify-content: flex-end;
}

@media (max-width: 1024px) {
    .teacher-progress-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .teacher-progress-filter-form .btn {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .teacher-progress-meter {
        width: 100%;
    }

    .teacher-progress-filter-form {
        grid-template-columns: 1fr;
    }

    .progress-legend.compact {
        justify-content: flex-start;
    }
}

.assignment-submit-page {
    max-width: 90rem;
    margin: 0 auto;
}

.assignment-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    color: #0b62d8;
    font-size: 0.86rem;
    font-weight: 900;
}

.assignment-submit-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #0f766e 0%, #0b62d8 100%);
    color: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.16);
}

.assignment-submit-hero h2 {
    margin-top: 0.3rem;
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.15;
    font-weight: 950;
}

.assignment-submit-hero p:not(.eyebrow) {
    margin-top: 0.45rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
    font-weight: 750;
}

.assignment-submit-score {
    min-width: 6.5rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    padding: 0.9rem 1rem;
    text-align: center;
}

.assignment-submit-score strong,
.assignment-submit-score span {
    display: block;
}

.assignment-submit-score strong {
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 950;
}

.assignment-submit-score span {
    margin-top: 0.25rem;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.assignment-submit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22rem;
    gap: 1rem;
    margin-top: 1rem;
    align-items: start;
}

.assignment-submit-main,
.assignment-submit-side {
    display: grid;
    gap: 1rem;
}

.assignment-instructions {
    color: #334155;
    font-size: 0.94rem;
    line-height: 1.65;
}

.assignment-instructions p + p {
    margin-top: 0.8rem;
}

.assignment-submit-state {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.assignment-submit-state.submitted {
    background: #dcfce7;
    color: #166534;
}

.assignment-submit-state.closed {
    background: #fee2e2;
    color: #991b1b;
}

.assignment-submit-state.draft {
    background: #dbeafe;
    color: #1d4ed8;
}

.assignment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.assignment-methods span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid #dbe7f6;
    border-radius: 999px;
    background: #f8fbff;
    padding: 0.45rem 0.7rem;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 900;
}

.assignment-field-block + .assignment-field-block {
    margin-top: 1rem;
}

.assignment-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.45rem;
}

.assignment-field-head label {
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 900;
}

.assignment-field-head small,
.assignment-field-head a {
    color: #0b62d8;
    font-size: 0.76rem;
    font-weight: 900;
}

.assignment-help-text {
    margin-top: 0.4rem;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 750;
}

.assignment-file-dropzone {
    display: grid;
    place-items: center;
    gap: 0.35rem;
    min-height: 9.5rem;
    border: 2px dashed #bfdbfe;
    border-radius: 8px;
    background: #f8fbff;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.assignment-file-dropzone.is-dragging,
.assignment-file-dropzone:hover {
    border-color: #0b62d8;
    background: #eff6ff;
    transform: translateY(-1px);
}

.assignment-file-dropzone i {
    color: #0b62d8;
    font-size: 1.45rem;
}

.assignment-file-dropzone strong,
.assignment-file-dropzone span {
    display: block;
}

.assignment-file-dropzone strong {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 950;
}

.assignment-file-dropzone span {
    max-width: 34rem;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 750;
}

.assignment-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.assignment-error {
    margin-top: 0.4rem;
    color: #dc2626;
    font-size: 0.78rem;
    font-weight: 850;
}

.assignment-submit-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.assignment-submit-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.assignment-submit-actions small {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 750;
}

.assignment-status-card h3,
.assignment-feedback-card h3 {
    margin-top: 0.2rem;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 950;
}

.assignment-status-card dl {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.assignment-status-card dl div {
    border-top: 1px solid #e2e8f0;
    padding-top: 0.75rem;
}

.assignment-status-card dt {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.assignment-status-card dd {
    margin-top: 0.2rem;
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 850;
}

.assignment-feedback-card p,
.assignment-feedback-text {
    margin-top: 0.75rem;
    color: #334155;
    font-size: 0.86rem;
    line-height: 1.55;
    font-weight: 750;
}

.assignment-builder {
    max-width: 90rem;
    margin: 0 auto;
}

.assignment-builder-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #0f766e 0%, #0b62d8 100%);
    color: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.16);
}

.assignment-builder-hero .builder-back-link {
    color: #ffffff;
}

.quiz-builder-hero {
    background: linear-gradient(135deg, #c2410c 0%, #0b62d8 100%);
}

.assignment-builder-hero h2 {
    margin-top: 0.35rem;
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.15;
    font-weight: 950;
}

.assignment-builder-hero p:not(.eyebrow) {
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
    font-weight: 750;
}

.assignment-builder-score {
    min-width: 7rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    padding: 0.9rem 1rem;
    text-align: center;
}

.assignment-builder-score strong,
.assignment-builder-score span {
    display: block;
}

.assignment-builder-score strong {
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 950;
}

.assignment-builder-score span {
    margin-top: 0.25rem;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.assignment-builder-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22rem;
    gap: 1rem;
    margin-top: 1rem;
    align-items: start;
}

.assignment-builder-main,
.assignment-builder-side {
    display: grid;
    gap: 1rem;
}

.assignment-builder-side {
    position: sticky;
    top: 5rem;
}

.assignment-builder-panel label {
    display: block;
    margin-bottom: 0.45rem;
    color: #0f172a;
    font-size: 0.84rem;
    font-weight: 900;
}

.assignment-field-block.is-muted {
    opacity: 0.62;
}

.assignment-two-col,
.assignment-three-col,
.assignment-toggle-grid {
    display: grid;
    gap: 0.9rem;
}

.assignment-two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.assignment-three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.assignment-toggle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.assignment-config-toggle {
    display: flex !important;
    align-items: flex-start;
    gap: 0.75rem;
    min-height: 4.5rem;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.8rem;
    cursor: pointer;
}

.assignment-config-toggle input {
    margin-top: 0.15rem;
}

.assignment-config-toggle strong,
.assignment-config-toggle small {
    display: block;
}

.assignment-config-toggle strong {
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 950;
}

.assignment-config-toggle small {
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.74rem;
    line-height: 1.35;
    font-weight: 750;
}

.assignment-readiness-list {
    display: grid;
    gap: 0.6rem;
    margin-top: 1rem;
}

.assignment-readiness-list span {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 850;
}

.assignment-readiness-list span.is-complete {
    color: #166534;
}

.assignment-readiness-list span.is-complete i {
    color: #16a34a;
}

.assignment-save-button {
    justify-content: center;
}

.question-builder {
    max-width: 90rem;
    margin: 0 auto;
}

.question-builder-hero {
    background: linear-gradient(135deg, #ea580c 0%, #0f766e 100%);
}

.question-builder-form {
    display: grid;
    gap: 1rem;
}

.question-choice-panel,
.question-feedback-panel,
.question-bank-settings {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.question-choice-list {
    display: grid;
    gap: 0.7rem;
    margin-top: 0.8rem;
}

.question-bank-list {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
}

.question-bank-list form {
    display: grid;
    gap: 0.45rem;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.75rem;
}

.question-bank-list strong,
.question-bank-list small {
    display: block;
}

.question-bank-list strong {
    color: #0f172a;
    font-size: 0.82rem;
    line-height: 1.28;
    font-weight: 950;
}

.question-bank-list small {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
}

.quiz-feedback-detail {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.7rem;
}

.quiz-feedback-detail summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    cursor: pointer;
    list-style: none;
}

.quiz-feedback-detail summary::-webkit-details-marker {
    display: none;
}

.quiz-feedback-detail summary span {
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 900;
}

.quiz-feedback-detail summary strong {
    border-radius: 999px;
    padding: 0.25rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.quiz-feedback-detail summary strong.correct {
    background: #dcfce7;
    color: #166534;
}

.quiz-feedback-detail summary strong.wrong {
    background: #fee2e2;
    color: #991b1b;
}

.quiz-feedback-detail p,
.quiz-feedback-detail small {
    display: block;
    margin-top: 0.55rem;
    color: #475569;
    font-size: 0.78rem;
    line-height: 1.45;
    font-weight: 750;
}

@media (max-width: 980px) {
    .assignment-submit-layout,
    .assignment-builder-layout {
        grid-template-columns: 1fr;
    }

    .assignment-builder-side {
        position: static;
    }
}

@media (max-width: 640px) {
    .assignment-submit-hero,
    .assignment-builder-hero,
    .assignment-submit-actions,
    .assignment-field-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .assignment-submit-score,
    .assignment-builder-score {
        width: 100%;
        text-align: left;
    }

    .assignment-two-col,
    .assignment-three-col,
    .assignment-toggle-grid {
        grid-template-columns: 1fr;
    }
}

.progress-mobile-activity-list {
    display: none;
}

.mobile-report-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.65rem;
}

.mobile-report-head span,
.mobile-report-head strong,
.mobile-report-head small {
    display: block;
}

.mobile-report-head span {
    color: #0b62d8;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.mobile-report-head strong {
    color: #081426;
    font-size: 0.95rem;
    line-height: 1.2;
    font-weight: 900;
}

.mobile-report-head small {
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
}

.mobile-report-head em {
    color: #0b62d8;
    font-size: 1rem;
    font-style: normal;
    font-weight: 900;
}

.mobile-matrix-summary {
    margin-bottom: 0.72rem;
}

.mobile-matrix-summary .progress-track.multi {
    height: 0.68rem;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.mobile-matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(2.38rem, 1fr));
    gap: 0.42rem;
}

.mobile-matrix-grid .matrix-cell {
    min-height: 2.38rem;
    height: 2.38rem;
    border-radius: 8px;
    font-size: 0.78rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 14px rgba(15, 23, 42, 0.08);
}

.mobile-matrix-grid .matrix-cell.done {
    background: linear-gradient(180deg, #78b64a, #5d9832);
}

.mobile-matrix-grid .matrix-cell.active {
    background: linear-gradient(180deg, #1976ea, #0b62d8);
}

.mobile-matrix-grid .matrix-cell.pending {
    background: linear-gradient(180deg, #ffd866, #f6c343);
}

.mobile-matrix-grid .matrix-cell.locked {
    background: linear-gradient(180deg, #64748b, #475569);
}

.mobile-matrix-legend {
    margin-top: 0.72rem;
    gap: 0.42rem 0.72rem;
    font-size: 0.68rem;
}

.mobile-next-action {
    margin-top: 0.72rem;
}

.mobile-activity-status {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.6rem;
    align-items: center;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.62rem;
}

.mobile-activity-status + .mobile-activity-status {
    margin-top: 0.45rem;
}

.mobile-activity-status > i {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b62d8;
}

.mobile-activity-status.done > i {
    background: #dcfce7;
    color: #15803d;
}

.mobile-activity-status.pending > i {
    background: #fef3c7;
    color: #92400e;
}

.mobile-activity-status.locked > i {
    background: #e2e8f0;
    color: #475569;
}

.mobile-activity-status strong,
.mobile-activity-status small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-activity-status strong {
    color: #081426;
    font-size: 0.84rem;
    font-weight: 900;
}

.mobile-activity-status small {
    margin-top: 0.1rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 750;
}

@media (max-width: 1023px) {
    .student-hero,
    .student-hero.compact {
        grid-template-columns: 1fr;
    }

    .learner-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .learner-side-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .learner-recent-panel {
        grid-column: 1 / -1;
    }

    .student-course-grid {
        grid-template-columns: 1fr;
    }

    .progress-hero,
    .learner-progress-layout {
        grid-template-columns: 1fr;
    }

    .learner-progress-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .learner-command-center {
        gap: 0.8rem;
    }

    .continue-panel {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.85rem;
    }

    .continue-panel-copy h3 {
        font-size: 1.05rem;
    }

    .continue-panel-action {
        justify-content: space-between;
    }

    .continue-progress-ring {
        width: 3.9rem;
        height: 3.9rem;
    }

    .learner-side-column {
        grid-template-columns: 1fr;
    }

    .learner-recent-panel {
        grid-column: auto;
    }

    .student-course-card {
        border-radius: 8px;
    }

    .student-card-cover {
        min-height: 3.4rem;
    }

    .student-course-body {
        padding: 0.9rem;
    }

    .student-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-join-card {
        grid-template-columns: 1fr;
    }

    .progress-hero-meter {
        align-items: flex-start;
        padding: 0.75rem;
    }

    .continue-progress-ring.large {
        width: 4.25rem;
        height: 4.25rem;
    }

    .progress-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .progress-overview-grid article {
        padding: 0.78rem;
    }

    .progress-overview-grid strong {
        font-size: 1.22rem;
    }

    .learner-progress-side {
        grid-template-columns: 1fr;
    }

    .completion-matrix-wrap {
        display: none;
    }

    .progress-mobile-activity-list {
        display: grid;
        gap: 0.75rem;
    }

    .progress-mobile-activity-list article {
        border: 1px solid #dbe7f6;
        border-radius: 8px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.98)),
            #f8fbff;
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
        padding: 0.78rem;
    }

    .learning-outcome-accordion summary,
    .student-activity-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .outcome-summary-main {
        grid-column: 1 / -1;
    }

    .outcome-summary-progress {
        text-align: left;
    }

    .activity-state {
        justify-self: start;
    }
}

@media (max-width: 767px) {
    .topbar {
        min-height: 3.65rem;
    }

    .topbar-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 3.65rem;
        gap: 0.45rem;
        padding: 0.4rem 0.55rem !important;
    }

    .topbar-identity p {
        max-width: 12.5rem;
        overflow: hidden;
        color: #53657a;
        font-size: 0.56rem;
        line-height: 1.12;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar-identity h1,
    .topbar h1 {
        max-width: 12.5rem;
        overflow: hidden;
        font-size: 0.98rem;
        line-height: 1.1;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar-actions {
        grid-column: auto;
        display: flex;
        gap: 0.38rem !important;
    }

    .navbar-menu-btn,
    .navbar-icon-btn,
    .topbar .btn {
        width: 2.3rem;
        height: 2.3rem;
        min-height: 2.3rem;
        padding: 0;
        font-size: 0.9rem;
    }

    .mobile-bottom-nav {
        padding-bottom: env(safe-area-inset-bottom, 0);
        border-top-color: #dbe7f6;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(14px);
    }

    .mobile-bottom-nav .grid {
        height: 3.35rem;
        align-items: center;
    }

    .mobile-bottom-nav a,
    .mobile-bottom-nav button {
        gap: 0.08rem;
        padding-top: 0.32rem !important;
        padding-bottom: 0.28rem !important;
        font-size: 0.68rem;
        line-height: 1.1;
    }

    .mobile-bottom-nav i {
        font-size: 0.96rem;
    }

    .course-player {
        display: block;
    }

    .student-learning-player {
        background: #f8fbff;
    }

    .learner-player-header {
        padding: 0.68rem;
    }

    .learner-player-kicker {
        font-size: 0.63rem;
    }

    .learner-player-header h2 {
        font-size: 1.22rem;
        line-height: 1.15;
    }

    .learner-player-header p:not(.learner-player-kicker) {
        font-size: 0.82rem;
        line-height: 1.42;
    }

    .activity-card {
        margin-bottom: 0.75rem;
    }

    .learner-resource-header {
        padding: 0.68rem;
    }

    .resource-frame {
        min-height: 13.5rem;
        height: 42vh;
        max-height: 24rem;
    }

    .tesda-pdf-scroll {
        max-height: 56vh;
    }

    .learner-resource-header .btn,
    .learner-task-card .btn {
        min-height: 1.9rem;
        padding: 0.32rem 0.62rem;
        font-size: 0.72rem;
    }

    .learner-resource-header {
        align-items: center;
    }

    .learner-resource-header,
    .learner-task-card .activity-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }

    .learner-resource-header .btn,
    .learner-task-card .btn {
        align-self: start;
        white-space: nowrap;
    }

    .learner-task-card .activity-header > div,
    .learner-resource-header > div {
        min-width: 0;
    }

    .learner-task-card h3,
    .learner-resource-header h3 {
        font-size: 0.96rem;
        line-height: 1.2;
    }
}

@media (max-width: 430px) {
    .completion-row {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .completion-row .completion-action-form {
        justify-content: flex-end;
        align-self: stretch;
    }

    .completion-row .completion-action-form .btn {
        width: 7.1rem;
        height: 100%;
        min-height: 4rem;
        padding: 0.45rem 0.55rem;
        font-size: 0.72rem;
        line-height: 1.05;
        white-space: normal;
    }

    .completion-row .completion-evidence-panel.is-compact {
        display: grid;
        grid-template-rows: auto auto;
        align-content: center;
    }

    .completion-row .completion-evidence-head {
        gap: 0.42rem;
        align-items: center;
    }

    .completion-row .completion-evidence-icon {
        width: 1.85rem;
        height: 1.85rem;
    }

    .completion-row .completion-evidence-head strong {
        font-size: 0.8rem;
        line-height: 1.1;
    }

    .completion-row .completion-evidence-head p {
        display: none;
    }

    .completion-row .completion-evidence-panel.is-compact .completion-evidence-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.24rem;
        margin-top: 0.45rem;
    }

    .completion-row .completion-evidence-panel.is-compact .completion-evidence-grid div {
        min-height: 2.6rem;
        padding: 0.32rem 0.3rem;
    }

    .completion-row .completion-evidence-panel.is-compact .completion-evidence-grid span {
        font-size: 0.48rem;
        line-height: 1.05;
    }

    .completion-row .completion-evidence-panel.is-compact .completion-evidence-grid strong {
        font-size: 0.68rem;
    }
}

/* Keep the shared TESDA blue shell consistent after responsive overrides. */
.topbar {
    background:
        linear-gradient(90deg, var(--tesda-sidebar) 0%, var(--tesda-blue) 58%, #1389b7 100%);
}

.topbar-identity p {
    color: rgba(255, 255, 255, 0.74);
}

.topbar-identity h1,
.topbar h1 {
    color: #ffffff;
}

/* System Administration command center */
.system-admin-page {
    display: grid;
    gap: 1rem;
    max-width: 96rem;
    margin: 0 auto;
}

.system-admin-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: center;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(8, 47, 87, 0.98), rgba(11, 98, 216, 0.94) 55%, rgba(19, 137, 183, 0.92)),
        #0b62d8;
    color: #ffffff;
    padding: clamp(1.15rem, 3vw, 2rem);
    box-shadow: 0 22px 48px rgba(8, 47, 87, 0.22);
}

.system-admin-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    background-size: 3rem 3rem;
}

.system-admin-hero::after {
    content: "";
    position: absolute;
    left: -8%;
    top: 47%;
    width: 116%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 210, 31, 0.78), transparent);
}

.system-admin-hero-copy,
.system-admin-health-orb {
    position: relative;
    z-index: 1;
}

.system-admin-hero h2 {
    max-width: 52rem;
    margin: 0.4rem 0 0;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.02;
    font-weight: 950;
}

.system-admin-hero p:not(.eyebrow) {
    max-width: 45rem;
    margin: 0.85rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.98rem;
    line-height: 1.55;
    font-weight: 750;
}

.system-admin-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.15rem;
}

.system-admin-health-orb {
    display: grid;
    place-items: center;
    min-width: 10rem;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.24), transparent 3.8rem),
        rgba(255, 255, 255, 0.11);
    box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.04);
    text-align: center;
}

.system-admin-health-orb span,
.system-admin-health-orb strong,
.system-admin-health-orb small {
    display: block;
}

.system-admin-health-orb span {
    color: #ffd21f;
    font-size: 0.74rem;
    font-weight: 950;
    text-transform: uppercase;
}

.system-admin-health-orb strong {
    margin-top: 0.18rem;
    font-size: 3.4rem;
    line-height: 0.9;
    font-weight: 950;
}

.system-admin-health-orb small {
    max-width: 7.2rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    font-weight: 800;
}

.system-admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.system-admin-kpi-grid article,
.system-admin-role-grid article,
.system-admin-learning-grid > div,
.system-admin-subscription-grid > div {
    border: 1px solid #d8e7f8;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
        #ffffff;
    box-shadow: 0 14px 30px rgba(8, 47, 87, 0.08);
}

.system-admin-kpi-grid article {
    display: grid;
    gap: 0.28rem;
    padding: 1rem;
}

.system-admin-kpi-grid i {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b62d8;
}

.system-admin-kpi-grid span,
.system-admin-kpi-grid strong,
.system-admin-kpi-grid small {
    display: block;
}

.system-admin-kpi-grid span,
.system-admin-role-grid span,
.system-admin-learning-grid span,
.system-admin-subscription-grid span {
    color: #52657f;
    font-size: 0.7rem;
    font-weight: 950;
    text-transform: uppercase;
}

.system-admin-kpi-grid strong {
    color: #081426;
    font-size: 1.85rem;
    line-height: 1;
    font-weight: 950;
}

.system-admin-kpi-grid small {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
}

.system-admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24rem;
    gap: 1rem;
    align-items: start;
}

.system-admin-main,
.system-admin-side {
    display: grid;
    gap: 1rem;
}

.system-admin-side {
    position: sticky;
    top: 5.2rem;
}

.system-admin-panel {
    box-shadow: 0 16px 38px rgba(8, 47, 87, 0.08);
}

.system-admin-meter-grid,
.system-admin-role-grid,
.system-admin-learning-grid,
.system-admin-subscription-grid {
    display: grid;
    gap: 0.75rem;
}

.system-admin-meter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.system-admin-role-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.system-admin-role-grid article {
    display: grid;
    gap: 0.32rem;
    padding: 0.85rem;
}

.system-admin-role-grid i {
    color: #0b62d8;
    font-size: 1.05rem;
}

.system-admin-role-grid article.green i {
    color: #15803d;
}

.system-admin-role-grid article.yellow i {
    color: #a16207;
}

.system-admin-role-grid article.navy i {
    color: #082f57;
}

.system-admin-role-grid strong,
.system-admin-learning-grid strong,
.system-admin-subscription-grid strong {
    display: block;
    margin-top: 0.16rem;
    color: #081426;
    font-size: 1.22rem;
    font-weight: 950;
}

.system-admin-learning-grid,
.system-admin-subscription-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 0.9rem;
}

.system-admin-learning-grid.single {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.system-admin-learning-grid > div,
.system-admin-subscription-grid > div {
    min-height: 4.4rem;
    padding: 0.78rem;
}

.system-admin-table {
    display: grid;
    gap: 0.55rem;
}

.system-admin-table article {
    display: grid;
    grid-template-columns: auto minmax(0, 1.4fr) minmax(5rem, 0.65fr) minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.65rem;
}

.system-admin-table strong,
.system-admin-table small,
.system-admin-table em,
.system-admin-table span,
.system-admin-table time {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.system-admin-table strong {
    color: #081426;
    font-size: 0.86rem;
    font-weight: 950;
}

.system-admin-table small,
.system-admin-table em,
.system-admin-table span,
.system-admin-table time {
    color: #52657f;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
}

.system-admin-event-list {
    display: grid;
    gap: 0.62rem;
    margin-top: 0.85rem;
}

.system-admin-event-list.compact {
    gap: 0.45rem;
}

.system-admin-event-list article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.68rem;
}

.system-admin-event-list i {
    display: grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b62d8;
}

.system-admin-event-list article.success i {
    background: #dcfce7;
    color: #15803d;
}

.system-admin-event-list article.warning i {
    background: #fef3c7;
    color: #a16207;
}

.system-admin-event-list span,
.system-admin-event-list strong,
.system-admin-event-list small,
.system-admin-event-list time {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.system-admin-event-list span {
    color: #0b62d8;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.system-admin-event-list strong {
    color: #081426;
    font-size: 0.84rem;
    font-weight: 950;
}

.system-admin-event-list small,
.system-admin-event-list time {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 760;
}

.system-warning-list.compact {
    margin-top: 0.75rem;
}

@media (max-width: 1180px) {
    .system-admin-layout {
        grid-template-columns: 1fr;
    }

    .system-admin-side {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .system-admin-hero,
    .system-admin-meter-grid,
    .system-admin-role-grid,
    .system-admin-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .system-admin-hero-copy {
        grid-column: 1 / -1;
    }

    .system-admin-health-orb {
        justify-self: start;
        min-width: 8.5rem;
    }

    .system-admin-side,
    .system-admin-learning-grid,
    .system-admin-learning-grid.single,
    .system-admin-subscription-grid {
        grid-template-columns: 1fr;
    }

    .system-admin-table article {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .system-admin-table em,
    .system-admin-table span,
    .system-admin-table time {
        grid-column: 2;
    }
}

@media (max-width: 560px) {
    .system-admin-hero,
    .system-admin-kpi-grid,
    .system-admin-meter-grid,
    .system-admin-role-grid {
        grid-template-columns: 1fr;
    }

    .system-admin-hero h2 {
        font-size: 1.65rem;
        line-height: 1.08;
    }

    .system-admin-hero p:not(.eyebrow) {
        font-size: 0.86rem;
    }

    .system-admin-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
