@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:wght@400;500;600;700;800;900&display=swap');

:root {
    --ink: #15243d;
    --muted: #647087;
    --purple: #b42336;
    --purple-dark: #8f1d2c;
    --lavender: #e8edf5;
    --pink: #fff;
    --rose: #fff;
    --line: #e4e8ef;
    --white: #fff;
    --green: #142b4a;
    --navy: #142b4a;
    --navy-light: #e9eef5;
    --red: #b42336;
    --shadow: 0 18px 55px rgba(20, 43, 74, .1);
}

body {
    font-variant-emoji: text;
}

::selection {
    color: #142b4a;
    background: #dce2eb;
}

.landing,
.auth-page,
.app-body {
    background: #fff;
}

.brand-mark {
    background: var(--navy);
    box-shadow: 0 6px 13px #142b4a33;
}

.brand-mark span {
    color: #b42336;
}

.button-primary {
    background: var(--red);
    box-shadow: 0 8px 18px #b423363b;
}

.button-primary:hover {
    background: #951e2d;
    box-shadow: 0 12px 22px #b423364d;
}

.button-outline {
    border-color: #d6deea;
    color: var(--navy);
}

.button-soft,
.side-nav a:hover,
.side-nav a.active {
    background: var(--navy-light);
    color: var(--navy);
}

.button-danger {
    background: #fff0f1;
    color: #a21f30;
}

.eyebrow {
    color: var(--navy);
    background: #edf1f7;
}

.hero h1 span,
.section-heading h2 span,
.text-link,
.section-row a,
.role-strip > div > a,
.form-row a,
.auth-foot a,
.auth-back:hover {
    color: var(--red);
}

.hero-copy > p,
.auth-visual-copy p {
    color: #647087;
}

