:root {
    --forest: #0f5132;
    --leaf: #198754;
    --river: #0d6efd;
    --sun: #ffc107;
    --earth: #6f4e37;
    --mist: #eef7f1;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background: #f6faf7;
    color: #1d2b24;
}

.app-footer {
    margin-top: auto;
    color: rgba(255, 255, 255, 0.82);
    background: #0f5132;
}

.app-footer strong {
    color: #fff;
}

.app-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
}

.app-footer-links a {
    color: #fff;
    text-decoration: none;
}

.app-footer-links a:hover,
.app-footer-links a:focus {
    color: #ffe08a;
    text-decoration: underline;
}

.aq-privacy-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 1080;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: min(820px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.85rem;
    color: #fff;
    background: #0b3d27;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.3);
}

.aq-privacy-banner[hidden] {
    display: none !important;
}

.aq-privacy-banner[data-aq-banner-state="visible"] {
    display: flex !important;
}

.aq-privacy-banner__icon {
    display: grid;
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border-radius: 50%;
    color: #3f3100;
    background: #ffd75e;
    font-size: 1.2rem;
}

.aq-privacy-banner__body {
    display: block !important;
    flex: 1 1 auto;
    min-width: 0;
    opacity: 1 !important;
    visibility: visible !important;
}

.aq-privacy-banner__body strong {
    display: block;
    margin-bottom: 0.15rem;
}

.aq-privacy-banner__body p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
}

.aq-privacy-banner__body a {
    color: #ffe08a;
}

.aq-privacy-banner__action {
    display: inline-block;
    flex: 0 0 auto;
    white-space: nowrap;
}

