:root {
    --learnio-theme-bg: #f7f9fc;
    --learnio-theme-surface: #ffffff;
    --learnio-theme-surface-soft: #f8fafc;
    --learnio-theme-text: #172033;
    --learnio-theme-muted: #64748b;
    --learnio-theme-border: #dfe6ef;
    --learnio-theme-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    --learnio-theme-primary: #3346d3;
    --learnio-theme-primary-dark: #243288;
    --learnio-bg: var(--learnio-theme-bg);
    --learnio-border: var(--learnio-theme-border);
    --learnio-shadow: var(--learnio-theme-shadow);
    --learnio-text-muted: var(--learnio-theme-muted);
    --learnio-public-bg: #fbfaf7;
    --learnio-public-primary: #3346d3;
    --learnio-public-primary-dark: #243288;
    --learnio-public-violet: #6d4bdc;
    --learnio-public-green: #178f6b;
    --learnio-public-yellow: #f2b84b;
    --learnio-public-slate: #172033;
    --learnio-public-soft: #eef4ff;
    --learnio-public-shadow: 0 18px 48px rgba(31, 41, 82, 0.11);
}

.learnio-answer-review {
    background: var(--learnio-theme-surface);
    border: 1px solid var(--learnio-theme-border);
    border-radius: 8px;
    box-shadow: var(--learnio-theme-shadow);
    color: var(--learnio-theme-text);
    margin-bottom: 1.5rem;
    padding: 1.25rem;
}

.learnio-answer-review-header,
.learnio-answer-review-positive,
.learnio-answer-review-item {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.learnio-answer-review h2 {
    color: var(--learnio-theme-text);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0;
}

.learnio-answer-review p {
    color: var(--learnio-theme-muted);
    margin: 0.3rem 0 0;
}

.learnio-answer-review-positive {
    justify-content: flex-start;
}

.learnio-answer-review-positive > .fa-solid {
    color: #15803d;
    font-size: 1.6rem;
}

.learnio-answer-review-filter {
    flex: 0 0 auto;
}

.learnio-answer-review-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.learnio-answer-review-item {
    border-top: 1px solid var(--learnio-theme-border);
    padding: 0.9rem 0;
}

.learnio-answer-review-item:last-child {
    padding-bottom: 0;
}

.learnio-answer-review-item-main {
    min-width: 0;
}

.learnio-answer-review-item-main > p {
    overflow-wrap: anywhere;
}

.learnio-answer-review-item-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
}

.learnio-answer-review-item-meta > span:not(.badge) {
    color: var(--learnio-theme-muted);
    font-size: 0.88rem;
}

[data-answer-review-page] [data-review-question] {
    scroll-margin-top: 1.5rem;
}

[data-answer-review-page] [data-review-question]:target,
[data-answer-review-page] [data-review-question]:focus-visible {
    background: var(--learnio-theme-surface-soft);
    outline: 3px solid var(--learnio-theme-primary);
    outline-offset: 3px;
}

@media (max-width: 767.98px) {
    .learnio-answer-review-header,
    .learnio-answer-review-item {
        align-items: stretch;
        flex-direction: column;
    }

    .learnio-answer-review-filter,
    .learnio-answer-review-item > .btn {
        width: 100%;
    }

    .learnio-answer-review-filter .btn {
        white-space: normal;
    }
}

[data-bs-theme="dark"] {
    color-scheme: dark;
    --learnio-theme-bg: #0f172a;
    --learnio-theme-surface: #162033;
    --learnio-theme-surface-soft: #1e293b;
    --learnio-theme-text: #e5e7eb;
    --learnio-theme-muted: #a7b2c4;
    --learnio-theme-border: rgba(148, 163, 184, 0.28);
    --learnio-theme-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
    --learnio-theme-primary: #8ea2ff;
    --learnio-theme-primary-dark: #c7d2fe;
}

.learnio-body {
    background: var(--learnio-bg);
    color: var(--learnio-theme-text);
}

.learnio-panel,
.learnio-card {
    background: var(--learnio-theme-surface);
    border: 1px solid var(--learnio-border);
    border-radius: 8px;
    box-shadow: var(--learnio-shadow);
}

.learnio-card {
    padding: 1.25rem;
}

.learnio-card-icon {
    align-items: center;
    background: var(--learnio-theme-surface-soft);
    border-radius: 8px;
    color: var(--learnio-theme-primary);
    display: inline-flex;
    height: 44px;
    justify-content: center;
    margin-bottom: 1rem;
    width: 44px;
}

.learnio-theme-toggle {
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.38);
    color: #1f2937;
    display: inline-flex;
    font-weight: 750;
    gap: 0.1rem;
    white-space: nowrap;
}

.learnio-theme-toggle:hover,
.learnio-theme-toggle:focus {
    background: #ffffff;
    border-color: rgba(51, 70, 211, 0.42);
    color: var(--learnio-theme-primary-dark);
}

.learnio-brand-logo {
    align-items: center;
    display: inline-flex;
    gap: 0.5rem;
    line-height: 1;
    max-width: min(220px, 52vw);
    min-width: 0;
    text-decoration: none;
    vertical-align: middle;
}

.learnio-brand-logo img {
    display: block;
    flex: 0 1 auto;
    height: auto;
    max-height: 34px;
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

.learnio-brand-logo-footer img {
    max-height: 28px;
}

.learnio-brand-logo-card {
    justify-content: center;
    margin-bottom: 0.85rem;
    max-width: 240px;
}

.learnio-brand-logo-card img {
    max-height: 36px;
}

.learnio-brand-logo-dark {
    display: none !important;
}

[data-bs-theme="dark"] .learnio-brand-logo-light {
    display: none !important;
}

[data-bs-theme="dark"] .learnio-brand-logo-dark {
    display: block !important;
}

.learnio-brand-logo-text {
    border: 1px solid currentColor;
    border-radius: 999px;
    color: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 0.18rem 0.45rem;
}

.learnio-brand-logo.learnio-login-brand {
    background: transparent;
    border-radius: 0;
    color: inherit;
    height: auto;
    justify-content: center;
    margin: 0 auto 1rem;
    width: auto;
}

.learnio-topbar .learnio-theme-toggle,
.learnio-app-topbar .learnio-theme-toggle {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.learnio-topbar .learnio-theme-toggle:hover,
.learnio-topbar .learnio-theme-toggle:focus,
.learnio-app-topbar .learnio-theme-toggle:hover,
.learnio-app-topbar .learnio-theme-toggle:focus {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.44);
    color: #ffffff;
}

.learnio-theme-toggle:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(142, 162, 255, 0.38);
    outline: 0;
}

[data-bs-theme="dark"] .learnio-theme-toggle {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(203, 213, 225, 0.26);
    color: #e5e7eb;
}

[data-bs-theme="dark"] .learnio-theme-toggle:hover,
[data-bs-theme="dark"] .learnio-theme-toggle:focus {
    background: rgba(30, 41, 59, 0.88);
    border-color: rgba(203, 213, 225, 0.44);
    color: #ffffff;
}

.learnio-notification-bell {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 32px;
    min-width: 36px;
    position: relative;
}

.learnio-notification-badge {
    align-items: center;
    background: #dc3545;
    border: 2px solid #ffffff;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 800;
    height: 1.15rem;
    justify-content: center;
    line-height: 1;
    min-width: 1.15rem;
    padding-inline: 0.25rem;
    position: absolute;
    right: -0.35rem;
    top: -0.4rem;
}

.learnio-notification-section {
    padding-block: 2rem;
}