.hero-art::before,
.auth-visual {
    background: linear-gradient(140deg, #e9eef5, #fff0f1);
}

.orbit {
    border-color: #b9c6d9;
}

.orbit-two {
    border-color: #efc5cb;
}

.floating-note {
    color: var(--navy);
}

.note-bottom,
.teacher-icon {
    background: #fff0f1;
    color: #a22636;
}

.student-icon,
.feature-emoji,
.stat-icon,
.list-icon,
.video-cover {
    background-color: #edf1f7;
}

.feature-emoji,
.stat-icon,
.list-icon,
.video-cover {
    color: var(--navy);
}

.role-strip > div,
.feature-card,
.public-footer,
.sidebar,
.panel,
.stat-card,
.content-card {
    border-color: var(--line);
}

.public-footer {
    border-top-color: var(--line);
}

.form-control:focus {
    border-color: #879ab5;
    box-shadow: 0 0 0 3px #e9eef5;
}

.role-hint,
.level-chip,
.hero-panel,
.sidebar-tip {
    background: #e9eef5;
    color: var(--navy);
}

.hero-panel,
.sidebar-tip {
    background: linear-gradient(120deg, #e9eef5, #fff0f1);
}

.hero-panel .tag {
    background: #fff;
    color: var(--navy);
}

.tag.pink,
.stat-card.pink .stat-icon {
    background: #fff0f1;
    color: #a22636;
}

.progress-track > span {
    background: linear-gradient(90deg, #142b4a, #b42336);
}

.choice-option:hover,
.class-target-option:has(input:checked) {
    border-color: #9cacc2;
    background: #f7f9fc;
}

.choice-option input {
    accent-color: var(--red);
}

.game-option:hover,
.memory-card.is-open {
    border-color: #9cacc2;
    background: #e9eef5;
}

.memory-card {
    border-color: #d6deea;
    background: #e9eef5;
    color: var(--navy);
}

.memory-card.is-matched {
    background: #e8f5ee;
}

.chart-bar {
    background: linear-gradient(180deg, #b42336, #142b4a);
}

.class-target-option input {
    accent-color: var(--navy);
}

.exam-status {
    background: #e9eef5;
    color: var(--navy);
}

.exam-status.open {
    background: #e8f5ee;
    color: #287a5a;
}

.exam-status.closed {
    background: #fff0f1;
    color: #a22636;
}

.answer-feedback.correct {
    border-color: #a9dfc4;
    background: #e8f5ee;
}

.answer-feedback.incorrect {
    border-color: #efc5cb;
    background: #fff0f1;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

.role-preview-trigger {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 17px 19px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    box-shadow: 0 9px 24px rgba(20, 43, 74, .04);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.role-preview-trigger:hover,
.role-preview-trigger:focus-visible {
    transform: translateY(-2px);
    border-color: #b42336;
    box-shadow: var(--shadow);
    outline: none;
}

.role-preview-trigger > span:nth-child(2) {
    display: grid;
    gap: 5px;
}

.role-preview-trigger b,
.role-preview-trigger small {
    display: block;
}

.role-preview-trigger b {
    font-size: 14px;
}

.role-preview-trigger small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.role-arrow {
    margin-left: auto;
    color: var(--red);
    font-size: 22px;
}

.role-preview {
    width: min(940px, calc(100% - 32px));
    max-height: min(88vh, 850px);
    padding: 28px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 22px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 24px 80px rgba(20, 43, 74, .25);
}

.role-preview::backdrop {
    background: rgba(15, 35, 60, .72);
    backdrop-filter: blur(3px);
}

.role-preview-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.role-preview-header h2 {
    margin: 10px 0 5px;
    font: 900 28px 'Nunito', sans-serif;
}

.role-preview-header p {
    margin: 0;
    color: var(--muted);
}

.preview-close {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--navy);
    background: #fff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.preview-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.preview-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #edf1f7;
    filter: grayscale(1);
}

.preview-card h3 {
    margin: 12px 0 8px;
    font: 800 16px 'Nunito', sans-serif;
}

.preview-card p,
.preview-card small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.preview-card p {
    margin: 0;
}

.preview-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.preview-card li {
    display: grid;
    gap: 3px;
    padding-left: 11px;
    border-left: 2px solid var(--red);
    font-size: 13px;
    line-height: 1.45;
}

.preview-card li small {
    display: block;
}

.preview-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.admin-area {
    color: #15243d;
    background: #142b4a;
}

.admin-area .sidebar {
    border-right-color: #b42336;
    background: #102541;
    color: #fff;
}

.admin-area .sidebar .brand {
    color: #fff;
}

.admin-area .nav-caption {
    color: #bfcbd9;
}

.admin-area .side-nav a,
.admin-area .side-logout {
    color: #eef2f8;
}

.admin-area .side-nav a:hover {
    background: #1d3b60;
    color: #fff;
}

.admin-area .side-nav a.active {
    background: #b42336;
    color: #fff;
}

.admin-area .nav-icon {
    color: #fff;
}

.admin-area .side-logout {
    border-color: #40536d;
}

.admin-area .side-logout:hover {
    background: #b42336;
    color: #fff;
}

.admin-area .app-main {
    background: #142b4a;
}

.admin-area .app-topbar {
    border-bottom-color: #dce2eb;
    background: #fff;
    color: #15243d;
}

.admin-area .admin-shortcut-hint,
.admin-area .nav-caption,
.admin-area .field-help,
.admin-area .panel > p,
.admin-area .content-card p,
.admin-area .stat-card small {
    color: #647087;
}

.admin-area .page-heading h1,
.admin-area .app-content > .section-row h2 {
    color: #fff;
}

.admin-area .page-heading p {
    color: #dce2eb;
}

.admin-area .panel,
.admin-area .stat-card,
.admin-area .content-card,
.admin-area .feature-card {
    border-color: #dce2eb;
    background-color: #fff;
}

.admin-area .content-card:hover,
.admin-area .feature-card:hover {
    border-color: #b42336;
}

.admin-area .feature-emoji,
.admin-area .stat-icon,
.admin-area .list-icon,
.admin-area .video-cover,
.admin-area .user-avatar {
    border-color: #f0cbd0;
    background: #fff0f1;
    color: #a21f30;
    filter: grayscale(1);
}

.admin-area .button-primary {
    border-color: #b42336;
    background: #b42336;
    color: #fff;
}

.admin-area .button-primary:hover {
    background: #951e2d;
}

.admin-area .button-soft {
    border: 1px solid #142b4a;
    background: #142b4a;
    color: #fff;
}

.admin-area .button-outline {
    border-color: #142b4a;
    color: #142b4a;
}

.admin-area .button-danger {
    border: 1px solid #b42336;
    background: #fff;
    color: #a21f30;
}

.admin-area .button-danger:hover {
    background: #fff0f1;
}

.admin-area .text-link,
.admin-area .section-row a {
    color: #a21f30;
}

.admin-area .form-control:focus {
    border-color: #142b4a;
    box-shadow: 0 0 0 3px #dce2eb;
}

.admin-area .form-control,
.admin-area select.form-control,
.admin-area textarea.form-control {
    border-color: #cbd4e0;
    background-color: #fff;
    color: #15243d;
}

.admin-area .level-chip,
.admin-area .tag,
.admin-area .role-hint {
    border-color: #dce2eb;
    background: #eef1f5;
    color: #142b4a;
}

.admin-area .tag.green,
.admin-area .tag.pink,
.admin-area .tag.yellow,
.admin-area .stat-card.green .stat-icon,
.admin-area .stat-card.pink .stat-icon,
.admin-area .stat-card.yellow .stat-icon {
    border-color: #f0cbd0;
    background: #fff0f1;
    color: #a21f30;
}

.admin-area .hero-panel,
.admin-area .sidebar-tip {
    border-color: #dce2eb;
    background: linear-gradient(120deg, #fff, #f4f6fa);
    color: #15243d;
}

.admin-area .progress-track {
    background: #e4e8ef;
}

.admin-area .progress-track > span,
.admin-area .chart-bar {
    background: linear-gradient(180deg, #b42336, #142b4a);
}

.admin-area .data-table th {
    background: #142b4a;
    color: #fff;
}

.admin-area .data-table th,
.admin-area .data-table td {
    border-color: #dce2eb;
}

.admin-area .data-table tbody tr:hover {
    background: #f4f6fa;
}

.admin-area .class-targets,
.admin-area .exam-question-editor {
    border-color: #cbd4e0;
    background: #fff;
}

.admin-area .class-target-option:has(input:checked) {
    border-color: #b42336;
    background: #fff0f1;
    color: #142b4a;
}

.admin-area .class-target-option input,
.admin-area .choice-option input {
    accent-color: #b42336;
}

.admin-area .game-option {
    border-color: #dce2eb;
    background: #fff;
    color: #142b4a;
}

.admin-area .game-option:hover {
    border-color: #b42336;
    background: #fff0f1;
}

.admin-area .memory-card,
.admin-area .memory-card.is-open {
    border-color: #dce2eb;
    background: #eef1f5;
    color: #142b4a;
}

.admin-area .memory-card.is-matched {
    border-color: #e7b5bc;
    background: #fff0f1;
    color: #8f1d2c;
}

.admin-area .achievement-icon {
    border: 1px solid #e7b5bc;
    background: #fff0f1;
    color: #8f1d2c;
    filter: grayscale(1);
}

.admin-area .exam-status,
.admin-area .exam-status.closed,
.admin-area .answer-feedback.incorrect {
    border-color: #e7b5bc;
    background: #fff0f1;
    color: #8f1d2c;
}

.admin-area .exam-status.open,
.admin-area .answer-feedback.correct {
    border-color: #a9dfc4;
    background: #e8f5ee;
    color: #287a5a;
}

.admin-area .exam-question-editor legend {
    color: #142b4a;
}

.admin-area .empty-state > span,
.admin-area .list-icon,
.admin-area .achievement-icon,
.admin-area .feature-emoji,
.admin-area .nav-icon {
    filter: grayscale(1);
}

.admin-area .alert-success,
.admin-area .alert-info {
    border-color: #cbd4e0;
    background: #eef1f5;
    color: #142b4a;
}

.admin-area .alert-error {
    border-color: #e7b5bc;
    background: #fff0f1;
    color: #8f1d2c;
}

@media (max-width: 650px) {
    .role-preview {
        padding: 20px;
    }

    .preview-grid {
        grid-template-columns: 1fr;
    }

    .preview-actions {
        justify-content: stretch;
    }

    .preview-actions .button {
        flex: 1 1 100%;
    }
}

:root {
    --ink: #142b4a;
    --muted: #62738b;
    --purple: #b42336;
    --purple-dark: #8f1d2c;
    --lavender: #edf1f6;
    --pink: #fff;
    --rose: #fff;
    --line: #dce2eb;
    --white: #fff;
    --green: #142b4a;
    --navy: #142b4a;
    --navy-light: #edf1f6;
    --red: #b42336;
    --shadow: 0 18px 55px rgba(10, 29, 53, .2);
}

body.landing {
    color: #fff;
    background: #142b4a;
}

.landing .public-header {
    color: #fff;
    background: #102541;
}

.landing .public-header nav {
    color: #fff;
}

.landing .brand,
.landing .public-footer .brand {
    color: #fff;
}

.landing .brand-mark {
    background: #fff;
    color: #142b4a;
}

.landing .brand-mark span {
    color: #b42336;
}

.landing .hero {
    color: #fff;
}

.landing .hero h1 span,
.landing .section-heading h2 span {
    color: #e63946;
}

.landing .sparkle,
.landing .art-dots {
    color: #fff;
}

.landing .hero-copy > p,
.landing .hero-proof,
.landing .hero-proof small,
.landing .section-heading > p,
.landing .feature-card p,
.landing .public-footer {
    color: #dce2eb;
}

.landing .hero-proof b {
    color: #fff;
}

.landing .hero-art::before {
    background: linear-gradient(140deg, #1d3b60, #142b4a);
}

.landing .orbit,
.landing .orbit-two {
    border-color: #70829b;
}

.landing .floating-note,
.landing .floating-card {
    border-color: #dce2eb;
    background: #fff;
    color: #142b4a;
}

.landing .note-bottom {
    background: #fff;
    color: #8f1d2c;
}

.landing .mini-icon,
.landing .avatar-stack i {
    background: #edf1f6;
    filter: grayscale(1);
}

.landing .check {
    background: #b42336;
}

.landing .role-strip {
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 20px;
    background: transparent;
}

.landing .role-preview-trigger {
    border-color: #dce2eb;
    color: #142b4a;
}

.landing .role-preview-trigger:hover,
.landing .role-preview-trigger:focus-visible {
    border-color: #b42336;
}

.landing .student-icon,
.landing .teacher-icon {
    background: #edf1f6;
    color: #142b4a;
}

.landing .role-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.landing .feature-section {
    color: #fff;
    background: transparent;
}

.landing .section-heading > p {
    color: #dce2eb;
}

.landing .feature-card {
    border-color: #e4e8ef;
    background: #f8fafc;
    color: #142b4a;
}

.landing .feature-card p {
    color: #62738b;
}

.landing .feature-emoji {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid #dce2eb;
    border-radius: 14px;
    color: #142b4a;
    background: #fff;
}

.landing .feature-emoji svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.landing .feature-emoji .icon-accent {
    stroke: #b42336;
}

.landing .public-footer {
    max-width: none;
    border-top-color: #40536d;
    background: #102541;
}

.landing .footer-heart {
    color: #b42336;
}

.auth-page {
    display: block;
    min-height: 100vh;
    color: #142b4a;
    background-color: #102541;
    background-image: url("img/login-englishup-navy.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.auth-page .auth-visual {
    display: none;
    color: #fff;
    background: #142b4a;
}

.auth-page .auth-pane {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 32px 0;
    background: transparent;
}

.auth-page .auth-card {
    width: min(540px, calc(100% - 32px));
    margin-left: clamp(16px, 8.2vw, 112px);
    padding: 34px 40px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 22px;
    background: rgba(255, 250, 242, .96);
    box-shadow: 0 12px 35px rgba(20, 43, 74, .18);
}

.auth-page .auth-card h2 {
    font-size: 34px;
}

.auth-page .auth-subtitle {
    margin-bottom: 28px;
    font-size: 16px;
}

.auth-page .auth-back,
.auth-page .form-row {
    font-size: 14px;
}

.auth-page .form-group {
    margin-bottom: 18px;
}

.auth-page .form-group label {
    font-size: 15px;
}

.auth-page .form-control {
    padding: 14px 16px;
    font-size: 16px;
}

.auth-page .button {
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 16px;
}

.auth-page .auth-foot {
    font-size: 14px;
}

.auth-page .auth-visual .brand,
.auth-page .auth-visual-copy h1,
.auth-page .auth-visual > small {
    color: #fff;
}

.auth-page .auth-visual-copy p {
    color: #dce2eb;
}

.auth-page .auth-visual .eyebrow {
    color: #142b4a;
    background: #fff;
}

.auth-page .auth-visual:after {
    border-color: #40536d;
}

.auth-page .auth-owl {
    filter: grayscale(1) drop-shadow(0 15px 18px rgba(10, 29, 53, .3));
}

.auth-page .auth-card h2,
.auth-page .security-question-fields h3 {
    color: #142b4a;
}

.auth-page .form-control,
.app-body .form-control {
    border-color: #cbd4e0;
    color: #142b4a;
    background: #fff;
}

.auth-page .form-control:focus,
.app-body .form-control:focus {
    border-color: #142b4a;
    box-shadow: 0 0 0 3px #edf1f6;
}

.auth-page .button-primary,
.app-body .button-primary {
    border: 1px solid #b42336;
    color: #fff;
    background: #b42336;
}

.auth-page .button-primary:hover,
.app-body .button-primary:hover {
    background: #8f1d2c;
}

.auth-page .button-soft,
.app-body .button-soft {
    border: 1px solid #142b4a;
    color: #fff;
    background: #142b4a;
}

.auth-page .button-outline,
.app-body .button-outline {
    border: 1px solid #142b4a;
    color: #142b4a;
    background: #fff;
}

.auth-page .role-hint,
.auth-page .security-question-fields .form-group {
    border-color: #dce2eb;
    color: #142b4a;
    background: #edf1f6;
}

.auth-page .alert-success,
.auth-page .alert-info {
    border-color: #cbd4e0;
    color: #142b4a;
    background: #edf1f6;
}

.auth-page .alert-error {
    border-color: #b42336;
    color: #8f1d2c;
    background: #fff;
}

.auth-page .auth-foot,
.auth-page .auth-subtitle,
.auth-page .auth-back,
.auth-page .field-help {
    color: #62738b;
}

.app-body,
.app-body.admin-area {
    color: #142b4a;
    background: #142b4a;
}

.app-body .sidebar {
    border-right-color: #b42336;
    color: #fff;
    background: #102541;
    overflow: hidden;
}

.app-body .side-nav {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

@media (max-width: 760px) {
    .app-body .side-nav {
        overflow-x: auto;
        overflow-y: hidden;
    }
}

.app-body .sidebar .brand,
.app-body .nav-caption,
.app-body .side-nav a,
.app-body .side-logout {
    color: #fff;
}

.app-body .nav-caption {
    opacity: .8;
}

.app-body .side-nav a:hover {
    color: #fff;
    background: #1d3b60;
}

.app-body .side-nav a {
    position: relative;
}

.app-body .side-nav a.active {
    color: #fff;
    background: #b42336;
}

.app-body .side-logout {
    border-color: #40536d;
}

.app-body .side-logout:hover {
    color: #fff;
    background: #b42336;
}

.app-body .side-logout-form {
    margin-top: auto;
}

.app-body .side-logout {
    width: 100%;
    padding: 16px 12px 0;
    border: 0;
    border-top: 1px solid #40536d;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.app-body .app-main {
    background: #142b4a;
}

.app-body .app-topbar {
    border-bottom-color: #1d3b60;
    color: #fff;
    background: #102541;
}

.app-body.admin-area .app-topbar {
    border-bottom-color: #1d3b60;
    color: #fff;
    background: #102541;
}

.app-body.admin-area .admin-shortcut-hint {
    display: none;
}

.app-body.admin-area .topbar-greeting {
    color: #fff;
}

.app-body .admin-shortcut-hint,
.app-body .topbar-greeting {
    color: #fff;
}

.app-body .topbar-character {
    box-sizing: border-box;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    transform: none;
    animation: none;
}

.app-body .topbar-character-image {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.app-body .topbar-profile-image {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.app-body.admin-area .topbar-character {
    border-color: rgba(255, 255, 255, .55);
    background: #1d3b60;
    color: #fff;
    filter: none;
}

.app-body .page-heading > a[href="entregas.php"] {
    align-self: center;
    flex: 0 0 auto;
    border: 1px solid #b42336;
    background: #b42336;
    color: #fff;
    white-space: nowrap;
}

.app-body .page-heading > a[href="entregas.php"]:hover {
    border-color: #8f1d2c;
    background: #8f1d2c;
    color: #fff;
}

@media (max-width: 760px) {
    .app-body .page-heading > a[href="entregas.php"] {
        align-self: flex-start;
    }
}

.app-body .app-content > .page-heading h1,
.app-body .app-content > .section-row h2 {
    color: #fff;
}

.app-body .page-heading p {
    color: #dce2eb;
}

.app-body .admin-shortcut-hint {
    color: #fff;
}

.app-body #entregas {
    scroll-margin-top: 85px;
}

.app-body .panel,
.app-body .stat-card,
.app-body .content-card,
.app-body .feature-card {
    border-color: #dce2eb;
    color: #142b4a;
    background: #fff;
}

.app-body .panel h2,
.app-body .panel h3,
.app-body .stat-card strong,
.app-body .content-card h2,
.app-body .content-card h3,
.app-body .feature-card h3 {
    color: #142b4a;
}

.app-body .panel p,
.app-body .stat-card small,
.app-body .content-card p,
.app-body .feature-card p,
.app-body .field-help,
.app-body .empty-state p {
    color: #62738b;
}

.app-body .content-card:hover,
.app-body .feature-card:hover {
    border-color: #b42336;
}

.app-body .feature-emoji,
.app-body .stat-icon,
.app-body .list-icon,
.app-body .video-cover,
.app-body .user-avatar,
.app-body .achievement-icon {
    border-color: #dce2eb;
    color: #142b4a;
    background: #edf1f6;
    filter: grayscale(1);
}

.app-body .level-chip,
.app-body .tag,
.app-body .role-hint {
    border-color: #dce2eb;
    color: #142b4a;
    background: #edf1f6;
}

.app-body .tag.pink,
.app-body .tag.green,
.app-body .tag.yellow,
.app-body .stat-card.pink .stat-icon,
.app-body .stat-card.green .stat-icon,
.app-body .stat-card.yellow .stat-icon {
    border-color: #b42336;
    color: #8f1d2c;
    background: #fff;
}

.app-body .hero-emoji {
    filter: grayscale(1);
}

.app-body .hero-panel,
.app-body .sidebar-tip {
    border-color: #dce2eb;
    color: #142b4a;
    background: #fff;
}

.app-body .hero-panel h2,
.app-body .sidebar-tip b {
    color: #142b4a;
}

.app-body .hero-panel p,
.app-body .sidebar-tip small {
    color: #62738b;
}

.app-body .hero-panel .tag {
    color: #fff;
    background: #142b4a;
}

.app-body .progress-track {
    background: #dce2eb;
}

.app-body .progress-track > span,
.app-body .chart-bar {
    background: linear-gradient(180deg, #b42336, #142b4a);
}

.app-body .data-table th {
    color: #fff;
    background: #142b4a;
}

.app-body .data-table th,
.app-body .data-table td {
    border-color: #dce2eb;
}

.app-body .data-table tbody tr:hover {
    background: #edf1f6;
}

.app-body .data-table a,
.app-body .text-link,
.app-body .section-row a {
    color: #a21f30;
}

.app-body .class-targets,
.app-body .exam-question-editor {
    border-color: #cbd4e0;
    background: #fff;
}

.app-body .class-target-option:has(input:checked) {
    border-color: #b42336;
    color: #142b4a;
    background: #fff0f1;
}

.app-body .class-target-option input,
.app-body .choice-option input {
    accent-color: #b42336;
}

.app-body .choice-option {
    border-color: #dce2eb;
    color: #142b4a;
    background: #fff;
}

.app-body .choice-option:hover {
    border-color: #b42336;
    background: #fff0f1;
}

.app-body .game-option {
    border-color: #dce2eb;
    color: #142b4a;
    background: #fff;
}

.app-body .game-option:hover {
    border-color: #b42336;
    background: #fff0f1;
}

.app-body .memory-card,
.app-body .memory-card.is-open {
    border-color: #dce2eb;
    color: #142b4a;
    background: #edf1f6;
}

.app-body .memory-card.is-matched {
    border-color: #e7b5bc;
    color: #8f1d2c;
    background: #fff0f1;
}

.app-body .exam-status,
.app-body .exam-status.closed,
.app-body .answer-feedback.incorrect {
    border-color: #e7b5bc;
    color: #8f1d2c;
    background: #fff0f1;
}

.app-body .exam-status.open,
.app-body .answer-feedback.correct {
    border-color: #a9dfc4;
    color: #287a5a;
    background: #e8f5ee;
}

.app-body .alert-success,
.app-body .alert-info {
    border: 1px solid #cbd4e0;
    color: #142b4a;
    background: #edf1f6;
}

.app-body .alert-error {
    border: 1px solid #e7b5bc;
    color: #8f1d2c;
    background: #fff0f1;
}

.app-body .password-visibility {
    color: #142b4a;
}

.app-body .password-visibility:hover,
.app-body .password-visibility:focus-visible {
    color: #8f1d2c;
    background: #fff0f1;
}

.app-body .empty-state > span,
.app-body .list-icon,
.app-body .achievement-icon,
.app-body .feature-emoji,
.app-body .nav-icon {
    filter: grayscale(1);
}

.app-body .achievement small {
    color: #62738b;
}

.heading-rewards {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    align-items: start;
    gap: 20px;
}

.profile-form-panel {
    min-width: 0;
}

.profile-avatar-showcase {
    display: flex;
    min-height: 360px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #fff;
    text-align: center;
}

.profile-avatar-showcase .eyebrow {
    color: #142b4a;
    background: #fff;
}

.profile-avatar-art {
    display: grid;
    width: 260px;
    height: 300px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0, #fff 66%, #edf1f6 100%);
    box-shadow: 0 16px 38px rgba(10, 29, 53, .22);
    font-size: 112px;
}

.profile-avatar-image {
    display: block;
    width: min(100%, 240px);
    height: 280px;
    object-fit: contain;
    object-position: center bottom;
}

.profile-avatar-showcase .button {
    border: 1px solid rgba(255, 255, 255, .55);
    color: #fff;
    background: #1d3b60;
}

.teacher-profile-page {
    display: grid;
    gap: 20px;
}

.teacher-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.teacher-profile-card {
    min-width: 0;
}

.teacher-profile-card > .eyebrow {
    margin-bottom: 10px;
}

.teacher-profile-card > h2 {
    margin-bottom: 18px;
}

.teacher-photo-preview {
    display: grid;
    width: 112px;
    height: 112px;
    margin: 0 auto 18px;
    place-items: center;
    overflow: hidden;
    border: 3px solid #dce2eb;
    border-radius: 50%;
    background: #edf1f6;
    color: #142b4a;
    font-size: 40px;
    font-weight: 800;
}

.teacher-profile-photo-preview {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-photo-form .form-actions {
    flex-wrap: wrap;
}

.profile-preference {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 0;
    border-bottom: 1px solid #dce2eb;
    cursor: pointer;
}

.profile-preference input {
    flex: 0 0 auto;
    margin: 3px 0 0;
    accent-color: #b42336;
}

.profile-preference span,
.profile-preference small {
    display: block;
}

.profile-preference b {
    color: #142b4a;
}

.profile-preference small {
    margin-top: 4px;
    color: #62738b;
    line-height: 1.45;
}

.pending-corrections-panel .section-row {
    margin-top: 0;
}

.pending-review-list {
    display: grid;
    gap: 10px;
}

.pending-review-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-top: 1px solid #dce2eb;
}

.pending-review-item h3 {
    margin: 8px 0 4px;
    color: #142b4a;
}

.pending-review-item p {
    margin: 0;
    color: #62738b;
    font-size: 12px;
}

.app-body .nav-label {
    min-width: 0;
}

.app-body .nav-badge {
    flex: 0 0 auto;
    min-width: 22px;
    padding: 3px 6px;
    border-radius: 999px;
    color: #fff;
    background: #b42336;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.app-body #entregas,
.app-body [id^="entrega-"] {
    scroll-margin-top: 85px;
}

.wallet-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 13px;
    border: 1px solid #dce2eb;
    border-radius: 999px;
    color: #142b4a;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
}

.level-evolution {
    max-width: 430px;
    margin-top: 16px;
}

.avatar-home {
    display: flex;
    min-width: 150px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px;
    border: 1px solid #dce2eb;
    border-radius: 20px;
    color: #142b4a;
    background: #fff;
    text-align: center;
}

.avatar-home-name {
    font-weight: 800;
}

.avatar-home-parts {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 29px;
}

.avatar-home-parts i {
    font-style: normal;
}

.avatar-home-parts .avatar-part-image {
    display: block;
    width: 36px;
    height: 44px;
    object-fit: contain;
}

@media (max-width: 760px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-avatar-showcase {
        min-height: 250px;
    }

    .profile-avatar-art {
        width: 230px;
        height: 230px;
    }

    .profile-avatar-image {
        width: 210px;
        height: 220px;
    }

    .teacher-profile-grid {
        grid-template-columns: 1fr;
    }

    .pending-review-item {
        align-items: stretch;
        flex-direction: column;
    }

    .app-body .nav-badge {
        position: absolute;
        top: 3px;
        right: 3px;
    }
}

.avatar-large .avatar-part-image {
    width: 78px;
    height: 96px;
}

.avatar-home small {
    color: #a21f30;
    font-weight: 700;
}

.avatar-large {
    min-height: 130px;
    font-size: 58px;
}

.sidebar-mascot-image {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.avatar-stage {
    display: flex;
    min-height: 290px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.avatar-editor-grid {
    display: grid;
    grid-template-columns: minmax(260px, .9fr) minmax(320px, 1.1fr);
    gap: 18px;
}

.avatar-collection-grid > .panel {
    min-width: 0;
}

.owned-character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}

.owned-character-form {
    min-width: 0;
    margin: 0;
}

.owned-character {
    display: grid;
    width: 100%;
    min-height: 210px;
    place-items: center;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 16px;
    color: inherit;
    background: transparent;
    cursor: pointer;
}

.owned-character:hover,
.owned-character:focus-visible {
    border-color: #b42336;
    outline: none;
}

.owned-character.is-equipped {
    border-color: #b42336;
    box-shadow: 0 0 0 2px #b4233626;
}

.owned-character-image {
    display: block;
    width: 100%;
    height: 194px;
    object-fit: contain;
    background: transparent;
    font-size: 104px;
}

.character-details-list {
    display: grid;
    gap: 12px;
}

.character-details-card {
    padding: 16px;
    border: 1px solid #dce2eb;
    border-radius: 16px;
    background: #fff;
}

.character-details-card .section-row {
    margin-bottom: 8px;
}

.character-details-card h3 {
    margin: 0;
}

.character-details-card p {
    margin: 0 0 14px;
}

.character-details-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    margin: 0;
}

.character-details-meta > div {
    display: grid;
    gap: 3px;
}

.character-details-meta dt {
    color: #62738b;
    font-size: 12px;
    font-weight: 700;
}

.character-details-meta dd {
    margin: 0;
    font-weight: 700;
}

.phase-map,
.assignment-list,
.submission-list {
    display: grid;
    gap: 14px;
}

.phase-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid #dce2eb;
    border-radius: 18px;
    background: #fff;
}

.phase-card.is-open {
    border-left: 5px solid #b42336;
}

.phase-card.is-complete {
    border-left: 5px solid #142b4a;
}

.phase-card.is-locked {
    color: #62738b;
    background: #edf1f6;
}

.phase-number {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #142b4a;
    font-size: 18px;
    font-weight: 900;
}

.phase-card.is-open .phase-number {
    background: #b42336;
}

.phase-content h2 {
    margin: 8px 0 4px;
    color: #142b4a;
    font-size: 19px;
}

.phase-content p {
    margin: 0 0 10px;
    color: #62738b;
}

.phase-content .progress-track {
    max-width: 460px;
}

.phase-progress-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding: 14px 18px;
    border: 1px solid #dce2eb;
    border-radius: 15px;
    color: #142b4a;
    background: #fff;
}

.phase-progress-card > div {
    display: grid;
    gap: 4px;
}

.phase-progress-card span {
    color: #62738b;
    font-size: 13px;
}

.phase-lock {
    white-space: nowrap;
    color: #62738b;
    font-size: 13px;
    font-weight: 800;
}

.phase-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.store-item {
    display: flex;
    min-height: 230px;
    flex-direction: column;
    align-items: flex-start;
}

.store-item-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 15px;
    background: #edf1f6;
    font-size: 29px;
}

.store-item-image {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.avatar-admin-thumbnail {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: #edf1f6;
    font-size: 25px;
}

.avatar-admin-thumbnail .store-item-image {
    border-radius: 10px;
}

.avatar-admin-current {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
}

.avatar-admin-current img {
    width: 96px;
    height: 96px;
    border: 1px solid #dce2eb;
    border-radius: 14px;
    object-fit: cover;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.store-item h3 {
    margin: 13px 0 5px;
    color: #142b4a;
}

.store-item p {
    margin: 0 0 10px;
    color: #62738b;
    font-size: 13px;
}

.store-requirement {
    margin-top: auto;
    color: #62738b;
    font-size: 12px;
}

.store-buy-row {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
}

.store-buy-row > b {
    color: #142b4a;
    font-size: 14px;
}

.store-buy-row button:disabled {
    cursor: not-allowed;
    opacity: .6;
}

.assignment-card h2 {
    margin: 9px 0;
    color: #142b4a;
    background: #1d3b60;
    color: #fff;
    font-size: 20px;
}

.assignment-card > p {
    color: #142b4a;
    line-height: 1.65;
}

.assignment-submit-form,
.submission-card form {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #dce2eb;
}

.submission-response,
.teacher-feedback {
    margin: 12px 0;
    padding: 13px;
    border: 1px solid #dce2eb;
    border-radius: 12px;
    color: #142b4a;
    background: #edf1f6;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.teacher-feedback {
    border-color: #e7b5bc;
    background: #fff;
}

.submission-card h3 {
    margin: 9px 0 3px;
    color: #142b4a;
}

.submission-card .section-row p {
    margin: 0;
    color: #62738b;
    font-size: 12px;
}

body.app-body,
body.app-body *,
body.login-page,
body.login-page * {
    font-family: 'Nunito Sans', sans-serif;
}

.brand-logo {
    display: block;
    width: auto;
    height: 36px;
    max-width: 100%;
    object-fit: contain;
}

.mobile-brand .brand-logo {
    height: 32px;
}

.public-footer .brand-logo {
    height: 38px;
}

body.landing,
body.landing * {
    font-family: 'Bodoni Moda', serif;
}

body.landing .public-header {
    width: 100%;
    max-width: none;
    height: 94px;
    padding: 0 clamp(28px, 3.6vw, 62px) 0 clamp(28px, 6.2vw, 106px);
    border-bottom: 4px solid #b42336;
    background: #102541;
}

.landing .public-header .brand-logo {
    height: 74px;
}

.landing .public-header nav {
    align-items: center;
    gap: clamp(18px, 2.2vw, 38px);
    font-size: 16px;
}

.landing .public-header nav .button {
    min-width: 96px;
    min-height: 49px;
    padding: 10px 24px;
    border-radius: 14px;
    background: #fff;
    color: #142b4a;
}

.landing .hero {
    width: 100%;
    max-width: none;
    height: calc(100vh - 94px);
    min-height: calc(100vh - 94px);
    grid-template-columns: minmax(0, 51.5%) minmax(0, 48.5%);
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: #142b4a;
}

.landing .hero-copy {
    display: flex;
    max-width: none;
    flex-direction: column;
    justify-content: center;
    padding: 118px clamp(36px, 4.6vw, 80px) 42px;
    background: #142b4a;
}

.landing .hero-copy > .eyebrow {
    display: none;
}

.landing .hero h1 {
    max-width: 700px;
    margin: 0 0 13px;
    font-size: clamp(42px, 4.4vw, 76px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -1.7px;
}

.landing .hero-copy > p {
    max-width: 600px;
    margin: 0 0 24px;
    color: #dce2eb;
    font-size: clamp(16px, 1.15vw, 20px);
    line-height: 1.5;
}

.landing .hero-actions {
    align-items: center;
    gap: 24px;
}

.landing .hero-actions .button {
    min-height: 56px;
    padding: 15px 23px;
    border-radius: 14px;
    font-size: 16px;
}

.landing .hero-actions .text-link {
    font-size: 15px;
}


.landing .hero-art {
    position: relative;
    display: block;
    height: auto;
    min-height: 100%;
    overflow: hidden;
    transform: none;
    background: #142b4a;
}

.landing .hero-art::before {
    display: none;
}

.landing .hero-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

.landing .hero-art::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #142b4a 0%, rgba(20, 43, 74, .86) 8%, rgba(20, 43, 74, .3) 24%, transparent 48%),
        linear-gradient(0deg, #142b4a 0%, rgba(20, 43, 74, .82) 10%, rgba(20, 43, 74, .28) 25%, transparent 42%),
        rgba(16, 37, 65, .16);
    content: "";
}

.landing .public-footer .brand-logo {
    height: 42px;
}

@media (max-width: 760px) {
    body.landing .public-header {
        height: 78px;
        padding: 0 20px;
    }

    .landing .public-header .brand-logo {
        height: 55px;
    }

    .landing .public-header nav {
        gap: 12px;
    }

    .landing .public-header nav > a:not(.button) {
        display: none;
    }

    .landing .hero {
        height: auto;
        min-height: 0;
        grid-template-columns: 1fr;
        text-align: left;
    }

    .landing .hero-copy {
        transform: none;
        padding: 54px 24px 42px;
    }

    .landing .hero h1 {
        font-size: clamp(42px, 11vw, 60px);
    }

    .landing .hero-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .landing .hero-proof {
        justify-content: flex-start;
        margin-top: 30px;
    }

    .landing .hero-art {
        height: min(112vw, 620px);
        min-height: 360px;
    }
}

@media (max-width: 850px) {
    .store-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .avatar-editor-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .auth-page {
        background-position: left center;
    }

    .auth-page .auth-card {
        width: min(540px, calc(100vw - 32px));
        margin: 0 auto;
        padding: 24px;
    }
}

@media (max-width: 600px) {
    .heading-rewards {
        justify-content: flex-start;
        margin-top: 8px;
    }

    .phase-card {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
    }

    .phase-number {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }

    .phase-card > .phase-actions,
    .phase-lock {
        grid-column: 2;
        justify-self: start;
    }

    .phase-actions {
        justify-content: flex-start;
    }

    .store-grid {
        grid-template-columns: 1fr;
    }

    .owned-character-grid {
        grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
    }

    .owned-character {
        min-height: 170px;
    }

    .owned-character-image {
        height: 154px;
    }

    .phase-progress-card {
        align-items: flex-start;
    }
}

.exam-page {
    font-size: 16px;
}

.exam-page .page-heading h1 {
    font-size: clamp(29px, 2.4vw, 34px);
}

.exam-page .page-heading p,
.exam-page .alert {
    font-size: 16px;
}

.exam-page .panel > h2,
.exam-page .section-row h2 {
    font-size: 21px;
}

.exam-page .section-row h3 {
    font-size: 19px;
}

.exam-page .form-group label,
.exam-page .form-control {
    font-size: 16px;
}

.exam-page .exam-question-editor legend {
    font-size: 18px;
}

.exam-page .button {
    font-size: 15px;
}

.exam-page .button-small,
.exam-page .field-help {
    font-size: 13px;
}

.exam-page .tag,
.exam-page .data-table td {
    font-size: 14px;
}

.exam-page .data-table th {
    font-size: 12px;
}

.app-body .side-nav a {
    font-size: 15px;
}

.app-body .nav-caption {
    font-size: 11px;
}

.app-body .page-heading p {
    font-size: 16px;
}

@media (max-width: 760px) {
    .app-body .side-nav a {
        font-size: 11px;
    }
}

.app-body .nav-icon:empty,
.app-body .stat-icon:empty,
.app-body .feature-emoji:empty,
.app-body .list-icon:empty,
.app-body .game-icon:empty,
.app-body .empty-state > span:empty,
.app-body .text-center > div:empty {
    display: none;
}