.app-navbar {
    background: linear-gradient(90deg, var(--forest), #146c43 55%, #0b7285);
}

.admin-navbar {
    min-height: 2.9rem;
    padding-block: 0.2rem;
    background: #17211c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.88rem;
}

.admin-navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.admin-navbar .nav-link {
    padding: 0.55rem 0.7rem;
    color: rgba(255, 255, 255, 0.76);
}

.admin-navbar .nav-link:hover,
.admin-navbar .nav-link:focus {
    color: #fff;
}

.admin-navbar-account {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.admin-navbar-user {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding-right: 0.65rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

.admin-navbar-logout {
    color: #ffd75e !important;
}

.app-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.app-brand-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.6rem;
    object-fit: cover;
    flex-shrink: 0;
}

.theme-toggle {
    border: 0;
    background: transparent;
    text-align: left;
}

.theme-toggle [data-theme-icon] {
    width: 1.25em;
    text-align: center;
}

.ranking-attempt-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    white-space: nowrap;
}

.ranking-score {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
}

.ranking-position {
    width: 3.25rem;
    text-align: center;
    font-weight: 700;
}

.ranking-trophy {
    display: inline-grid;
    min-width: 1.75rem;
    min-height: 1.75rem;
    place-items: center;
    font-size: 1.25rem;
    filter: drop-shadow(0 2px 2px rgba(29, 43, 36, 0.18));
}

.ranking-trophy--gold {
    color: #d4a017;
}

.ranking-trophy--silver {
    color: #8b949e;
}

.ranking-trophy--bronze {
    color: #b66a2c;
}

.ranking-info-button {
    display: inline-grid;
    width: 1.75rem;
    height: 1.75rem;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--forest);
    background: #e3f4e9;
    cursor: help;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.ranking-info-button:hover,
.ranking-info-button:focus {
    color: #fff;
    background: var(--leaf);
}

.ranking-info-button:focus-visible {
    outline: 3px solid rgba(25, 135, 84, 0.25);
    outline-offset: 2px;
}

.ranking-info-popover {
    --bs-popover-border-color: var(--forest);
    --bs-popover-header-bg: var(--forest);
    --bs-popover-header-color: #fff;
    border-color: var(--forest);
    box-shadow: 0 8px 22px rgba(15, 81, 50, 0.18);
}

.ranking-info-popover .popover-header {
    border-bottom-color: var(--forest);
    font-weight: 700;
}

.ranking-page-title {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.ranking-title-icon {
    color: var(--leaf);
    background: linear-gradient(135deg, #69db7c 0%, var(--leaf) 48%, var(--forest) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 3px rgba(15, 81, 50, 0.2));
}

.ranking-list-link {
    color: var(--forest);
    font-weight: 700;
    text-decoration: none;
}

.ranking-list-link:hover,
.ranking-list-link:focus {
    color: var(--leaf);
    text-decoration: underline;
}

.hero-band {
    background:
        linear-gradient(90deg, rgba(15, 81, 50, .96), rgba(13, 110, 253, .52)),
        url('https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=1600&q=80') center/cover;
    min-height: 520px;
    display: flex;
    align-items: center;
}

.about-hero {
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 85% 25%, rgba(255, 193, 7, 0.2), transparent 30%),
        linear-gradient(120deg, #0f5132, #146c43 55%, #0b7285);
}

.about-project-icon {
    width: min(240px, 70vw);
    height: auto;
    border-radius: 2.5rem;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
}

.about-section-heading {
    max-width: 760px;
}

.about-project-story {
    max-width: 900px;
}

.about-project-story p:last-child {
    margin-bottom: 0;
}

.about-feature-icon {
    display: inline-grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    margin-bottom: 1rem;
    border-radius: 0.85rem;
    color: #fff;
    background: linear-gradient(135deg, var(--leaf), #0b7285);
    font-size: 1.25rem;
}

.about-how-it-works {
    background: rgba(25, 135, 84, 0.06);
}

.about-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.about-step-number {
    display: inline-grid;
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--forest);
    font-weight: 800;
}

.about-educators {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.about-educators-icon {
    color: var(--leaf);
    font-size: clamp(3rem, 8vw, 5rem);
}

.legal-page {
    width: 100%;
}

.legal-hero {
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: 1rem;
    color: #fff;
    background:
        radial-gradient(circle at 88% 20%, rgba(255, 193, 7, 0.24), transparent 28%),
        linear-gradient(120deg, #0f5132, #146c43 58%, #0b7285);
    box-shadow: 0 14px 34px rgba(15, 81, 50, 0.18);
}

.legal-hero .lead {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
}

.legal-version {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

.legal-layout {
    display: grid;
    grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 1rem;
    display: grid;
    gap: 0.3rem;
    padding: 1.25rem;
    border: 1px solid rgba(15, 81, 50, 0.14);
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 81, 50, 0.07);
}

.legal-toc strong {
    margin-bottom: 0.45rem;
    color: var(--forest);
}

.legal-toc a {
    padding: 0.3rem 0;
    color: #405349;
    text-decoration: none;
}

.legal-toc a:hover,
.legal-toc a:focus {
    color: var(--leaf);
    text-decoration: underline;
}

.legal-content {
    display: grid;
    min-width: 0;
    gap: 1rem;
}

.legal-section,
.legal-notice {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(15, 81, 50, 0.12);
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 81, 50, 0.07);
    scroll-margin-top: 1rem;
}

.legal-section h2,
.legal-notice h2 {
    margin-bottom: 1rem;
    color: var(--forest);
    font-size: 1.3rem;
}

.legal-section p:last-child,
.legal-section ul:last-child {
    margin-bottom: 0;
}

.legal-section li + li {
    margin-top: 0.45rem;
}

.legal-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-left: 5px solid var(--leaf);
}

.legal-notice > i {
    color: var(--leaf);
    font-size: 1.8rem;
}

.legal-data-table th {
    color: #fff;
    background: var(--forest);
}

.text-white-75 {
    color: rgba(255, 255, 255, .82);
}

.stat-panel,
.info-card,
.app-form,
.app-table,
.result-panel,
.question-shell,
.metric {
    background: #fff;
    border: 1px solid rgba(15, 81, 50, .12);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 81, 50, .08);
}

.stat-panel {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.media-library-preview {
    display: block;
    object-fit: cover;
}

.media-library-preview--background {
    width: 140px;
    height: 79px;
}

.media-library-preview--feedback {
    width: 80px;
    height: 80px;
}

.stat-panel div,
.metric {
    padding: 18px;
}

.metric {
    transition: background-color .2s ease, color .2s ease;
}

.metric:hover {
    background: var(--forest);
    color: var(--mist);
}

.stat-panel strong,
.metric strong {
    display: block;
    color: var(--forest);
    font-size: 1.7rem;
}

.metric:hover strong,
.metric:hover span {
    color: var(--mist);
}

.stat-panel span,
.metric span {
    color: #5a6b61;
}

.info-card,
.app-form,
.result-panel {
    padding: 22px;
}

.info-card h2 {
    font-size: 1.2rem;
    color: var(--forest);
}

.narrow {
    max-width: 620px;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ranking-block {
    display: grid;
    gap: 12px;
}

.ranking-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.questionnaire-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .85rem;
    font-weight: 700;
    text-transform: capitalize;
}

.questionnaire-status i {
    width: 1em;
    text-align: center;
}

.questionnaire-status--ativo {
    color: #715600;
}

.questionnaire-status--ativo i {
    color: #ffc107;
    filter: drop-shadow(0 0 3px rgba(255, 193, 7, .5));
}

.questionnaire-status--inativo {
    color: #6c757d;
}

.questionnaire-status--inativo i {
    color: #adb5bd;
    filter: grayscale(1);
    opacity: .65;
}

.questionnaire-group {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.questionnaire-group-icon {
    display: inline-grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: help;
}

.questionnaire-group-icon:focus-visible {
    outline: 3px solid rgba(25, 135, 84, .25);
    outline-offset: 2px;
}

.questionnaire-group--individual .questionnaire-group-icon {
    color: #53645b;
    background: #eef3f0;
}

.questionnaire-group--shared .questionnaire-group-icon {
    color: var(--forest);
    background: #e3f4e9;
}

.questionnaire-group-popover {
    --bs-popover-border-color: var(--forest);
    --bs-popover-header-bg: var(--forest);
    --bs-popover-header-color: #fff;
    border-color: var(--forest);
    box-shadow: 0 8px 22px rgba(15, 81, 50, .18);
}

.questionnaire-group-popover .popover-header {
    border-bottom-color: var(--forest);
    font-weight: 700;
}

.collaborator-list {
    display: grid;
    gap: 8px;
}

.collaborator-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #d9e8df;
    border-radius: 8px;
    background: var(--mist);
}

.collaborator-item span {
    min-width: 0;
}

.collaborator-item small {
    display: block;
    color: #5a6b61;
}

.question-section {
    display: none;
}

.game-stage {
    flex: 1 0 auto;
}

.game-stage--with-background {
    background-image:
        linear-gradient(rgba(246, 250, 247, .28), rgba(246, 250, 247, .38)),
        var(--phase-background-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.game-stage--with-background .question-shell {
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(2px);
}

.phase-background-preview {
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
    border: 1px solid #d9e8df;
    border-radius: 8px;
    background: var(--mist);
}

.phase-background-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phase-background-preview span {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    color: #fff;
    background: rgba(7, 28, 17, .78);
    font-size: .75rem;
}

.question-section.active {
    display: block;
}

.question-shell {
    overflow: hidden;
}

.feedback-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.question-content {
    padding: 28px;
}

.question-content h2 {
    font-size: 1.45rem;
}

.question-inline-image {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    border: 1px solid #d9e8df;
    border-radius: 8px;
    margin-top: 16px;
    background: #fff;
}

.answer-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border: 1px solid #d9e8df;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
}

.answer-option:hover {
    border-color: var(--leaf);
    background: var(--mist);
}

.score-box {
    background: #fff7dc;
    border: 1px solid #ffe08a;
    border-radius: 8px;
    padding: 10px 14px;
}

.question-timer {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 8.5rem;
    padding: 10px 14px;
    border: 1px solid #9ec5fe;
    border-radius: 8px;
    color: #084298;
    background: #e7f1ff;
}

.question-timer strong {
    font-variant-numeric: tabular-nums;
}

.question-timer--warning {
    border-color: #ffe08a;
    color: #664d03;
    background: #fff7dc;
}

.question-timer--danger {
    border-color: #f1aeb5;
    color: #842029;
    background: #f8d7da;
}

.phase-result-icon {
    display: grid;
    width: 4rem;
    height: 4rem;
    place-items: center;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    color: var(--forest);
    background: var(--mist);
    font-size: 1.75rem;
}

.phase-result-icon--approved {
    color: #8a6800;
    background: #fff3cd;
}

.phase-result-icon--eliminated {
    color: #b02a37;
    background: #f8d7da;
}

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

.phase-result-metric {
    display: grid;
    justify-items: center;
    gap: 0.2rem;
    padding: 1rem 0.5rem;
    border: 1px solid #d9e8df;
    border-radius: 0.75rem;
    background: #f6faf7;
}

.phase-result-metric > i {
    color: var(--leaf);
    font-size: 1.15rem;
}

.phase-result-metric strong {
    color: var(--forest);
    font-size: 1.6rem;
    line-height: 1;
}

.phase-result-metric span,
.phase-result-metric small {
    color: #5a6b61;
}

.phase-result-metric small {
    min-height: 1.1em;
    font-size: 0.72rem;
}

.feedback-image {
    max-height: 220px;
    border-radius: 8px;
    margin-bottom: 14px;
}

[data-bs-theme="dark"] {
    --forest: #49ca86;
    --leaf: #45bd7d;
    --river: #6ea8fe;
    --sun: #ffd43b;
    --earth: #d1a079;
    --mist: #193127;
    --bs-body-color: #e1ebe5;
    --bs-body-color-rgb: 225, 235, 229;
    --bs-body-bg: #0d1511;
    --bs-body-bg-rgb: 13, 21, 17;
    --bs-emphasis-color: #f5fbf7;
    --bs-emphasis-color-rgb: 245, 251, 247;
    --bs-secondary-color: #a8b8af;
    --bs-secondary-color-rgb: 168, 184, 175;
    --bs-tertiary-bg: #19261f;
    --bs-secondary-bg: #142018;
    --bs-border-color: #31483b;
    --bs-link-color-rgb: 91, 214, 142;
    --bs-link-hover-color-rgb: 130, 231, 171;
    --bs-success-rgb: 73, 202, 134;
    --bs-primary-rgb: 110, 168, 254;
}

[data-bs-theme="dark"] body {
    background: #0d1511;
    color: #e1ebe5;
}

[data-bs-theme="dark"] .app-navbar {
    background: linear-gradient(90deg, #071c11, #0c3b25 55%, #083f49);
}

[data-bs-theme="dark"] .admin-navbar {
    background: #030a06;
    border-bottom-color: rgba(104, 211, 151, 0.2);
}

[data-bs-theme="dark"] .app-footer {
    border-top: 1px solid rgba(104, 211, 151, 0.18);
    background: #071c11;
}

[data-bs-theme="dark"] .about-hero {
    background:
        radial-gradient(circle at 85% 25%, rgba(255, 212, 59, 0.12), transparent 30%),
        linear-gradient(120deg, #061b10, #0b3421 55%, #073a43);
}

[data-bs-theme="dark"] .about-how-it-works {
    background: rgba(73, 202, 134, 0.05);
}

[data-bs-theme="dark"] .legal-hero {
    background:
        radial-gradient(circle at 88% 20%, rgba(255, 212, 59, 0.14), transparent 28%),
        linear-gradient(120deg, #061b10, #0b3421 58%, #073a43);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

[data-bs-theme="dark"] .legal-toc,
[data-bs-theme="dark"] .legal-section,
[data-bs-theme="dark"] .legal-notice {
    border-color: rgba(104, 211, 151, 0.2);
    background: #15211b;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

[data-bs-theme="dark"] .legal-toc a {
    color: #b7c7bd;
}

[data-bs-theme="dark"] .stat-panel,
[data-bs-theme="dark"] .info-card,
[data-bs-theme="dark"] .app-form,
[data-bs-theme="dark"] .app-table,
[data-bs-theme="dark"] .result-panel,
[data-bs-theme="dark"] .question-shell,
[data-bs-theme="dark"] .metric {
    background: #15211b;
    border-color: rgba(104, 211, 151, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

[data-bs-theme="dark"] .metric:hover {
    background: #174b34;
    color: #f0f8f3;
}

[data-bs-theme="dark"] .stat-panel span,
[data-bs-theme="dark"] .metric span,
[data-bs-theme="dark"] .collaborator-item small {
    color: #a8b8af;
}

[data-bs-theme="dark"] .metric:hover strong,
[data-bs-theme="dark"] .metric:hover span {
    color: #f0f8f3;
}

[data-bs-theme="dark"] .ranking-info-button {
    color: #72dfa2;
    background: #1c3829;
}

[data-bs-theme="dark"] .ranking-list-link {
    color: #72dfa2;
}

[data-bs-theme="dark"] .ranking-info-button:hover,
[data-bs-theme="dark"] .ranking-info-button:focus {
    color: #071c11;
    background: #72dfa2;
}

[data-bs-theme="dark"] .ranking-trophy--gold {
    color: #f4c542;
}

[data-bs-theme="dark"] .ranking-trophy--silver {
    color: #c4cbd2;
}

[data-bs-theme="dark"] .ranking-trophy--bronze {
    color: #dc9256;
}

[data-bs-theme="dark"] .ranking-info-popover,
[data-bs-theme="dark"] .questionnaire-group-popover {
    --bs-popover-bg: #17241d;
    --bs-popover-body-color: #e1ebe5;
    --bs-popover-border-color: #49ca86;
    --bs-popover-header-bg: #176b43;
    border-color: #49ca86;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34);
}

[data-bs-theme="dark"] .questionnaire-status--ativo {
    color: #ffda6a;
}

[data-bs-theme="dark"] .questionnaire-status--inativo {
    color: #adb5bd;
}

[data-bs-theme="dark"] .questionnaire-group--individual .questionnaire-group-icon {
    color: #c1cec6;
    background: #26372e;
}

[data-bs-theme="dark"] .questionnaire-group--shared .questionnaire-group-icon {
    color: #72dfa2;
    background: #173a29;
}

[data-bs-theme="dark"] .collaborator-item {
    border-color: #31483b;
    background: #192e24;
}

[data-bs-theme="dark"] .question-inline-image {
    border-color: #31483b;
    background: #101a14;
}

[data-bs-theme="dark"] .game-stage--with-background {
    background-image:
        linear-gradient(rgba(7, 18, 12, .48), rgba(7, 18, 12, .6)),
        var(--phase-background-image);
}

[data-bs-theme="dark"] .game-stage--with-background .question-shell {
    background: rgba(21, 33, 27, .9);
}

[data-bs-theme="dark"] .phase-background-preview {
    border-color: #31483b;
    background: #101a14;
}

[data-bs-theme="dark"] .answer-option {
    border-color: #31483b;
}

[data-bs-theme="dark"] .answer-option:hover {
    border-color: #49ca86;
    background: #193127;
}

[data-bs-theme="dark"] .score-box {
    color: #ffe9a0;
    background: #382f0d;
    border-color: #6f5c14;
}

[data-bs-theme="dark"] .question-timer {
    color: #9ec5fe;
    background: #142947;
    border-color: #31598a;
}

[data-bs-theme="dark"] .question-timer--warning {
    color: #ffe69c;
    background: #382f0d;
    border-color: #6f5c14;
}

[data-bs-theme="dark"] .question-timer--danger {
    color: #f1aeb5;
    background: #3c1d21;
    border-color: #7f3540;
}

[data-bs-theme="dark"] .phase-result-icon--approved {
    color: #f4c542;
    background: #3a310e;
}

[data-bs-theme="dark"] .phase-result-icon--eliminated {
    color: #ff7b86;
    background: #3c1d21;
}

[data-bs-theme="dark"] .phase-result-metric {
    border-color: #31483b;
    background: #142018;
}

[data-bs-theme="dark"] .phase-result-metric span,
[data-bs-theme="dark"] .phase-result-metric small {
    color: #a8b8af;
}

@media (max-width: 768px) {
    .hero-band {
        min-height: 460px;
    }

    .question-inline-image {
        max-height: 240px;
    }

    .about-educators {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 1199.98px) {
    .admin-navbar-account {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
        padding-block: 0.4rem;
    }

    .admin-navbar-user {
        margin: 0.35rem 0.7rem;
        padding-right: 0;
        border-right: 0;
    }
}

@media (max-width: 991.98px) {

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

    .legal-toc {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .legal-toc strong {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .legal-toc {
        grid-template-columns: 1fr;
    }

    .legal-notice {
        flex-direction: column;
    }

    .aq-privacy-banner {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .aq-privacy-banner__action {
        flex-basis: 100%;
        width: 100%;
    }
}