.learnio-notification-header {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.learnio-notification-header h1 {
    color: var(--learnio-theme-text);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    margin: 0.65rem 0 0.35rem;
}

.learnio-notification-header p {
    color: var(--learnio-theme-muted);
    margin: 0;
}

.learnio-notification-list {
    display: grid;
    gap: 0.85rem;
}

.learnio-notification-card,
.learnio-notification-empty {
    background: var(--learnio-theme-surface);
    border: 1px solid var(--learnio-theme-border);
    border-radius: 8px;
    box-shadow: var(--learnio-theme-shadow);
}

.learnio-notification-card {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem;
}

.learnio-notification-card-unread {
    border-left: 4px solid var(--learnio-theme-primary);
}

.learnio-notification-card-main {
    min-width: 0;
}

.learnio-notification-title-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.learnio-notification-title-row h2 {
    color: var(--learnio-theme-text);
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
}

.learnio-notification-card p {
    color: var(--learnio-theme-muted);
    margin: 0 0 0.55rem;
}

.learnio-notification-meta {
    color: var(--learnio-theme-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.86rem;
    gap: 0.4rem 0.75rem;
}

.learnio-notification-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.learnio-notification-priority {
    border: 1px solid transparent;
}

.learnio-notification-empty {
    padding: 2rem;
    text-align: center;
}

.learnio-notification-empty .fa-solid {
    color: var(--learnio-theme-primary);
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.learnio-notification-empty h2 {
    color: var(--learnio-theme-text);
    font-size: 1.25rem;
    font-weight: 800;
}

.learnio-notification-empty p {
    color: var(--learnio-theme-muted);
    margin: 0;
}

.learnio-daily-inspiration {
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(47, 111, 214, 0.1), rgba(242, 184, 75, 0.12)), var(--learnio-theme-surface);
    border: 1px solid var(--learnio-theme-border);
    border-radius: 8px;
    box-shadow: var(--learnio-theme-shadow);
    display: flex;
    gap: 0.85rem;
    margin-block: 1rem 1.25rem;
    min-width: 0;
    padding: 1rem;
}

.learnio-daily-inspiration-icon {
    align-items: center;
    background: rgba(47, 111, 214, 0.12);
    border: 1px solid rgba(47, 111, 214, 0.18);
    border-radius: 8px;
    color: var(--learnio-theme-primary);
    display: inline-flex;
    flex: 0 0 2.25rem;
    height: 2.25rem;
    justify-content: center;
    margin-top: 0.1rem;
    width: 2.25rem;
}

.learnio-daily-inspiration-content {
    min-width: 0;
}

.learnio-daily-inspiration-label {
    color: var(--learnio-theme-primary);
    display: block;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.learnio-daily-inspiration-text {
    color: var(--learnio-theme-text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.55;
    margin: 0;
}

.learnio-daily-inspiration-meta {
    color: var(--learnio-theme-muted);
    font-size: 0.86rem;
    margin: 0.45rem 0 0;
}

[data-bs-theme="dark"] .learnio-daily-inspiration {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.12), rgba(250, 204, 21, 0.08)), var(--learnio-theme-surface);
    border-color: var(--learnio-theme-border);
}

[data-bs-theme="dark"] .learnio-daily-inspiration-icon {
    background: rgba(96, 165, 250, 0.14);
    border-color: rgba(96, 165, 250, 0.22);
    color: #93c5fd;
}

@media (max-width: 575.98px) {
    .learnio-notification-card {
        display: block;
    }

    .learnio-notification-actions {
        justify-content: flex-start;
        margin-top: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .learnio-daily-inspiration {
        gap: 0.7rem;
        padding: 0.9rem;
    }

    .learnio-daily-inspiration-icon {
        flex-basis: 2rem;
        height: 2rem;
        width: 2rem;
    }
}

.learnio-dashboard-notifications {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-block: 1.25rem;
}

.learnio-dashboard-notification-card {
    background: var(--learnio-theme-surface);
    border: 1px solid var(--learnio-theme-border);
    border-radius: 8px;
    box-shadow: var(--learnio-theme-shadow);
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1rem;
}

.learnio-dashboard-notification-header {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.learnio-dashboard-notification-header h2 {
    color: var(--learnio-theme-text);
    font-size: 1.05rem;
    font-weight: 850;
    margin: 0.1rem 0 0;
}

.learnio-dashboard-notification-kicker {
    color: var(--learnio-theme-muted);
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.learnio-dashboard-notification-count {
    align-items: center;
    background: var(--learnio-theme-surface-soft);
    border: 1px solid var(--learnio-theme-border);
    border-radius: 999px;
    color: var(--learnio-theme-text);
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 850;
    justify-content: center;
    min-width: 2rem;
    padding: 0.2rem 0.55rem;
}

.learnio-dashboard-notification-list {
    display: grid;
    gap: 0.65rem;
}

.learnio-dashboard-notification-item {
    align-items: flex-start;
    background: var(--learnio-theme-surface-soft);
    border: 1px solid var(--learnio-theme-border);
    border-radius: 8px;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    min-width: 0;
    padding: 0.75rem;
}

.learnio-dashboard-notification-item > div {
    min-width: 0;
}

.learnio-dashboard-notification-title-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.25rem;
}

.learnio-dashboard-notification-title-row h3 {
    color: var(--learnio-theme-text);
    font-size: 0.95rem;
    font-weight: 850;
    margin: 0;
}

.learnio-dashboard-notification-item p {
    color: var(--learnio-theme-muted);
    font-size: 0.9rem;
    margin: 0 0 0.35rem;
}

.learnio-dashboard-notification-date {
    color: var(--learnio-theme-muted);
    display: block;
    font-size: 0.78rem;
}

.learnio-dashboard-notification-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1;
    padding: 0.25rem 0.45rem;
}

.learnio-dashboard-notification-badge-info {
    background: rgba(100, 116, 139, 0.14);
    color: var(--learnio-theme-muted);
}

.learnio-dashboard-notification-badge-action {
    background: rgba(242, 184, 75, 0.2);
    color: #8a5a04;
}

.learnio-dashboard-notification-badge-urgent {
    background: rgba(220, 53, 69, 0.14);
    color: #b02a37;
}

.learnio-dashboard-notification-empty {
    align-items: center;
    color: var(--learnio-theme-muted);
    display: flex;
    gap: 0.55rem;
    min-height: 4rem;
}

.learnio-dashboard-notification-empty .fa-solid {
    color: var(--learnio-theme-primary);
}

.learnio-dashboard-notification-footer {
    border-top: 1px solid var(--learnio-theme-border);
    display: inline-flex;
    font-weight: 800;
    margin-top: auto;
    padding-top: 0.8rem;
    text-decoration: none;
}

[data-bs-theme="dark"] .learnio-dashboard-notification-card,
[data-bs-theme="dark"] .learnio-dashboard-notification-item {
    background: var(--learnio-theme-surface);
    border-color: var(--learnio-theme-border);
}

[data-bs-theme="dark"] .learnio-dashboard-notification-item,
[data-bs-theme="dark"] .learnio-dashboard-notification-count {
    background: var(--learnio-theme-surface-soft);
}

[data-bs-theme="dark"] .learnio-dashboard-notification-badge-action {
    color: #facc15;
}

[data-bs-theme="dark"] .learnio-dashboard-notification-badge-urgent {
    color: #fca5a5;
}

@media (max-width: 991.98px) {
    .learnio-dashboard-notifications {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .learnio-dashboard-notification-item {
        display: block;
    }

    .learnio-dashboard-notification-item .btn {
        margin-top: 0.65rem;
        width: 100%;
    }
}

.learnio-shell {
    min-height: 100vh;
}

.learnio-main {
    padding-block: 1.5rem;
}

.learnio-topbar .navbar-brand {
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.learnio-topbar .navbar-nav {
    gap: 0.15rem;
}

.learnio-topbar .nav-link {
    border-radius: 8px;
    padding-inline: 0.75rem;
}

.learnio-topbar .nav-link.active,
.learnio-topbar .nav-link[aria-current="page"] {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 700;
}

.learnio-user-chip {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.learnio-page-header {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.learnio-page-header h1 {
    margin-bottom: 0.25rem;
}

.learnio-page-actions,
.learnio-button-row,
.learnio-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.learnio-page-actions {
    justify-content: flex-end;
}

.learnio-filter {
    margin-bottom: 1rem;
    padding: 1rem;
}

.learnio-filter .form-label {
    color: var(--learnio-text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.learnio-empty {
    color: var(--learnio-text-muted);
    padding: 2.5rem 1.25rem;
    text-align: center;
}

.learnio-empty .fa-solid {
    color: #94a3b8;
}

.learnio-action-bar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0;
    padding: 1rem;
}

.learnio-action-bar-text {
    color: var(--learnio-text-muted);
    max-width: 520px;
}

.learnio-metric-card {
    min-height: 100%;
}

.learnio-result-card,
.learnio-assignment-card,
.learnio-question-card {
    min-width: 0;
}

.learnio-question-card {
    border: 1px solid var(--learnio-border);
    border-radius: 8px;
    background: var(--learnio-theme-surface);
}

.learnio-choice {
    display: block;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.learnio-choice:hover {
    border-color: #b6c8df;
    background: #f8fbff;
}

.learnio-status {
    border: 1px solid transparent;
    font-weight: 700;
}

.learnio-flash {
    border: 0;
    border-left: 4px solid currentColor;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

[data-bs-theme="dark"] .learnio-flash {
    box-shadow: var(--learnio-theme-shadow);
}

.table td,
.table th {
    vertical-align: middle;
}

.table-responsive {
    scrollbar-width: thin;
}

.form-label {
    font-weight: 650;
}

.invalid-feedback,
.form-text {
    margin-top: 0.35rem;
}

.btn {
    min-width: 0;
}

.btn:focus-visible,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.22);
}

[data-bs-theme="dark"] .text-secondary {
    color: var(--learnio-theme-muted) !important;
}

[data-bs-theme="dark"] .table-light {
    --bs-table-bg: #243044;
    --bs-table-color: var(--learnio-theme-text);
    --bs-table-border-color: var(--learnio-theme-border);
}

[data-bs-theme="dark"] .badge.text-bg-light {
    background-color: var(--learnio-theme-surface-soft) !important;
    color: var(--learnio-theme-text) !important;
    border-color: var(--learnio-theme-border) !important;
}

.learnio-admin-shell {
    --learnio-admin-ink: #172033;
    --learnio-admin-muted: #64748b;
    --learnio-admin-navy: #111827;
    --learnio-admin-blue: #2f4f8f;
    --learnio-admin-teal: #2f7f7b;
    --learnio-admin-soft: #eef4ff;
    background:
        linear-gradient(180deg, #f3f6fb 0%, #f8fafc 52%, #ffffff 100%);
}

.learnio-admin-topbar {
    background: linear-gradient(135deg, var(--learnio-admin-navy) 0%, #1f2d4d 64%, var(--learnio-admin-blue) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.14);
}

.learnio-admin-brand,
.learnio-admin-brand:hover,
.learnio-admin-brand:focus {
    color: #ffffff;
}

.learnio-admin-nav {
    gap: 0.18rem;
}

.learnio-admin-topbar .nav-link {
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.93rem;
    font-weight: 650;
    padding: 0.42rem 0.65rem;
}

.learnio-admin-topbar .nav-link:hover,
.learnio-admin-topbar .nav-link:focus,
.learnio-admin-topbar .nav-link.active,
.learnio-admin-topbar .nav-link[aria-current="page"] {
    color: #ffffff;
}

.learnio-admin-topbar .nav-link.active,
.learnio-admin-topbar .nav-link[aria-current="page"] {
    background: rgba(255, 255, 255, 0.14);
}

.learnio-admin-user-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.learnio-admin-user-chip {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.learnio-admin-main {
    padding-block: 1.5rem 2.4rem;
}

.learnio-admin-section {
    min-width: 0;
}

.learnio-admin-page-header,
.learnio-admin-card,
.learnio-admin-metric,
.learnio-admin-empty,
.learnio-admin-compact-list,
.learnio-admin-filter,
.learnio-admin-table-panel,
.learnio-admin-form-card {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.learnio-admin-page-header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1.35rem;
}

.learnio-admin-page-header h1 {
    color: var(--learnio-admin-ink);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 850;
    line-height: 1.08;
    margin: 0.3rem 0 0.45rem;
}

.learnio-admin-page-header p,
.learnio-admin-card p,
.learnio-admin-compact-list p {
    color: var(--learnio-admin-muted);
    line-height: 1.55;
    margin-bottom: 0;
}

.learnio-admin-status {
    background: var(--learnio-admin-soft);
    border: 1px solid rgba(47, 79, 143, 0.16);
    border-radius: 8px;
    color: var(--learnio-admin-blue);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 850;
    padding: 0.32rem 0.58rem;
    text-transform: uppercase;
}

.learnio-admin-actions,
.learnio-admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.learnio-admin-dashboard-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.learnio-admin-metric {
    align-items: center;
    display: flex;
    gap: 0.85rem;
    justify-content: space-between;
    min-width: 0;
    padding: 1rem;
}

.learnio-admin-metric span {
    color: var(--learnio-admin-muted);
    display: block;
    font-size: 0.84rem;
    font-weight: 750;
}

.learnio-admin-metric strong {
    color: var(--learnio-admin-ink);
    display: block;
    font-size: 1.7rem;
    line-height: 1.1;
}

.learnio-admin-metric .fa-solid {
    color: var(--learnio-admin-teal);
    font-size: 1.15rem;
}

.learnio-admin-card,
.learnio-admin-form-card {
    padding: 1.2rem;
}

.learnio-admin-card-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.learnio-admin-card-header h2,
.learnio-admin-compact-list h2,
.learnio-admin-empty h2 {
    color: var(--learnio-admin-ink);
    font-size: 1.16rem;
    font-weight: 820;
    margin-bottom: 0.25rem;
}

.learnio-admin-detail-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.learnio-admin-compact-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-width: 0;
    padding: 1rem;
}

.learnio-admin-compact-list-heading {
    align-items: flex-start;
    display: flex;
    gap: 0.8rem;
}

.learnio-admin-compact-list-heading .fa-solid {
    align-items: center;
    background: var(--learnio-admin-soft);
    border-radius: 8px;
    color: var(--learnio-admin-blue);
    display: inline-flex;
    flex: 0 0 auto;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.learnio-admin-compact-list .learnio-admin-actions {
    margin-top: auto;
}

.learnio-admin-empty {
    color: var(--learnio-admin-muted);
    padding: 1.5rem;
    text-align: center;
}

.learnio-admin-filter,
.learnio-admin-table-panel {
    padding: 1rem;
}

.learnio-admin-index {
    min-width: 0;
}

.learnio-admin-toolbar {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.learnio-admin-toolbar h1 {
    color: var(--learnio-admin-ink);
    font-size: 1.75rem;
    font-weight: 830;
    margin-bottom: 0.25rem;
}

.learnio-admin-toolbar p,
.learnio-admin-muted {
    color: var(--learnio-admin-muted);
}

.learnio-admin-filter {
    margin-bottom: 1rem;
}

.learnio-admin-filter-grid {
    align-items: end;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.learnio-admin-filter-grid > * {
    min-width: 0;
}

.learnio-admin-table-panel {
    overflow: hidden;
    padding: 0;
}

.learnio-admin-table {
    margin-bottom: 0;
}

.learnio-admin-table th {
    color: #475569;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.learnio-admin-table td {
    overflow-wrap: anywhere;
}

.learnio-admin-table code {
    white-space: normal;
}

.learnio-admin-action-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.learnio-admin-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.learnio-admin-pagination {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-top: 1rem;
}

.learnio-admin-card-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.learnio-admin-list-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
}

.learnio-admin-list-card h2 {
    color: var(--learnio-admin-ink);
    font-size: 1.1rem;
    font-weight: 820;
    margin-bottom: 0;
    overflow-wrap: anywhere;
}

.learnio-admin-mobile-stack {
    min-width: 0;
}

.learnio-admin-back-link {
    color: var(--learnio-admin-blue);
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 0.65rem;
    text-decoration: none;
}

.learnio-admin-back-link:hover,
.learnio-admin-back-link:focus {
    color: var(--learnio-admin-navy);
    text-decoration: underline;
}

.learnio-admin-form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.learnio-admin-fieldset,
.learnio-admin-inline-form,
.learnio-admin-danger-zone,
.learnio-admin-builder-section,
.learnio-admin-question-card,
.learnio-admin-answer-card,
.learnio-admin-grading-panel,
.learnio-admin-json-box,
.learnio-admin-warning-panel,
.learnio-admin-review-panel,
.learnio-admin-report-card,
.learnio-admin-note-box,
.learnio-admin-decision-panel {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    min-width: 0;
}

.learnio-admin-fieldset,
.learnio-admin-inline-form,
.learnio-admin-danger-zone,
.learnio-admin-builder-section,
.learnio-admin-question-card,
.learnio-admin-answer-card,
.learnio-admin-grading-panel,
.learnio-admin-warning-panel,
.learnio-admin-review-panel,
.learnio-admin-report-card,
.learnio-admin-note-box,
.learnio-admin-decision-panel {
    padding: 1rem;
}

.learnio-admin-help {
    color: var(--learnio-admin-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.learnio-admin-form-card .form-label,
.learnio-admin-fieldset .form-label,
.learnio-admin-inline-form .form-label,
.learnio-admin-grading-panel .form-label {
    color: #334155;
}

.learnio-admin-role-option {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    display: block;
    padding: 0.85rem;
}

.learnio-admin-detail-list dt {
    color: var(--learnio-admin-muted);
    font-size: 0.85rem;
}

.learnio-admin-detail-list dd {
    overflow-wrap: anywhere;
}

.learnio-admin-builder-section {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.learnio-admin-builder-header,
.learnio-admin-question-header {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
}

.learnio-admin-question-card {
    box-shadow: none;
}

.learnio-admin-answer-card {
    background: #f8fafc;
    box-shadow: none;
}

.learnio-admin-json-box,
.learnio-admin-json-box pre,
.learnio-admin-json-box textarea,
.learnio-admin-json-box code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.learnio-admin-json-box {
    background: #f8fafc;
    box-shadow: none;
    overflow: auto;
    padding: 0.85rem;
}

.learnio-admin-warning-panel {
    background: #fff8e6;
    border-color: rgba(245, 158, 11, 0.28);
    box-shadow: none;
}

.learnio-admin-grading-panel {
    display: grid;
    gap: 1rem;
}

.learnio-admin-review-panel,
.learnio-admin-report-card,
.learnio-admin-decision-panel {
    display: grid;
    gap: 0.85rem;
}

.learnio-admin-note-box {
    background: #f8fafc;
    box-shadow: none;
    overflow-wrap: anywhere;
}

.learnio-admin-grading-actions {
    position: sticky;
    bottom: 0.75rem;
    z-index: 2;
}

.learnio-guest-shell {
    background:
        linear-gradient(180deg, rgba(238, 244, 255, 0.88) 0%, rgba(251, 250, 247, 0.98) 42%, #ffffff 100%);
    min-height: 100vh;
}

.learnio-guest-main {
    min-height: calc(100vh - 185px);
}

.learnio-guest-nav {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.learnio-guest-brand {
    color: var(--learnio-public-primary-dark);
}

.learnio-guest-footer {
    background: rgba(255, 255, 255, 0.74);
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    padding: 1.5rem 0;
}

.learnio-public-hero {
    padding: 5rem 0 3.5rem;
}

.learnio-hero-badge,
.learnio-section-kicker {
    align-items: center;
    border: 1px solid rgba(51, 70, 211, 0.18);
    border-radius: 8px;
    color: var(--learnio-public-primary-dark);
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 750;
    padding: 0.42rem 0.7rem;
}

.learnio-hero-badge {
    background: rgba(255, 255, 255, 0.78);
    margin-bottom: 1.15rem;
}

.learnio-hero-title {
    color: var(--learnio-public-slate);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 0.95;
    margin-bottom: 1rem;
}

.learnio-hero-subtitle {
    color: var(--learnio-public-primary-dark);
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 750;
    line-height: 1.2;
    margin-bottom: 1rem;
    max-width: 700px;
}

.learnio-hero-copy {
    color: #475569;
    font-size: 1.08rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 640px;
}

.learnio-hero-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.learnio-hero-note {
    color: #475569;
    font-weight: 650;
}

.learnio-hero-summary,
.learnio-login-card,
.learnio-error-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 8px;
    box-shadow: var(--learnio-public-shadow);
}

.learnio-hero-summary {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
}

.learnio-hero-summary > div {
    background: linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    display: grid;
    gap: 0.18rem;
    padding: 1rem;
}

.learnio-hero-summary strong {
    color: var(--learnio-public-slate);
    font-size: 1.02rem;
}

.learnio-hero-summary span:not(.learnio-summary-label) {
    color: #64748b;
}

.learnio-summary-label {
    color: var(--learnio-public-green);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.learnio-public-section {
    padding: 3.25rem 0;
}

.learnio-section-heading {
    margin-bottom: 1.5rem;
    max-width: 760px;
}

.learnio-section-heading h2,
.learnio-trust-band h2,
.learnio-final-cta h2 {
    color: var(--learnio-public-slate);
    font-weight: 800;
    line-height: 1.12;
    margin: 0.65rem 0 0.5rem;
}

.learnio-section-heading p {
    color: #64748b;
    font-size: 1.04rem;
    line-height: 1.65;
    margin-bottom: 0;
}

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

.learnio-role-card,
.learnio-value-card,
.learnio-step-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
    height: 100%;
    padding: 1.2rem;
}

.learnio-role-icon,
.learnio-login-brand,
.learnio-error-icon {
    align-items: center;
    background: var(--learnio-public-soft);
    border-radius: 8px;
    color: var(--learnio-public-primary);
    display: inline-flex;
    height: 48px;
    justify-content: center;
    margin-bottom: 1rem;
    width: 48px;
}

.learnio-role-card h3,
.learnio-value-card h3 {
    color: var(--learnio-public-slate);
    font-size: 1.06rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.learnio-role-card p,
.learnio-value-card p,
.learnio-step-card p,
.learnio-final-cta p {
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 0;
}

.learnio-value-card .fa-solid {
    color: var(--learnio-public-primary);
    font-size: 1.45rem;
    margin-bottom: 0.85rem;
}

.learnio-step-card span {
    align-items: center;
    background: #fff6df;
    border: 1px solid rgba(242, 184, 75, 0.36);
    border-radius: 8px;
    color: #8b5e0a;
    display: inline-flex;
    font-weight: 800;
    height: 38px;
    justify-content: center;
    margin-bottom: 0.9rem;
    width: 38px;
}

.learnio-trust-band {
    align-items: center;
    background: linear-gradient(135deg, #172033 0%, #243288 100%);
    border-radius: 8px;
    color: #ffffff;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr 1.15fr;
    padding: 2rem;
}

.learnio-trust-band .learnio-section-kicker {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #dbeafe;
}

.learnio-trust-band h2 {
    color: #ffffff;
}

.learnio-trust-band li {
    align-items: flex-start;
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
}

.learnio-trust-band li:last-child {
    margin-bottom: 0;
}

.learnio-trust-band .fa-solid {
    color: #9ee6c8;
    margin-top: 0.2rem;
}

.learnio-final-cta {
    padding: 2.75rem 0 4rem;
}

.learnio-final-cta-inner {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    box-shadow: var(--learnio-public-shadow);
    padding: 2rem;
    text-align: center;
}

.learnio-login-shell,
.learnio-error-shell {
    align-items: center;
    display: flex;
    min-height: calc(100vh - 190px);
    padding: 3.5rem 0;
}

.learnio-login-card {
    padding: 2rem;
}

.learnio-login-brand {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.learnio-login-notes {
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    display: grid;
    gap: 0.65rem;
    margin-top: 1.35rem;
    padding-top: 1.1rem;
}

.learnio-login-notes span {
    align-items: center;
    color: #475569;
    display: flex;
    font-size: 0.94rem;
    gap: 0.6rem;
}

.learnio-login-notes .fa-solid {
    color: var(--learnio-public-green);
}

.learnio-error-card {
    margin-inline: auto;
    max-width: 620px;
    padding: 2rem;
    text-align: center;
}

.learnio-error-icon {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.learnio-error-code {
    color: var(--learnio-public-primary);
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.learnio-error-card h1 {
    color: var(--learnio-public-slate);
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.learnio-error-card p:not(.learnio-error-code) {
    color: #64748b;
    margin-inline: auto;
    max-width: 480px;
}

.learnio-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.25rem;
}

.learnio-app-shell {
    background:
        linear-gradient(180deg, rgba(238, 244, 255, 0.86) 0%, rgba(247, 249, 252, 0.98) 44%, #ffffff 100%);
    min-height: 100vh;
}

.learnio-app-main {
    padding: 2.25rem 0;
}

.learnio-app-topbar {
    background: linear-gradient(135deg, var(--learnio-public-primary-dark) 0%, var(--learnio-public-primary) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.learnio-app-brand {
    color: #ffffff;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.learnio-app-brand:hover,
.learnio-app-brand:focus {
    color: #ffffff;
}

.learnio-app-nav-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-left: auto;
}

.learnio-app-user {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    font-weight: 650;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.learnio-app-technical-link {
    opacity: 0.72;
}

.learnio-portal-hero {
    padding: 0.5rem 0 1rem;
}

.learnio-portal-header {
    margin-bottom: 1.35rem;
    max-width: 760px;
}

.learnio-portal-header h1 {
    color: var(--learnio-public-slate);
    font-size: clamp(2rem, 4vw, 3.15rem);
    font-weight: 800;
    line-height: 1.05;
    margin: 0.75rem 0 0.6rem;
}

.learnio-portal-header p {
    color: #64748b;
    font-size: 1.08rem;
    margin-bottom: 0;
}

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

.learnio-portal-card,
.learnio-portal-empty {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 8px;
    box-shadow: var(--learnio-public-shadow);
}

.learnio-portal-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.25rem;
}

.learnio-portal-card-recommended {
    background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
    border-color: rgba(51, 70, 211, 0.38);
}

.learnio-portal-card-head {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.learnio-portal-badge {
    align-items: center;
    background: #eef4ff;
    border: 1px solid rgba(51, 70, 211, 0.2);
    border-radius: 8px;
    color: var(--learnio-public-primary-dark);
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.38rem 0.65rem;
    white-space: nowrap;
}

.learnio-portal-icon {
    align-items: center;
    background: var(--learnio-public-soft);
    border-radius: 8px;
    color: var(--learnio-public-primary);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.15rem;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.learnio-portal-card h2,
.learnio-portal-empty h2 {
    color: var(--learnio-public-slate);
    font-size: 1.18rem;
    font-weight: 800;
    margin-bottom: 0.55rem;
}

.learnio-portal-card p,
.learnio-portal-empty p {
    color: #64748b;
    line-height: 1.58;
}

.learnio-portal-card p {
    flex: 1 1 auto;
    margin-bottom: 1.15rem;
}

.learnio-portal-empty {
    max-width: 640px;
    padding: 1.5rem;
}

.learnio-portal-empty .learnio-portal-icon {
    margin-bottom: 1rem;
}

.learnio-teacher-shell {
    --learnio-teacher-indigo: #344283;
    --learnio-teacher-navy: #172554;
    --learnio-teacher-cyan: #2f7f92;
    --learnio-teacher-green: #2f7d5d;
    --learnio-teacher-slate: #1f2937;
    --learnio-teacher-muted: #64748b;
    --learnio-teacher-soft-indigo: #eef2ff;
    --learnio-teacher-soft-cyan: #e8f6f8;
    background:
        linear-gradient(180deg, #f4f6fb 0%, #f8fafc 48%, #ffffff 100%);
}

.learnio-teacher-topbar {
    background: linear-gradient(135deg, var(--learnio-teacher-navy) 0%, var(--learnio-teacher-indigo) 58%, var(--learnio-teacher-cyan) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 34px rgba(23, 37, 84, 0.16);
}

.learnio-teacher-brand,
.learnio-teacher-brand:hover,
.learnio-teacher-brand:focus {
    color: #ffffff;
}

.learnio-teacher-nav {
    gap: 0.25rem;
}

.learnio-teacher-topbar .nav-link {
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.84);
    font-weight: 650;
}

.learnio-teacher-topbar .nav-link:hover,
.learnio-teacher-topbar .nav-link:focus,
.learnio-teacher-topbar .nav-link.active,
.learnio-teacher-topbar .nav-link[aria-current="page"] {
    color: #ffffff;
}

.learnio-teacher-topbar .nav-link.active,
.learnio-teacher-topbar .nav-link[aria-current="page"] {
    background: rgba(255, 255, 255, 0.15);
}

.learnio-teacher-user-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.learnio-teacher-user-chip {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 700;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.learnio-teacher-main {
    padding-block: 1.75rem 2.75rem;
}

.learnio-teacher-section {
    min-width: 0;
}

.learnio-teacher-hero,
.learnio-teacher-card,
.learnio-teacher-child-card,
.learnio-teacher-detail-card,
.learnio-teacher-metric,
.learnio-teacher-report-hero,
.learnio-teacher-score-card,
.learnio-teacher-progress-card,
.learnio-teacher-question-report,
.learnio-teacher-result-card,
.learnio-teacher-answer-box,
.learnio-teacher-feedback-box,
.learnio-teacher-correction-box,
.learnio-teacher-empty {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(23, 37, 84, 0.08);
}

.learnio-teacher-hero {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1.5rem;
}

.learnio-teacher-page-header {
    margin-bottom: 1rem;
}

.learnio-teacher-hero h1,
.learnio-teacher-page-header h1,
.learnio-teacher-detail-card h1 {
    color: var(--learnio-teacher-slate);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 850;
    line-height: 1.06;
    margin: 0.35rem 0 0.5rem;
}

.learnio-teacher-hero p,
.learnio-teacher-page-header p,
.learnio-teacher-card p,
.learnio-teacher-child-card p,
.learnio-teacher-detail-card p,
.learnio-teacher-progress-card p,
.learnio-teacher-result-card p {
    color: var(--learnio-teacher-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.learnio-teacher-kicker {
    color: var(--learnio-teacher-indigo);
    display: block;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.learnio-teacher-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.learnio-teacher-metric-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.learnio-teacher-metric {
    align-items: center;
    display: flex;
    gap: 0.8rem;
    justify-content: space-between;
    min-width: 0;
    padding: 1rem;
}

.learnio-teacher-metric span,
.learnio-teacher-meta span,
.learnio-teacher-subjects span {
    color: var(--learnio-teacher-muted);
    display: block;
    font-size: 0.84rem;
    font-weight: 750;
}

.learnio-teacher-metric strong {
    color: var(--learnio-teacher-slate);
    display: block;
    font-size: 1.65rem;
    line-height: 1.1;
}

.learnio-teacher-metric .fa-solid {
    color: var(--learnio-teacher-cyan);
    font-size: 1.15rem;
}

.learnio-teacher-detail-overview {
    align-items: stretch;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 1rem;
}

.learnio-teacher-detail-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 0;
}

.learnio-teacher-overview-actions {
    align-content: center;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 0;
}

.learnio-teacher-dashboard-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
}

.learnio-teacher-card {
    padding: 1.25rem;
}

.learnio-teacher-card-header,
.learnio-teacher-child-card-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.learnio-teacher-card-header h2,
.learnio-teacher-child-card-header h2,
.learnio-teacher-progress-card h2,
.learnio-teacher-result-card h2,
.learnio-teacher-score-card h2,
.learnio-teacher-question-report h2,
.learnio-teacher-answer-box h2,
.learnio-teacher-feedback-box h2,
.learnio-teacher-correction-box h2,
.learnio-teacher-empty h2 {
    color: var(--learnio-teacher-slate);
    font-size: 1.2rem;
    font-weight: 820;
    margin-bottom: 0.3rem;
    overflow-wrap: anywhere;
}

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

.learnio-teacher-child-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    padding: 1.15rem;
}

.learnio-teacher-back-link {
    color: var(--learnio-teacher-indigo);
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
    text-decoration: none;
}

.learnio-teacher-back-link:hover,
.learnio-teacher-back-link:focus {
    color: var(--learnio-teacher-navy);
    text-decoration: underline;
}

.learnio-teacher-detail-card {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1.5rem;
}

.learnio-teacher-detail-card > .fa-solid,
.learnio-teacher-progress-card .learnio-teacher-card-header > .fa-solid {
    color: var(--learnio-teacher-cyan);
    font-size: 1.55rem;
}

.learnio-teacher-action-panel {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.learnio-teacher-status-chip,
.learnio-teacher-permission-chip {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.38rem 0.65rem;
    text-align: center;
}

.learnio-teacher-status-chip {
    background: var(--learnio-teacher-soft-cyan);
    border: 1px solid rgba(47, 127, 146, 0.18);
    color: #276a78;
}

.learnio-teacher-permissions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.learnio-teacher-permission-chip {
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #475569;
}

.learnio-teacher-subjects {
    background: var(--learnio-teacher-soft-indigo);
    border: 1px solid rgba(52, 66, 131, 0.14);
    border-radius: 8px;
    min-width: 0;
    padding: 0.85rem;
}

.learnio-teacher-subjects strong {
    color: var(--learnio-teacher-slate);
    display: block;
    font-weight: 800;
    margin-top: 0.2rem;
    overflow-wrap: anywhere;
}

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

.learnio-teacher-meta div {
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    min-width: 0;
    padding: 0.8rem;
}

.learnio-teacher-meta .learnio-teacher-meta-wide {
    grid-column: 1 / -1;
}

.learnio-teacher-meta strong {
    color: var(--learnio-teacher-slate);
    display: block;
    font-size: 1.1rem;
    line-height: 1.2;
    margin-top: 0.2rem;
    overflow-wrap: anywhere;
}

.learnio-teacher-child-card .learnio-teacher-action-row {
    margin-top: auto;
}

.learnio-teacher-list,
.learnio-teacher-progress-list {
    display: grid;
    gap: 0.7rem;
}

.learnio-teacher-list-item {
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    min-width: 0;
    padding: 0.85rem;
}

.learnio-teacher-list-item strong,
.learnio-teacher-list-item span {
    overflow-wrap: anywhere;
}

.learnio-teacher-list-item strong,
.learnio-teacher-progress-row a {
    color: var(--learnio-teacher-slate);
    font-weight: 820;
    text-decoration: none;
}

.learnio-teacher-list-item span,
.learnio-teacher-progress-row span {
    color: var(--learnio-teacher-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.learnio-teacher-progress-row {
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    display: grid;
    gap: 0.7rem;
    padding: 0.85rem;
}

.learnio-teacher-progress-row .progress,
.learnio-teacher-progress-bar .progress {
    background: #e2e8f0;
    height: 0.55rem;
}

.learnio-teacher-progress-row .progress-bar,
.learnio-teacher-progress-bar .progress-bar {
    background: linear-gradient(90deg, var(--learnio-teacher-indigo), var(--learnio-teacher-cyan));
}

.learnio-teacher-progress-card,
.learnio-teacher-result-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    padding: 1.15rem;
}

.learnio-teacher-progress-card > .btn,
.learnio-teacher-result-card > .btn {
    align-self: flex-start;
    margin-top: auto;
}

.learnio-teacher-progress-bar {
    align-items: center;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.learnio-teacher-progress-bar span {
    color: var(--learnio-teacher-slate);
    font-size: 0.9rem;
    font-weight: 850;
}

.learnio-teacher-result-card-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.learnio-teacher-subject-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
}

.learnio-teacher-subject-main {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.learnio-teacher-filter-panel {
    align-self: start;
}

.learnio-teacher-pagination {
    margin-top: 1.25rem;
}

.learnio-teacher-attempt-report {
    display: grid;
    gap: 1rem;
    margin-inline: auto;
    max-width: 1080px;
}

.learnio-teacher-report-hero {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.5rem;
}

.learnio-teacher-report-hero h1 {
    color: var(--learnio-teacher-slate);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 850;
    line-height: 1.06;
    margin: 0.35rem 0 0.5rem;
    overflow-wrap: anywhere;
}

.learnio-teacher-report-hero p {
    color: var(--learnio-teacher-muted);
    line-height: 1.6;
    margin-bottom: 0;
    overflow-wrap: anywhere;
}

.learnio-teacher-attempt-meta {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.learnio-teacher-score-card {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
}

.learnio-teacher-questions-section {
    display: grid;
    gap: 1rem;
}

.learnio-teacher-question-section {
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    display: grid;
    gap: 0.9rem;
    padding-top: 1rem;
}

.learnio-teacher-question-section:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.learnio-teacher-question-section-header,
.learnio-teacher-question-heading {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.learnio-teacher-question-section-header h2 {
    color: var(--learnio-teacher-slate);
    font-size: 1.15rem;
    font-weight: 820;
    margin-bottom: 0.25rem;
    overflow-wrap: anywhere;
}

.learnio-teacher-question-section-header p {
    color: var(--learnio-teacher-muted);
    margin-bottom: 0;
}

.learnio-teacher-question-report {
    display: grid;
    gap: 0.8rem;
    min-width: 0;
    padding: 1rem;
}

.learnio-teacher-question-heading h2 {
    font-size: 1.05rem;
    line-height: 1.45;
}

.learnio-teacher-answer-box,
.learnio-teacher-feedback-box,
.learnio-teacher-correction-box {
    box-shadow: none;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 1rem;
}

.learnio-teacher-answer-box {
    background: #f8fafc;
}

.learnio-teacher-feedback-box {
    background: var(--learnio-teacher-soft-indigo);
    border-color: rgba(52, 66, 131, 0.18);
}

.learnio-teacher-correction-box {
    background: var(--learnio-teacher-soft-cyan);
    border-color: rgba(47, 127, 146, 0.18);
}

.learnio-teacher-answer-box h2,
.learnio-teacher-feedback-box h2,
.learnio-teacher-correction-box h2 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.learnio-teacher-answer-box p,
.learnio-teacher-feedback-box p,
.learnio-teacher-correction-box p {
    color: var(--learnio-teacher-slate);
    margin-bottom: 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

.learnio-teacher-latest-result {
    display: grid;
    gap: 1rem;
}

.learnio-teacher-latest-result h3 {
    color: var(--learnio-teacher-slate);
    font-size: 1.08rem;
    font-weight: 820;
    margin-bottom: 0.2rem;
    overflow-wrap: anywhere;
}

.learnio-teacher-grade {
    align-items: center;
    background: var(--learnio-teacher-soft-indigo);
    border-radius: 8px;
    color: var(--learnio-teacher-navy);
    display: inline-flex;
    font-size: 2rem;
    font-weight: 850;
    justify-content: center;
    min-height: 64px;
    padding: 0.5rem 1rem;
}

.learnio-teacher-empty {
    align-items: center;
    color: var(--learnio-teacher-muted);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 2rem;
    text-align: center;
}

.learnio-teacher-empty .fa-solid {
    color: var(--learnio-teacher-indigo);
    font-size: 1.6rem;
}

.learnio-teacher-empty-compact {
    box-shadow: none;
    padding: 1rem;
}

.learnio-parent-shell {
    --learnio-parent-blue: #245b9f;
    --learnio-parent-blue-dark: #173b68;
    --learnio-parent-teal: #257f78;
    --learnio-parent-slate: #1f2f46;
    --learnio-parent-muted: #64748b;
    --learnio-parent-bg: #f5f7fb;
    --learnio-parent-soft-blue: #eaf2fb;
    --learnio-parent-soft-teal: #e8f6f3;
    background:
        linear-gradient(180deg, #f3f7fb 0%, #f8fafc 48%, #ffffff 100%);
}

.learnio-parent-topbar {
    background: linear-gradient(135deg, var(--learnio-parent-blue-dark) 0%, var(--learnio-parent-blue) 58%, var(--learnio-parent-teal) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 14px 34px rgba(23, 59, 104, 0.16);
}

.learnio-parent-brand {
    color: #ffffff;
}

.learnio-parent-brand:hover,
.learnio-parent-brand:focus {
    color: #ffffff;
}

.learnio-parent-nav {
    gap: 0.25rem;
}

.learnio-parent-topbar .nav-link {
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.84);
    font-weight: 650;
}

.learnio-parent-topbar .nav-link:hover,
.learnio-parent-topbar .nav-link:focus {
    color: #ffffff;
}

.learnio-parent-topbar .nav-link.active,
.learnio-parent-topbar .nav-link[aria-current="page"] {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.learnio-parent-user-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.learnio-parent-user-chip {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 700;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.learnio-parent-main {
    padding-block: 1.75rem 2.75rem;
}

.learnio-parent-section {
    min-width: 0;
}

.learnio-parent-hero,
.learnio-parent-attempt-report,
.learnio-parent-answer-box,
.learnio-parent-card,
.learnio-parent-book-card,
.learnio-parent-book-report,
.learnio-parent-child-card,
.learnio-parent-claim-card,
.learnio-parent-correction-box,
.learnio-parent-detail-card,
.learnio-parent-feedback-box,
.learnio-parent-progress-card,
.learnio-parent-question-report,
.learnio-parent-report-hero,
.learnio-parent-reward-card,
.learnio-parent-review-panel,
.learnio-parent-result-card,
.learnio-parent-score-card,
.learnio-parent-xp-hero,
.learnio-parent-metric,
.learnio-parent-empty {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(23, 59, 104, 0.08);
}

.learnio-parent-hero {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1.5rem;
}

.learnio-parent-page-header {
    margin-bottom: 1rem;
}

.learnio-parent-hero h1,
.learnio-parent-detail-card h1,
.learnio-parent-report-hero h1,
.learnio-parent-xp-hero h1,
.learnio-parent-page-header h1 {
    color: var(--learnio-parent-slate);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 850;
    line-height: 1.06;
    margin: 0.35rem 0 0.5rem;
}

.learnio-parent-hero p,
.learnio-parent-detail-card p,
.learnio-parent-page-header p,
.learnio-parent-card p,
.learnio-parent-book-card p,
.learnio-parent-book-report p,
.learnio-parent-child-card p,
.learnio-parent-claim-card p,
.learnio-parent-progress-card p,
.learnio-parent-result-card p,
.learnio-parent-reward-card p,
.learnio-parent-review-panel p,
.learnio-parent-xp-hero p {
    color: var(--learnio-parent-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.learnio-parent-back-link {
    color: var(--learnio-parent-blue);
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 750;
    margin-bottom: 0.8rem;
    text-decoration: none;
}

.learnio-parent-back-link:hover,
.learnio-parent-back-link:focus {
    color: var(--learnio-parent-blue-dark);
    text-decoration: underline;
}

.learnio-parent-kicker {
    color: var(--learnio-parent-blue);
    display: block;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.learnio-parent-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.learnio-parent-metric-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.learnio-parent-metric {
    align-items: center;
    display: flex;
    gap: 0.8rem;
    justify-content: space-between;
    min-width: 0;
    padding: 1rem;
}

.learnio-parent-metric span,
.learnio-parent-meta span {
    color: var(--learnio-parent-muted);
    display: block;
    font-size: 0.84rem;
    font-weight: 750;
}

.learnio-parent-metric strong {
    color: var(--learnio-parent-slate);
    display: block;
    font-size: 1.65rem;
    line-height: 1.1;
}

.learnio-parent-metric .fa-solid {
    color: var(--learnio-parent-teal);
    font-size: 1.15rem;
}

.learnio-parent-dashboard-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
}

.learnio-parent-card {
    padding: 1.25rem;
}

.learnio-parent-detail-card {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1.45rem;
}

.learnio-parent-child-overview {
    align-items: flex-start;
}

.learnio-parent-detail-icon {
    color: var(--learnio-parent-teal);
    font-size: 1.65rem;
}

.learnio-parent-card-header,
.learnio-parent-child-card-header,
.learnio-parent-result-card-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.learnio-parent-card-header h2,
.learnio-parent-book-card h2,
.learnio-parent-book-report h2,
.learnio-parent-child-card-header h2,
.learnio-parent-claim-card h2,
.learnio-parent-feedback-box h2,
.learnio-parent-progress-card h2,
.learnio-parent-question-report h2,
.learnio-parent-question-section h2,
.learnio-parent-reward-card h2,
.learnio-parent-review-panel h2,
.learnio-parent-result-card h2,
.learnio-parent-score-card h2,
.learnio-parent-empty h2 {
    color: var(--learnio-parent-slate);
    font-size: 1.2rem;
    font-weight: 820;
    margin-bottom: 0.3rem;
    overflow-wrap: anywhere;
}

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

.learnio-parent-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1rem;
}

.learnio-parent-child-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    padding: 1.15rem;
}

.learnio-parent-status-chip {
    align-items: center;
    background: var(--learnio-parent-soft-teal);
    border: 1px solid rgba(37, 127, 120, 0.18);
    border-radius: 8px;
    color: #1f6b66;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.38rem 0.65rem;
    text-align: center;
}

.learnio-parent-meta {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.learnio-parent-meta div {
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    min-width: 0;
    padding: 0.8rem;
}

.learnio-parent-meta strong {
    color: var(--learnio-parent-slate);
    display: block;
    font-size: 1.1rem;
    line-height: 1.2;
    margin-top: 0.2rem;
    overflow-wrap: anywhere;
}

.learnio-parent-child-card .learnio-parent-action-row {
    margin-top: auto;
}

.learnio-parent-action-panel {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding: 0.85rem;
}

.learnio-parent-list,
.learnio-parent-progress-list {
    display: grid;
    gap: 0.75rem;
}

.learnio-parent-list-item,
.learnio-parent-progress-row {
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    min-width: 0;
    padding: 0.85rem;
}

.learnio-parent-list-item strong,
.learnio-parent-progress-row a {
    color: var(--learnio-parent-slate);
    display: block;
    font-weight: 800;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.learnio-parent-progress-row a:hover,
.learnio-parent-progress-row a:focus {
    color: var(--learnio-parent-blue);
    text-decoration: underline;
}

.learnio-parent-list-item span,
.learnio-parent-progress-row span {
    color: var(--learnio-parent-muted);
    display: block;
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

.learnio-parent-list-item-inline {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.learnio-parent-note {
    margin-top: 0.9rem;
}

.learnio-parent-progress-bar {
    background-color: #e5edf6;
    border-radius: 999px;
    height: 0.65rem;
    margin-block: 0.75rem;
}

.learnio-parent-progress-bar .progress-bar,
.learnio-parent-progress-row .progress-bar {
    background: linear-gradient(90deg, var(--learnio-parent-blue) 0%, var(--learnio-parent-teal) 100%);
}

.learnio-parent-progress-row .progress {
    background-color: #e5edf6;
    border-radius: 999px;
    height: 0.55rem;
    margin-top: 0.6rem;
}

.learnio-parent-progress-card,
.learnio-parent-result-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    padding: 1.15rem;
}

.learnio-parent-progress-card .fa-solid,
.learnio-parent-progress-card .fa-regular,
.learnio-parent-progress-card .fa-brands {
    color: var(--learnio-parent-teal);
    font-size: 1.35rem;
}

.learnio-parent-result-card .learnio-parent-action-row,
.learnio-parent-progress-card .learnio-parent-action-row,
.learnio-parent-book-card .learnio-parent-action-row,
.learnio-parent-reward-card .learnio-parent-action-row {
    margin-top: auto;
}

.learnio-parent-book-card,
.learnio-parent-claim-card,
.learnio-parent-reward-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    padding: 1.15rem;
}

.learnio-parent-book-report,
.learnio-parent-claim-card,
.learnio-parent-review-panel {
    padding: 1.25rem;
}

.learnio-parent-report-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1rem;
}

.learnio-parent-report-section {
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    margin-top: 1rem;
    min-width: 0;
    padding: 1rem;
}

.learnio-parent-report-section h2 {
    font-size: 1.05rem;
}

.learnio-parent-report-section p {
    overflow-wrap: anywhere;
}

.learnio-parent-feedback {
    background: var(--learnio-parent-soft-blue);
    border-color: rgba(36, 91, 159, 0.18);
}

.learnio-parent-xp-hero {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1.5rem;
}

.learnio-parent-xp-total {
    background: var(--learnio-parent-soft-blue);
    border: 1px solid rgba(36, 91, 159, 0.16);
    border-radius: 8px;
    min-width: 170px;
    padding: 1rem;
    text-align: center;
}

.learnio-parent-xp-total span {
    color: var(--learnio-parent-muted);
    display: block;
    font-size: 0.84rem;
    font-weight: 750;
}

.learnio-parent-xp-total strong {
    color: var(--learnio-parent-blue-dark);
    display: block;
    font-size: 2.25rem;
    font-weight: 850;
    line-height: 1.05;
}

.learnio-parent-xp-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.learnio-parent-xp-history {
    display: grid;
    gap: 1rem;
}

.learnio-parent-xp-day h2 {
    color: var(--learnio-parent-muted);
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.learnio-parent-xp-chip {
    background: var(--learnio-parent-soft-teal);
    border: 1px solid rgba(37, 127, 120, 0.18);
    border-radius: 8px;
    color: #1f6b66;
    flex: 0 0 auto;
    font-weight: 850;
    padding: 0.4rem 0.65rem;
}

.learnio-parent-review-panel {
    align-self: start;
}

.learnio-parent-review-panel textarea.form-control {
    min-height: 148px;
    resize: vertical;
}

.learnio-parent-attempt-report {
    display: grid;
    gap: 1rem;
    margin-inline: auto;
    max-width: 1080px;
    padding: 1.25rem;
}

.learnio-parent-report-hero {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.35rem;
}

.learnio-parent-attempt-meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.learnio-parent-score-card {
    padding: 1.25rem;
}

.learnio-parent-questions-section {
    display: grid;
    gap: 1rem;
}

.learnio-parent-question-section {
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    display: grid;
    gap: 0.9rem;
    padding-top: 1rem;
}

.learnio-parent-question-section:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.learnio-parent-question-section-header {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
}

.learnio-parent-question-section-header p {
    color: var(--learnio-parent-muted);
    margin-bottom: 0;
}

.learnio-parent-question-report {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
}

.learnio-parent-question-heading {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.learnio-parent-answer-box,
.learnio-parent-feedback-box,
.learnio-parent-correction-box {
    background: #f8fafc;
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: none;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 1rem;
}

.learnio-parent-answer-box h2,
.learnio-parent-feedback-box h2,
.learnio-parent-correction-box h2 {
    font-size: 1rem;
}

.learnio-parent-answer-box p,
.learnio-parent-feedback-box p,
.learnio-parent-correction-box p {
    margin-bottom: 0;
    overflow-wrap: anywhere;
}

.learnio-parent-feedback-box {
    background: var(--learnio-parent-soft-blue);
    border-color: rgba(36, 91, 159, 0.18);
}

.learnio-parent-correction-box {
    background: var(--learnio-parent-soft-teal);
    border-color: rgba(37, 127, 120, 0.18);
}

.learnio-parent-subject-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
}

.learnio-parent-subject-main {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.learnio-parent-filter-panel {
    align-self: start;
}

.learnio-parent-pagination {
    margin-top: 1rem;
}

.learnio-parent-latest-result {
    display: grid;
    gap: 1rem;
}

.learnio-parent-latest-result h3 {
    color: var(--learnio-parent-slate);
    font-size: 1.08rem;
    font-weight: 820;
    margin-bottom: 0.2rem;
    overflow-wrap: anywhere;
}

.learnio-parent-grade {
    align-items: center;
    background: var(--learnio-parent-soft-blue);
    border-radius: 8px;
    color: var(--learnio-parent-blue-dark);
    display: inline-flex;
    font-size: 2rem;
    font-weight: 850;
    justify-content: center;
    min-height: 64px;
    padding: 0.5rem 1rem;
}

.learnio-parent-empty {
    align-items: center;
    color: var(--learnio-parent-muted);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 2rem;
    text-align: center;
}

.learnio-parent-empty .fa-solid {
    color: var(--learnio-parent-blue);
    font-size: 1.6rem;
}

.learnio-parent-empty-compact {
    box-shadow: none;
    padding: 1rem;
}

.learnio-child-shell {
    --learnio-child-blue: #2f6fd6;
    --learnio-child-blue-dark: #204f9d;
    --learnio-child-yellow: #f4bd47;
    --learnio-child-green: #2f9e75;
    --learnio-child-coral: #e76f61;
    --learnio-child-bg: #fffaf0;
    --learnio-child-soft-blue: #edf5ff;
    --learnio-child-soft-yellow: #fff6dc;
    --learnio-child-soft-green: #eaf8f0;
    --learnio-child-soft-coral: #fff0ee;
    background:
        linear-gradient(180deg, rgba(237, 245, 255, 0.92) 0%, rgba(255, 250, 240, 0.98) 48%, #ffffff 100%);
}

.learnio-child-topbar {
    background: linear-gradient(135deg, var(--learnio-child-blue-dark) 0%, var(--learnio-child-blue) 62%, #3a86d9 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 34px rgba(31, 79, 157, 0.18);
}

.learnio-child-brand {
    color: #ffffff;
    letter-spacing: 0.01em;
}

.learnio-child-brand:hover,
.learnio-child-brand:focus {
    color: #ffffff;
}

.learnio-child-nav {
    gap: 0.2rem;
}

.learnio-child-topbar .nav-link {
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 650;
}

.learnio-child-topbar .nav-link:hover,
.learnio-child-topbar .nav-link:focus {
    color: #ffffff;
}

.learnio-child-topbar .nav-link.active,
.learnio-child-topbar .nav-link[aria-current="page"] {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.learnio-child-user-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.learnio-child-user-chip {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    font-weight: 700;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.learnio-child-main {
    padding-block: 1.75rem 2.75rem;
}

.learnio-child-section {
    min-width: 0;
}

.learnio-child-hero {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    margin-bottom: 1rem;
}

.learnio-child-hero-copy,
.learnio-child-card,
.learnio-child-action-card,
.learnio-child-metric {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(31, 79, 157, 0.09);
}

.learnio-child-hero-copy {
    padding: 1.5rem;
}

.learnio-child-hero-copy h1 {
    color: #153766;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 850;
    line-height: 1;
    margin: 0.75rem 0 0.75rem;
}

.learnio-child-hero-copy p {
    color: #516070;
    font-size: 1.08rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    max-width: 680px;
}

.learnio-child-hero-actions,
.learnio-child-action-buttons,
.learnio-child-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.learnio-child-card {
    padding: 1.25rem;
}

.learnio-child-hero-xp h2,
.learnio-child-card h2,
.learnio-child-action-card h2 {
    color: #153766;
    font-size: 1.22rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.learnio-child-kicker {
    color: var(--learnio-child-blue-dark);
    display: block;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.learnio-child-status-chip {
    align-items: center;
    border: 1px solid rgba(47, 111, 214, 0.2);
    border-radius: 8px;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.38rem 0.65rem;
}

.learnio-child-hero-copy .learnio-child-status-chip {
    background: var(--learnio-child-soft-yellow);
    color: #805a05;
}

.learnio-child-icon {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    flex: 0 0 auto;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.learnio-child-icon-blue {
    background: var(--learnio-child-soft-blue);
    color: var(--learnio-child-blue);
}

.learnio-child-icon-yellow {
    background: var(--learnio-child-soft-yellow);
    color: #9a6a05;
}

.learnio-child-icon-green {
    background: var(--learnio-child-soft-green);
    color: var(--learnio-child-green);
}

.learnio-child-icon-coral {
    background: var(--learnio-child-soft-coral);
    color: var(--learnio-child-coral);
}

.learnio-child-progress {
    background: #e6edf7;
    height: 0.8rem;
}

.learnio-child-progress .progress-bar {
    background: linear-gradient(90deg, var(--learnio-child-blue), var(--learnio-child-green));
}

.learnio-child-action-card {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1.25rem;
}

.learnio-child-action-card p {
    color: #64748b;
    margin-bottom: 0;
}

.learnio-child-metric-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.learnio-child-metric {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    min-width: 0;
    padding: 1rem;
}

.learnio-child-metric span:not(.learnio-child-icon) {
    color: #64748b;
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
}

.learnio-child-metric strong {
    color: #153766;
    display: block;
    font-size: 1.6rem;
    line-height: 1.1;
}

.learnio-child-dashboard-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    margin-bottom: 1rem;
}

.learnio-child-side-stack {
    display: grid;
    gap: 1rem;
}

.learnio-child-card-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.learnio-child-card-header h2 {
    margin-bottom: 0;
}

.learnio-child-list {
    display: grid;
    gap: 0.75rem;
}

.learnio-child-list-item {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.9rem;
}

.learnio-child-list-item h3,
.learnio-child-result-summary h3 {
    color: #153766;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.learnio-child-list-item p,
.learnio-child-result-summary p,
.learnio-child-card p {
    color: #64748b;
}

.learnio-child-list-item p,
.learnio-child-result-summary p {
    font-size: 0.92rem;
    margin-bottom: 0;
}

.learnio-child-mini-stats {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.learnio-child-mini-stats div {
    background: #f8fbff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    padding: 0.8rem;
}

.learnio-child-mini-stats strong {
    color: #153766;
    display: block;
    font-size: 1.45rem;
    line-height: 1;
}

.learnio-child-mini-stats span {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 700;
}

.learnio-child-latest-card {
    margin-bottom: 0;
}

.learnio-child-result-summary {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.learnio-child-grade {
    align-items: center;
    background: var(--learnio-child-soft-yellow);
    border-radius: 8px;
    color: #805a05;
    display: inline-flex;
    font-size: 1.8rem;
    font-weight: 850;
    justify-content: center;
    min-height: 58px;
    min-width: 72px;
    padding: 0.5rem;
}

.learnio-child-empty {
    align-items: center;
    color: #64748b;
    display: flex;
    gap: 0.6rem;
    padding: 1rem;
}

.learnio-child-empty .fa-solid {
    color: var(--learnio-child-blue);
}

.learnio-child-page-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.learnio-child-page-header h1 {
    color: #153766;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 850;
    line-height: 1.05;
    margin: 0.35rem 0 0.5rem;
}

.learnio-child-page-header p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 760px;
}

.learnio-child-back-link {
    color: var(--learnio-child-blue-dark);
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 750;
    margin-bottom: 0.75rem;
    text-decoration: none;
}

.learnio-child-back-link:hover,
.learnio-child-back-link:focus {
    color: var(--learnio-child-blue);
    text-decoration: underline;
}

.learnio-child-filter-panel,
.learnio-child-assignment-card,
.learnio-child-result-card,
.learnio-child-progress-card,
.learnio-child-detail-card,
.learnio-child-section-block {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(31, 79, 157, 0.08);
}

.learnio-child-filter-panel {
    margin-bottom: 1rem;
    padding: 1rem;
}

.learnio-child-filter-panel .form-label {
    color: #516070;
    font-weight: 750;
}

.learnio-child-assignment-list {
    gap: 0.9rem;
}

.learnio-child-assignment-card {
    align-items: stretch;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 1.15rem;
}

.learnio-child-assignment-card.is-muted {
    opacity: 0.78;
}

.learnio-child-assignment-main,
.learnio-child-card-header > div {
    min-width: 0;
}

.learnio-child-card-header h2,
.learnio-child-section-block h2,
.learnio-child-breakdown h2 {
    color: #153766;
    font-size: 1.18rem;
    font-weight: 820;
    overflow-wrap: anywhere;
}

.learnio-child-card-actions {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    justify-content: center;
}

.learnio-child-card-actions form {
    margin: 0;
}

.learnio-child-card-actions .btn {
    min-width: 132px;
}

.learnio-child-meta {
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.92rem;
    font-weight: 700;
    gap: 0.55rem 1rem;
}

.learnio-child-meta span {
    overflow-wrap: anywhere;
}

.learnio-child-status-blue {
    background: var(--learnio-child-soft-blue);
    color: var(--learnio-child-blue-dark);
}

.learnio-child-status-yellow {
    background: var(--learnio-child-soft-yellow);
    color: #805a05;
}

.learnio-child-status-green {
    background: var(--learnio-child-soft-green);
    color: #1f7558;
}

.learnio-child-status-coral {
    background: var(--learnio-child-soft-coral);
    color: #a33e32;
}

.learnio-child-status-muted {
    background: #f1f5f9;
    color: #475569;
}

.learnio-child-detail-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
}

.learnio-child-detail-card {
    padding: 1.25rem;
}

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

.learnio-child-meta-grid div {
    background: #f8fbff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    min-width: 0;
    padding: 0.85rem;
}

.learnio-child-meta-grid span,
.learnio-child-result-score span,
.learnio-child-progress-label span {
    color: #64748b;
    display: block;
    font-size: 0.82rem;
    font-weight: 750;
}

.learnio-child-meta-grid strong {
    color: #153766;
    display: block;
    font-size: 1rem;
    margin-top: 0.2rem;
    overflow-wrap: anywhere;
}

.learnio-child-instructions {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

.learnio-child-instructions h2 {
    color: #153766;
    font-size: 1.1rem;
    font-weight: 820;
}

.learnio-child-instructions p,
.learnio-child-action-panel p {
    color: #64748b;
    line-height: 1.65;
}

.learnio-child-action-panel {
    align-self: start;
}

.learnio-child-result-card,
.learnio-child-progress-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    padding: 1.15rem;
}

.learnio-child-result-card .learnio-child-card-actions {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: auto;
}

.learnio-child-result-score {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.learnio-child-result-score div {
    background: #f8fbff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    padding: 0.85rem;
}

.learnio-child-result-score strong {
    color: #153766;
    display: block;
    font-size: 1.55rem;
    line-height: 1.1;
    margin-top: 0.15rem;
}

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

.learnio-child-progress-card .learnio-child-card-header {
    margin-bottom: 0;
}

.learnio-child-progress-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.learnio-child-progress-label {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.learnio-child-progress-label strong {
    color: #153766;
}

.learnio-child-pagination {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1rem;
}

.learnio-child-subject-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.learnio-child-breakdown,
.learnio-child-section-block {
    margin-bottom: 1rem;
    padding: 1.15rem;
}

.learnio-child-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.learnio-child-section-block > .learnio-child-card-header {
    margin-bottom: 1rem;
}

.learnio-child-book-grid,
.learnio-child-reward-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.learnio-child-book-card,
.learnio-child-book-form,
.learnio-child-book-detail,
.learnio-child-xp-hero,
.learnio-child-xp-history,
.learnio-child-reward-card,
.learnio-child-claim-card,
.learnio-child-form-section {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(31, 79, 157, 0.08);
}

.learnio-child-book-card,
.learnio-child-reward-card,
.learnio-child-claim-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    padding: 1.15rem;
}

.learnio-child-book-card .learnio-child-card-actions,
.learnio-child-reward-card .learnio-child-card-actions,
.learnio-child-claim-card .learnio-child-card-actions {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: auto;
}

.learnio-child-book-form,
.learnio-child-book-detail {
    padding: 1.25rem;
}

.learnio-child-form-section {
    margin-bottom: 1rem;
    padding: 1.15rem;
}

.learnio-child-form-section:last-of-type {
    margin-bottom: 0;
}

.learnio-child-form-section-header {
    margin-bottom: 1rem;
}

.learnio-child-form-section-header h2,
.learnio-child-readable-block h2,
.learnio-child-xp-history h2 {
    color: #153766;
    font-size: 1.15rem;
    font-weight: 820;
    margin-bottom: 0.25rem;
}

.learnio-child-form-section-header p,
.learnio-child-readable-block p,
.learnio-child-xp-history p,
.learnio-child-reward-card p,
.learnio-child-claim-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0;
}

.learnio-child-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

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

.learnio-child-readable-block {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    margin-top: 1.15rem;
    padding-top: 1.15rem;
}

.learnio-child-feedback {
    background: var(--learnio-child-soft-blue);
    border: 1px solid rgba(47, 111, 214, 0.16);
    border-radius: 8px;
    padding: 1rem;
}

.learnio-child-xp-hero {
    align-items: stretch;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 1fr);
    margin-bottom: 1rem;
    padding: 1.25rem;
}

.learnio-child-xp-total {
    color: #153766;
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 850;
    line-height: 1;
    margin: 0.35rem 0;
}

.learnio-child-xp-hero p {
    color: #64748b;
    margin-bottom: 0;
}

.learnio-child-xp-progress {
    align-self: center;
    min-width: 0;
}

.learnio-child-xp-history {
    padding: 1.25rem;
}

.learnio-child-xp-day {
    margin-top: 1rem;
}

.learnio-child-xp-day h3 {
    color: #64748b;
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 0.65rem;
}

.learnio-child-xp-event {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.9rem;
}

.learnio-child-xp-event h4 {
    color: #153766;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.learnio-child-xp-event p {
    color: #64748b;
    font-size: 0.92rem;
    margin-bottom: 0;
}

.learnio-child-affordability {
    margin-top: auto;
}

.learnio-child-claim-form {
    align-self: start;
}

.learnio-child-claim-form .learnio-child-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.learnio-child-claim-form .btn {
    width: 100%;
}

.learnio-child-claim-detail {
    padding: 1.25rem;
}

.learnio-child-attempt-shell .container-fluid {
    max-width: 1120px;
}

.learnio-child-attempt-card,
.learnio-child-question-card,
.learnio-child-attempt-actions {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(31, 79, 157, 0.07);
}

.learnio-child-attempt-card {
    margin-bottom: 1rem;
    padding: 1.25rem;
}

.learnio-child-autosave-status {
    align-items: center;
    background: #eef6ff;
    border: 1px solid rgba(47, 111, 214, 0.18);
    border-radius: 8px;
    color: #24456f;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
    max-width: 100%;
    padding: 0.55rem 0.75rem;
}

.learnio-child-autosave-status.is-saving {
    background: #fff8e8;
    border-color: rgba(244, 189, 71, 0.32);
    color: #6f520c;
}

.learnio-child-autosave-status.is-saved {
    background: #eefbf5;
    border-color: rgba(34, 197, 94, 0.24);
    color: #12653d;
}

.learnio-child-autosave-status.is-error,
.learnio-child-autosave-status.is-local {
    background: #fff1f2;
    border-color: rgba(244, 63, 94, 0.24);
    color: #9f1239;
}

.learnio-child-attempt-content {
    background: #f8fbff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 1rem;
    padding: 1rem;
}

.learnio-child-question-list {
    display: grid;
    gap: 1rem;
}

.learnio-child-question-card {
    min-width: 0;
    padding: 1.15rem;
}

.learnio-child-question-meta {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.learnio-child-question-meta > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.learnio-child-question-meta strong {
    color: #153766;
    flex: 0 0 auto;
    font-size: 0.95rem;
}

.learnio-child-question-text {
    color: #153766;
    font-size: 1.05rem;
    font-weight: 780;
    line-height: 1.65;
    margin-bottom: 0.75rem;
    overflow-wrap: anywhere;
}

.learnio-child-question-help {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.learnio-child-answer-control .form-control {
    border-color: rgba(148, 163, 184, 0.55);
    font-size: 1rem;
    line-height: 1.55;
    min-height: 46px;
}

.learnio-child-answer-control textarea.form-control {
    min-height: 132px;
}

.learnio-child-word-counter {
    color: #64748b;
    font-size: 0.88rem;
    margin-top: 0.4rem;
    text-align: right;
}

.learnio-child-answer-control .form-control:focus,
.learnio-child-choice-item:focus-within {
    border-color: var(--learnio-child-blue);
    box-shadow: 0 0 0 0.18rem rgba(47, 111, 214, 0.16);
}

.learnio-child-choice-list {
    display: grid;
    gap: 0.65rem;
}

.learnio-child-choice-item {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 8px;
    color: #334155;
    cursor: pointer;
    display: flex;
    gap: 0.75rem;
    line-height: 1.55;
    min-height: 48px;
    padding: 0.85rem;
}

.learnio-child-choice-item.is-readonly {
    background: #f8fbff;
    cursor: default;
}

.learnio-child-choice-item .form-check-input {
    flex: 0 0 auto;
    margin-top: 0.25rem;
}

.learnio-child-choice-item span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.learnio-child-attempt-shell .learnio-child-feedback,
.learnio-child-attempt-shell .learnio-child-correction {
    border-radius: 8px;
    line-height: 1.6;
}

.learnio-child-attempt-shell .learnio-child-feedback {
    background: var(--learnio-child-soft-blue);
    border: 1px solid rgba(47, 111, 214, 0.16);
    color: #24456f;
    margin-top: 1rem;
    padding: 1rem;
}

.learnio-child-attempt-shell .learnio-child-feedback h2,
.learnio-child-attempt-shell .learnio-child-correction h2,
.learnio-child-attempt-actions h2 {
    color: #153766;
    font-size: 1.05rem;
    font-weight: 820;
    margin-bottom: 0.3rem;
}

.learnio-child-attempt-shell .learnio-child-feedback p,
.learnio-child-attempt-shell .learnio-child-correction p,
.learnio-child-attempt-actions p {
    color: #64748b;
    margin-bottom: 0;
}

.learnio-child-attempt-shell .learnio-child-correction {
    background: var(--learnio-child-soft-yellow);
    border: 1px solid rgba(244, 189, 71, 0.22);
    color: #6f520c;
    padding: 1rem;
}

.learnio-child-attempt-shell .learnio-child-feedback .learnio-child-correction {
    margin-top: 1rem;
}

.learnio-child-attempt-actions {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.15rem;
}

.learnio-test-preview-page {
    padding-block: 1.25rem 2rem;
}

.learnio-test-preview-toolbar,
.learnio-test-preview-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
}

.learnio-test-preview-toolbar {
    margin-bottom: 1rem;
}

.learnio-test-preview-banner {
    align-items: flex-start;
    background: #eaf3ff;
    border: 1px solid rgba(47, 111, 214, 0.24);
    border-radius: 8px;
    color: #153766;
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1.1rem;
}

.learnio-test-preview-banner h1 {
    font-size: 1.3rem;
    font-weight: 820;
    margin-bottom: 0.25rem;
}

.learnio-test-preview-banner p {
    color: #475569;
    margin-bottom: 0;
}

.learnio-test-preview-icon {
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    color: #2f6fd6;
    display: inline-flex;
    flex: 0 0 42px;
    height: 42px;
    justify-content: center;
}

.learnio-test-preview-simulation {
    margin-inline: auto;
    max-width: 980px;
    min-width: 0;
}

.learnio-test-preview-simulation .learnio-child-page-header h2 {
    color: #153766;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 850;
    margin-bottom: 0.35rem;
    overflow-wrap: anywhere;
}

.learnio-test-preview-empty {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px dashed rgba(148, 163, 184, 0.55);
    border-radius: 8px;
    color: #475569;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 2rem 1rem;
    text-align: center;
}

.learnio-test-preview-empty h2 {
    color: #153766;
    font-size: 1.1rem;
    margin: 0;
}

.learnio-test-preview-empty .fa-solid {
    color: #2f6fd6;
    font-size: 1.5rem;
}

.learnio-test-preview-actions {
    justify-content: flex-end;
    margin-top: 1rem;
}

@media (max-width: 991.98px) {
    .learnio-topbar .navbar-collapse {
        padding-top: 0.75rem;
    }

    .learnio-admin-topbar .navbar-collapse {
        padding-top: 0.85rem;
    }

    .learnio-topbar .navbar-nav {
        gap: 0.25rem;
        margin-bottom: 0.75rem;
    }

    .learnio-admin-user-actions {
        align-items: stretch;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        margin-top: 0.85rem;
        padding-top: 0.85rem;
    }

    .learnio-topbar .nav-link {
        padding-block: 0.6rem;
    }

    .learnio-page-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .learnio-admin-page-header,
    .learnio-admin-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .learnio-admin-dashboard-grid,
    .learnio-admin-detail-grid,
    .learnio-admin-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .learnio-admin-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .learnio-admin-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .learnio-public-hero {
        padding: 3.5rem 0 2.5rem;
    }

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

    .learnio-trust-band {
        grid-template-columns: 1fr;
    }

    .learnio-app-topbar .container {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.8rem;
    }

    .learnio-app-nav-actions {
        justify-content: flex-start;
        margin-left: 0;
        width: 100%;
    }

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

    .learnio-teacher-hero,
    .learnio-teacher-card-header,
    .learnio-teacher-child-card-header,
    .learnio-teacher-detail-card,
    .learnio-teacher-report-hero,
    .learnio-teacher-question-heading,
    .learnio-teacher-question-section-header,
    .learnio-teacher-result-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .learnio-teacher-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .learnio-teacher-detail-overview {
        grid-template-columns: 1fr;
    }

    .learnio-teacher-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .learnio-teacher-attempt-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .learnio-teacher-subject-grid {
        grid-template-columns: 1fr;
    }

    .learnio-parent-hero,
    .learnio-parent-detail-card,
    .learnio-parent-report-hero,
    .learnio-parent-xp-hero,
    .learnio-parent-card-header,
    .learnio-parent-child-card-header,
    .learnio-parent-result-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .learnio-parent-dashboard-grid,
    .learnio-parent-subject-grid {
        grid-template-columns: 1fr;
    }

    .learnio-parent-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .learnio-parent-attempt-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .learnio-parent-grid,
    .learnio-parent-summary-grid,
    .learnio-parent-report-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .learnio-child-hero,
    .learnio-child-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .learnio-child-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .learnio-child-page-header,
    .learnio-child-detail-grid {
        grid-template-columns: 1fr;
    }

    .learnio-child-page-header {
        flex-direction: column;
    }

    .learnio-child-progress-grid {
        grid-template-columns: 1fr;
    }

    .learnio-child-subject-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .learnio-child-book-grid,
    .learnio-child-reward-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .learnio-child-xp-hero {
        grid-template-columns: 1fr;
    }

    .learnio-child-attempt-shell .container-fluid {
        max-width: 860px;
    }

    .learnio-child-attempt-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .learnio-main {
        padding-block: 1rem;
    }

    .learnio-admin-main {
        padding-block: 1rem 1.5rem;
    }

    .learnio-admin-user-actions,
    .learnio-admin-user-actions form,
    .learnio-admin-user-actions .btn {
        width: 100%;
    }

    .learnio-admin-user-chip {
        max-width: 100%;
        white-space: normal;
        width: 100%;
    }

    .learnio-admin-page-header,
    .learnio-admin-card,
    .learnio-admin-metric,
    .learnio-admin-compact-list,
    .learnio-admin-list-card,
    .learnio-admin-empty,
    .learnio-admin-filter,
    .learnio-admin-table-panel,
    .learnio-admin-form-card {
        padding: 1rem;
    }

    .learnio-admin-page-header h1 {
        font-size: 2rem;
    }

    .learnio-admin-dashboard-grid,
    .learnio-admin-detail-grid,
    .learnio-admin-card-grid,
    .learnio-admin-filter-grid {
        grid-template-columns: 1fr;
    }

    .learnio-admin-form-grid {
        grid-template-columns: 1fr;
    }

    .learnio-admin-actions,
    .learnio-admin-action-group,
    .learnio-admin-form-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .learnio-admin-actions .btn,
    .learnio-admin-action-group .btn,
    .learnio-admin-action-group form,
    .learnio-admin-form-actions .btn,
    .learnio-admin-inline-form .btn {
        width: 100%;
    }

    .learnio-admin-toolbar,
    .learnio-admin-pagination,
    .learnio-admin-mobile-stack,
    .learnio-admin-builder-header,
    .learnio-admin-question-header {
        align-items: stretch;
        flex-direction: column;
    }

    .learnio-admin-fieldset,
    .learnio-admin-inline-form,
    .learnio-admin-danger-zone,
    .learnio-admin-builder-section,
    .learnio-admin-question-card,
    .learnio-admin-answer-card,
    .learnio-admin-grading-panel,
    .learnio-admin-warning-panel,
    .learnio-admin-review-panel,
    .learnio-admin-report-card,
    .learnio-admin-note-box,
    .learnio-admin-decision-panel {
        padding: 1rem;
    }

    .learnio-panel,
    .learnio-card {
        box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
    }

    .learnio-panel.p-4,
    .learnio-card {
        padding: 1rem !important;
    }

    .learnio-filter {
        padding: 0.85rem;
    }

    .learnio-page-header {
        margin-bottom: 1rem;
    }

    .learnio-page-actions .btn,
    .learnio-action-bar .btn,
    .learnio-button-row .btn,
    .learnio-button-row form,
    .learnio-table-actions .btn,
    .learnio-table-actions form {
        width: 100%;
    }

    .learnio-action-bar {
        align-items: stretch;
    }

    .learnio-action-bar .learnio-button-row {
        width: 100%;
    }

    .learnio-user-chip {
        max-width: 100%;
        white-space: normal;
    }

    .learnio-guest-main {
        min-height: auto;
    }

    .learnio-public-hero {
        padding: 2.5rem 0 1.5rem;
    }

    .learnio-hero-title {
        font-size: 3rem;
    }

    .learnio-hero-actions,
    .learnio-error-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .learnio-hero-actions .btn,
    .learnio-error-actions .btn,
    .learnio-final-cta .btn {
        width: 100%;
    }

    .learnio-role-grid {
        grid-template-columns: 1fr;
    }

    .learnio-public-section {
        padding: 2.25rem 0;
    }

    .learnio-hero-summary,
    .learnio-role-card,
    .learnio-value-card,
    .learnio-step-card,
    .learnio-login-card,
    .learnio-error-card,
    .learnio-final-cta-inner {
        padding: 1rem;
    }

    .learnio-trust-band {
        padding: 1.25rem;
    }

    .learnio-login-shell,
    .learnio-error-shell {
        min-height: auto;
        padding: 2rem 0;
    }

    .learnio-login-card .form-control {
        font-size: 1rem;
    }

    .learnio-app-main {
        padding: 1.25rem 0;
    }

    .learnio-app-nav-actions .btn,
    .learnio-app-nav-actions form,
    .learnio-app-nav-actions form .btn {
        width: 100%;
    }

    .learnio-app-user {
        max-width: 100%;
        white-space: normal;
        width: 100%;
    }

    .learnio-portal-header {
        margin-bottom: 1rem;
    }

    .learnio-portal-grid {
        grid-template-columns: 1fr;
    }

    .learnio-portal-card,
    .learnio-portal-empty {
        padding: 1rem;
    }

    .learnio-portal-card .btn {
        width: 100%;
    }

    .learnio-teacher-main {
        padding-block: 1rem 1.5rem;
    }

    .learnio-teacher-user-actions,
    .learnio-teacher-user-actions form,
    .learnio-teacher-user-actions .btn {
        width: 100%;
    }

    .learnio-teacher-user-chip {
        max-width: 100%;
        white-space: normal;
        width: 100%;
    }

    .learnio-teacher-hero,
    .learnio-teacher-card,
    .learnio-teacher-child-card,
    .learnio-teacher-detail-card,
    .learnio-teacher-metric,
    .learnio-teacher-report-hero,
    .learnio-teacher-score-card,
    .learnio-teacher-progress-card,
    .learnio-teacher-question-report,
    .learnio-teacher-result-card,
    .learnio-teacher-answer-box,
    .learnio-teacher-feedback-box,
    .learnio-teacher-correction-box,
    .learnio-teacher-empty {
        padding: 1rem;
    }

    .learnio-teacher-hero h1,
    .learnio-teacher-page-header h1,
    .learnio-teacher-detail-card h1,
    .learnio-teacher-report-hero h1 {
        font-size: 2rem;
    }

    .learnio-teacher-metric-grid,
    .learnio-teacher-grid,
    .learnio-teacher-meta,
    .learnio-teacher-attempt-meta,
    .learnio-teacher-subject-grid {
        grid-template-columns: 1fr;
    }

    .learnio-teacher-action-row,
    .learnio-teacher-action-panel,
    .learnio-teacher-child-card .learnio-teacher-action-row {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .learnio-teacher-action-row .btn,
    .learnio-teacher-action-panel .btn,
    .learnio-teacher-child-card .btn,
    .learnio-teacher-detail-card .btn,
    .learnio-teacher-progress-card > .btn,
    .learnio-teacher-result-card > .btn {
        width: 100%;
    }

    .learnio-teacher-list-item {
        flex-direction: column;
    }

    .learnio-teacher-status-chip,
    .learnio-teacher-permission-chip {
        max-width: 100%;
        white-space: normal;
    }

    .learnio-parent-main {
        padding-block: 1rem 1.5rem;
    }

    .learnio-parent-user-actions,
    .learnio-parent-user-actions form,
    .learnio-parent-user-actions .btn {
        width: 100%;
    }

    .learnio-parent-user-chip {
        max-width: 100%;
        white-space: normal;
        width: 100%;
    }

    .learnio-parent-hero,
    .learnio-parent-card,
    .learnio-parent-attempt-report,
    .learnio-parent-answer-box,
    .learnio-parent-book-card,
    .learnio-parent-book-report,
    .learnio-parent-child-card,
    .learnio-parent-claim-card,
    .learnio-parent-correction-box,
    .learnio-parent-detail-card,
    .learnio-parent-feedback-box,
    .learnio-parent-progress-card,
    .learnio-parent-question-report,
    .learnio-parent-report-hero,
    .learnio-parent-reward-card,
    .learnio-parent-review-panel,
    .learnio-parent-result-card,
    .learnio-parent-score-card,
    .learnio-parent-xp-hero,
    .learnio-parent-metric,
    .learnio-parent-empty {
        padding: 1rem;
    }

    .learnio-parent-hero h1,
    .learnio-parent-detail-card h1,
    .learnio-parent-report-hero h1,
    .learnio-parent-xp-hero h1,
    .learnio-parent-page-header h1 {
        font-size: 2rem;
    }

    .learnio-parent-metric-grid,
    .learnio-parent-grid,
    .learnio-parent-attempt-meta,
    .learnio-parent-summary-grid,
    .learnio-parent-report-grid,
    .learnio-parent-subject-grid,
    .learnio-parent-meta {
        grid-template-columns: 1fr;
    }

    .learnio-parent-action-row,
    .learnio-parent-action-panel,
    .learnio-parent-child-card .learnio-parent-action-row {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .learnio-parent-action-row .btn,
    .learnio-parent-action-panel .btn,
    .learnio-parent-book-card .btn,
    .learnio-parent-child-card .btn,
    .learnio-parent-progress-card .btn,
    .learnio-parent-reward-card .btn,
    .learnio-parent-review-panel .btn,
    .learnio-parent-result-card .btn {
        width: 100%;
    }

    .learnio-parent-list-item-inline,
    .learnio-parent-question-heading,
    .learnio-parent-question-section-header,
    .learnio-parent-report-hero,
    .learnio-parent-xp-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .learnio-parent-xp-total {
        width: 100%;
    }

    .learnio-parent-status-chip {
        max-width: 100%;
        white-space: normal;
    }

    .learnio-child-main {
        padding-block: 1rem 1.5rem;
    }

    .learnio-child-user-actions,
    .learnio-child-user-actions form,
    .learnio-child-user-actions .btn {
        width: 100%;
    }

    .learnio-child-user-chip {
        max-width: 100%;
        white-space: normal;
        width: 100%;
    }

    .learnio-child-hero-copy,
    .learnio-child-card,
    .learnio-child-action-card,
    .learnio-child-metric {
        padding: 1rem;
    }

    .learnio-child-hero-actions .btn,
    .learnio-child-action-buttons .btn,
    .learnio-child-inline-actions .btn {
        width: 100%;
    }

    .learnio-child-action-card {
        align-items: stretch;
        flex-direction: column;
    }

    .learnio-child-metric-grid {
        grid-template-columns: 1fr;
    }

    .learnio-child-card-header,
    .learnio-child-list-item,
    .learnio-child-result-summary {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .learnio-child-card-header,
    .learnio-child-list-item {
        flex-direction: column;
    }

    .learnio-child-result-summary .btn {
        width: 100%;
    }

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

    .learnio-child-page-header h1 {
        font-size: 2rem;
    }

    .learnio-child-filter-panel,
    .learnio-child-assignment-card,
    .learnio-child-result-card,
    .learnio-child-progress-card,
    .learnio-child-detail-card,
    .learnio-child-breakdown,
    .learnio-child-section-block {
        padding: 1rem;
    }

    .learnio-child-assignment-card {
        grid-template-columns: 1fr;
    }

    .learnio-child-card-actions,
    .learnio-child-result-card .learnio-child-card-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .learnio-child-card-actions .btn,
    .learnio-child-card-actions form,
    .learnio-child-card-actions form .btn,
    .learnio-child-filter-panel .btn,
    .learnio-child-pagination .btn {
        width: 100%;
    }

    .learnio-child-meta-grid,
    .learnio-child-progress-metrics,
    .learnio-child-result-score,
    .learnio-child-subject-metrics {
        grid-template-columns: 1fr;
    }

    .learnio-child-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .learnio-child-pagination .learnio-child-inline-actions {
        width: 100%;
    }

    .learnio-child-status-chip {
        max-width: 100%;
        white-space: normal;
    }

    .learnio-child-book-grid,
    .learnio-child-reward-grid,
    .learnio-child-readable-grid,
    .learnio-child-claim-form .learnio-child-meta-grid {
        grid-template-columns: 1fr;
    }

    .learnio-child-book-card,
    .learnio-child-book-form,
    .learnio-child-book-detail,
    .learnio-child-xp-hero,
    .learnio-child-xp-history,
    .learnio-child-reward-card,
    .learnio-child-claim-card,
    .learnio-child-form-section {
        padding: 1rem;
    }

    .learnio-child-book-card .learnio-child-card-actions,
    .learnio-child-reward-card .learnio-child-card-actions,
    .learnio-child-claim-card .learnio-child-card-actions,
    .learnio-child-form-actions,
    .learnio-child-xp-event {
        align-items: stretch;
        flex-direction: column;
    }

    .learnio-child-book-card .btn,
    .learnio-child-reward-card .btn,
    .learnio-child-claim-card .btn,
    .learnio-child-form-actions .btn {
        width: 100%;
    }

    .learnio-child-xp-total {
        font-size: 2.4rem;
    }

    .learnio-child-attempt-card,
    .learnio-child-question-card,
    .learnio-child-attempt-actions {
        padding: 1rem;
    }

    .learnio-child-question-meta {
        flex-direction: column;
        gap: 0.65rem;
    }

    .learnio-child-answer-control .form-control {
        font-size: 1rem;
    }

    .learnio-child-choice-item {
        min-height: 52px;
        padding: 0.95rem;
    }

    .learnio-child-attempt-actions .learnio-child-inline-actions,
    .learnio-child-attempt-actions .btn {
        width: 100%;
    }
}

/* Dark theme pass for custom Learnio surfaces. */
[data-bs-theme="dark"] .learnio-body,
[data-bs-theme="dark"] .learnio-shell,
[data-bs-theme="dark"] .learnio-app-shell,
[data-bs-theme="dark"] .learnio-guest-shell {
    background: var(--learnio-theme-bg);
    color: var(--learnio-theme-text);
}

[data-bs-theme="dark"] .learnio-admin-shell {
    --learnio-admin-ink: #e5e7eb;
    --learnio-admin-muted: #a7b2c4;
    --learnio-admin-navy: #0b1120;
    --learnio-admin-blue: #9bb1ff;
    --learnio-admin-teal: #7dd3c7;
    --learnio-admin-soft: rgba(96, 165, 250, 0.14);
    background:
        radial-gradient(circle at top left, rgba(47, 79, 143, 0.22), transparent 34rem),
        linear-gradient(180deg, #0b1120 0%, #0f172a 55%, #111827 100%);
}

[data-bs-theme="dark"] .learnio-teacher-shell {
    --learnio-teacher-indigo: #a5b4fc;
    --learnio-teacher-navy: #dbeafe;
    --learnio-teacher-cyan: #67e8f9;
    --learnio-teacher-green: #86efac;
    --learnio-teacher-slate: #e5e7eb;
    --learnio-teacher-muted: #a7b2c4;
    --learnio-teacher-soft-indigo: rgba(99, 102, 241, 0.16);
    --learnio-teacher-soft-cyan: rgba(14, 165, 233, 0.15);
    background:
        radial-gradient(circle at top left, rgba(52, 66, 131, 0.26), transparent 34rem),
        linear-gradient(180deg, #0b1120 0%, #0f172a 58%, #111827 100%);
}

[data-bs-theme="dark"] .learnio-parent-shell {
    --learnio-parent-blue: #93c5fd;
    --learnio-parent-blue-dark: #dbeafe;
    --learnio-parent-teal: #5eead4;
    --learnio-parent-slate: #e5e7eb;
    --learnio-parent-muted: #a7b2c4;
    --learnio-parent-bg: #0f172a;
    --learnio-parent-soft-blue: rgba(59, 130, 246, 0.15);
    --learnio-parent-soft-teal: rgba(20, 184, 166, 0.15);
    background:
        radial-gradient(circle at top left, rgba(36, 91, 159, 0.24), transparent 32rem),
        linear-gradient(180deg, #0b1120 0%, #0f172a 58%, #111827 100%);
}

[data-bs-theme="dark"] .learnio-child-shell {
    --learnio-child-blue: #93c5fd;
    --learnio-child-blue-dark: #dbeafe;
    --learnio-child-green: #86efac;
    --learnio-child-yellow: #fde68a;
    --learnio-child-coral: #fda4af;
    --learnio-child-slate: #e5e7eb;
    --learnio-child-muted: #a7b2c4;
    --learnio-child-bg: #0f172a;
    --learnio-child-soft-blue: rgba(59, 130, 246, 0.16);
    --learnio-child-soft-green: rgba(34, 197, 94, 0.15);
    --learnio-child-soft-yellow: rgba(245, 158, 11, 0.16);
    --learnio-child-soft-coral: rgba(244, 63, 94, 0.16);
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.24), transparent 30rem),
        linear-gradient(180deg, #0b1120 0%, #0f172a 56%, #111827 100%);
}

[data-bs-theme="dark"] .learnio-guest-shell {
    --learnio-public-bg: #0f172a;
    --learnio-public-primary: #9bb1ff;
    --learnio-public-primary-dark: #c7d2fe;
    --learnio-public-violet: #c4b5fd;
    --learnio-public-green: #86efac;
    --learnio-public-yellow: #fde68a;
    --learnio-public-slate: #e5e7eb;
    --learnio-public-soft: rgba(99, 102, 241, 0.16);
    --learnio-public-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
    background:
        radial-gradient(circle at top left, rgba(109, 75, 220, 0.2), transparent 30rem),
        linear-gradient(180deg, #0b1120 0%, #0f172a 58%, #111827 100%);
}

[data-bs-theme="dark"] .learnio-panel,
[data-bs-theme="dark"] .learnio-card,
[data-bs-theme="dark"] .learnio-question-card,
[data-bs-theme="dark"] .learnio-filter,
[data-bs-theme="dark"] .learnio-action-bar,
[data-bs-theme="dark"] .learnio-empty,
[data-bs-theme="dark"] .learnio-portal-card,
[data-bs-theme="dark"] .learnio-portal-empty,
[data-bs-theme="dark"] .learnio-portal-card-recommended,
[data-bs-theme="dark"] .learnio-login-card,
[data-bs-theme="dark"] .learnio-error-card,
[data-bs-theme="dark"] .learnio-role-card,
[data-bs-theme="dark"] .learnio-value-card,
[data-bs-theme="dark"] .learnio-step-card,
[data-bs-theme="dark"] .learnio-trust-card,
[data-bs-theme="dark"] .learnio-admin-page-header,
[data-bs-theme="dark"] .learnio-admin-card,
[data-bs-theme="dark"] .learnio-admin-metric,
[data-bs-theme="dark"] .learnio-admin-empty,
[data-bs-theme="dark"] .learnio-admin-compact-list,
[data-bs-theme="dark"] .learnio-admin-filter,
[data-bs-theme="dark"] .learnio-admin-table-panel,
[data-bs-theme="dark"] .learnio-admin-form-card,
[data-bs-theme="dark"] .learnio-admin-list-card,
[data-bs-theme="dark"] .learnio-admin-fieldset,
[data-bs-theme="dark"] .learnio-admin-inline-form,
[data-bs-theme="dark"] .learnio-admin-builder-section,
[data-bs-theme="dark"] .learnio-admin-question-card,
[data-bs-theme="dark"] .learnio-admin-answer-card,
[data-bs-theme="dark"] .learnio-admin-grading-panel,
[data-bs-theme="dark"] .learnio-admin-warning-panel,
[data-bs-theme="dark"] .learnio-admin-review-panel,
[data-bs-theme="dark"] .learnio-admin-report-card,
[data-bs-theme="dark"] .learnio-admin-note-box,
[data-bs-theme="dark"] .learnio-admin-decision-panel,
[data-bs-theme="dark"] .learnio-teacher-hero,
[data-bs-theme="dark"] .learnio-teacher-card,
[data-bs-theme="dark"] .learnio-teacher-child-card,
[data-bs-theme="dark"] .learnio-teacher-detail-card,
[data-bs-theme="dark"] .learnio-teacher-metric,
[data-bs-theme="dark"] .learnio-teacher-report-hero,
[data-bs-theme="dark"] .learnio-teacher-score-card,
[data-bs-theme="dark"] .learnio-teacher-progress-card,
[data-bs-theme="dark"] .learnio-teacher-question-report,
[data-bs-theme="dark"] .learnio-teacher-result-card,
[data-bs-theme="dark"] .learnio-teacher-answer-box,
[data-bs-theme="dark"] .learnio-teacher-feedback-box,
[data-bs-theme="dark"] .learnio-teacher-correction-box,
[data-bs-theme="dark"] .learnio-teacher-empty,
[data-bs-theme="dark"] .learnio-teacher-filter-panel,
[data-bs-theme="dark"] .learnio-teacher-action-panel,
[data-bs-theme="dark"] .learnio-teacher-attempt-report,
[data-bs-theme="dark"] .learnio-parent-hero,
[data-bs-theme="dark"] .learnio-parent-attempt-report,
[data-bs-theme="dark"] .learnio-parent-answer-box,
[data-bs-theme="dark"] .learnio-parent-card,
[data-bs-theme="dark"] .learnio-parent-book-card,
[data-bs-theme="dark"] .learnio-parent-book-report,
[data-bs-theme="dark"] .learnio-parent-child-card,
[data-bs-theme="dark"] .learnio-parent-claim-card,
[data-bs-theme="dark"] .learnio-parent-correction-box,
[data-bs-theme="dark"] .learnio-parent-detail-card,
[data-bs-theme="dark"] .learnio-parent-feedback-box,
[data-bs-theme="dark"] .learnio-parent-progress-card,
[data-bs-theme="dark"] .learnio-parent-question-report,
[data-bs-theme="dark"] .learnio-parent-report-hero,
[data-bs-theme="dark"] .learnio-parent-reward-card,
[data-bs-theme="dark"] .learnio-parent-review-panel,
[data-bs-theme="dark"] .learnio-parent-result-card,
[data-bs-theme="dark"] .learnio-parent-score-card,
[data-bs-theme="dark"] .learnio-parent-xp-hero,
[data-bs-theme="dark"] .learnio-parent-metric,
[data-bs-theme="dark"] .learnio-parent-empty,
[data-bs-theme="dark"] .learnio-parent-action-panel,
[data-bs-theme="dark"] .learnio-child-hero-copy,
[data-bs-theme="dark"] .learnio-child-card,
[data-bs-theme="dark"] .learnio-child-action-card,
[data-bs-theme="dark"] .learnio-child-metric,
[data-bs-theme="dark"] .learnio-child-empty,
[data-bs-theme="dark"] .learnio-child-filter-panel,
[data-bs-theme="dark"] .learnio-child-assignment-card,
[data-bs-theme="dark"] .learnio-child-result-card,
[data-bs-theme="dark"] .learnio-child-progress-card,
[data-bs-theme="dark"] .learnio-child-detail-card,
[data-bs-theme="dark"] .learnio-child-section-block,
[data-bs-theme="dark"] .learnio-child-breakdown,
[data-bs-theme="dark"] .learnio-child-book-card,
[data-bs-theme="dark"] .learnio-child-book-form,
[data-bs-theme="dark"] .learnio-child-book-detail,
[data-bs-theme="dark"] .learnio-child-xp-hero,
[data-bs-theme="dark"] .learnio-child-xp-history,
[data-bs-theme="dark"] .learnio-child-reward-card,
[data-bs-theme="dark"] .learnio-child-claim-card,
[data-bs-theme="dark"] .learnio-child-form-section,
[data-bs-theme="dark"] .learnio-child-attempt-card,
[data-bs-theme="dark"] .learnio-child-question-card,
[data-bs-theme="dark"] .learnio-child-attempt-actions,
[data-bs-theme="dark"] .learnio-child-readable-block,
[data-bs-theme="dark"] .learnio-child-feedback,
[data-bs-theme="dark"] .learnio-child-attempt-shell .learnio-child-correction {
    background: rgba(15, 23, 42, 0.86);
    border-color: rgba(148, 163, 184, 0.26);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
    color: var(--learnio-theme-text);
}

[data-bs-theme="dark"] .learnio-child-autosave-status {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(147, 197, 253, 0.24);
    color: #dbeafe;
}

[data-bs-theme="dark"] .learnio-child-autosave-status.is-saving {
    background: rgba(120, 80, 12, 0.22);
    border-color: rgba(250, 204, 21, 0.25);
    color: #fde68a;
}

[data-bs-theme="dark"] .learnio-child-autosave-status.is-saved {
    background: rgba(20, 83, 45, 0.28);
    border-color: rgba(74, 222, 128, 0.24);
    color: #bbf7d0;
}

[data-bs-theme="dark"] .learnio-child-autosave-status.is-error,
[data-bs-theme="dark"] .learnio-child-autosave-status.is-local {
    background: rgba(127, 29, 29, 0.28);
    border-color: rgba(251, 113, 133, 0.26);
    color: #fecdd3;
}

[data-bs-theme="dark"] .learnio-guest-nav,
[data-bs-theme="dark"] .learnio-guest-footer,
[data-bs-theme="dark"] .learnio-app-topbar {
    background: rgba(11, 17, 32, 0.9);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
}

[data-bs-theme="dark"] .learnio-admin-topbar,
[data-bs-theme="dark"] .learnio-teacher-topbar,
[data-bs-theme="dark"] .learnio-parent-topbar,
[data-bs-theme="dark"] .learnio-child-topbar {
    border-bottom-color: rgba(148, 163, 184, 0.24);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

[data-bs-theme="dark"] .learnio-guest-brand,
[data-bs-theme="dark"] .learnio-app-brand,
[data-bs-theme="dark"] .learnio-admin-brand,
[data-bs-theme="dark"] .learnio-teacher-brand,
[data-bs-theme="dark"] .learnio-parent-brand,
[data-bs-theme="dark"] .learnio-child-brand {
    color: #ffffff;
}

[data-bs-theme="dark"] .learnio-hero h1,
[data-bs-theme="dark"] .learnio-login-card h1,
[data-bs-theme="dark"] .learnio-error-card h1,
[data-bs-theme="dark"] .learnio-portal-header h1,
[data-bs-theme="dark"] .learnio-portal-card h2,
[data-bs-theme="dark"] .learnio-page-header h1,
[data-bs-theme="dark"] .learnio-card h1,
[data-bs-theme="dark"] .learnio-card h2,
[data-bs-theme="dark"] .learnio-admin-toolbar h1,
[data-bs-theme="dark"] .learnio-admin-page-header h1,
[data-bs-theme="dark"] .learnio-admin-card-header h2,
[data-bs-theme="dark"] .learnio-admin-compact-list h2,
[data-bs-theme="dark"] .learnio-admin-empty h2,
[data-bs-theme="dark"] .learnio-admin-list-card h2,
[data-bs-theme="dark"] .learnio-admin-fieldset h2,
[data-bs-theme="dark"] .learnio-admin-question-card h2,
[data-bs-theme="dark"] .learnio-teacher-page-header h1,
[data-bs-theme="dark"] .learnio-teacher-hero h1,
[data-bs-theme="dark"] .learnio-teacher-card-header h2,
[data-bs-theme="dark"] .learnio-teacher-child-card-header h2,
[data-bs-theme="dark"] .learnio-teacher-detail-card h1,
[data-bs-theme="dark"] .learnio-teacher-report-hero h1,
[data-bs-theme="dark"] .learnio-teacher-question-section-header h2,
[data-bs-theme="dark"] .learnio-parent-page-header h1,
[data-bs-theme="dark"] .learnio-parent-hero h1,
[data-bs-theme="dark"] .learnio-parent-detail-card h1,
[data-bs-theme="dark"] .learnio-parent-report-hero h1,
[data-bs-theme="dark"] .learnio-parent-xp-hero h1,
[data-bs-theme="dark"] .learnio-parent-card-header h2,
[data-bs-theme="dark"] .learnio-parent-child-card-header h2,
[data-bs-theme="dark"] .learnio-parent-result-card-header h2,
[data-bs-theme="dark"] .learnio-child-page-header h1,
[data-bs-theme="dark"] .learnio-child-hero-copy h1,
[data-bs-theme="dark"] .learnio-child-card-header h2,
[data-bs-theme="dark"] .learnio-child-form-section-header h2,
[data-bs-theme="dark"] .learnio-child-readable-block h2,
[data-bs-theme="dark"] .learnio-child-xp-history h2 {
    color: var(--learnio-theme-text);
}

[data-bs-theme="dark"] .learnio-hero p,
[data-bs-theme="dark"] .learnio-login-card p,
[data-bs-theme="dark"] .learnio-error-card p,
[data-bs-theme="dark"] .learnio-portal-header p,
[data-bs-theme="dark"] .learnio-portal-card p,
[data-bs-theme="dark"] .learnio-page-header p,
[data-bs-theme="dark"] .learnio-card p,
[data-bs-theme="dark"] .learnio-action-bar-text,
[data-bs-theme="dark"] .learnio-empty,
[data-bs-theme="dark"] .learnio-admin-toolbar p,
[data-bs-theme="dark"] .learnio-admin-muted,
[data-bs-theme="dark"] .learnio-admin-page-header p,
[data-bs-theme="dark"] .learnio-admin-card p,
[data-bs-theme="dark"] .learnio-admin-help,
[data-bs-theme="dark"] .learnio-teacher-hero p,
[data-bs-theme="dark"] .learnio-teacher-page-header p,
[data-bs-theme="dark"] .learnio-teacher-card p,
[data-bs-theme="dark"] .learnio-teacher-meta span,
[data-bs-theme="dark"] .learnio-teacher-list-item span,
[data-bs-theme="dark"] .learnio-teacher-progress-row span,
[data-bs-theme="dark"] .learnio-parent-hero p,
[data-bs-theme="dark"] .learnio-parent-card p,
[data-bs-theme="dark"] .learnio-parent-meta span,
[data-bs-theme="dark"] .learnio-parent-list-item span,
[data-bs-theme="dark"] .learnio-parent-progress-row span,
[data-bs-theme="dark"] .learnio-child-hero-copy p,
[data-bs-theme="dark"] .learnio-child-card p,
[data-bs-theme="dark"] .learnio-child-list-item p,
[data-bs-theme="dark"] .learnio-child-meta span,
[data-bs-theme="dark"] .learnio-child-meta-grid span,
[data-bs-theme="dark"] .learnio-child-result-score span,
[data-bs-theme="dark"] .learnio-child-progress-label span,
[data-bs-theme="dark"] .learnio-child-form-section-header p,
[data-bs-theme="dark"] .learnio-child-readable-block p,
[data-bs-theme="dark"] .learnio-child-xp-history p {
    color: var(--learnio-theme-muted);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] .input-group-text {
    background-color: rgba(15, 23, 42, 0.92);
    border-color: rgba(148, 163, 184, 0.32);
    color: var(--learnio-theme-text);
}

[data-bs-theme="dark"] .form-control::placeholder {
    color: rgba(203, 213, 225, 0.58);
}

[data-bs-theme="dark"] .form-control:disabled,
[data-bs-theme="dark"] .form-select:disabled,
[data-bs-theme="dark"] .form-control[readonly],
[data-bs-theme="dark"] textarea[readonly] {
    background-color: rgba(30, 41, 59, 0.7);
    border-color: rgba(148, 163, 184, 0.24);
    color: #cbd5e1;
}

[data-bs-theme="dark"] .form-check-input {
    background-color: rgba(15, 23, 42, 0.92);
    border-color: rgba(148, 163, 184, 0.45);
}

[data-bs-theme="dark"] .form-text,
[data-bs-theme="dark"] .invalid-feedback {
    color: var(--learnio-theme-muted);
}

[data-bs-theme="dark"] .table,
[data-bs-theme="dark"] .learnio-admin-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--learnio-theme-text);
    --bs-table-border-color: rgba(148, 163, 184, 0.22);
    color: var(--learnio-theme-text);
}

[data-bs-theme="dark"] .table > :not(caption) > * > * {
    background-color: transparent;
    border-color: rgba(148, 163, 184, 0.22);
    color: var(--learnio-theme-text);
}

[data-bs-theme="dark"] .table-hover > tbody > tr:hover > * {
    background-color: rgba(148, 163, 184, 0.1);
    color: #ffffff;
}

[data-bs-theme="dark"] .learnio-admin-table th,
[data-bs-theme="dark"] .learnio-admin-table td,
[data-bs-theme="dark"] .learnio-admin-table code {
    color: var(--learnio-theme-text);
}

[data-bs-theme="dark"] .dropdown-menu,
[data-bs-theme="dark"] .pagination .page-link {
    background-color: #111827;
    border-color: rgba(148, 163, 184, 0.28);
    color: var(--learnio-theme-text);
}

[data-bs-theme="dark"] .dropdown-item {
    color: var(--learnio-theme-text);
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus,
[data-bs-theme="dark"] .pagination .page-link:hover,
[data-bs-theme="dark"] .pagination .page-link:focus {
    background-color: rgba(99, 102, 241, 0.18);
    color: #ffffff;
}

[data-bs-theme="dark"] .page-item.active .page-link {
    background-color: var(--learnio-theme-primary);
    border-color: var(--learnio-theme-primary);
    color: #0b1120;
}

[data-bs-theme="dark"] .progress {
    background-color: rgba(51, 65, 85, 0.78);
}

[data-bs-theme="dark"] .learnio-choice,
[data-bs-theme="dark"] .learnio-child-choice-item {
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(148, 163, 184, 0.28);
    color: var(--learnio-theme-text);
}

[data-bs-theme="dark"] .learnio-choice:hover,
[data-bs-theme="dark"] .learnio-choice:focus-within,
[data-bs-theme="dark"] .learnio-child-choice-item:hover,
[data-bs-theme="dark"] .learnio-child-choice-item:focus-within {
    background: rgba(37, 99, 235, 0.14);
    border-color: rgba(147, 197, 253, 0.48);
}

[data-bs-theme="dark"] .learnio-child-choice-item.is-readonly {
    background: rgba(30, 41, 59, 0.68);
    color: #cbd5e1;
}

[data-bs-theme="dark"] .learnio-card-icon,
[data-bs-theme="dark"] .learnio-portal-icon,
[data-bs-theme="dark"] .learnio-error-icon,
[data-bs-theme="dark"] .learnio-admin-compact-list-heading .fa-solid,
[data-bs-theme="dark"] .learnio-child-icon {
    background: rgba(96, 165, 250, 0.15);
    color: #93c5fd;
}

[data-bs-theme="dark"] .learnio-admin-status,
[data-bs-theme="dark"] .learnio-portal-badge,
[data-bs-theme="dark"] .learnio-teacher-status-chip,
[data-bs-theme="dark"] .learnio-teacher-permission-chip,
[data-bs-theme="dark"] .learnio-parent-status-chip,
[data-bs-theme="dark"] .learnio-child-status-chip,
[data-bs-theme="dark"] .learnio-child-grade,
[data-bs-theme="dark"] .learnio-teacher-grade,
[data-bs-theme="dark"] .learnio-parent-grade,
[data-bs-theme="dark"] .learnio-parent-xp-chip {
    background: rgba(96, 165, 250, 0.14);
    border-color: rgba(147, 197, 253, 0.3);
    color: #dbeafe;
}

[data-bs-theme="dark"] .learnio-child-status-yellow,
[data-bs-theme="dark"] .learnio-child-icon-yellow {
    background: rgba(245, 158, 11, 0.16);
    color: #fde68a;
}

[data-bs-theme="dark"] .learnio-child-status-green,
[data-bs-theme="dark"] .learnio-child-icon-green {
    background: rgba(34, 197, 94, 0.16);
    color: #bbf7d0;
}

[data-bs-theme="dark"] .learnio-child-status-coral,
[data-bs-theme="dark"] .learnio-child-icon-coral {
    background: rgba(244, 63, 94, 0.16);
    color: #fecdd3;
}

[data-bs-theme="dark"] .learnio-child-status-muted {
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
}

[data-bs-theme="dark"] .learnio-teacher-meta div,
[data-bs-theme="dark"] .learnio-teacher-list-item,
[data-bs-theme="dark"] .learnio-teacher-progress-row,
[data-bs-theme="dark"] .learnio-teacher-subjects,
[data-bs-theme="dark"] .learnio-parent-meta div,
[data-bs-theme="dark"] .learnio-parent-list-item,
[data-bs-theme="dark"] .learnio-parent-progress-row,
[data-bs-theme="dark"] .learnio-parent-note,
[data-bs-theme="dark"] .learnio-child-list-item,
[data-bs-theme="dark"] .learnio-child-mini-stats div,
[data-bs-theme="dark"] .learnio-child-meta-grid div,
[data-bs-theme="dark"] .learnio-child-result-score div,
[data-bs-theme="dark"] .learnio-child-progress-metrics,
[data-bs-theme="dark"] .learnio-child-subject-metrics,
[data-bs-theme="dark"] .learnio-child-xp-event,
[data-bs-theme="dark"] .learnio-child-question-meta > div {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(148, 163, 184, 0.24);
    color: var(--learnio-theme-text);
}

[data-bs-theme="dark"] .learnio-teacher-meta strong,
[data-bs-theme="dark"] .learnio-teacher-list-item strong,
[data-bs-theme="dark"] .learnio-teacher-progress-row a,
[data-bs-theme="dark"] .learnio-parent-meta strong,
[data-bs-theme="dark"] .learnio-parent-list-item strong,
[data-bs-theme="dark"] .learnio-parent-progress-row a,
[data-bs-theme="dark"] .learnio-child-list-item h3,
[data-bs-theme="dark"] .learnio-child-mini-stats strong,
[data-bs-theme="dark"] .learnio-child-meta-grid strong,
[data-bs-theme="dark"] .learnio-child-result-score strong,
[data-bs-theme="dark"] .learnio-child-progress-label strong,
[data-bs-theme="dark"] .learnio-child-xp-event h4,
[data-bs-theme="dark"] .learnio-child-question-meta strong {
    color: var(--learnio-theme-text);
}

[data-bs-theme="dark"] .learnio-admin-json-box,
[data-bs-theme="dark"] .learnio-admin-json-box pre,
[data-bs-theme="dark"] .learnio-admin-json-box textarea,
[data-bs-theme="dark"] .learnio-admin-json-box code,
[data-bs-theme="dark"] pre,
[data-bs-theme="dark"] code,
[data-bs-theme="dark"] textarea.font-monospace {
    background: #0b1120;
    border-color: rgba(148, 163, 184, 0.28);
    color: #dbeafe;
}

[data-bs-theme="dark"] .learnio-admin-danger-zone {
    background: rgba(127, 29, 29, 0.22);
    border-color: rgba(248, 113, 113, 0.3);
}

[data-bs-theme="dark"] .alert {
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

[data-bs-theme="dark"] .alert-info,
[data-bs-theme="dark"] .learnio-admin-warning-panel {
    background-color: rgba(14, 165, 233, 0.14);
    color: #dbeafe;
}

[data-bs-theme="dark"] .alert-warning {
    background-color: rgba(245, 158, 11, 0.16);
    color: #fef3c7;
}

[data-bs-theme="dark"] .alert-success {
    background-color: rgba(34, 197, 94, 0.15);
    color: #dcfce7;
}

[data-bs-theme="dark"] .alert-danger {
    background-color: rgba(239, 68, 68, 0.15);
    color: #fee2e2;
}

[data-bs-theme="dark"] .btn-outline-secondary {
    --bs-btn-color: #cbd5e1;
    --bs-btn-border-color: rgba(203, 213, 225, 0.4);
    --bs-btn-hover-bg: rgba(203, 213, 225, 0.12);
    --bs-btn-hover-border-color: rgba(203, 213, 225, 0.62);
    --bs-btn-hover-color: #ffffff;
}

[data-bs-theme="dark"] .btn-light {
    --bs-btn-bg: rgba(226, 232, 240, 0.95);
    --bs-btn-border-color: rgba(226, 232, 240, 0.95);
    --bs-btn-color: #0f172a;
}

[data-bs-theme="dark"] .learnio-back-link,
[data-bs-theme="dark"] .learnio-admin-back-link,
[data-bs-theme="dark"] .learnio-teacher-back-link,
[data-bs-theme="dark"] .learnio-parent-back-link,
[data-bs-theme="dark"] .learnio-child-back-link,
[data-bs-theme="dark"] a:not(.btn):not(.nav-link):not(.navbar-brand) {
    color: #93c5fd;
}

[data-bs-theme="dark"] .learnio-admin-back-link:hover,
[data-bs-theme="dark"] .learnio-teacher-back-link:hover,
[data-bs-theme="dark"] .learnio-parent-back-link:hover,
[data-bs-theme="dark"] .learnio-child-back-link:hover,
[data-bs-theme="dark"] a:not(.btn):not(.nav-link):not(.navbar-brand):hover {
    color: #bfdbfe;
}

/* Dark theme contrast polish for remaining light custom surfaces. */
[data-bs-theme="dark"] .learnio-child-topbar {
    background: linear-gradient(135deg, #0b1f3a 0%, #123764 58%, #115e59 100%);
}

[data-bs-theme="dark"] .learnio-parent-topbar {
    background: linear-gradient(135deg, #0b1f2a 0%, #123b50 56%, #0f766e 100%);
}

[data-bs-theme="dark"] .learnio-teacher-topbar {
    background: linear-gradient(135deg, #111827 0%, #24315f 58%, #155e75 100%);
}

[data-bs-theme="dark"] .learnio-child-topbar .nav-link,
[data-bs-theme="dark"] .learnio-parent-topbar .nav-link,
[data-bs-theme="dark"] .learnio-teacher-topbar .nav-link,
[data-bs-theme="dark"] .learnio-admin-topbar .nav-link {
    color: rgba(255, 255, 255, 0.82);
}

[data-bs-theme="dark"] .learnio-child-topbar .nav-link:hover,
[data-bs-theme="dark"] .learnio-child-topbar .nav-link:focus,
[data-bs-theme="dark"] .learnio-child-topbar .nav-link.active,
[data-bs-theme="dark"] .learnio-child-topbar .nav-link[aria-current="page"],
[data-bs-theme="dark"] .learnio-parent-topbar .nav-link:hover,
[data-bs-theme="dark"] .learnio-parent-topbar .nav-link:focus,
[data-bs-theme="dark"] .learnio-parent-topbar .nav-link.active,
[data-bs-theme="dark"] .learnio-parent-topbar .nav-link[aria-current="page"],
[data-bs-theme="dark"] .learnio-teacher-topbar .nav-link:hover,
[data-bs-theme="dark"] .learnio-teacher-topbar .nav-link:focus,
[data-bs-theme="dark"] .learnio-teacher-topbar .nav-link.active,
[data-bs-theme="dark"] .learnio-teacher-topbar .nav-link[aria-current="page"],
[data-bs-theme="dark"] .learnio-admin-topbar .nav-link:hover,
[data-bs-theme="dark"] .learnio-admin-topbar .nav-link:focus,
[data-bs-theme="dark"] .learnio-admin-topbar .nav-link.active,
[data-bs-theme="dark"] .learnio-admin-topbar .nav-link[aria-current="page"] {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

[data-bs-theme="dark"] label,
[data-bs-theme="dark"] .form-label,
[data-bs-theme="dark"] .form-check-label,
[data-bs-theme="dark"] .learnio-admin-form-card .form-label,
[data-bs-theme="dark"] .learnio-admin-fieldset .form-label,
[data-bs-theme="dark"] .learnio-admin-inline-form .form-label,
[data-bs-theme="dark"] .learnio-admin-grading-panel .form-label,
[data-bs-theme="dark"] .learnio-child-form-section .form-label,
[data-bs-theme="dark"] .learnio-child-filter-panel .form-label,
[data-bs-theme="dark"] .learnio-parent-shell .form-label,
[data-bs-theme="dark"] .learnio-teacher-shell .form-label {
    color: #dbe3ef;
}

[data-bs-theme="dark"] .form-text,
[data-bs-theme="dark"] .text-muted,
[data-bs-theme="dark"] .text-secondary,
[data-bs-theme="dark"] .small.text-muted,
[data-bs-theme="dark"] .learnio-admin-help,
[data-bs-theme="dark"] .learnio-admin-muted,
[data-bs-theme="dark"] .learnio-hero-copy,
[data-bs-theme="dark"] .learnio-hero-note,
[data-bs-theme="dark"] .learnio-section-heading p,
[data-bs-theme="dark"] .learnio-hero-summary span:not(.learnio-summary-label),
[data-bs-theme="dark"] .learnio-role-card p,
[data-bs-theme="dark"] .learnio-value-card p,
[data-bs-theme="dark"] .learnio-step-card p,
[data-bs-theme="dark"] .learnio-final-cta p,
[data-bs-theme="dark"] .learnio-login-notes {
    color: #aeb9c9 !important;
}

[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .bg-white,
[data-bs-theme="dark"] .learnio-hero-badge,
[data-bs-theme="dark"] .learnio-hero-summary,
[data-bs-theme="dark"] .learnio-hero-summary > div,
[data-bs-theme="dark"] .learnio-final-cta-inner,
[data-bs-theme="dark"] .learnio-login-notes,
[data-bs-theme="dark"] .learnio-admin-role-option,
[data-bs-theme="dark"] .learnio-admin-shell .form-check,
[data-bs-theme="dark"] .learnio-admin-shell .form-check.card,
[data-bs-theme="dark"] .learnio-admin-table-panel,
[data-bs-theme="dark"] .learnio-admin-list-card,
[data-bs-theme="dark"] .learnio-admin-table,
[data-bs-theme="dark"] .table-responsive {
    background: rgba(15, 23, 42, 0.9) !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
    color: #e5e7eb;
}

[data-bs-theme="dark"] .learnio-hero-summary > div,
[data-bs-theme="dark"] .learnio-admin-role-option,
[data-bs-theme="dark"] .learnio-admin-shell .form-check {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

[data-bs-theme="dark"] .learnio-admin-role-option:hover,
[data-bs-theme="dark"] .learnio-admin-role-option:focus-within,
[data-bs-theme="dark"] .learnio-admin-shell .form-check:hover,
[data-bs-theme="dark"] .learnio-admin-shell .form-check:focus-within {
    background: rgba(30, 41, 59, 0.96) !important;
    border-color: rgba(147, 197, 253, 0.52) !important;
}

[data-bs-theme="dark"] .learnio-admin-role-option:has(.form-check-input:checked),
[data-bs-theme="dark"] .learnio-admin-shell .form-check:has(.form-check-input:checked) {
    background: rgba(37, 99, 235, 0.18) !important;
    border-color: rgba(147, 197, 253, 0.58) !important;
}

[data-bs-theme="dark"] .learnio-hero-title,
[data-bs-theme="dark"] .learnio-hero-subtitle,
[data-bs-theme="dark"] .learnio-section-heading h2,
[data-bs-theme="dark"] .learnio-final-cta h2,
[data-bs-theme="dark"] .learnio-hero-summary strong,
[data-bs-theme="dark"] .learnio-role-card h3,
[data-bs-theme="dark"] .learnio-value-card h3,
[data-bs-theme="dark"] .learnio-step-card h3,
[data-bs-theme="dark"] .learnio-admin-role-option strong,
[data-bs-theme="dark"] .card-title,
[data-bs-theme="dark"] .card h1,
[data-bs-theme="dark"] .card h2,
[data-bs-theme="dark"] .card h3 {
    color: #f8fafc;
}

[data-bs-theme="dark"] .learnio-hero-badge,
[data-bs-theme="dark"] .learnio-section-kicker,
[data-bs-theme="dark"] .learnio-summary-label,
[data-bs-theme="dark"] .learnio-role-icon,
[data-bs-theme="dark"] .learnio-login-brand,
[data-bs-theme="dark"] .learnio-value-card .fa-solid {
    color: #bfdbfe;
}

[data-bs-theme="dark"] .learnio-step-card span {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.34);
    color: #fde68a;
}

[data-bs-theme="dark"] .learnio-trust-band {
    background: linear-gradient(135deg, #0b1120 0%, #172554 58%, #0f766e 100%);
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] textarea.form-control,
[data-bs-theme="dark"] .input-group-text {
    background-color: #0f172a;
    border-color: rgba(148, 163, 184, 0.38);
    color: #e5e7eb;
}

[data-bs-theme="dark"] .form-control:disabled,
[data-bs-theme="dark"] .form-select:disabled,
[data-bs-theme="dark"] .form-control[readonly],
[data-bs-theme="dark"] .form-select[readonly],
[data-bs-theme="dark"] textarea[readonly],
[data-bs-theme="dark"] input[readonly] {
    background-color: #1e293b !important;
    border-color: rgba(148, 163, 184, 0.32) !important;
    color: #cbd5e1 !important;
    opacity: 1;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: #111c2f;
    border-color: rgba(147, 197, 253, 0.72);
    color: #ffffff;
}

[data-bs-theme="dark"] .table-responsive {
    box-shadow: none;
}

[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: rgba(148, 163, 184, 0.06);
}

[data-bs-theme="dark"] .table thead th,
[data-bs-theme="dark"] .learnio-admin-table th {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .badge.text-bg-light,
[data-bs-theme="dark"] .learnio-status.text-bg-light {
    background-color: rgba(30, 41, 59, 0.98) !important;
    border-color: rgba(148, 163, 184, 0.34) !important;
    color: #e5e7eb !important;
}

[data-bs-theme="dark"] .learnio-child-shell a:not(.btn):not(.nav-link):not(.navbar-brand),
[data-bs-theme="dark"] .learnio-parent-shell a:not(.btn):not(.nav-link):not(.navbar-brand),
[data-bs-theme="dark"] .learnio-teacher-shell a:not(.btn):not(.nav-link):not(.navbar-brand),
[data-bs-theme="dark"] .learnio-admin-shell a:not(.btn):not(.nav-link):not(.navbar-brand),
[data-bs-theme="dark"] .learnio-app-shell a:not(.btn):not(.nav-link):not(.navbar-brand),
[data-bs-theme="dark"] .learnio-guest-shell a:not(.btn):not(.nav-link):not(.navbar-brand) {
    color: #9dccff;
}

[data-bs-theme="dark"] .learnio-child-shell a:not(.btn):not(.nav-link):not(.navbar-brand):hover,
[data-bs-theme="dark"] .learnio-parent-shell a:not(.btn):not(.nav-link):not(.navbar-brand):hover,
[data-bs-theme="dark"] .learnio-teacher-shell a:not(.btn):not(.nav-link):not(.navbar-brand):hover,
[data-bs-theme="dark"] .learnio-admin-shell a:not(.btn):not(.nav-link):not(.navbar-brand):hover,
[data-bs-theme="dark"] .learnio-app-shell a:not(.btn):not(.nav-link):not(.navbar-brand):hover,
[data-bs-theme="dark"] .learnio-guest-shell a:not(.btn):not(.nav-link):not(.navbar-brand):hover {
    color: #cfe6ff;
}

.learnio-feedback-button {
    align-items: center;
    display: inline-flex;
    gap: 0.35rem;
    white-space: nowrap;
}

.learnio-feedback-button-short {
    display: none;
}

.learnio-feedback-page {
    padding-block: 2rem;
}

.learnio-feedback-header {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.learnio-feedback-header h1 {
    color: var(--learnio-theme-text);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 850;
    margin: 0.65rem 0 0.35rem;
}

.learnio-feedback-header p {
    color: var(--learnio-theme-muted);
    margin: 0;
}

.learnio-feedback-card {
    background: var(--learnio-theme-surface);
    border: 1px solid var(--learnio-theme-border);
    border-radius: 8px;
    box-shadow: var(--learnio-theme-shadow);
    padding: 1rem;
}

.learnio-feedback-empty {
    padding: 2rem;
    text-align: center;
}

.learnio-feedback-empty .fa-solid {
    color: var(--learnio-theme-primary);
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.learnio-feedback-empty h2,
.learnio-feedback-form h2,
.learnio-feedback-message h2 {
    color: var(--learnio-theme-text);
    font-size: 1.15rem;
    font-weight: 850;
}

.learnio-feedback-empty p {
    color: var(--learnio-theme-muted);
    margin: 0;
}

.learnio-feedback-list {
    display: grid;
    gap: 0.85rem;
}

.learnio-feedback-list-item {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.learnio-feedback-list-item h2 {
    color: var(--learnio-theme-text);
    font-size: 1.1rem;
    font-weight: 850;
    margin: 0.35rem 0 0.2rem;
}

.learnio-feedback-list-item p,
.learnio-feedback-message p {
    color: var(--learnio-theme-muted);
    margin: 0;
}

.learnio-feedback-title-row,
.learnio-feedback-detail-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.learnio-feedback-detail-meta {
    color: var(--learnio-theme-muted);
    margin-bottom: 1rem;
}

.learnio-feedback-status,
.learnio-feedback-priority,
.learnio-feedback-response-chip {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 850;
    line-height: 1;
    padding: 0.35rem 0.55rem;
}

.learnio-feedback-status {
    background: rgba(100, 116, 139, 0.14);
    color: var(--learnio-theme-muted);
}

.learnio-feedback-status-new,
.learnio-feedback-status-in_review,
.learnio-feedback-status-in_progress {
    background: rgba(31, 111, 235, 0.12);
    color: #1f6feb;
}

.learnio-feedback-status-planned {
    background: rgba(242, 184, 75, 0.2);
    color: #8a5a04;
}

.learnio-feedback-status-implemented {
    background: rgba(25, 135, 84, 0.14);
    color: #198754;
}

.learnio-feedback-status-rejected,
.learnio-feedback-status-closed {
    background: rgba(100, 116, 139, 0.14);
    color: var(--learnio-theme-muted);
}

.learnio-feedback-priority {
    background: var(--learnio-theme-surface-soft);
    color: var(--learnio-theme-text);
}

.learnio-feedback-response-chip {
    background: rgba(25, 135, 84, 0.14);
    color: #198754;
}

.learnio-feedback-form {
    max-width: 860px;
}

.learnio-feedback-form-actions {
    margin-top: 1rem;
}

.learnio-feedback-message {
    border-top: 1px solid var(--learnio-theme-border);
    margin-top: 1rem;
    padding-top: 1rem;
}

.learnio-feedback-message:first-of-type {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.learnio-feedback-admin-response {
    background: var(--learnio-theme-surface-soft);
    border: 1px solid var(--learnio-theme-border);
    border-radius: 8px;
    margin-top: 1rem;
    padding: 1rem;
}

.learnio-feedback-admin-note {
    background: var(--learnio-theme-surface-soft);
}

.learnio-feedback-filter {
    margin-bottom: 1rem;
}

[data-bs-theme="dark"] .learnio-feedback-card,
[data-bs-theme="dark"] .learnio-feedback-admin-response {
    background: var(--learnio-theme-surface);
    border-color: var(--learnio-theme-border);
}

[data-bs-theme="dark"] .learnio-feedback-priority,
[data-bs-theme="dark"] .learnio-feedback-admin-note {
    background: var(--learnio-theme-surface-soft);
}

[data-bs-theme="dark"] .learnio-feedback-status-new,
[data-bs-theme="dark"] .learnio-feedback-status-in_review,
[data-bs-theme="dark"] .learnio-feedback-status-in_progress {
    color: #93c5fd;
}

[data-bs-theme="dark"] .learnio-feedback-status-planned {
    color: #facc15;
}

[data-bs-theme="dark"] .learnio-feedback-status-implemented,
[data-bs-theme="dark"] .learnio-feedback-response-chip {
    color: #86efac;
}

@media (max-width: 767.98px) {
    .learnio-feedback-button-text {
        display: none;
    }

    .learnio-feedback-button-short {
        display: inline;
    }

    .learnio-feedback-list-item {
        display: block;
    }

    .learnio-feedback-list-item .btn {
        margin-top: 0.75rem;
        width: 100%;
    }
}

[data-bs-theme="dark"] .learnio-test-preview-banner {
    background: rgba(37, 99, 235, 0.14);
    border-color: rgba(147, 197, 253, 0.34);
    color: var(--learnio-theme-text);
}

[data-bs-theme="dark"] .learnio-test-preview-banner p {
    color: var(--learnio-theme-muted);
}

[data-bs-theme="dark"] .learnio-test-preview-icon {
    background: rgba(30, 41, 59, 0.82);
    color: #93c5fd;
}

[data-bs-theme="dark"] .learnio-test-preview-simulation .learnio-child-page-header h2,
[data-bs-theme="dark"] .learnio-test-preview-empty h2 {
    color: var(--learnio-theme-text);
}

[data-bs-theme="dark"] .learnio-test-preview-empty {
    background: rgba(15, 23, 42, 0.86);
    border-color: rgba(148, 163, 184, 0.34);
    color: var(--learnio-theme-muted);
}

[data-bs-theme="dark"] .learnio-test-preview-empty .fa-solid {
    color: #93c5fd;
}

@media (max-width: 575.98px) {
    .learnio-test-preview-banner {
        padding: 1rem;
    }

    .learnio-test-preview-banner h1 {
        font-size: 1.15rem;
    }

    .learnio-test-preview-actions,
    .learnio-test-preview-actions .btn {
        width: 100%;
    }

    .learnio-test-preview-actions .btn {
        text-align: center;
    }
}

.learnio-help-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.learnio-help-page {
    padding: 2rem 0 3rem;
}

.learnio-help-hero {
    margin-bottom: 1.25rem;
    max-width: 900px;
}

.learnio-help-hero h1 {
    color: var(--learnio-theme-text);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: 0;
    margin: 0.75rem 0 0.5rem;
}

.learnio-help-hero h2 {
    color: var(--learnio-theme-accent);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 0.35rem;
}

.learnio-help-hero p,
.learnio-help-result-label {
    color: var(--learnio-theme-muted);
    margin: 0;
}

.learnio-help-open-guide {
    margin-top: 1rem;
}

.learnio-help-search {
    align-items: stretch;
    background: var(--learnio-theme-surface);
    border: 1px solid var(--learnio-theme-border);
    border-radius: 8px;
    box-shadow: var(--learnio-theme-shadow);
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    max-width: 860px;
    padding: 0.85rem;
}

.learnio-help-search .form-control {
    min-height: 42px;
}

.learnio-help-result-label {
    margin-bottom: 1rem;
}

.learnio-help-section-title {
    color: var(--learnio-theme-text);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0.5rem 0 1rem;
}

.learnio-help-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.learnio-help-card,
.learnio-help-empty,
.learnio-help-feedback-hint {
    background: var(--learnio-theme-surface);
    border: 1px solid var(--learnio-theme-border);
    border-radius: 8px;
    box-shadow: var(--learnio-theme-shadow);
}

.learnio-help-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 100%;
    padding: 1.15rem;
}

.learnio-help-card h2,
.learnio-help-empty h2,
.learnio-help-feedback-hint h2 {
    color: var(--learnio-theme-text);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0;
}

.learnio-help-card p,
.learnio-help-empty p,
.learnio-help-feedback-hint p {
    color: var(--learnio-theme-muted);
    margin: 0;
}

.learnio-help-card .btn {
    margin-top: auto;
    width: fit-content;
}

.learnio-help-category {
    color: var(--learnio-theme-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.learnio-help-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.learnio-help-tags span {
    background: var(--learnio-theme-surface-soft);
    border: 1px solid var(--learnio-theme-border);
    border-radius: 999px;
    color: var(--learnio-theme-muted);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.22rem 0.55rem;
}

.learnio-help-empty {
    padding: 2rem;
    text-align: center;
}

.learnio-help-empty .fa-solid {
    color: var(--learnio-theme-accent);
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.learnio-help-empty .btn {
    margin-top: 1rem;
}

.learnio-help-feedback-hint {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding: 1rem;
}

.learnio-help-feedback-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.learnio-help-feedback-links a {
    background: var(--learnio-theme-surface-soft);
    border: 1px solid var(--learnio-theme-border);
    border-radius: 999px;
    color: var(--learnio-theme-accent);
    font-size: 0.86rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    text-decoration: none;
}

.learnio-help-feedback-links a:hover,
.learnio-help-feedback-links a:focus {
    border-color: var(--learnio-theme-accent);
}

.learnio-help-onboarding-modal .modal-content {
    background: var(--learnio-theme-surface);
    border: 1px solid var(--learnio-theme-border);
    border-radius: 12px;
    box-shadow: var(--learnio-theme-shadow);
    color: var(--learnio-theme-text);
}

.learnio-help-onboarding-modal .modal-header,
.learnio-help-onboarding-modal .modal-footer {
    border-color: var(--learnio-theme-border);
}

.learnio-help-onboarding-modal .modal-title {
    color: var(--learnio-theme-text);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0.15rem 0 0;
}

.learnio-help-onboarding-kicker {
    color: var(--learnio-theme-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.learnio-help-onboarding-intro,
.learnio-help-onboarding-note {
    color: var(--learnio-theme-muted);
}

.learnio-help-onboarding-intro {
    margin-bottom: 1rem;
}

.learnio-help-onboarding-note {
    font-size: 0.9rem;
    margin: 1rem 0 0;
}

.learnio-help-onboarding-steps {
    display: grid;
    gap: 0.75rem;
}

.learnio-help-onboarding-step {
    align-items: flex-start;
    background: var(--learnio-theme-surface-soft);
    border: 1px solid var(--learnio-theme-border);
    border-radius: 8px;
    display: flex;
    gap: 0.75rem;
    padding: 0.9rem;
}

.learnio-help-onboarding-step > span {
    align-items: center;
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: #1d4ed8;
    display: inline-flex;
    flex: 0 0 1.8rem;
    font-size: 0.88rem;
    font-weight: 800;
    height: 1.8rem;
    justify-content: center;
}

.learnio-help-onboarding-step h3 {
    color: var(--learnio-theme-text);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 0.2rem;
}

.learnio-help-onboarding-step p {
    color: var(--learnio-theme-muted);
    margin: 0;
}

.learnio-help-onboarding-actions {
    gap: 0.5rem;
}

.learnio-help-onboarding-fallback-show {
    background: rgba(15, 23, 42, 0.62);
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
}

[data-bs-theme="dark"] .learnio-help-search,
[data-bs-theme="dark"] .learnio-help-card,
[data-bs-theme="dark"] .learnio-help-empty,
[data-bs-theme="dark"] .learnio-help-feedback-hint,
[data-bs-theme="dark"] .learnio-help-onboarding-modal .modal-content {
    background: var(--learnio-theme-surface);
    border-color: var(--learnio-theme-border);
}

[data-bs-theme="dark"] .learnio-help-tags span,
[data-bs-theme="dark"] .learnio-help-feedback-links a,
[data-bs-theme="dark"] .learnio-help-onboarding-step {
    background: var(--learnio-theme-surface-soft);
    border-color: var(--learnio-theme-border);
}

[data-bs-theme="dark"] .learnio-help-onboarding-step > span {
    background: var(--learnio-theme-accent);
    border-color: var(--learnio-theme-accent);
    color: #ffffff;
}

@media (max-width: 767.98px) {
    .learnio-help-page {
        padding-top: 1.25rem;
    }

    .learnio-help-search,
    .learnio-help-feedback-hint {
        display: block;
    }

    .learnio-help-search .btn,
    .learnio-help-feedback-hint .btn {
        margin-top: 0.75rem;
        width: 100%;
    }

    .learnio-help-grid {
        grid-template-columns: 1fr;
    }

    .learnio-help-onboarding-modal .modal-dialog {
        margin: 0.75rem;
    }

    .learnio-help-onboarding-modal .modal-title {
        font-size: 1.15rem;
    }

    .learnio-help-onboarding-step {
        padding: 0.8rem;
    }

    .learnio-help-onboarding-actions {
        display: grid;
    }

    .learnio-help-onboarding-actions .btn {
        width: 100%;
    }
}
