* {
    box-sizing: border-box;
}

/* Survey surfaces use a calmer type scale than task/resource builders. */
.survey-builder-page .resource-form-control,
.survey-builder-page input[type="text"],
.survey-builder-page input[type="number"],
.survey-builder-page textarea,
.survey-builder-page select,
.survey-builder-page .survey-section-title-input,
.survey-builder-page .survey-section-description-input,
.survey-builder-page .survey-question-text,
.survey-builder-page .survey-builder-list-row input,
.student-survey-page input,
.student-survey-page textarea,
.student-survey-page select {
    font-weight: 500 !important;
    letter-spacing: 0 !important;
}

.survey-builder-page label,
.survey-builder-page .resource-field label,
.survey-builder-page .survey-section-card label,
.survey-builder-page .survey-question-footer label,
.survey-results-page label,
.student-survey-page label {
    font-weight: 600 !important;
}

.survey-builder-page h2,
.survey-results-page h2,
.student-survey-page h2,
.survey-builder-page h3,
.survey-results-page h3,
.student-survey-page h3,
.survey-builder-page .survey-fallback-title,
.survey-builder-page .survey-question-card strong,
.survey-results-page .survey-result-head h3,
.student-survey-page .student-survey-question-head h4 {
    font-weight: 700 !important;
}

.survey-builder-page .eyebrow,
.survey-results-page .eyebrow,
.student-survey-page .eyebrow,
.survey-builder-page .survey-section-toolbar,
.survey-builder-page .survey-fallback-chip,
.survey-builder-page .survey-fallback-question-top em,
.student-survey-page .student-survey-question-head span,
.survey-results-page .survey-result-head span {
    font-weight: 700 !important;
}

.survey-builder-page p,
.survey-builder-page small,
.survey-builder-page .survey-fallback-description,
.survey-builder-page .survey-question-note,
.survey-builder-page .survey-fallback-likert p,
.survey-builder-page .survey-fallback-options span,
.survey-builder-page .survey-fallback-likert span,
.survey-results-page p,
.survey-results-page span,
.student-survey-page p,
.student-survey-page span {
    font-weight: 400 !important;
}

.survey-builder-page .btn,
.survey-builder-page button,
.survey-results-page .btn,
.student-survey-page .btn {
    font-weight: 650 !important;
}

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

.survey-builder-page .resource-switch-row strong,
.survey-builder-page .resource-switch-row small {
    display: block;
}

.survey-builder-page .resource-switch-row strong {
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 650 !important;
}

.survey-builder-page .resource-switch-row small {
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.35;
    font-weight: 400 !important;
}

.survey-builder-page,
.student-survey-page,
.survey-results-page {
    width: min(96rem, calc(100vw - 2rem));
    margin: 1.25rem auto 2rem;
    color: #081426;
}

.survey-builder-hero,
.student-survey-hero,
.survey-results-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    border: 1px solid rgba(191, 219, 254, 0.9);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(13, 148, 136, 0.96), rgba(11, 91, 211, 0.96)),
        #0b5bd3;
    box-shadow: 0 22px 52px rgba(11, 91, 211, 0.18);
    padding: clamp(1rem, 2.4vw, 1.55rem);
    color: #ffffff;
}

.survey-builder-hero h2,
.student-survey-hero h2,
.survey-results-hero h2 {
    margin: 0.2rem 0;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.05;
}

.survey-builder-hero p,
.student-survey-hero p,
.survey-results-hero p {
    max-width: 54rem;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 500;
}

.survey-builder-hero .builder-back-link,
.survey-results-hero .builder-back-link {
    color: #ffffff;
}

.survey-hero-card,
.survey-results-total {
    display: grid;
    place-items: center;
    min-width: 7.5rem;
    min-height: 7.5rem;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    text-align: center;
}

.survey-hero-card i {
    font-size: 1.3rem;
}

.survey-hero-card strong,
.survey-results-total strong {
    font-size: 2rem;
    font-weight: 850;
    line-height: 1;
}

.survey-hero-card span,
.survey-results-total span {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

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

.survey-builder-canvas,
.survey-results-main,
.student-survey-form {
    display: grid;
    gap: 1rem;
}

.survey-schema-field {
    display: none;
}

.survey-form-card,
.student-survey-section,
.survey-result-card,
.survey-side-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #d7e4f4;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(8, 20, 38, 0.08);
}

.survey-form-card {
    padding: clamp(1rem, 2vw, 1.3rem);
}

.survey-form-strip,
.survey-section-card::before,
.survey-result-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #14b8a6, #0b5bd3);
}

.survey-title-card {
    display: grid;
    gap: 0.8rem;
}

.survey-title-card label,
.survey-section-card label,
.survey-builder-page .resource-field label {
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
}

.survey-builder-page input[type="text"],
.survey-builder-page input[type="number"],
.survey-builder-page textarea,
.survey-builder-page select,
.student-survey-question input[type="text"],
.student-survey-question textarea,
.student-survey-question select {
    width: 100%;
    min-width: 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    padding: 0.82rem 0.9rem;
    outline: none;
}

.survey-builder-page input:focus,
.survey-builder-page textarea:focus,
.survey-builder-page select:focus,
.student-survey-question input:focus,
.student-survey-question textarea:focus,
.student-survey-question select:focus {
    border-color: #0b5bd3;
    box-shadow: 0 0 0 3px rgba(11, 91, 211, 0.13);
}

.survey-section-toolbar,
.survey-question-top,
.survey-question-footer,
.survey-result-head,
.student-survey-section-head,
.student-survey-question-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.survey-section-toolbar {
    margin-bottom: 0.75rem;
    color: #0b5bd3;
    font-size: 0.78rem;
    font-weight: 750;
    text-transform: uppercase;
}

.survey-section-toolbar button,
.survey-builder-list-row button,
.survey-question-footer button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fbff;
    color: #0b5bd3;
    min-height: 2.35rem;
    padding: 0 0.7rem;
    font-weight: 700;
}

.survey-question-list {
    display: grid;
    gap: 0.9rem;
    margin-top: 1rem;
}

.survey-question-card {
    display: grid;
    gap: 0.8rem;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    padding: 1rem;
}

.survey-question-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 15rem);
}

.survey-question-config {
    display: grid;
    gap: 0.65rem;
}

.survey-builder-list {
    display: grid;
    gap: 0.55rem;
}

.survey-builder-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
}

.survey-question-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 0.75rem;
    flex-wrap: wrap;
}

.survey-question-footer label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 650;
    color: #334155;
}

.survey-mini-add,
.survey-add-question,
.survey-add-section {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px dashed #93c5fd;
    border-radius: 8px;
    background: #eff6ff;
    color: #0b5bd3;
    min-height: 2.8rem;
    padding: 0 1rem;
    font-weight: 750;
}

.survey-add-section {
    width: 100%;
    background: #ffffff;
}

.survey-question-note {
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fbff;
    color: #52657f;
    padding: 0.85rem;
    font-weight: 500;
}

.survey-server-fallback {
    background:
        linear-gradient(180deg, rgba(248, 251, 255, 0.88), #ffffff 34%),
        #ffffff;
}

.survey-fallback-chip {
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    padding: 0.28rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.survey-fallback-title {
    margin: 0.2rem 0;
    color: #081426;
    font-size: 1.25rem;
    font-weight: 750;
}

.survey-fallback-description {
    margin: 0 0 0.85rem;
    color: #52657f;
    font-weight: 500;
}

.survey-fallback-question-top {
    grid-template-columns: minmax(0, 1fr) auto;
}

.survey-fallback-question-top strong,
.survey-fallback-question-top span {
    display: block;
}

.survey-fallback-question-top strong {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
}

.survey-fallback-question-top span {
    margin-top: 0.18rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: capitalize;
}

.survey-fallback-question-top em {
    border-radius: 999px;
    background: #eff6ff;
    color: #0b5bd3;
    padding: 0.32rem 0.62rem;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 700;
}

.survey-fallback-likert,
.survey-fallback-options {
    display: grid;
    gap: 0.5rem;
}

.survey-fallback-likert div,
.survey-fallback-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.survey-fallback-likert span,
.survey-fallback-options span {
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    padding: 0.42rem 0.58rem;
    font-size: 0.78rem;
    font-weight: 500;
}

.survey-fallback-likert p {
    border-left: 3px solid #14b8a6;
    border-radius: 0 8px 8px 0;
    background: #f8fbff;
    color: #334155;
    padding: 0.62rem 0.72rem;
    font-weight: 500;
}

.survey-builder-sidebar,
.survey-results-side {
    position: sticky;
    top: 1rem;
    display: grid;
    gap: 1rem;
}

.survey-side-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
}

.survey-save-button {
    min-height: 3.15rem;
}

.student-survey-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7rem;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.student-survey-section {
    padding: clamp(1rem, 2vw, 1.35rem);
}

.student-survey-section-head {
    display: block;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
}

.student-survey-section-head span,
.survey-result-head span {
    color: #0b5bd3;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.student-survey-section-head h3,
.survey-result-head h3 {
    margin: 0.2rem 0;
    color: #081426;
    font-size: 1.15rem;
    font-weight: 750;
}

.student-survey-section-head p {
    color: #64748b;
    font-weight: 500;
}

.student-survey-question {
    display: grid;
    gap: 0.8rem;
    border-bottom: 1px solid #eef2f7;
    padding: 1rem 0;
}

.student-survey-question.has-error {
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fffafa;
    padding: 1rem;
}

.student-survey-question:last-child {
    border-bottom: 0;
}

.student-survey-question-head h4 {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 650;
}

.student-survey-question-head span {
    border-radius: 999px;
    background: #eff6ff;
    color: #0b5bd3;
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.student-survey-error {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    border: 1px solid #fecaca;
    border-radius: 999px;
    background: #fff1f2;
    color: #b91c1c;
    padding: 0.4rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 650 !important;
}

.student-survey-options {
    display: grid;
    gap: 0.55rem;
}

.student-survey-options label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.78rem 0.85rem;
    color: #1e293b;
    font-weight: 500;
}

.student-likert-wrap {
    overflow-x: auto;
    border: 1px solid #dbeafe;
    border-radius: 8px;
}

.student-likert-table {
    width: 100%;
    min-width: 42rem;
    border-collapse: collapse;
}

.student-likert-table th,
.student-likert-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem;
    text-align: center;
}

.student-likert-table tbody tr:hover {
    background: #f8fbff;
}

.student-likert-table th:first-child,
.student-likert-table td:first-child {
    text-align: left;
    width: 34%;
}

.student-survey-submit {
    justify-self: end;
    min-width: 12rem;
    min-height: 3rem;
}

.survey-result-card {
    padding: 1rem;
}

.survey-result-head {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
}

.survey-result-head small {
    color: #64748b;
    font-weight: 650;
}

.survey-choice-summary,
.survey-likert-summary,
.survey-text-responses,
.survey-response-list {
    display: grid;
    gap: 0.65rem;
}

.survey-choice-bar {
    display: grid;
    gap: 0.4rem;
}

.survey-choice-bar div {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    color: #334155;
    font-weight: 600;
}

.survey-choice-bar small,
.survey-likert-row small {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 500;
}

.survey-choice-bar i {
    display: block;
    height: 0.62rem;
    max-width: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #14b8a6, #0b5bd3);
}

.survey-likert-row {
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.8rem;
}

.survey-likert-row strong {
    display: block;
    margin-bottom: 0.55rem;
    color: #0f172a;
    font-weight: 650;
}

.survey-likert-row strong small {
    margin-left: 0.35rem;
}

.survey-likert-row div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    gap: 0.45rem;
}

.survey-likert-row span {
    display: flex;
    justify-content: space-between;
    gap: 0.4rem;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.55rem;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 500;
}

.survey-likert-row b {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    color: #0b5bd3;
}

.survey-text-responses blockquote {
    border-left: 4px solid #14b8a6;
    border-radius: 0 8px 8px 0;
    background: #f8fbff;
    padding: 0.8rem;
    color: #334155;
    font-weight: 500;
}

.survey-response-list div {
    display: grid;
    gap: 0.15rem;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.75rem;
}

.survey-response-list strong {
    color: #0f172a;
    font-weight: 650;
}

.survey-response-list span {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 500;
}

.choice-icon.survey,
.activity-type-icon.survey,
.mini-activity-icon.survey {
    background: #eef2ff;
    color: #4f46e5;
}

.survey-feed-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.96) 48%, rgba(236, 253, 245, 0.72)),
        #ffffff;
    padding: clamp(1rem, 2vw, 1.2rem);
    box-shadow: 0 16px 34px rgba(8, 20, 38, 0.08);
}

.survey-feed-icon {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border: 1px solid #c7d2fe;
    border-radius: 8px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 1.15rem;
}

.survey-feed-copy {
    min-width: 0;
}

.survey-feed-eyebrow {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #eff6ff;
    color: #0b5bd3;
    padding: 0.28rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.survey-feed-copy h3 {
    margin: 0.45rem 0 0;
    color: #0f172a;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 750;
    letter-spacing: 0;
}

.survey-feed-copy p {
    margin: 0.32rem 0 0;
    max-width: 54rem;
    color: #52657f;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.45;
}

.survey-feed-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.survey-feed-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #475569;
    padding: 0.36rem 0.58rem;
    font-size: 0.78rem;
    font-weight: 500;
}

.survey-feed-meta span.is-complete {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

.survey-feed-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.survey-feed-actions .btn {
    min-height: 2.7rem;
    white-space: nowrap;
}

.survey-feed-done {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
    color: #15803d;
    min-height: 2.7rem;
    padding: 0 0.9rem;
    font-size: 0.88rem;
    font-weight: 700;
}

.survey-feed-done.is-locked {
    border-color: #dbe7f6;
    background: #f8fbff;
    color: #64748b;
}

@media (max-width: 820px) {
    .survey-feed-card {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
    }

    .survey-feed-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .survey-feed-actions .btn,
    .survey-feed-done {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .survey-builder-layout,
    .survey-results-layout {
        grid-template-columns: 1fr;
    }

    .survey-builder-sidebar,
    .survey-results-side {
        position: static;
    }

    .survey-builder-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .survey-save-button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .survey-builder-page,
    .student-survey-page,
    .survey-results-page {
        width: min(100% - 1rem, 96rem);
        margin-top: 0.75rem;
    }

    .survey-builder-hero,
    .student-survey-hero,
    .survey-results-hero {
        grid-template-columns: 1fr;
    }

    .survey-builder-sidebar {
        grid-template-columns: 1fr;
    }

    .survey-side-card {
        padding: 0.9rem;
    }

    .survey-save-button {
        position: sticky;
        bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
        z-index: 6;
        width: 100%;
        box-shadow: 0 14px 30px rgba(11, 91, 211, 0.24);
    }

    .survey-hero-card,
    .survey-results-total {
        min-width: 100%;
        min-height: 5.5rem;
    }

    .survey-question-top {
        grid-template-columns: 1fr;
    }

    .survey-question-card {
        padding: 0.85rem;
    }

    .survey-builder-list-row {
        grid-template-columns: 1fr auto;
        align-items: stretch;
    }

    .survey-builder-list-row input {
        min-height: 2.85rem;
    }

    .survey-question-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .survey-question-footer button,
    .survey-mini-add,
    .survey-add-question,
    .survey-add-section {
        width: 100%;
    }

    .student-survey-submit {
        width: 100%;
        justify-self: stretch;
    }

    .student-likert-table {
        min-width: 34rem;
    }

    .student-likert-table th,
    .student-likert-table td {
        padding: 0.62rem;
    }
}

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

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

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

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

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

.login-story {
    position: relative;
    min-height: min(34rem, calc(100svh - 2rem));
    padding: clamp(1rem, 2.2vw, 1.8rem);
}

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

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

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

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

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

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

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

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

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

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

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

.login-story-copy {
    max-width: 39rem;
    margin-top: clamp(2rem, 7vh, 4.8rem);
}

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

.login-story-copy h1 {
    margin: 0.72rem 0 0;
    color: #ffffff;
    font-size: clamp(2.35rem, 4.6vw, 4.25rem);
    font-weight: 950;
    line-height: 0.98;
    letter-spacing: 0;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.login-panel {
    position: relative;
    z-index: 2;
    justify-self: end;
    width: min(30.5rem, 100%);
}

.login-card {
    border: 1px solid rgba(207, 224, 238, 0.88);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
    max-height: calc(100svh - 1.7rem);
    overflow-y: auto;
    scrollbar-width: thin;
    padding: clamp(1rem, 2vw, 1.45rem);
}

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

.login-logo-stage {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: clamp(5.6rem, 9vw, 7.2rem);
    aspect-ratio: 1;
    margin: 0 auto 0.45rem;
}

.login-logo-stage::before,
.login-logo-stage::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.login-logo-stage::before {
    inset: 0.38rem;
    z-index: -1;
    background: radial-gradient(circle, rgba(11, 98, 180, 0.15), transparent 68%);
    animation: login-logo-aura 3.8s ease-in-out infinite;
}

.login-logo-stage::after {
    inset: 0.75rem;
    z-index: -1;
    border: 1px solid rgba(244, 123, 32, 0.28);
    animation: login-logo-ring 4.4s ease-in-out infinite;
}

.login-card-logo {
    display: block;
    width: 100%;
    max-width: 7rem;
    height: auto;
    animation: login-logo-lift 5.2s ease-in-out infinite;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.login-form {
    display: grid;
    gap: 0.7rem;
    margin-top: 0.85rem;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.offline-release-page {
    display: grid;
    gap: 1.15rem;
    max-width: 1180px;
    margin: 0 auto;
}

.offline-release-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.38fr);
    gap: 1rem;
    align-items: center;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(151, 196, 244, 0.7);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(9, 67, 124, 0.98), rgba(26, 128, 182, 0.94)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent);
    box-shadow: 0 20px 46px rgba(8, 47, 73, 0.16);
    padding: clamp(1.15rem, 2.4vw, 1.85rem);
    color: #ffffff;
}

.offline-release-hero::after {
    content: "";
    position: absolute;
    right: -6rem;
    top: -8rem;
    width: 22rem;
    height: 22rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    pointer-events: none;
}

.offline-release-hero-copy {
    position: relative;
    z-index: 1;
}

.offline-release-hero h1 {
    margin: 0.2rem 0 0;
    max-width: 46rem;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1.05;
}

.offline-release-hero p {
    margin: 0.5rem 0 0;
    max-width: 44rem;
    color: rgba(255, 255, 255, 0.86);
}

.offline-release-advice {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    padding: 0.9rem;
}

.offline-release-advice span {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 8px;
    background: #ffffff;
    color: #0b62b4;
}

.offline-release-advice strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 950;
}

.offline-release-advice p {
    margin-top: 0.18rem;
    font-size: 0.82rem;
    line-height: 1.4;
}

.offline-release-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(14rem, auto);
    gap: 1rem;
    align-items: center;
    border: 1px solid #b9d7f6;
    border-radius: 8px;
    background:
        linear-gradient(180deg, #ffffff, #f5faff);
    box-shadow: 0 18px 42px rgba(8, 47, 73, 0.11);
    padding: clamp(1rem, 2vw, 1.35rem);
}

.offline-release-feature-copy {
    display: grid;
    gap: 0.65rem;
}

.offline-release-feature h2 {
    margin: 0;
    color: #081426;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    font-weight: 950;
    letter-spacing: 0;
}

.offline-release-feature p {
    margin: 0;
    color: #52677d;
}

.offline-release-feature dl {
    display: grid;
    grid-template-columns: minmax(13rem, 1.4fr) repeat(2, minmax(8rem, 0.6fr));
    gap: 0.55rem;
    margin: 0.2rem 0 0;
}

.offline-release-feature dl div {
    min-width: 0;
    border: 1px solid #dce8f3;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.65rem 0.72rem;
}

.offline-release-feature dt,
.offline-release-meta dt {
    color: #64758a;
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.offline-release-feature dd,
.offline-release-meta dd {
    margin: 0.15rem 0 0;
    overflow: hidden;
    color: #0d1828;
    font-size: 0.84rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.offline-release-feature-action {
    display: grid;
    gap: 0.55rem;
    justify-items: stretch;
    min-width: 13.5rem;
}

.offline-release-feature-action .btn {
    justify-content: center;
}

.offline-release-feature-action p {
    color: #64758a;
    font-size: 0.78rem;
    text-align: center;
}

.offline-release-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.33fr);
    gap: 1rem;
    align-items: start;
}

.offline-release-list {
    display: grid;
    gap: 1rem;
}

.offline-release-section {
    display: grid;
    gap: 0.8rem;
    border: 1px solid #d7e6f4;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    padding: 0.95rem;
}

.offline-release-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.offline-release-section-head h2 {
    margin: 0.15rem 0 0;
    color: #081426;
    font-size: 1.15rem;
    font-weight: 950;
}

.offline-release-grid {
    display: grid;
    gap: 0.8rem;
}

.offline-release-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    border: 1px solid #cfe0ee;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(8, 47, 73, 0.08);
    padding: 1rem;
}

.offline-release-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 8px;
    background: #e8f3ff;
    color: #0b62b4;
}

.offline-release-icon.is-beta {
    background: #fff4e8;
    color: #b45309;
}

.offline-release-card.is-recommended {
    border-color: #97c4f4;
    background:
        linear-gradient(180deg, rgba(237, 246, 255, 0.78), rgba(255, 255, 255, 0.98));
}

.offline-release-card.is-beta {
    border-color: #fed7aa;
}

.offline-release-main {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.offline-release-title-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.offline-release-badge,
.offline-release-recommended {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: max-content;
    border-radius: 999px;
    padding: 0.24rem 0.58rem;
    font-size: 0.72rem;
    font-weight: 950;
}

.offline-release-badge.is-stable {
    background: #dcfce7;
    color: #047857;
}

.offline-release-badge.is-beta {
    background: #ffedd5;
    color: #b45309;
}

.offline-release-recommended {
    background: #dbeafe;
    color: #1d4ed8;
}

.offline-release-main h2,
.offline-release-main h3 {
    margin: 0;
    color: #081426;
    font-size: 1.08rem;
    font-weight: 950;
}

.offline-release-main p {
    margin: 0;
    color: #52677d;
    font-size: 0.84rem;
}

.offline-release-meta {
    display: grid;
    grid-template-columns: minmax(10rem, 1.25fr) repeat(2, minmax(6.5rem, 0.5fr));
    gap: 0.55rem;
    margin: 0;
}

.offline-release-meta div {
    min-width: 0;
    border: 1px solid #dce8f3;
    border-radius: 8px;
    background: rgba(248, 251, 254, 0.86);
    padding: 0.56rem 0.65rem;
}

.offline-release-actions {
    display: flex;
    justify-content: flex-end;
}

.offline-release-guide {
    position: sticky;
    top: 5.75rem;
    display: grid;
    gap: 0.85rem;
}

.offline-release-guide section {
    border: 1px solid #d7e6f4;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(8, 47, 73, 0.07);
    padding: 0.95rem;
}

.offline-release-guide ol {
    display: grid;
    gap: 0.65rem;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}

.offline-release-guide li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 750;
}

.offline-release-guide li span {
    display: grid;
    place-items: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    background: #e8f3ff;
    color: #0b62b4;
    font-size: 0.72rem;
    font-weight: 950;
}

.offline-release-guide section > p:last-child {
    margin: 0.55rem 0 0;
    color: #52677d;
    font-size: 0.86rem;
    line-height: 1.45;
}

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

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

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

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

@keyframes login-logo-lift {
    0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 10px 18px rgba(11, 98, 180, 0.12)); }
    50% { transform: translateY(-0.22rem) scale(1.015); filter: drop-shadow(0 15px 22px rgba(11, 98, 180, 0.18)); }
}

@keyframes login-logo-aura {
    0%, 100% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.08); opacity: 0.9; }
}

@keyframes login-logo-ring {
    0%, 100% { transform: scale(0.78); opacity: 0.28; }
    50% { transform: scale(1.16); opacity: 0; }
}

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

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

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

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

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

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

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

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

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

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

    .login-shell {
        width: min(calc(100% - 1rem), 25.5rem);
        max-width: 100%;
        min-height: 100svh;
        align-content: center;
        padding: max(0.45rem, env(safe-area-inset-top)) 0 max(0.45rem, env(safe-area-inset-bottom));
        gap: 0;
    }

    .login-story {
        display: none;
    }

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

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

    .login-story-copy h1 {
        margin-top: 0.32rem;
        max-width: 100%;
        font-size: clamp(1.08rem, 6.6vw, 1.34rem);
        line-height: 1.12;
        letter-spacing: 0;
        overflow-wrap: anywhere;
    }

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

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

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

    .login-panel {
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
    }

    .login-card {
        width: 100%;
        max-width: 100%;
        border-color: rgba(255, 255, 255, 0.34);
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 255, 0.88));
        backdrop-filter: blur(18px);
        max-height: calc(100svh - 0.9rem);
        padding: 0.72rem 0.82rem 0.78rem;
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
        overflow: hidden;
    }

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

    .login-logo-stage {
        width: 4.7rem;
        margin-bottom: 0.28rem;
    }

    .login-card-logo {
        max-width: 4.7rem;
    }

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

    .login-card-head h2 {
        margin-top: 0.18rem;
        font-size: 1.08rem;
    }

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

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

    .login-form {
        gap: 0.5rem;
        margin-top: 0.56rem;
    }

    .login-field {
        gap: 0.28rem;
    }

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

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

    .login-field input {
        padding: 0.58rem 0.72rem;
        font-size: 1rem;
    }

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

    .login-google-button,
    .login-submit {
        font-size: 0.9rem;
    }

    .login-divider {
        gap: 0.55rem;
        margin: 0.54rem 0;
    }

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

    .login-links a,
    .login-links span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

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

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

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

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

    .offline-release-hero,
    .offline-release-feature,
    .offline-release-layout,
    .offline-release-card,
    .offline-release-feature dl {
        grid-template-columns: 1fr;
    }

    .offline-release-hero {
        align-items: start;
        padding: 0.95rem;
    }

    .offline-release-advice {
        padding: 0.72rem;
    }

    .offline-release-card {
        align-items: stretch;
        gap: 0.8rem;
        padding: 0.85rem;
    }

    .offline-release-feature-action,
    .offline-release-card .btn {
        width: 100%;
        min-width: 0;
    }

    .offline-release-feature-action .btn,
    .offline-release-card .btn {
        justify-content: center;
    }

    .offline-release-guide {
        position: static;
    }

    .offline-release-meta {
        grid-template-columns: 1fr;
    }

    .offline-release-feature dd,
    .offline-release-meta dd {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

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

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

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

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

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

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

button,
a {
    touch-action: manipulation;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.app-shell {
    background: #f3f6fa;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.brand-mark img {
    width: 86%;
    height: 86%;
    object-fit: contain;
}

.sidebar .brand-mark {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar .brand-mark img {
    width: 92%;
    height: 92%;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.sidebar-scrim {
    display: none;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.course-health-actions form {
    display: inline-flex;
}

.course-health-actions form button,
.course-health-actions > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 0;
    background: transparent;
    color: #004fc4;
    font-size: 0.82rem;
    font-weight: 900;
    cursor: pointer;
}

.course-health-actions form button:hover,
.course-health-actions > a:hover {
    color: #003985;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.activity-body {
    padding: 1rem;
}

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

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

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

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

.feed-resource-card {
    border-color: #d8e3f1;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.feed-resource-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.9rem 1rem 0.75rem;
    background: #ffffff;
}

.feed-resource-icon {
    width: 2.55rem;
    height: 2.55rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #0b5bd3, #1098ad);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(11, 91, 211, 0.22);
}

.feed-resource-copy {
    min-width: 0;
}

.feed-resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.feed-resource-meta span + span::before {
    content: "•";
    margin-right: 0.3rem;
    color: #94a3b8;
}

.feed-resource-copy h3 {
    margin: 0.18rem 0 0;
    color: #0f172a;
    font-size: clamp(1.05rem, 1.7vw, 1.42rem);
    line-height: 1.15;
    font-weight: 950;
}

.feed-resource-description {
    margin-top: 0.3rem;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.45;
}

.feed-resource-description [data-expandable-content] {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-resource-description.is-expanded [data-expandable-content] {
    display: inline;
}

.feed-resource-description [data-expandable-toggle] {
    display: inline;
    border: 0;
    background: transparent;
    color: #0b5bd3;
    font-weight: 900;
    cursor: pointer;
}

.feed-resource-state {
    display: flex;
    justify-content: flex-end;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 950;
    white-space: nowrap;
}

.status-chip.is-progress {
    border-color: #0b5bd3;
    background: #eef5ff;
    color: #0b5bd3;
}

.status-chip.is-complete {
    border-color: #86efac;
    background: #dcfce7;
    color: #166534;
}

.status-chip.is-locked {
    border-color: #e2e8f0;
    background: #f1f5f9;
    color: #64748b;
}

.premium-task-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.05rem 1.15rem;
}

.premium-task-icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.premium-task-icon.assignment {
    background: linear-gradient(135deg, #7c3aed, #0b62d8);
}

.premium-task-icon.quiz {
    background: linear-gradient(135deg, #0891b2, #0b62d8);
}

.premium-task-copy {
    min-width: 0;
}

.premium-task-copy h3 {
    margin: 0.22rem 0 0;
    color: #0f172a;
    font-size: clamp(1.05rem, 1.6vw, 1.28rem);
    line-height: 1.18;
    font-weight: 950;
}

.premium-task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.55rem;
}

.premium-task-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 1.9rem;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.28rem 0.55rem;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 900;
}

.premium-task-meta span.is-complete {
    border-color: #86efac;
    background: #ecfdf5;
    color: #166534;
}

.premium-task-action {
    display: flex;
    justify-content: flex-end;
}

.feed-resource-body {
    padding: 0;
}

.feed-resource-body .resource-viewer {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
}

.feed-resource-body .resource-frame {
    min-height: clamp(28rem, 68vh, 52rem);
    height: clamp(28rem, 68vh, 52rem);
    border: 0;
    border-radius: 0;
}

.feed-resource-body .resource-viewer[data-resource-type="h5p"] .resource-frame,
.feed-resource-body .resource-viewer[data-resource-type="html"] .resource-frame,
.feed-resource-body .resource-viewer[data-resource-type="scorm"] .resource-frame,
.feed-resource-body .resource-viewer[data-resource-type="imscc"] .resource-frame {
    min-height: clamp(24rem, 62vh, 46rem);
    height: clamp(24rem, 62vh, 46rem);
}

.feed-resource-body .resource-viewer[data-resource-type="h5p"] .resource-frame {
    min-height: clamp(22rem, 56vh, 42rem);
    height: clamp(22rem, 56vh, 42rem);
}

.feed-resource-body .media-viewer,
.feed-resource-body .image-viewer {
    width: 100%;
    max-height: min(76vh, 52rem);
    border: 0;
    border-radius: 0;
}

.feed-resource-body .image-viewer {
    object-fit: contain;
    background: #f8fafc;
}

.feed-resource-body .tesda-pdf-scroll {
    border-radius: 0;
}

.feed-monitor-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 0;
    align-items: stretch;
    margin: 0;
    padding: 0;
    border: 0;
    border-top: 1px solid #e2e8f0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.feed-monitor-item {
    display: grid;
    grid-template-columns: auto minmax(0, auto);
    grid-template-areas:
        "icon label"
        "icon value";
    align-content: center;
    column-gap: 0.55rem;
    min-height: 4.2rem;
    padding: 0.7rem 1rem;
    border-right: 1px solid #edf2f7;
}

.feed-monitor-item i {
    grid-area: icon;
    align-self: center;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #eef5ff;
    color: #0b5bd3;
}

.feed-monitor-item span {
    grid-area: label;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.feed-monitor-item strong {
    grid-area: value;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 950;
}

.feed-completion-action {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 10rem;
    padding: 0.55rem 0.7rem;
}

.feed-completion-action .btn {
    min-height: 2.55rem;
    width: 100%;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.more-menu {
    position: relative;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.view-only {
    display: block;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.unit-empty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 0.9rem;
}

.unit-empty-card {
    display: grid;
    gap: 1rem;
    align-content: space-between;
    border: 1px solid #d8e7f8;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 14px 30px rgba(8, 47, 87, 0.08);
    padding: 1rem;
    text-align: left;
}

.unit-empty-card span,
.unit-empty-card small {
    display: block;
    color: #0b62d8;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.unit-empty-card h4 {
    margin: 0.25rem 0 0;
    color: #081426;
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.22;
}

.unit-empty-card small {
    margin-top: 0.28rem;
    color: #52657f;
}

.unit-empty-card p {
    margin: 0.55rem 0 0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.45;
}

.unit-empty-card .btn {
    justify-self: start;
}

.competency-overview-shell,
.unit-workspace-head,
.unit-learning-outcome-empty {
    overflow: hidden;
    border: 1px solid #d3e4f6;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
        #ffffff;
    box-shadow: 0 22px 52px rgba(8, 47, 87, 0.11);
}

.competency-overview-shell {
    padding: 0;
}

.competency-overview-head {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 1rem;
    align-items: center;
    border-bottom: 1px solid #dce9f8;
    background:
        linear-gradient(135deg, rgba(234, 242, 255, 0.92), rgba(255, 255, 255, 0.98) 48%, rgba(231, 248, 252, 0.84)),
        #ffffff;
    padding: clamp(1rem, 2.4vw, 1.45rem);
}

.competency-overview-head h2,
.unit-workspace-head h2,
.unit-learning-outcome-empty h3 {
    margin: 0.22rem 0 0;
    color: #081426;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 950;
    line-height: 1.1;
}

.competency-overview-head p:not(.eyebrow),
.unit-workspace-head p:not(.eyebrow),
.unit-learning-outcome-empty p:not(.eyebrow) {
    margin: 0.5rem 0 0;
    max-width: 48rem;
    color: #52657f;
    font-size: 0.92rem;
    line-height: 1.5;
}

.competency-overview-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(5rem, 1fr));
    gap: 0.55rem;
}

.competency-overview-summary span {
    display: grid;
    gap: 0.16rem;
    min-width: 5.5rem;
    border: 1px solid #cfe0f3;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    padding: 0.62rem 0.7rem;
    color: #52657f;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
    box-shadow: 0 10px 22px rgba(8, 47, 87, 0.06);
}

.competency-overview-summary strong {
    color: #081426;
    font-size: 1.25rem;
    line-height: 1;
}

.competency-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(19.5rem, 1fr));
    gap: 1rem;
    padding: clamp(1rem, 2.4vw, 1.35rem);
}

.competency-card {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto auto;
    overflow: visible;
    min-height: 22rem;
    border: 1px solid rgba(180, 204, 234, 0.9);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
        #ffffff;
    box-shadow: 0 14px 34px rgba(8, 47, 87, 0.08);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.competency-card-menu {
    position: absolute;
    z-index: 12;
    top: 1.08rem;
    right: 1rem;
}

.competency-card-menu > summary {
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #b9cff0;
    border-radius: 8px;
    background: #f7faff;
    color: #0b4fb4;
    cursor: pointer;
}

.competency-card-menu[open] {
    z-index: 90;
}

.competency-card-menu-panel {
    width: min(22rem, calc(100vw - 2rem));
    overflow: visible;
}

.competency-card-menu-panel > header {
    display: grid;
    gap: 0.2rem;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.85rem 0.9rem;
}

.competency-card-menu-panel > header strong {
    color: #0f172a;
    font-size: 0.9rem;
}

.competency-card-menu-panel > header span {
    color: #64748b;
    font-size: 0.74rem;
}

.competency-card-menu-panel .competency-unit-edit-link {
    border-bottom: 1px solid #e2e8f0;
    color: #0b4fb4;
}

.competency-transfer-form {
    display: grid;
    gap: 0.42rem;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.78rem 0.9rem;
}

.competency-transfer-form label {
    color: #334155;
    font-size: 0.74rem;
    font-weight: 850;
}

.competency-transfer-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
}

.competency-transfer-controls select {
    min-width: 0;
    border: 1px solid #bfd0e5;
    border-radius: 7px;
    background: #ffffff;
    padding: 0.55rem 0.6rem;
    color: #172033;
    font: inherit;
    font-size: 0.78rem;
}

.competency-transfer-controls button {
    width: auto;
    border: 1px solid #9dbdf5;
    border-radius: 7px;
    background: #eef5ff;
    padding: 0.52rem 0.7rem;
    color: #0b4fb4;
    white-space: nowrap;
}

.competency-delete-form button {
    border-radius: 0 0 8px 8px;
}

body.edit-mode-on .competency-card-status {
    margin-right: 2.75rem;
}

.competency-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #0b62d8, #11a0b6);
    opacity: 0.82;
}

.competency-card:hover {
    transform: translateY(-3px);
    border-color: #8db7ed;
    background:
        linear-gradient(180deg, #ffffff, #f5faff),
        #ffffff;
    box-shadow: 0 26px 54px rgba(8, 47, 87, 0.15);
}

.competency-card-main {
    display: block;
    padding: 1.08rem 1rem 0.9rem;
}

.competency-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.competency-card-icon {
    display: grid;
    place-items: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #0b62d8, #1389b7);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(11, 98, 216, 0.2);
}

.competency-card-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.22rem 0.62rem;
    font-size: 0.68rem;
    font-weight: 950;
}

.competency-card-status.is-live {
    background: #dcfce7;
    color: #166534;
}

.competency-card-status.is-draft {
    background: #e2e8f0;
    color: #475569;
}

.competency-card-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.95rem;
    color: #0b62d8;
    font-size: 0.7rem;
    font-weight: 950;
    text-transform: uppercase;
}

.competency-card h3 {
    margin: 0.58rem 0 0;
    color: #081426;
    font-size: 1.15rem;
    font-weight: 950;
    line-height: 1.22;
}

.competency-card small {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 0;
    border-radius: 999px;
    background: #eef5ff;
    color: #0b62d8;
    padding: 0.18rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: none;
}

.competency-card p {
    margin: 0.68rem 0 0;
    color: #52657f;
    font-size: 0.84rem;
    line-height: 1.5;
}

.competency-card-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    border-top: 1px solid #e3edf8;
    padding: 0.78rem 1rem;
}

.competency-card-stats span {
    display: grid;
    gap: 0.12rem;
    border-radius: 8px;
    background: linear-gradient(180deg, #eef5ff, #eaf7fb);
    padding: 0.62rem;
    color: #52657f;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.competency-card-stats strong {
    color: #081426;
    font-size: 1.15rem;
    line-height: 1;
}

.competency-card-actions {
    display: grid;
    gap: 0.58rem;
    border-top: 1px solid #e3edf8;
    padding: 0.82rem 1rem 1rem;
}

.competency-card.has-empty-outcome .competency-card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(238, 247, 255, 0.96)),
        #ffffff;
}

.competency-card-open {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    width: 100%;
    min-height: 2.8rem;
    border: 1px solid #b9cff0;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.68rem 0.82rem;
    color: #0b4fb4;
    font-size: 0.88rem;
    font-weight: 950;
    box-shadow: 0 10px 20px rgba(8, 47, 87, 0.06);
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.competency-card-open span {
    min-width: 0;
    line-height: 1.2;
}

.competency-card-open i {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b62d8;
    transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.competency-card-primary:hover,
.competency-card-primary:focus-visible {
    border-color: #0b62d8;
    background: linear-gradient(135deg, #0b62d8, #1688c7);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(11, 98, 216, 0.2);
}

.competency-card-primary:hover i,
.competency-card-primary:focus-visible i {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    transform: translateX(2px);
}

.competency-card-add {
    border-color: #8fdcc4;
    background:
        linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
    color: #047857;
    box-shadow: 0 10px 20px rgba(5, 150, 105, 0.09);
}

.competency-card-add i {
    background: #d9fbee;
    color: #047857;
}

.competency-card-add:hover,
.competency-card-add:focus-visible {
    border-color: #059669;
    background: linear-gradient(135deg, #059669 0%, #0f9f8f 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(5, 150, 105, 0.2);
}

.competency-card-add:hover i,
.competency-card-add:focus-visible i {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    transform: rotate(90deg);
}

.competency-card-progress {
    display: grid;
    gap: 0.45rem;
    padding: 0 1rem 0.85rem;
}

.competency-card-progress span {
    overflow: hidden;
    height: 0.45rem;
    border-radius: 999px;
    background: #e3edf8;
}

.competency-card-progress span::before {
    content: "";
    display: block;
    width: calc(var(--unit-progress, 0) * 1%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0b62d8, #13a3b7);
}

.competency-card-progress small {
    display: block;
    width: auto;
    margin: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    color: #52657f;
    font-size: 0.72rem;
    font-weight: 850;
}

.competency-empty-state,
.unit-learning-outcome-empty {
    display: grid;
    justify-items: center;
    text-align: center;
    padding: clamp(1.5rem, 4vw, 2.4rem);
}

.competency-empty-state span,
.unit-learning-outcome-empty span {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 0.8rem;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b62d8;
    font-size: 1.25rem;
}

.unit-workspace-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: clamp(1.05rem, 2.5vw, 1.6rem);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 255, 0.94) 56%, rgba(232, 251, 252, 0.9)),
        #ffffff;
}

.unit-workspace-head > div {
    min-width: 0;
}

.unit-code-pill {
    display: inline-flex;
    margin-top: 0.45rem;
    border-radius: 999px;
    background: #eef5ff;
    color: #0b62d8;
    padding: 0.24rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 950;
}

.builder-crumbs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.36rem;
    max-width: 100%;
    margin-bottom: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    padding: 0.38rem;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.builder-crumbs a,
.builder-crumb-current {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    min-height: 2rem;
    border-radius: 7px;
    padding: 0.34rem 0.62rem;
    line-height: 1;
}

.builder-crumbs a {
    color: #31506f;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.builder-crumbs a:hover {
    background: #eef5ff;
    color: #0b5bd3;
}

.builder-crumb-current {
    background: linear-gradient(135deg, #0b5bd3, #0f8bb8);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(11, 91, 211, 0.18);
}

.builder-crumbs i {
    font-size: 0.72rem;
}

.builder-crumb-separator {
    display: inline-grid;
    place-items: center;
    color: #94a3b8;
    font-size: 0.62rem;
}

.builder-crumb-code {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    margin-left: 0.15rem;
    border-radius: 999px;
    background: #eaf2ff;
    color: #0f3f8f;
    padding: 0.34rem 0.65rem;
    font-size: 0.68rem;
    line-height: 1;
    text-transform: uppercase;
}

@media (max-width: 820px) {
    .competency-overview-head,
    .unit-workspace-head {
        grid-template-columns: 1fr;
    }

    .competency-overview-head .btn,
    .unit-workspace-head .btn {
        justify-self: start;
    }

    .competency-overview-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }
}

@media (max-width: 560px) {
    .competency-overview-summary,
    .competency-card-stats {
        grid-template-columns: 1fr;
    }

    .competency-card.has-empty-outcome .competency-card-actions {
        grid-template-columns: 1fr;
    }

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

.is-dragging {
    opacity: 0.45;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.empty-action-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.class-action-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 0.65rem;
    align-items: stretch;
    width: min(38rem, 100%);
}

.class-action-option {
    position: relative;
    min-height: 7.6rem;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    padding: 0.9rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

a.class-action-option {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.class-action-option span:first-child {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 1rem;
}

.class-action-option strong {
    margin-top: 0.7rem;
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.05;
}

.class-action-option small {
    margin-top: 0.3rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.25;
}

.class-action-option.enroll {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.48rem 0.65rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
}

.class-action-option.enroll strong {
    margin-top: 0;
}

.class-action-option.enroll input {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 2.65rem;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #081426;
    padding: 0.55rem 0.72rem;
    font-weight: 750;
    text-transform: uppercase;
}

.class-action-option.enroll .btn {
    grid-column: 1 / -1;
    min-height: 2.35rem;
}

.class-action-scan {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.45rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
}

.mini-join-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    margin-bottom: 0.8rem;
}

.mini-join-form input {
    min-width: 0;
    min-height: 2.55rem;
    border: 1px solid #d4e2f1;
    border-radius: 8px;
    background: #f8fbff;
    color: #081426;
    padding: 0.55rem 0.7rem;
    font-size: 0.86rem;
    font-weight: 750;
    text-transform: uppercase;
}

.mini-join-form .btn {
    min-height: 2.55rem;
    padding-inline: 0.85rem;
}

.enrolled-mini-list {
    display: grid;
    gap: 0.5rem;
}

.enrolled-mini-list a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.18rem 0.62rem;
    align-items: center;
    border: 1px solid #dce6f0;
    border-radius: 8px;
    background: #fbfdff;
    padding: 0.65rem;
    color: #081426;
    text-decoration: none;
}

.enrolled-mini-list a:hover {
    border-color: #93bfe8;
    box-shadow: 0 10px 18px rgba(9, 42, 73, 0.08);
}

.enrolled-mini-list span {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 8px;
    background: #e9f2ff;
    color: #0b62d8;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.enrolled-mini-list strong {
    overflow: hidden;
    color: #081426;
    font-size: 0.9rem;
    font-weight: 850;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.enrolled-mini-list small {
    overflow: hidden;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.support-workspace {
    display: grid;
    gap: 1rem;
    color: #0d1828;
}

.support-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid #cfe0f3;
    border-radius: 8px;
    background:
        linear-gradient(105deg, rgba(13, 77, 138, 0.98), rgba(18, 111, 231, 0.94), rgba(32, 166, 184, 0.9));
    color: #ffffff;
    padding: 1.45rem;
    box-shadow: 0 16px 30px rgba(7, 54, 95, 0.18);
}

.support-hero .eyebrow,
.support-hero p {
    color: rgba(255, 255, 255, 0.86);
}

.support-hero h2 {
    margin-top: 0.18rem;
    color: #ffffff;
    font-size: clamp(1.5rem, 2.3vw, 2.15rem);
    line-height: 1.08;
    font-weight: 900;
}

.support-hero p:last-child {
    max-width: 42rem;
    margin-top: 0.45rem;
    font-size: 0.94rem;
    font-weight: 600;
}

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

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

.support-panel,
.support-tip-card {
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.065);
}

.support-panel {
    padding: 1.1rem;
}

.support-panel-head {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 1rem;
}

.support-panel-head > span,
.support-tip-card > span {
    display: grid;
    place-items: center;
    width: 2.45rem;
    height: 2.45rem;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #eaf3ff;
    color: #0b62d8;
    font-size: 1rem;
}

.support-panel-head h3,
.support-tip-card h3 {
    color: #081426;
    font-size: 1.08rem;
    font-weight: 900;
}

.support-panel-head p,
.support-tip-card p {
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.45;
}

.support-alert {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    background: #fff7ed;
    padding: 0.75rem;
    color: #9a3412;
    font-size: 0.86rem;
    font-weight: 700;
}

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

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

.support-form-grid label {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.support-form-grid label > span {
    color: #334155;
    font-size: 0.76rem;
    font-weight: 850;
}

.support-form-grid em {
    color: #64748b;
    font-size: 0.74rem;
    font-style: normal;
    font-weight: 650;
}

.support-field-wide {
    grid-column: 1 / -1;
}

.support-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.support-actions span {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

.support-tip-card {
    padding: 1rem;
}

.support-tip-card h3 {
    margin-top: 0.75rem;
}

.support-tip-card p {
    margin-top: 0.35rem;
}

@media (max-width: 760px) {
    .class-action-card {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .class-action-option {
        min-height: auto;
    }

    .class-action-option.enroll {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .mini-join-form {
        grid-template-columns: 1fr;
    }

    .support-hero {
        display: grid;
    }

    .support-grid,
    .support-form-grid {
        grid-template-columns: 1fr;
    }

    .support-actions {
        display: grid;
        justify-items: start;
    }
}

.settings-hero-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.settings-avatar {
    width: 5.35rem;
    height: 5.35rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
    border: 3px solid #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, #0b62d8, #20a6b8);
    color: #ffffff;
    font-size: 2rem;
    font-weight: 950;
    box-shadow: 0 0 0 1px #bfdbfe, 0 18px 34px rgba(15, 23, 42, 0.14);
}

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

.settings-hero h2 {
    margin-top: 0.25rem;
    color: #081426;
    font-size: clamp(1.6rem, 2.4vw, 2.25rem);
    line-height: 1.1;
    font-weight: 900;
}

.settings-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    margin-top: 0.65rem;
}

.settings-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    min-height: 1.8rem;
    border: 1px solid #dbe7f6;
    border-radius: 999px;
    background: #ffffff;
    padding: 0.34rem 0.62rem;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 850;
}

.settings-hero-meta i {
    color: #0b5bd3;
}

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

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

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

.settings-panel.compact {
    padding: 0.95rem;
}

.settings-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.05rem;
    border-bottom: 1px solid #e8eef7;
    padding-bottom: 0.95rem;
}

.settings-panel-head > i {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b5bd3;
    flex: 0 0 auto;
}

.settings-panel-head h3 {
    color: #081426;
    font-size: 1.05rem;
    font-weight: 900;
}

.settings-panel-head p {
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 750;
}

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

.settings-profile-form {
    display: grid;
    gap: 1rem;
}

.profile-form-section {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.9rem;
}

.profile-photo-section {
    background: #f8fbff;
}

.profile-section-title {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 0.85rem;
}

.profile-section-title > span {
    width: 2.1rem;
    height: 2.1rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #eefdf5;
    color: #15803d;
}

.profile-section-title h4 {
    color: #081426;
    font-size: 0.96rem;
    line-height: 1.2;
    font-weight: 900;
}

.profile-section-title p {
    margin-top: 0.18rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 750;
}

.settings-field-wide {
    grid-column: 1 / -1;
}

.settings-photo-field {
    display: grid;
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.9rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.settings-photo-preview {
    width: 100%;
    min-height: 9rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: linear-gradient(135deg, #0b62d8, #20a6b8);
    color: #ffffff;
    font-size: 1.55rem;
    font-weight: 950;
}

.settings-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #f8fbff;
}

.settings-photo-preview > span {
    width: 5rem;
    height: 5rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.school-logo-field {
    grid-template-columns: 11rem minmax(0, 1fr);
}

.school-logo-preview {
    min-height: 7.5rem;
    background: #f8fbff;
    color: #0b5bd3;
}

.school-logo-preview > span {
    border-radius: 8px;
    background: #eaf2ff;
    font-size: 1.45rem;
}

.settings-photo-control {
    display: grid;
    align-content: center;
    gap: 0.7rem;
    min-width: 0;
}

.settings-photo-control label {
    min-width: 0;
}

.settings-photo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: fit-content;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.55rem 0.72rem;
    color: #0b5bd3;
    font-size: 0.78rem;
    font-weight: 900;
}

.settings-form-grid label span {
    display: block;
    margin-bottom: 0.35rem;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 900;
}

.settings-form-grid label input,
.settings-form-grid label select,
.settings-form-grid label textarea,
.settings-photo-field input[type="file"] {
    background-color: #ffffff;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.settings-form-grid label input:hover,
.settings-form-grid label select:hover,
.settings-form-grid label textarea:hover,
.settings-photo-field input[type="file"]:hover {
    border-color: #9ab9e3;
    background-color: #fbfdff;
}

.settings-form-grid label em {
    display: block;
    margin-top: 0.28rem;
    color: #64748b;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 750;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    position: sticky;
    bottom: 0;
    z-index: 3;
    margin-top: 1rem;
    border-top: 1px solid #e8eef7;
    background: rgba(255, 255, 255, 0.94);
    padding-top: 0.9rem;
    backdrop-filter: blur(10px);
}

.settings-security-panel .settings-panel-head {
    margin-bottom: 0.8rem;
}

.security-summary-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.72rem;
    align-items: center;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.82rem;
}

.security-summary-card > span {
    width: 2.35rem;
    height: 2.35rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b5bd3;
}

.security-summary-card strong,
.security-summary-card small {
    display: block;
}

.security-summary-card strong {
    color: #081426;
    font-size: 0.9rem;
    font-weight: 900;
}

.security-summary-card small {
    margin-top: 0.16rem;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 750;
}

.settings-security-details {
    margin-top: 0.72rem;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.settings-security-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3rem;
    padding: 0.72rem 0.82rem;
    color: #081426;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 900;
    list-style: none;
}

.settings-security-details summary::-webkit-details-marker {
    display: none;
}

.settings-security-details summary span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-security-details summary i:last-child {
    color: #64748b;
    transition: transform 0.16s ease;
}

.settings-security-details[open] summary i:last-child {
    transform: rotate(180deg);
}

.security-password-form {
    border-top: 1px solid #e8eef7;
    padding: 0.85rem;
}

.security-actions {
    position: static;
    margin-top: 0.85rem;
    background: transparent;
    backdrop-filter: none;
}

.form-error {
    display: block;
    margin-top: 0.25rem;
    color: #b91c1c;
    font-size: 0.78rem;
    font-weight: 700;
}

.settings-link-list,
.settings-course-list,
.settings-status {
    display: grid;
    gap: 0.55rem;
}

.settings-link-list a,
.settings-course-list a,
.settings-status span {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.72rem;
    color: #081426;
    font-size: 0.86rem;
    font-weight: 850;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.settings-link-list a:hover,
.settings-course-list a:hover {
    transform: translateY(-1px);
    border-color: #b9d3f5;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.settings-status span {
    background: #f8fbff;
}

.settings-course-list a {
    align-items: flex-start;
    justify-content: space-between;
}

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

.settings-course-list span {
    color: #0b5bd3;
    font-size: 0.8rem;
    font-weight: 900;
}

.settings-course-list p {
    color: #64748b;
    font-size: 0.86rem;
}

.settings-link-list i,
.settings-status i {
    color: #0b5bd3;
}

.settings-join-form {
    display: grid;
    gap: 0.65rem;
}

.subscription-panel {
    display: grid;
    gap: 1rem;
}

.subscription-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
}

.subscription-hero h1 {
    margin-top: 0.25rem;
    color: #081426;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.1;
    font-weight: 950;
}

.subscription-hero p:not(.eyebrow) {
    max-width: 46rem;
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 750;
}

.subscription-price-card {
    min-width: 9rem;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    padding: 0.85rem 1rem;
    text-align: center;
}

.subscription-price-card span,
.subscription-price-card small {
    display: block;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.subscription-price-card strong {
    display: block;
    color: #0b5bd3;
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 950;
}

.subscription-alert {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    border: 1px solid #fde68a;
    border-radius: 8px;
    background: #fffbeb;
    padding: 0.8rem;
    color: #92400e;
}

.subscription-alert strong,
.subscription-alert span {
    display: block;
    font-size: 0.85rem;
}

.subscription-alert span {
    margin-top: 0.12rem;
    color: #a16207;
    font-weight: 750;
}

.subscription-course-list {
    display: grid;
    gap: 0.75rem;
}

.subscription-course-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(11rem, auto) auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.9rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045);
}

.subscription-course-card.is-selected {
    border-color: #0b5bd3;
    box-shadow: 0 0 0 3px rgba(11, 91, 211, 0.12);
}

.subscription-course-card p {
    color: #0b5bd3;
    font-size: 0.7rem;
    font-weight: 950;
    text-transform: uppercase;
}

.subscription-course-card h2 {
    margin-top: 0.1rem;
    color: #081426;
    font-size: 1rem;
    font-weight: 950;
}

.subscription-course-card span,
.subscription-course-status small {
    display: block;
    margin-top: 0.1rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 750;
}

.subscription-course-status strong {
    display: inline-flex;
    border-radius: 999px;
    background: #eef5ff;
    padding: 0.25rem 0.55rem;
    color: #0b5bd3;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.subscription-course-status strong.success {
    background: #dcfce7;
    color: #166534;
}

.subscription-course-status strong.warning {
    background: #fef3c7;
    color: #92400e;
}

.subscription-course-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.subscription-empty {
    border: 1px dashed #bfdbfe;
    border-radius: 8px;
    background: #f8fbff;
    padding: 1.5rem;
    text-align: center;
}

.subscription-empty h2 {
    color: #081426;
    font-size: 1.2rem;
    font-weight: 950;
}

.subscription-empty p {
    margin: 0.3rem 0 1rem;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 750;
}

.legal-panel,
.legal-document {
    max-width: 58rem;
    margin: 0 auto;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    padding: 1.4rem;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.legal-panel h1,
.legal-document h1 {
    margin-top: 0.25rem;
    color: #081426;
    font-size: clamp(1.55rem, 2.4vw, 2.2rem);
    line-height: 1.1;
    font-weight: 950;
}

.legal-panel p,
.legal-document p {
    margin-top: 0.45rem;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.62;
    font-weight: 700;
}

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

.legal-summary-grid a {
    display: grid;
    gap: 0.2rem;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.9rem;
}

.legal-summary-grid i {
    color: #0b5bd3;
}

.legal-summary-grid span,
.legal-summary-grid strong {
    display: block;
}

.legal-summary-grid span {
    color: #081426;
    font-size: 0.9rem;
    font-weight: 950;
}

.legal-summary-grid strong {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 850;
}

.legal-accept-form,
.signup-panel form {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.legal-checkbox-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.8rem;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.45;
}

.legal-checkbox-row.compact {
    padding: 0.65rem;
    font-size: 0.78rem;
}

.legal-checkbox-row input {
    margin-top: 0.15rem;
}

.legal-checkbox-row a {
    color: #0b5bd3;
    font-weight: 950;
}

.onboarding-gate {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(8, 20, 38, 0.62);
    backdrop-filter: blur(2px);
}

.auth-error-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #08385f 0%, #0b62d8 52%, #22a6b5 100%);
}

.auth-error-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.auth-error-card {
    width: min(100%, 38rem);
    border: 1px solid rgba(215, 225, 238, 0.9);
    border-radius: 8px;
    background: #ffffff;
    padding: clamp(1.3rem, 4vw, 2rem);
    box-shadow: 0 24px 70px rgba(8, 20, 38, 0.32);
}

.auth-error-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.auth-error-brand span {
    display: grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 8px;
    background: #edf6ff;
}

.auth-error-brand img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.auth-error-brand strong,
.auth-error-card h1 {
    color: #081426;
    font-weight: 950;
}

.auth-error-card h1 {
    margin-top: 0.3rem;
    font-size: clamp(1.7rem, 4vw, 2.45rem);
    line-height: 1.08;
}

.auth-error-card p {
    margin-top: 0.8rem;
    color: #475569;
    font-size: 0.94rem;
    line-height: 1.6;
    font-weight: 750;
}

.auth-error-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.2rem;
}

.auth-error-card small {
    display: block;
    margin-top: 1.1rem;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.45;
    font-weight: 800;
}

.onboarding-dialog {
    width: min(100%, 44rem);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    padding: clamp(1.25rem, 3vw, 2.2rem);
    box-shadow: 0 24px 70px rgba(8, 20, 38, 0.32);
}

.onboarding-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.onboarding-brand span {
    display: grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 8px;
    background: #edf6ff;
}

.onboarding-brand img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.onboarding-brand strong,
.onboarding-dialog h2 {
    color: #081426;
    font-weight: 950;
}

.onboarding-dialog h2 {
    margin-top: 0.3rem;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.08;
    text-align: center;
}

.onboarding-copy {
    max-width: 34rem;
    margin: 0.7rem auto 0;
    color: #52657f;
    font-size: 0.94rem;
    line-height: 1.55;
    font-weight: 750;
    text-align: center;
}

.onboarding-legal-links,
.role-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.onboarding-legal-links a,
.role-picker-card {
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #f8fbff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.onboarding-legal-links a {
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem;
}

.onboarding-legal-links i {
    color: #0b62d8;
}

.onboarding-legal-links span,
.onboarding-legal-links strong {
    display: block;
}

.onboarding-legal-links span {
    color: #081426;
    font-size: 0.9rem;
    font-weight: 950;
}

.onboarding-legal-links strong {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 850;
}

.onboarding-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.15rem;
}

.onboarding-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.role-picker-grid {
    width: min(100%, 34rem);
    margin-right: auto;
    margin-left: auto;
}

.role-picker-card {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    min-height: 16rem;
    padding: 1.35rem 1rem;
    color: #081426;
    text-align: center;
    cursor: pointer;
}

.role-picker-card:hover,
.role-picker-card:focus {
    border-color: #0b62d8;
    box-shadow: 0 16px 34px rgba(11, 98, 216, 0.15);
    transform: translateY(-1px);
}

.role-picker-art {
    display: grid;
    place-items: center;
    width: 8rem;
    height: 8rem;
    border-radius: 999px;
    color: #ffffff;
    font-size: 3rem;
}

.role-picker-art.student {
    background: linear-gradient(135deg, #0b62d8, #25b9ef);
}

.role-picker-art.teacher {
    background: linear-gradient(135deg, #0f8f68, #11c48b);
}

.role-picker-card strong {
    font-size: 1.2rem;
    font-weight: 950;
}

.role-picker-card small {
    max-width: 13rem;
    color: #52657f;
    font-size: 0.78rem;
    line-height: 1.35;
    font-weight: 800;
}

@media (max-width: 680px) {
    .onboarding-legal-links,
    .role-picker-grid {
        grid-template-columns: 1fr;
    }

    .role-picker-card {
        min-height: auto;
    }
}

.legal-document section {
    margin-top: 1.2rem;
    border-top: 1px solid #e8eef7;
    padding-top: 1rem;
}

.legal-document h2 {
    color: #081426;
    font-size: 1rem;
    font-weight: 950;
}

.legal-version {
    color: #0b5bd3 !important;
    font-size: 0.8rem !important;
    font-weight: 950 !important;
}

.legal-note {
    margin-top: 1.2rem !important;
    border: 1px solid #fde68a;
    border-radius: 8px;
    background: #fffbeb;
    padding: 0.8rem;
    color: #92400e !important;
    font-size: 0.82rem !important;
}

.course-builder-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96)),
        #ffffff;
    padding: 0.9rem 1rem;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.course-builder-bar > div:first-child {
    min-width: 0;
}

.course-builder-bar h2 {
    color: #081426;
    font-size: 1.35rem;
    font-family: var(--font-display);
    font-weight: 900;
    overflow-wrap: anywhere;
}

.course-builder-tabs {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    border-radius: 8px;
    background: #eef4fb;
    padding: 0.25rem;
}

.course-builder-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
    border-radius: 7px;
    padding: 0.55rem 0.8rem;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 800;
}

.course-builder-tabs a.is-active {
    background: #0b5bd3;
    color: #ffffff;
}

.builder-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid #d7e1ee;
    border-top: 4px solid #0b5bd3;
    border-radius: 8px;
    background:
        radial-gradient(circle at top right, rgba(11, 91, 211, 0.12), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 1.35rem;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.builder-hero-copy {
    min-width: 0;
}

.builder-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #0b5bd3;
    font-size: 0.88rem;
    font-weight: 900;
}

.builder-hero h1 {
    margin-top: 0.35rem;
    color: #081426;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.08;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.builder-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.builder-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid #d7e1ee;
    border-radius: 9999px;
    background: #ffffff;
    padding: 0.35rem 0.7rem;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 850;
}

.builder-meta i {
    color: #0b5bd3;
}

.builder-hero-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(6.8rem, 1fr));
    gap: 0.55rem;
    max-width: 43rem;
    margin-top: 1rem;
}

.builder-hero-kpis div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "icon label"
        "icon value";
    align-items: center;
    column-gap: 0.55rem;
    min-height: 3.25rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    padding: 0.55rem 0.65rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045);
}

.builder-hero-kpis i {
    grid-area: icon;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b5bd3;
    font-size: 0.88rem;
}

.builder-hero-kpis span,
.builder-hero-kpis strong {
    display: block;
    min-width: 0;
}

.builder-hero-kpis span {
    grid-area: label;
    overflow: hidden;
    color: #64748b;
    font-size: 0.66rem;
    line-height: 1.1;
    font-weight: 950;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.builder-hero-kpis strong {
    grid-area: value;
    margin-top: 0.1rem;
    color: #081426;
    font-size: 1.15rem;
    line-height: 1;
    font-weight: 950;
}

.builder-hero-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.course-hero-premium {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: clamp(1rem, 2vw, 1.6rem);
    border-color: #c9d8ec;
    background:
        radial-gradient(circle at 92% 10%, rgba(11, 91, 211, 0.12), transparent 15rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 249, 255, 0.96) 54%, rgba(235, 245, 252, 0.94) 100%);
    padding: clamp(1.1rem, 2vw, 1.45rem);
}

.course-hero-main {
    min-width: 0;
}

.course-hero-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.course-hero-meta {
    margin-top: 0.65rem;
}

.course-hero-kpis {
    max-width: 46rem;
}

.course-hero-command {
    min-width: min(100%, 19rem);
}

.course-hero-primary-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
}

.course-hero-primary-actions .attendance-action-form,
.course-hero-primary-actions .attendance-control-button {
    width: 100%;
}

.course-hero-primary-actions .attendance-control-button {
    justify-content: center;
    min-height: 2.8rem;
    padding-inline: 1rem;
}

.course-hero-more {
    align-self: stretch;
}

.course-hero-more-button {
    display: grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    border: 1px solid #c4d7f0;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 255, 0.96));
    color: #0b4fb4;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(8, 47, 87, 0.08);
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.course-hero-more-button:hover,
.course-hero-more[open] .course-hero-more-button {
    border-color: #0b62d8;
    background: #0b62d8;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(11, 98, 216, 0.2);
}

.course-hero-more-button i {
    font-size: 1rem;
}

.course-hero-more .more-menu-panel {
    width: 18rem;
    border-color: #bfd3ee;
    padding: 0.35rem;
    box-shadow: 0 24px 52px rgba(8, 47, 87, 0.2);
}

.course-hero-more .more-menu-panel a {
    border-radius: 7px;
    padding: 0.72rem 0.78rem;
    font-weight: 850;
}

.course-hero-more .more-menu-panel i {
    display: grid;
    place-items: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 8px;
    background: #eaf2ff;
}

.course-hero-more .more-menu-panel a:hover i {
    background: #dbeafe;
}

.course-review-center {
    display: grid;
    gap: 1rem;
    margin: -0.35rem 0 1rem;
    border: 1px solid #c9d8ec;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.96) 62%, rgba(236, 253, 245, 0.86)),
        #ffffff;
    padding: clamp(1rem, 2vw, 1.15rem);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.course-review-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.course-review-head h2 {
    margin: 0.08rem 0 0.2rem;
    color: #081426;
    font-size: clamp(1.12rem, 2vw, 1.35rem);
    font-weight: 950;
    line-height: 1.1;
}

.course-review-head p:not(.eyebrow) {
    max-width: 52rem;
    color: #52657f;
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.45;
}

.course-review-main-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    flex: 0 0 auto;
    border: 1px solid #0b62d8;
    border-radius: 8px;
    background: #0b62d8;
    color: #ffffff;
    padding: 0.72rem 0.95rem;
    font-size: 0.86rem;
    font-weight: 950;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(11, 98, 216, 0.18);
}

.course-review-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.7rem;
}

.course-review-stat {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    min-width: 0;
    min-height: 8.2rem;
    border: 1px solid #d5e1f2;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    padding: 0.85rem;
    color: #0f172a;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.course-review-stat:hover {
    border-color: #93c5fd;
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.09);
}

.course-review-stat-icon {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 8px;
    background: #eff6ff;
    color: #0b62d8;
}

.course-review-stat span:not(.course-review-stat-icon) {
    display: grid;
    align-content: start;
    min-width: 0;
}

.course-review-stat small,
.course-review-stat strong,
.course-review-stat em,
.course-review-stat b {
    display: block;
}

.course-review-stat small {
    color: #64748b;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.course-review-stat strong {
    margin-top: 0.28rem;
    color: #081426;
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
    font-weight: 950;
    line-height: 1;
}

.course-review-stat em {
    margin-top: 0.28rem;
    color: #52657f;
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 760;
    line-height: 1.35;
}

.course-review-stat b {
    grid-column: 1 / -1;
    align-self: end;
    color: #0b62d8;
    font-size: 0.75rem;
    font-weight: 950;
}

.course-review-stat.is-amber .course-review-stat-icon { background: #fffbeb; color: #b45309; }
.course-review-stat.is-green .course-review-stat-icon,
.course-review-stat.is-emerald .course-review-stat-icon { background: #ecfdf5; color: #047857; }
.course-review-stat.is-violet .course-review-stat-icon { background: #f5f3ff; color: #6d28d9; }
.course-review-stat.is-cyan .course-review-stat-icon { background: #ecfeff; color: #0e7490; }

.course-review-feed {
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: rgba(248, 251, 255, 0.82);
    padding: 0.85rem;
}

.course-review-feed-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.7rem;
}

.course-review-feed-head strong {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 950;
}

.course-review-feed-head span {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 850;
}

.course-review-feed-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.course-review-feed-item,
.course-review-empty {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    min-width: 0;
    border: 1px solid #d5e1f2;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.78rem;
    color: #0f172a;
    text-decoration: none;
}

.course-review-feed-item:hover {
    border-color: #93c5fd;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
}

.course-review-feed-item > span,
.course-review-empty > i {
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 8px;
    background: #eff6ff;
    color: #0b62d8;
}

.course-review-feed-item.is-amber > span { background: #fffbeb; color: #b45309; }
.course-review-feed-item.is-violet > span { background: #f5f3ff; color: #6d28d9; }
.course-review-feed-item.is-cyan > span { background: #ecfeff; color: #0e7490; }

.course-review-feed-item div {
    min-width: 0;
}

.course-review-feed-item small,
.course-review-feed-item strong,
.course-review-feed-item em {
    display: block;
}

.course-review-feed-item small {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.course-review-feed-item strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-review-feed-item em,
.course-review-empty p {
    color: #52657f;
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 760;
}

.course-review-empty {
    grid-column: 1 / -1;
}

.course-review-empty strong {
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 950;
}

.teacher-review-page {
    display: grid;
    gap: 1rem;
}

.teacher-review-hero {
    align-items: center;
}

.teacher-review-hero .builder-hero-copy > p:not(.eyebrow) {
    max-width: 50rem;
    margin-top: 0.45rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.94rem;
    font-weight: 750;
    line-height: 1.45;
}

.teacher-review-alert {
    display: grid;
    place-items: center;
    min-width: 9rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    padding: 1rem;
    color: #ffffff;
    text-align: center;
}

.teacher-review-alert i {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
}

.teacher-review-alert strong {
    margin-top: 0.5rem;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    font-weight: 950;
}

.teacher-review-alert span {
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.teacher-review-controls .teacher-progress-filter-form {
    align-items: end;
}

.teacher-review-table-panel {
    overflow: hidden;
}

.teacher-review-count {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.34rem 0.62rem;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 950;
}

.teacher-review-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.teacher-review-table {
    width: 100%;
    min-width: 58rem;
    border-collapse: separate;
    border-spacing: 0 0.55rem;
}

.teacher-review-table th {
    padding: 0 0.75rem 0.1rem;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 950;
    text-align: left;
    text-transform: uppercase;
}

.teacher-review-table td {
    border-top: 1px solid #dbe7f6;
    border-bottom: 1px solid #dbe7f6;
    background: #ffffff;
    padding: 0.78rem 0.75rem;
    vertical-align: middle;
}

.teacher-review-table td:first-child {
    border-left: 1px solid #dbe7f6;
    border-radius: 8px 0 0 8px;
}

.teacher-review-table td:last-child {
    border-right: 1px solid #dbe7f6;
    border-radius: 0 8px 8px 0;
}

.teacher-review-table tr.is-needs_review td {
    border-color: #fde68a;
    background: #fffdf4;
}

.teacher-review-table .teacher-review-detail-row td {
    border: 0;
    background: transparent;
    padding: 0 0.75rem 0.55rem;
}

.teacher-review-table .teacher-review-detail-row td:first-child,
.teacher-review-table .teacher-review-detail-row td:last-child {
    border-radius: 0;
}

.teacher-review-table td strong,
.teacher-review-table td small {
    display: block;
}

.teacher-review-table td strong {
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 950;
}

.teacher-review-table td small {
    margin-top: 0.18rem;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 750;
}

.teacher-review-activity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    min-width: 0;
}

.teacher-review-activity > span {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 8px;
    background: #eff6ff;
    color: #0b62d8;
}

.teacher-review-activity strong,
.teacher-review-activity small,
.teacher-review-activity em {
    display: block;
}

.teacher-review-activity small {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.teacher-review-activity strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.teacher-review-activity em {
    color: #52657f;
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 750;
}

.teacher-review-status {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    border-radius: 8px;
    background: #eaf2ff;
    padding: 0.28rem 0.55rem;
    color: #0b62d8;
    font-size: 0.72rem;
    font-weight: 950;
}

.teacher-review-status.is-needs_review {
    background: #fef3c7;
    color: #92400e;
}

.teacher-review-status.is-completed {
    background: #dcfce7;
    color: #166534;
}

.teacher-review-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2rem;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    padding: 0.36rem 0.62rem;
    color: #0b62d8;
    font-size: 0.76rem;
    font-weight: 950;
    text-decoration: none;
}

.teacher-review-open:hover {
    border-color: #0b62d8;
    background: #0b62d8;
    color: #ffffff;
}

.teacher-review-grade-form {
    display: grid;
    grid-template-columns: minmax(5rem, 7rem) minmax(12rem, 1fr) auto;
    gap: 0.5rem;
    align-items: end;
    min-width: 24rem;
}

.teacher-review-grade-form label {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.teacher-review-grade-form label span {
    color: #64748b;
    font-size: 0.64rem;
    font-weight: 950;
    text-transform: uppercase;
}

.teacher-review-grade-form input,
.teacher-review-grade-form textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.55rem 0.62rem;
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 850;
    outline: none;
}

.teacher-review-grade-form textarea {
    min-height: 2.55rem;
    resize: vertical;
}

.teacher-review-grade-form input:focus,
.teacher-review-grade-form textarea:focus {
    border-color: #0b62d8;
    box-shadow: 0 0 0 3px rgba(11, 98, 216, 0.12);
}

.teacher-review-grade-form > div {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    justify-content: flex-end;
}

.teacher-review-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2rem;
    border: 1px solid #0b62d8;
    border-radius: 8px;
    background: #0b62d8;
    padding: 0.36rem 0.62rem;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 950;
}

.teacher-review-save:hover {
    background: #094fb2;
}

.teacher-review-drilldown {
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(248, 251, 255, 0.98), rgba(240, 253, 250, 0.82)),
        #ffffff;
}

.teacher-review-drilldown summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
    min-height: 2.75rem;
    cursor: pointer;
    padding: 0.6rem 0.75rem;
    list-style: none;
}

.teacher-review-drilldown summary::-webkit-details-marker {
    display: none;
}

.teacher-review-drilldown summary > span {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b62d8;
}

.teacher-review-drilldown summary strong,
.teacher-review-drilldown summary em {
    display: block;
}

.teacher-review-drilldown summary strong {
    color: #0f172a;
    font-size: 0.84rem;
    font-weight: 950;
}

.teacher-review-drilldown summary em {
    color: #64748b;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 850;
}

.teacher-review-drilldown-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    border-top: 1px solid #e2e8f0;
    padding: 0.75rem;
}

.teacher-review-drilldown-grid article {
    min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.68rem;
}

.teacher-review-drilldown-grid span,
.teacher-review-drilldown-grid p,
.teacher-review-drilldown-grid a {
    display: block;
}

.teacher-review-drilldown-grid span {
    color: #0b62d8;
    font-size: 0.66rem;
    font-weight: 950;
    text-transform: uppercase;
}

.teacher-review-drilldown-grid p,
.teacher-review-drilldown-grid a {
    margin-top: 0.25rem;
    color: #0f172a;
    font-size: 0.8rem;
    font-weight: 760;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.teacher-review-drilldown-grid a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #0b62d8;
    font-weight: 950;
    text-decoration: none;
}

.teacher-review-drilldown-grid a:hover {
    text-decoration: underline;
}

.teacher-review-empty {
    display: grid;
    justify-items: center;
    gap: 0.25rem;
    padding: 2rem 1rem;
    text-align: center;
}

.teacher-review-empty i {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 8px;
    background: #ecfdf5;
    color: #16a34a;
}

.teacher-review-empty span {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 750;
}

@media (max-width: 520px) {
    .course-review-stat-grid {
        grid-template-columns: 1fr;
    }

    .course-review-stat {
        min-height: 7.2rem;
    }
}

.course-quality-panel {
    display: grid;
    grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
    margin: -0.35rem 0 1rem;
    border: 1px solid #c9d8ec;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96)),
        #ffffff;
    padding: 1rem;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.course-quality-score {
    display: grid;
    align-content: center;
    justify-items: center;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background:
        radial-gradient(circle at top, rgba(11, 98, 216, 0.18), transparent 62%),
        #f8fbff;
    padding: 1rem;
    text-align: center;
}

.course-quality-score span,
.course-quality-score strong,
.course-quality-score small {
    display: block;
}

.course-quality-score span {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 950;
    text-transform: uppercase;
}

.course-quality-score strong {
    margin-top: 0.25rem;
    color: #0b62d8;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    font-weight: 950;
}

.course-quality-score small {
    margin-top: 0.35rem;
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 950;
}

.course-quality-copy {
    min-width: 0;
    display: grid;
    gap: 0.8rem;
}

.course-quality-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.course-quality-head h2 {
    margin-top: 0.1rem;
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 950;
}

.course-quality-chips {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.course-quality-chips span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2rem;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.3rem 0.55rem;
    color: #475569;
    font-size: 0.74rem;
    font-weight: 900;
}

.course-quality-issues {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.55rem;
}

.course-quality-issue {
    display: grid;
    align-content: start;
    gap: 0.25rem;
    min-height: 7.4rem;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.7rem;
}

.course-quality-issue.is-danger {
    border-color: #fecaca;
    background: #fff7f7;
}

.course-quality-issue.is-warning {
    border-color: #fde68a;
    background: #fffbeb;
}

.course-quality-issue span {
    color: #0b62d8;
    font-size: 0.66rem;
    font-weight: 950;
    text-transform: uppercase;
}

.course-quality-issue strong {
    color: #0f172a;
    font-size: 0.82rem;
    line-height: 1.2;
    font-weight: 950;
}

.course-quality-issue p {
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.35;
    font-weight: 750;
}

.course-quality-action {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    width: fit-content;
    min-height: 1.9rem;
    margin-top: 0.25rem;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    padding: 0.32rem 0.55rem;
    color: #0757c0;
    font-size: 0.7rem;
    font-weight: 950;
    text-decoration: none;
}

.course-quality-action-form {
    margin: 0;
}

button.course-quality-action {
    cursor: pointer;
    font-family: inherit;
}

.course-quality-action:hover,
.course-quality-action:focus {
    border-color: #0b62d8;
    background: #dbeafe;
    color: #064aa5;
    text-decoration: none;
}

.course-quality-ready {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
    padding: 0.8rem;
}

.course-quality-ready > i {
    width: 2.2rem;
    height: 2.2rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #dcfce7;
    color: #15803d;
}

.course-quality-ready strong {
    display: block;
    color: #14532d;
    font-size: 0.92rem;
    font-weight: 950;
}

.course-quality-ready p {
    margin-top: 0.2rem;
    color: #166534;
    font-size: 0.8rem;
    font-weight: 750;
}

.offline-package-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(22rem, 1fr) minmax(13rem, auto);
    gap: 1rem;
    align-items: stretch;
    margin: -0.35rem 0 1rem;
    border: 1px solid #c9d8ec;
    border-left: 4px solid #0b62d8;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96)),
        #ffffff;
    padding: 1rem;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.offline-package-panel.is-success {
    border-left-color: #16a34a;
}

.offline-package-panel.is-warning {
    border-left-color: #f59e0b;
}

.offline-package-panel.is-danger {
    border-left-color: #ef4444;
}

.offline-package-main {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    min-width: 0;
}

.offline-package-icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b62d8;
    font-size: 1rem;
}

.offline-package-panel.is-success .offline-package-icon {
    background: #dcfce7;
    color: #15803d;
}

.offline-package-panel.is-warning .offline-package-icon {
    background: #fef3c7;
    color: #b45309;
}

.offline-package-panel.is-danger .offline-package-icon {
    background: #fee2e2;
    color: #b91c1c;
}

.offline-package-main h2 {
    margin-top: 0.1rem;
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 950;
}

.offline-package-main p:not(.eyebrow) {
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.45;
    font-weight: 750;
}

.offline-package-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

.offline-package-metrics span {
    display: grid;
    align-content: center;
    min-height: 4.5rem;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.6rem;
}

.offline-package-metrics strong,
.offline-package-metrics small {
    display: block;
}

.offline-package-metrics strong {
    color: #0f172a;
    font-size: 1.05rem;
    line-height: 1;
    font-weight: 950;
}

.offline-package-metrics small {
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.66rem;
    line-height: 1.2;
    font-weight: 900;
    text-transform: uppercase;
}

.offline-package-action {
    display: grid;
    align-content: center;
    gap: 0.45rem;
}

.offline-package-action .btn {
    width: 100%;
    justify-content: center;
}

.offline-package-action small {
    color: #64748b;
    font-size: 0.7rem;
    line-height: 1.35;
    font-weight: 750;
}

.offline-package-risks {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    border-top: 1px solid #edf2f7;
    padding-top: 0.8rem;
}

.offline-package-risk {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.32rem 0.55rem;
    color: #475569;
    font-size: 0.74rem;
    font-weight: 900;
}

.offline-package-risk a {
    display: inline-flex;
    align-items: center;
    min-height: 1.45rem;
    border-left: 1px solid currentColor;
    padding-left: 0.35rem;
    color: inherit;
    font-size: 0.68rem;
    font-weight: 950;
    text-decoration: none;
}

.offline-package-risk form {
    margin: 0;
}

.offline-package-risk button {
    display: inline-flex;
    align-items: center;
    min-height: 1.45rem;
    border: 0;
    border-left: 1px solid currentColor;
    background: transparent;
    padding: 0 0 0 0.35rem;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 950;
}

.offline-package-risk a:hover,
.offline-package-risk a:focus,
.offline-package-risk button:hover,
.offline-package-risk button:focus {
    text-decoration: underline;
}

.offline-package-risk.is-danger {
    border-color: #fecaca;
    background: #fff7f7;
    color: #b91c1c;
}

.offline-package-risk.is-warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.offline-export-breakdown {
    grid-column: 1 / -1;
    display: grid;
    gap: 0.75rem;
    border-top: 1px solid #edf2f7;
    padding-top: 0.85rem;
}

.offline-export-breakdown-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.offline-export-breakdown-head span,
.offline-export-breakdown-head strong,
.offline-export-breakdown-head small {
    display: block;
}

.offline-export-breakdown-head span {
    color: #0b62d8;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.offline-export-breakdown-head strong {
    margin-top: 0.15rem;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 950;
}

.offline-export-breakdown-head small {
    max-width: 28rem;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.35;
    font-weight: 750;
    text-align: right;
}

.offline-export-list {
    display: grid;
    gap: 0.55rem;
}

.offline-export-item {
    display: grid;
    grid-template-columns: minmax(13rem, 1.2fr) minmax(18rem, 1fr);
    gap: 0.75rem;
    align-items: center;
    border: 1px solid #dbe7f6;
    border-left: 4px solid #0b62d8;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.75rem;
}

.offline-export-item.is-success {
    border-left-color: #16a34a;
}

.offline-export-item.is-warning {
    border-left-color: #f59e0b;
}

.offline-export-item.is-danger {
    border-left-color: #ef4444;
}

.offline-export-title {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    min-width: 0;
}

.offline-export-title i {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b62d8;
}

.offline-export-title strong,
.offline-export-title span {
    display: block;
}

.offline-export-title strong {
    overflow-wrap: anywhere;
    color: #0f172a;
    font-size: 0.86rem;
    line-height: 1.25;
    font-weight: 950;
}

.offline-export-title span {
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 850;
}

.offline-export-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
}

.offline-export-stats span {
    display: grid;
    align-content: center;
    min-height: 3rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.45rem;
}

.offline-export-stats b,
.offline-export-stats small {
    display: block;
}

.offline-export-stats b {
    color: #0f172a;
    font-size: 0.85rem;
    line-height: 1;
    font-weight: 950;
}

.offline-export-stats small {
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.58rem;
    font-weight: 950;
    text-transform: uppercase;
}

.offline-export-risks {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.offline-export-risk {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem;
    align-items: center;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.55rem;
}

.offline-export-risk.is-danger {
    border-color: #fecaca;
    background: #fff7f7;
}

.offline-export-risk.is-warning {
    border-color: #fde68a;
    background: #fffbeb;
}

.offline-export-risk span {
    grid-column: 1 / -1;
    color: #0b62d8;
    font-size: 0.62rem;
    font-weight: 950;
    text-transform: uppercase;
}

.offline-export-risk strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #0f172a;
    font-size: 0.75rem;
    line-height: 1.25;
    font-weight: 900;
}

.offline-export-risk a,
.offline-export-risk button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.8rem;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    padding: 0.25rem 0.48rem;
    color: #0757c0;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.66rem;
    font-weight: 950;
    text-decoration: none;
}

.offline-export-risk form {
    margin: 0;
}

.resource-reprocess-panel {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(240, 253, 250, 0.92)),
        #eff6ff;
    padding: 1rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.resource-reprocess-panel strong,
.resource-reprocess-panel span {
    display: block;
}

.resource-reprocess-panel strong {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 950;
}

.resource-reprocess-panel span {
    margin-top: 0.2rem;
    color: #475569;
    font-size: 0.8rem;
    line-height: 1.4;
    font-weight: 750;
}

.package-diagnostics-panel {
    border-top: 3px solid #0b62d8;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96)),
        #ffffff;
}

.package-diagnostics-panel.is-success {
    border-top-color: #16a34a;
}

.package-diagnostics-panel.is-warning {
    border-top-color: #f59e0b;
}

.package-diagnostics-panel.is-danger {
    border-top-color: #ef4444;
}

.package-diagnostics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.package-diagnostics-grid div {
    min-width: 0;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.72rem;
}

.package-diagnostics-grid span,
.package-diagnostics-grid strong {
    display: block;
}

.package-diagnostics-grid span {
    color: #64748b;
    font-size: 0.67rem;
    font-weight: 900;
    text-transform: uppercase;
}

.package-diagnostics-grid strong {
    margin-top: 0.28rem;
    overflow-wrap: anywhere;
    color: #0f172a;
    font-size: 0.84rem;
    line-height: 1.25;
    font-weight: 850;
}

.package-diagnostics-status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    border-top: 1px solid #edf2f7;
    padding-top: 0.85rem;
}

.package-diagnostics-status span {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    min-height: 2rem;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.35rem 0.6rem;
    color: #475569;
    font-size: 0.73rem;
    font-weight: 850;
}

.package-diagnostics-status i {
    color: #0b62d8;
}

.learner-viewer-status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    border-top: 1px solid #edf2f7;
    background:
        linear-gradient(135deg, rgba(248, 251, 255, 0.98), rgba(240, 253, 250, 0.82)),
        #f8fbff;
    padding: 0.55rem 0.75rem;
}

.learner-viewer-status span {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    min-height: 1.85rem;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.28rem 0.52rem;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 850;
}

.learner-viewer-status i {
    color: #0b62d8;
}

.learner-viewer-status.is-warning {
    background: #fffbeb;
}

.learner-viewer-status.is-warning span {
    border-color: #fde68a;
    color: #92400e;
}

.learner-viewer-status.is-warning i {
    color: #b45309;
}

.learner-viewer-status.is-danger {
    margin-top: 0.75rem;
    border: 0;
    border-radius: 8px;
    background: #fff7f7;
    padding: 0.45rem;
}

.learner-viewer-status.is-danger span {
    border-color: #fecaca;
    color: #b91c1c;
}

.learner-viewer-status.is-danger i {
    color: #b91c1c;
}

.resource-runtime-status {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: linear-gradient(135deg, #eff6ff, #f8fbff);
    margin: 0.75rem;
    padding: 0.75rem;
    color: #1e3a8a;
}

.resource-runtime-status i {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #dbeafe;
    color: #0b5bd3;
}

.resource-runtime-status strong,
.resource-runtime-status p {
    display: block;
}

.resource-runtime-status strong {
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 900;
}

.resource-runtime-status p {
    margin-top: 0.15rem;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.4;
}

.resource-runtime-status.is-ready {
    border-color: #bbf7d0;
    background: linear-gradient(135deg, #ecfdf5, #f8fbff);
    color: #166534;
}

.resource-runtime-status.is-ready i {
    background: #dcfce7;
    color: #16a34a;
}

.resource-runtime-status.is-warning {
    border-color: #fde68a;
    background: linear-gradient(135deg, #fffbeb, #f8fbff);
}

.resource-runtime-status.is-warning i {
    background: #fef3c7;
    color: #b45309;
}

.premium-task-lock-note {
    display: block;
    max-width: 12rem;
    margin-top: 0.45rem;
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.32;
    font-weight: 750;
    text-align: right;
}

.premium-task-lock-list,
.locked-requirement-panel ul {
    display: grid;
    gap: 0.35rem;
    margin: 0.55rem 0 0;
    padding: 0;
    list-style: none;
}

.premium-task-lock-list li,
.locked-requirement-panel li {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    border: 1px solid #dbe7f5;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.36rem 0.5rem;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1.25;
}

.premium-task-lock-list li::before,
.locked-requirement-panel li::before {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #94a3b8;
}

.locked-requirement-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: linear-gradient(135deg, #eff6ff, #f8fbff);
    padding: 1rem;
}

.locked-requirement-panel > i {
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #ffffff;
    color: #0b5bd3;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.locked-requirement-panel strong,
.locked-requirement-panel p,
.locked-requirement-panel small {
    display: block;
}

.locked-requirement-panel strong {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 900;
}

.locked-requirement-panel p {
    margin-top: 0.2rem;
    color: #475569;
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.45;
}

.activity-insight-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.78rem;
    align-items: center;
    margin: 0.85rem 0 0;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.9)),
        #ffffff;
    padding: 0.78rem 0.86rem;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.055);
}

.feed-resource-header + .activity-insight-strip,
.premium-task-header + .activity-insight-strip {
    margin-top: 0.9rem;
}

.survey-feed-card .activity-insight-strip {
    grid-column: 2 / 3;
    width: 100%;
}

.activity-insight-icon {
    display: grid;
    place-items: center;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b62d8;
    box-shadow: inset 0 0 0 1px rgba(11, 98, 216, 0.08);
}

.activity-insight-icon i {
    font-size: 0.92rem;
}

.activity-insight-copy {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.activity-insight-copy strong {
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 950;
    line-height: 1.2;
    letter-spacing: 0;
}

.activity-insight-copy span {
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.42;
}

.activity-insight-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
}

.activity-insight-pills span {
    display: inline-flex;
    align-items: center;
    min-height: 1.78rem;
    border: 1px solid #dbe7f6;
    border-radius: 999px;
    background: #ffffff;
    padding: 0.34rem 0.58rem;
    color: #334155;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1.12;
    white-space: nowrap;
}

.activity-insight-pills span::before {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    flex: 0 0 auto;
    margin-right: 0.36rem;
    border-radius: 999px;
    background: #94a3b8;
}

.activity-insight-strip.is-ready {
    border-color: #bfdbfe;
    background: linear-gradient(135deg, #ffffff, #eff6ff);
}

.activity-insight-strip.is-ready .activity-insight-icon {
    background: #dbeafe;
    color: #0b62d8;
}

.activity-insight-strip.is-progress,
.activity-insight-strip.is-submitted {
    border-color: #a5f3fc;
    background: linear-gradient(135deg, #ffffff, #ecfeff);
}

.activity-insight-strip.is-progress .activity-insight-icon,
.activity-insight-strip.is-submitted .activity-insight-icon {
    background: #cffafe;
    color: #0e7490;
}

.activity-insight-strip.is-complete {
    border-color: #bbf7d0;
    background: linear-gradient(135deg, #ffffff, #f0fdf4);
}

.activity-insight-strip.is-complete .activity-insight-icon {
    background: #dcfce7;
    color: #16a34a;
}

.activity-insight-strip.is-locked,
.activity-insight-strip.is-scheduled {
    border-color: #cbd5e1;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.activity-insight-strip.is-locked .activity-insight-icon,
.activity-insight-strip.is-scheduled .activity-insight-icon {
    background: #f1f5f9;
    color: #475569;
}

.activity-insight-strip.is-manual {
    border-color: #ddd6fe;
    background: linear-gradient(135deg, #ffffff, #f5f3ff);
}

.activity-insight-strip.is-manual .activity-insight-icon {
    background: #ede9fe;
    color: #7c3aed;
}

.activity-insight-strip.is-ready .activity-insight-pills span {
    border-color: #bfdbfe;
}

.activity-insight-strip.is-progress .activity-insight-pills span,
.activity-insight-strip.is-submitted .activity-insight-pills span {
    border-color: #a5f3fc;
    color: #155e75;
}

.activity-insight-strip.is-ready .activity-insight-pills span::before {
    background: #0b62d8;
}

.activity-insight-strip.is-progress .activity-insight-pills span::before,
.activity-insight-strip.is-submitted .activity-insight-pills span::before {
    background: #0891b2;
}

.activity-insight-strip.is-complete .activity-insight-pills span {
    border-color: #bbf7d0;
    color: #166534;
}

.activity-insight-strip.is-complete .activity-insight-pills span::before {
    background: #16a34a;
}

.activity-insight-strip.is-locked .activity-insight-pills span,
.activity-insight-strip.is-scheduled .activity-insight-pills span {
    color: #475569;
}

.activity-insight-strip.is-manual .activity-insight-pills span {
    border-color: #ddd6fe;
    color: #5b21b6;
}

.activity-insight-strip.is-manual .activity-insight-pills span::before {
    background: #7c3aed;
}

.course-online-tool-dock {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(248, 251, 255, 0.92), rgba(236, 254, 255, 0.62)),
        #ffffff;
    padding: 0.72rem;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.course-online-tool {
    min-width: 0;
    border: 1px solid #d6e4f5;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.course-online-tool summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    min-height: 3.9rem;
    cursor: pointer;
    padding: 0.72rem 0.8rem;
    list-style: none;
    outline: none;
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.course-online-tool summary::-webkit-details-marker,
.course-online-tool summary::marker {
    display: none;
    content: "";
}

.course-online-tool summary:hover {
    background: #f8fbff;
}

.course-online-tool summary:focus-visible {
    box-shadow: inset 0 0 0 2px #0b62d8;
}

.course-online-tool summary > span {
    width: 2.45rem;
    height: 2.45rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #eaf2ff, #ecfeff);
    color: #0b62d8;
    box-shadow: inset 0 0 0 1px rgba(11, 98, 216, 0.08);
}

.course-online-tool.is-review summary > span {
    background: #eaf2ff;
    color: #0b62d8;
}

.course-online-tool.is-readiness summary > span {
    background: #eef2ff;
    color: #3730a3;
}

.course-online-tool.is-offline summary > span {
    background: #fffbeb;
    color: #b45309;
}

.course-online-tool-copy {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.course-online-tool-copy strong,
.course-online-tool-copy em {
    min-width: 0;
    display: block;
}

.course-online-tool-copy strong {
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 950;
    line-height: 1.15;
    letter-spacing: 0;
}

.course-online-tool-copy em {
    color: #64748b;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-online-tool summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-size: 0.68rem;
    font-weight: 900;
    width: 1.8rem;
    height: 1.8rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    transition: transform 0.18s ease;
}

.course-online-tool[open] {
    grid-column: 1 / -1;
}

.course-online-tool[open] summary {
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fbff, #ffffff);
}

.course-online-tool[open] summary::after {
    transform: rotate(180deg);
}

.course-online-tool > section {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.locked-requirement-panel small {
    margin-top: 0.5rem;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 750;
}

.learner-detail-page {
    display: grid;
    gap: 1rem;
    width: min(96rem, calc(100vw - 2rem));
    margin: 0 auto 2rem;
}

.learner-detail-hero {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(13, 117, 161, 0.96), rgba(12, 97, 216, 0.98)),
        #0b62d8;
    padding: clamp(1rem, 3vw, 1.65rem);
    color: #ffffff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
}

.learner-detail-hero .eyebrow,
.learner-detail-hero h2,
.learner-detail-hero p {
    color: #ffffff;
}

.learner-detail-hero h2 {
    margin-top: 0.22rem;
    font-size: clamp(1.55rem, 3.4vw, 2.25rem);
    line-height: 1.08;
    font-weight: 950;
}

.learner-detail-hero p:not(.eyebrow) {
    max-width: 48rem;
    margin-top: 0.45rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
    line-height: 1.45;
    font-weight: 750;
}

.learner-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    margin-top: 0.8rem;
}

.learner-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    padding: 0.32rem 0.62rem;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 850;
}

.student-survey-hero .learner-detail-meta span {
    font-weight: 850 !important;
}

.learner-detail-score {
    display: grid;
    place-items: center;
    min-width: 7rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    padding: 0.9rem 1rem;
    text-align: center;
}

.learner-detail-score strong,
.learner-detail-score span {
    display: block;
}

.learner-detail-score strong {
    color: #ffffff;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1;
    font-weight: 950;
}

.learner-detail-score span {
    margin-top: 0.28rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.learner-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
    gap: 1rem;
    align-items: start;
}

.learner-detail-main,
.learner-detail-side {
    display: grid;
    gap: 1rem;
}

.learner-detail-side {
    position: sticky;
    top: 6rem;
}

.learner-detail-state {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    padding: 0.32rem 0.62rem;
    color: #0757c0;
    font-size: 0.74rem;
    font-weight: 950;
}

.learner-status-card dl {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.learner-status-card dl div {
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.65rem;
}

.learner-status-card dt {
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 950;
    text-transform: uppercase;
}

.learner-status-card dd {
    margin-top: 0.2rem;
    color: #0f172a;
    font-size: 0.84rem;
    font-weight: 850;
}

.learner-attempt-list,
.learner-quiz-feedback {
    display: grid;
    gap: 0.65rem;
}

.learner-attempt-card {
    display: grid;
    gap: 0.65rem;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.85rem;
}

.learner-attempt-card > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.learner-attempt-card strong,
.learner-attempt-card span {
    display: block;
}

.learner-attempt-card strong {
    color: #0f172a;
    font-weight: 950;
}

.learner-attempt-card span {
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 750;
}

.learner-attempt-card b {
    justify-self: start;
    border-radius: 8px;
    padding: 0.34rem 0.58rem;
    font-size: 0.76rem;
    font-weight: 950;
}

.learner-attempt-card b.is-passed {
    background: #dcfce7;
    color: #166534;
}

.learner-attempt-card b.is-review {
    background: #fee2e2;
    color: #991b1b;
}

.learner-quiz-form {
    display: grid;
    gap: 0.85rem;
}

.learner-quiz-question {
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.9rem;
}

.learner-question-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.55rem;
}

.learner-question-head span,
.learner-question-head b {
    color: #0b62d8;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.learner-quiz-question h3 {
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 900;
}

.learner-answer-options {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.learner-submit-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    border-top: 1px solid #edf2f7;
    padding-top: 0.85rem;
}

.learner-submit-actions small {
    max-width: 28rem;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.35;
    font-weight: 750;
}

.learner-empty-state {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.learner-empty-state > i {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b62d8;
}

.learner-empty-state strong {
    display: block;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 950;
}

.learner-empty-state p {
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.4;
    font-weight: 750;
}

.builder-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.builder-stat-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "icon label"
        "icon value";
    column-gap: 0.8rem;
    align-items: center;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.95rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.builder-stat-card > i {
    grid-area: icon;
    width: 2.65rem;
    height: 2.65rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b5bd3;
    font-size: 1.05rem;
}

.builder-stat-card span {
    grid-area: label;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.builder-stat-card strong {
    grid-area: value;
    color: #081426;
    font-size: 1.65rem;
    line-height: 1;
    font-weight: 900;
}

.course-fullscreen-btn {
    white-space: nowrap;
}

body.course-fullscreen .course-builder-workspace {
    grid-template-columns: minmax(0, 1fr);
}

body.course-fullscreen .course-player {
    grid-template-columns: minmax(0, 1fr);
}

body.course-fullscreen .progress-side-panel,
body.course-fullscreen .builder-hero,
body.course-fullscreen .builder-stat-grid {
    display: none;
}

body.course-fullscreen .content-wrap {
    max-width: none;
}

body.course-fullscreen .topbar,
body.course-fullscreen .sidebar,
body.course-fullscreen .mobile-bottom-nav {
    display: none !important;
}

body.course-fullscreen .app-main {
    margin-left: 0 !important;
}

body.course-fullscreen .course-content {
    min-height: calc(100vh - 2rem);
}

.lesson-title-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.edit-mode-switch {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 900;
    white-space: nowrap;
}

.edit-mode-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-track {
    width: 3rem;
    height: 1.55rem;
    position: relative;
    border-radius: 9999px;
    background: #cbd5e1;
    transition: 0.18s ease;
}

.switch-track::after {
    content: "";
    position: absolute;
    top: 0.2rem;
    left: 0.22rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 9999px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.24);
    transition: 0.18s ease;
}

.edit-mode-switch input:checked + .switch-track {
    background: #0b5bd3;
}

.edit-mode-switch input:checked + .switch-track::after {
    transform: translateX(1.42rem);
}

.edit-only {
    display: none !important;
}

body.edit-mode-on .edit-only {
    display: revert !important;
}

body.edit-mode-on .gov-action-panel.edit-only,
body.edit-mode-on .builder-hero-actions.edit-only,
body.edit-mode-on .action-row.edit-only,
body.edit-mode-on .module-toolbar .edit-only {
    display: flex !important;
}

body.edit-mode-on .module-drag-handle.edit-only,
body.edit-mode-on .activity-grip.edit-only,
body.edit-mode-on .icon-btn-menu.edit-only,
body.edit-mode-on .activity-type-icon.edit-only,
body.edit-mode-on .mini-activity-icon.edit-only {
    display: grid !important;
}

body.edit-mode-on .more-menu.edit-only {
    display: block !important;
}

body.edit-mode-on .course-hero-more .more-menu-panel a.edit-only {
    display: flex !important;
}

body.edit-mode-on .section-add-activity-btn.edit-only,
body.edit-mode-on .section-add-line.edit-only,
body.edit-mode-on .section-insert-line.edit-only,
body.edit-mode-on .activity-insert-line.edit-only {
    display: grid !important;
}

body.edit-mode-on .section-add-inline.edit-only,
body.edit-mode-on .empty-section-add.edit-only {
    display: inline-flex !important;
}

body.learning-outcome-modal-open {
    overflow: hidden;
}

.learning-outcome-modal[hidden] {
    display: none !important;
}

.learning-outcome-modal {
    position: fixed;
    inset: 0;
    z-index: 125;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.learning-outcome-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 20, 38, 0.5);
    backdrop-filter: blur(8px);
}

.learning-outcome-dialog {
    position: relative;
    z-index: 1;
    overflow: hidden;
    width: min(38rem, 100%);
    border: 1px solid rgba(191, 219, 254, 0.78);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 34px 86px rgba(8, 20, 38, 0.34);
}

.learning-outcome-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: start;
    border-bottom: 1px solid #dbeafe;
    background:
        linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.98) 58%, rgba(236, 253, 245, 0.86)),
        #ffffff;
    padding: 1rem;
}

.learning-outcome-icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #0b5bd3, #0f8bb8);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(11, 91, 211, 0.2);
}

.learning-outcome-header h2 {
    margin-top: 0.1rem;
    color: #081426;
    font-size: 1.25rem;
    font-weight: 950;
    line-height: 1.15;
}

.learning-outcome-header p:last-child {
    margin-top: 0.28rem;
    color: #52657f;
    font-size: 0.84rem;
    font-weight: 800;
}

.learning-outcome-close {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
}

.learning-outcome-close:hover {
    border-color: #93c5fd;
    color: #0b5bd3;
}

.learning-outcome-form {
    display: grid;
    gap: 0.95rem;
    padding: 1rem;
}

.learning-outcome-field {
    display: grid;
    gap: 0.4rem;
}

.learning-outcome-field label {
    color: #334155;
    font-size: 0.82rem;
    font-weight: 950;
}

.learning-outcome-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.78rem 0.85rem;
    color: #0f172a;
    font-size: 0.94rem;
    font-weight: 750;
    outline: none;
}

.learning-outcome-input:focus {
    border-color: #0b5bd3;
    box-shadow: 0 0 0 3px rgba(11, 91, 211, 0.12);
}

.learning-outcome-toggle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.8rem;
}

.learning-outcome-toggle input {
    margin-top: 0.18rem;
}

.learning-outcome-toggle strong,
.learning-outcome-toggle small {
    display: block;
}

.learning-outcome-toggle strong {
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 950;
}

.learning-outcome-toggle small {
    margin-top: 0.18rem;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.35;
}

.learning-outcome-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.6rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 0.95rem;
}

body.activity-chooser-open {
    overflow: hidden;
}

.activity-chooser[hidden] {
    display: none !important;
}

.activity-chooser {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.activity-chooser-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(5px);
}

.activity-chooser-dialog {
    position: relative;
    width: min(64rem, 100%);
    max-height: min(44rem, calc(100vh - 2rem));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.34);
}

.activity-chooser-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.activity-chooser-header h2 {
    color: #0f172a;
    font-size: 1.65rem;
    font-weight: 900;
}

.activity-chooser-header span {
    display: block;
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 700;
}

.activity-chooser-close {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
}

.activity-chooser-close:hover {
    background: #eef5ff;
    color: #0b5bd3;
}

.activity-chooser-body {
    min-height: 0;
    display: grid;
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    overflow: hidden;
}

.activity-chooser-categories {
    display: grid;
    align-content: start;
    gap: 0.35rem;
    border-right: 1px solid #e2e8f0;
    padding-right: 1rem;
}

.activity-chooser-categories button {
    border: 0;
    border-radius: 8px;
    background: transparent;
    padding: 0.72rem 0.85rem;
    color: #334155;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.activity-chooser-categories button:hover,
.activity-chooser-categories button.is-active {
    background: #0b5bd3;
    color: #ffffff;
}

.activity-chooser-main {
    min-height: 0;
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 1rem;
}

.activity-chooser.is-reuse-mode .activity-chooser-main {
    grid-template-rows: minmax(0, 1fr);
}

.activity-chooser-search {
    position: relative;
}

.activity-chooser-search i {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    transform: translateY(-50%);
    color: #64748b;
}

.activity-chooser-search input {
    width: 100%;
    min-height: 2.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    padding: 0 1rem 0 2.55rem;
    color: #0f172a;
}

.activity-chooser-grid {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.activity-chooser-grid[hidden],
.activity-choice-card[hidden] {
    display: none !important;
}

.activity-choice-card {
    min-height: 8.65rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: start;
    gap: 0.65rem 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    padding: 1rem;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.activity-choice-card:hover,
.activity-choice-card:focus {
    border-color: #0b5bd3;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

.choice-icon {
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eef5ff;
    color: #0b5bd3;
    font-size: 1.05rem;
}

.choice-icon.pdf { background: #fef2f2; color: #b91c1c; }
.choice-icon.flipbook { background: #eef5ff; color: #0b5bd3; }
.choice-icon.video { background: #eef2ff; color: #4338ca; }
.choice-icon.image { background: #f0fdf4; color: #15803d; }
.choice-icon.certificate { background: #fffbeb; color: #b45309; }
.choice-icon.html { background: #fff7ed; color: #c2410c; }
.choice-icon.text { background: #f8fafc; color: #334155; }
.choice-icon.link { background: #eff6ff; color: #174ea6; }
.choice-icon.epub { background: #ecfdf5; color: #047857; }
.choice-icon.presentation { background: #fff1f2; color: #be123c; }
.choice-icon.document { background: #eff6ff; color: #1d4ed8; }
.choice-icon.file { background: #f1f5f9; color: #475569; }
.choice-icon.assignment { background: #f5f3ff; color: #6d28d9; }
.choice-icon.quiz { background: #fff7ed; color: #c2410c; }
.choice-icon.h5p { background: #ecfeff; color: #0e7490; }
.choice-icon.package { background: #f0fdf4; color: #15803d; }
.choice-icon.imscc { background: #fdf4ff; color: #a21caf; }

.activity-choice-card strong {
    align-self: center;
    font-weight: 900;
}

.activity-choice-card p {
    grid-column: 1 / -1;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.45;
}

.activity-chooser-empty {
    min-height: 14rem;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.45rem;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #64748b;
    text-align: center;
}

.activity-chooser-empty[hidden] {
    display: none !important;
}

.activity-chooser-empty i {
    color: #94a3b8;
    font-size: 1.35rem;
}

.activity-chooser-empty strong {
    color: #0f172a;
    font-size: 0.95rem;
}

.activity-chooser-empty span {
    font-size: 0.85rem;
    font-weight: 700;
}

.reuse-activity-panel {
    display: grid;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0.9rem;
}

.reuse-activity-panel[hidden] {
    display: none;
}

.reuse-panel-toolbar {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.reuse-panel-toolbar > div strong,
.reuse-panel-toolbar > div span {
    display: block;
}

.reuse-panel-toolbar > div strong {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 950;
}

.reuse-panel-toolbar > div span {
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 750;
}

.reuse-picker {
    display: grid;
    grid-template-columns: 17rem minmax(0, 1fr);
    min-height: 0;
    height: min(24rem, calc(100vh - 20rem));
    overflow: hidden;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #ffffff;
}

.reuse-unit-list {
    display: grid;
    align-content: start;
    min-height: 0;
    max-height: 100%;
    overflow: auto;
    border-right: 1px solid #dbe7f6;
    background: #f8fbff;
    padding: 0.5rem;
}

.reuse-unit-list button {
    display: block;
    width: 100%;
    border-radius: 8px;
    padding: 0.7rem;
    text-align: left;
}

.reuse-unit-list button:hover,
.reuse-unit-list button.is-active {
    background: #eaf2ff;
    color: #0b62d8;
}

.reuse-unit-list strong,
.reuse-unit-list em,
.reuse-unit-list span,
.reuse-unit-list small {
    display: block;
}

.reuse-unit-list em {
    color: #64748b;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 850;
    line-height: 1.2;
}

.reuse-unit-list strong {
    margin-top: 0.28rem;
    font-size: 0.76rem;
    font-weight: 950;
    text-transform: uppercase;
}

.reuse-unit-list span {
    margin-top: 0.18rem;
    color: #0f172a;
    font-size: 0.82rem;
    line-height: 1.25;
    font-weight: 850;
}

.reuse-unit-list small {
    margin-top: 0.18rem;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 800;
}

.reuse-activity-list {
    min-height: 0;
    max-height: 100%;
    overflow: auto;
    padding: 0.8rem;
}

.reuse-source-course {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.65rem;
}

.reuse-source-course strong {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 950;
}

.reuse-source-course span {
    flex: 0 0 auto;
    border-radius: 9999px;
    background: #eef5ff;
    padding: 0.25rem 0.55rem;
    color: #0b5bd3;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.reuse-section-group + .reuse-section-group {
    margin-top: 1rem;
}

.reuse-section-group h3 {
    margin-bottom: 0.5rem;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
}

.reuse-activity-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.7rem;
    cursor: pointer;
}

.reuse-activity-row + .reuse-activity-row {
    margin-top: 0.5rem;
}

.reuse-activity-row:has(input:checked) {
    border-color: #93c5fd;
    background: #eff6ff;
}

.reuse-kind {
    width: 2.2rem;
    height: 2.2rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    flex: 0 0 auto;
    background: #e0f2fe;
    color: #0369a1;
}

.reuse-kind.assignment {
    background: #f3e8ff;
    color: #7e22ce;
}

.reuse-kind.quiz {
    background: #ffedd5;
    color: #c2410c;
}

.reuse-activity-row strong,
.reuse-activity-row small {
    display: block;
}

.reuse-activity-row strong {
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 950;
}

.reuse-activity-row small {
    margin-top: 0.14rem;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 750;
}

.reuse-panel-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 0.85rem 0 0;
}

.reuse-panel-actions > span,
.reuse-empty {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 800;
}

.reuse-panel-actions > span strong,
.reuse-panel-actions > span small {
    display: block;
}

.reuse-panel-actions > span strong {
    color: #0f172a;
    font-size: 0.95rem;
}

.reuse-panel-actions > span small {
    margin-top: 0.12rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 750;
}

.activity-chooser-footer {
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 0.9rem 1.5rem;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 700;
}

.activity-chooser.is-reuse-mode .activity-chooser-footer {
    display: none;
}

.progress-side-panel {
    position: sticky;
    top: 5.25rem;
}

.progress-side-panel .btn {
    width: 100%;
}

.progress-side-panel h3 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.progress-side-panel h3 i {
    color: #0b5bd3;
}

.progress-ring-wrap {
    display: grid;
    place-items: center;
    padding: 1.1rem 0 0.75rem;
}

.progress-ring {
    --progress: 0;
    width: 9.5rem;
    height: 9.5rem;
    display: grid;
    place-items: center;
    border-radius: 9999px;
    background:
        radial-gradient(circle at center, #ffffff 0 58%, transparent 59%),
        conic-gradient(#0b5bd3 calc(var(--progress) * 1%), #e2e8f0 0);
    box-shadow: inset 0 0 0 1px #d7e1ee;
}

.progress-ring span {
    color: #081426;
    font-size: 1.65rem;
    font-weight: 900;
}

.progress-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.progress-metrics div {
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #f8fafc;
    padding: 0.75rem;
}

.progress-metrics span,
.progress-metrics strong {
    display: block;
}

.progress-metrics span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.progress-metrics strong {
    margin-top: 0.2rem;
    color: #081426;
    font-size: 1.25rem;
    font-weight: 900;
}

.side-panel-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 1.1rem 0;
}

.activity-type-icon.book:empty::before,
.mini-activity-icon.book:empty::before {
    content: "";
    width: 54%;
    height: 62%;
    border: 2px solid currentColor;
    border-radius: 2px;
    box-shadow: inset 4px 0 0 rgba(255, 255, 255, 0.85);
}

.activity-type-icon.task:empty::before,
.mini-activity-icon.task:empty::before {
    content: "";
    width: 58%;
    height: 64%;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.activity-type-icon.task:empty::after,
.mini-activity-icon.task:empty::after {
    content: "";
    position: absolute;
    width: 42%;
    height: 22%;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    top: 42%;
    left: 31%;
}

.activity-type-icon.quiz:empty::before,
.mini-activity-icon.quiz:empty::before {
    content: "?";
    font-size: 1em;
    font-weight: 900;
}

.module-card {
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.module-header {
    padding: 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #dbe3ef;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.kpi-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 900;
    color: #0f172a;
    margin-top: 0.25rem;
}

.quick-card {
    display: block;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    transition: 0.2s ease;
}

.quick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.quick-card h3 {
    font-size: 1rem;
    font-weight: 900;
    color: #0f172a;
}

.quick-card p {
    margin-top: 0.35rem;
    font-size: 0.875rem;
    color: #64748b;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resource-frame {
    width: 100%;
    min-height: clamp(24rem, 62vh, 44rem);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}

.resource-viewer[data-resource-type="h5p"] .resource-frame,
.resource-viewer[data-resource-type="html"] .resource-frame,
.resource-viewer[data-resource-type="scorm"] .resource-frame,
.resource-viewer[data-resource-type="imscc"] .resource-frame {
    min-height: clamp(14rem, 42vh, 34rem);
}

.resource-viewer[data-resource-type="h5p"] .resource-frame {
    min-height: clamp(13rem, 36vh, 28rem);
}

.resource-viewer[data-resource-type="video"],
.resource-viewer[data-resource-type="image"] {
    display: grid;
    place-items: center;
    background: #f8fbff;
}

.resource-pdf-viewer .resource-frame {
    background: #f1f5f9;
}

.pdf-flipbook {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 72vh;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #111111;
    overflow: hidden;
}

.pdf-flipbook-stage {
    position: relative;
    min-height: 0;
    display: grid;
    place-items: center;
    padding: 3rem 3.6rem 2.5rem;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 34rem),
        #141414;
}

.pdf-flipbook-spread {
    width: min(100%, 70rem);
    min-height: 58vh;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    justify-content: center;
    gap: 0;
    filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.46));
    transform-origin: center center;
}

.pdf-flipbook-spread.is-single {
    grid-template-columns: minmax(0, 34rem);
}

.pdf-flipbook-spread.is-single [data-pdf-page-right] {
    display: none;
}

.pdf-flipbook-page {
    width: 100%;
    height: 58vh;
    border: 0;
    background: #f8fafc;
    overflow: hidden;
}

.pdf-flipbook-page + .pdf-flipbook-page {
    border-left: 1px solid #d1d5db;
}

.pdf-flipbook-page img,
.pdf-flipbook-page iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #f8fafc;
}

.pdf-flipbook-page img {
    object-fit: contain;
}

.pdf-flipbook-edge {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 2.9rem;
    height: 4.25rem;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
}

.pdf-flipbook-edge:hover {
    background: rgba(255, 255, 255, 0.16);
}

.pdf-flipbook-edge:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

.pdf-flipbook-prev {
    left: 0.6rem;
}

.pdf-flipbook-next {
    right: 0.6rem;
}

.pdf-flipbook-controls {
    display: grid;
    grid-template-columns: auto auto minmax(8rem, 1fr);
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.8rem;
    border-top: 1px solid #303030;
    background: #202020;
}

.pdf-flipbook-tools {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.pdf-flipbook-tools button,
.pdf-flipbook-controls button {
    min-width: 2rem;
    height: 2rem;
    border: 1px solid #3b4452;
    border-radius: 6px;
    background: #151922;
    color: #f8fafc;
    font-size: 0.8rem;
    font-weight: 900;
    cursor: pointer;
}

.pdf-flipbook-tools button.is-active {
    border-color: #60a5fa;
    background: #0b5bd3;
}

.pdf-flipbook-controls strong {
    min-width: 8rem;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
}

.pdf-flipbook-controls input[type="range"] {
    width: 100%;
    accent-color: #60a5fa;
}

.resource-pdf-fallback {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-top: 1px solid #d7e1ee;
    background: #ffffff;
    padding: 0.9rem 1rem;
}

.resource-pdf-fallback > i {
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 1.1rem;
}

.resource-pdf-fallback strong {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 900;
}

.resource-pdf-fallback p {
    margin-top: 0.1rem;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}

.resource-pdf-fallback a {
    display: inline-flex;
    align-items: center;
    margin-top: 0.35rem;
    color: #0b5bd3;
    font-size: 0.86rem;
    font-weight: 900;
}

.resource-viewer {
    position: relative;
    border: 1px solid #cbd9ea;
    border-radius: 8px;
    background: #ffffff;
    padding: 0;
    overflow: hidden;
    scroll-margin-top: 6rem;
}

.resource-viewer-toolbar {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 20;
    display: block;
    margin: 0;
    pointer-events: none;
}

.resource-viewer-toolbar strong {
    display: none;
}

.resource-viewer-toolbar strong i {
    color: #0b5bd3;
    margin-right: 0.35rem;
}

.resource-viewer-toolbar > div {
    display: flex;
    flex: 0 0 auto;
    gap: 0.4rem;
    border: 1px solid rgba(215, 225, 238, 0.92);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    padding: 0.25rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(8px);
    pointer-events: auto;
}

.resource-viewer-icon-btn {
    width: 2.1rem;
    height: 2.1rem;
    display: inline-grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 7px;
    background: #ffffff;
    color: #0b5bd3;
    font-size: 0.95rem;
    cursor: pointer;
}

.resource-viewer-icon-btn:hover {
    border-color: #9dbdf5;
    background: #eef5ff;
}

.resource-viewer-icon-btn:focus-visible {
    outline: 3px solid rgba(11, 91, 211, 0.24);
    outline-offset: 2px;
}

.resource-text-content {
    min-height: 12rem;
    padding: 3.6rem 1.15rem 1.15rem;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-line;
}

.resource-link-content {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-height: 10rem;
    padding: 3.6rem 1.15rem 1.15rem;
    color: #334155;
}

.resource-link-content > i {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eef5ff;
    color: #0b5bd3;
    flex: 0 0 auto;
}

.resource-link-content strong {
    display: block;
    color: #0f172a;
    font-weight: 900;
}

.resource-link-content p {
    margin-top: 0.2rem;
    color: #64748b;
}

.resource-link-content a {
    display: inline-flex;
    margin-top: 0.75rem;
    color: #0b5bd3;
    font-weight: 900;
}

.resource-unavailable-viewer {
    border-style: dashed;
    border-color: #bfdbfe;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(20, 184, 166, 0.06)),
        #ffffff;
}

.resource-unavailable-panel {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-height: 11rem;
    padding: 1.35rem;
    color: #334155;
}

.resource-unavailable-panel > i {
    width: 2.7rem;
    height: 2.7rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #eef5ff;
    color: #0b62d8;
    box-shadow: inset 0 0 0 1px #dbeafe;
}

.resource-unavailable-panel strong {
    display: block;
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 950;
}

.resource-unavailable-panel p {
    margin-top: 0.3rem;
    max-width: 48rem;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.55;
}

body.resource-fullscreen-open {
    overflow: hidden;
}

body.resource-fullscreen-open .topbar,
body.resource-fullscreen-open .sidebar,
body.resource-fullscreen-open .mobile-bottom-nav {
    display: none !important;
}

body.resource-fullscreen-open .app-main {
    margin-left: 0 !important;
}

.resource-viewer.is-resource-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    border: 0;
    border-radius: 0;
    background: #eef4fb;
    padding: 0.35rem;
}

.resource-viewer.is-resource-fullscreen .resource-viewer-toolbar {
    top: 0.75rem;
    right: 0.75rem;
}

.resource-viewer.is-resource-fullscreen .resource-frame,
.resource-viewer.is-resource-fullscreen .pdf-flipbook,
.resource-viewer.is-resource-fullscreen .presentation-stage,
.resource-viewer.is-resource-fullscreen .media-viewer,
.resource-viewer.is-resource-fullscreen .resource-text-content,
.resource-viewer.is-resource-fullscreen .resource-link-content {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    border-radius: 8px;
}

.resource-viewer.is-resource-fullscreen .pdf-flipbook-page {
    height: calc(100vh - 4.5rem);
}

.resource-viewer.is-resource-fullscreen .pdf-flipbook-spread {
    min-height: calc(100vh - 4.5rem);
}

.resource-viewer.is-resource-fullscreen .presentation-slide img {
    max-height: calc(100vh - 5.8rem);
}

.resource-viewer.is-resource-fullscreen .image-viewer {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
}

.media-viewer {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(72vh, 46rem);
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border-radius: 8px;
    background: #020617;
}

.image-viewer {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(72vh, 46rem);
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.tesda-pdf-viewer {
    position: relative;
    border-color: #c3d2e4;
    background: #eef3f8;
}

.presentation-viewer {
    background: #111827;
}

.presentation-stage {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: clamp(22rem, 70vh, 48rem);
    background: #111827;
    color: #ffffff;
    overflow: hidden;
}

.presentation-slide-frame {
    display: grid;
    place-items: center;
    min-height: 0;
    padding: 3.1rem 3.2rem 1rem;
}

.presentation-slide {
    width: min(100%, 72rem);
    margin: 0;
    background: #ffffff;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
}

.presentation-slide.is-hidden {
    display: none;
}

.presentation-slide img {
    display: block;
    width: 100%;
    max-height: calc(78vh - 5rem);
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.presentation-edge {
    position: absolute;
    top: 50%;
    z-index: 8;
    width: 2.8rem;
    height: 4rem;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.presentation-edge:hover {
    background: rgba(255, 255, 255, 0.16);
}

.presentation-edge:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.presentation-prev {
    left: 0.65rem;
}

.presentation-next {
    right: 0.65rem;
}

.presentation-controls {
    display: grid;
    grid-template-columns: auto minmax(8rem, 1fr);
    align-items: center;
    gap: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: #0b1220;
    padding: 0.7rem 0.85rem;
}

.presentation-controls strong {
    min-width: 7rem;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
}

.presentation-controls input[type="range"] {
    width: 100%;
    accent-color: #60a5fa;
}

.tesda-pdf-scroll {
    max-height: min(82vh, 62rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: grid;
    gap: 0.75rem;
    justify-items: center;
    background: #eef3f8;
    padding: 0.8rem;
}

.tesda-pdf-page {
    width: min(100%, 70rem);
    margin: 0;
    background: #ffffff;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.16);
}

.tesda-pdf-page img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

.tesda-pdf-page figcaption {
    border-top: 1px solid #e2e8f0;
    padding: 0.32rem 0.75rem;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    text-align: center;
}

.resource-pdf-fallback.view-only {
    margin: 1rem;
}

.resource-viewer.is-resource-fullscreen .tesda-pdf-scroll {
    height: 100%;
    max-height: none;
}

.pasado-standalone-viewer {
    margin: 0;
    background: #e5e5e5;
}

.standalone-pdf-shell {
    min-height: 100vh;
}

.standalone-pdf-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #cfdbe8;
    background: #ffffff;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
}

.standalone-pdf-header p,
.standalone-pdf-header h1,
.standalone-pdf-header span {
    display: block;
}

.standalone-pdf-header p {
    color: #0b62d8;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.standalone-pdf-header h1 {
    margin-top: 0.12rem;
    color: #101827;
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 850;
}

.standalone-pdf-header span {
    margin-top: 0.1rem;
    color: #53657a;
    font-size: 0.78rem;
    font-weight: 750;
}

.standalone-pdf-pages {
    display: grid;
    gap: 0.75rem;
    justify-items: center;
    padding: 0.75rem;
}

.activity-order-list {
    display: grid;
    gap: 0.75rem;
}

.activity-order-row,
.choice-row,
.answer-choice,
.choice-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.activity-order-row {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.order-input {
    width: 4.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.55rem 0.65rem;
    font-weight: 800;
    color: #0f172a;
}

.choice-row {
    align-items: flex-start;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.choice-check,
.answer-choice {
    cursor: pointer;
    font-size: 0.875rem;
    color: #334155;
}

.answer-choice {
    padding: 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.quiz-question {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.quiz-question:last-of-type {
    border-bottom: 0;
}

.resource-builder {
    display: grid;
    gap: 1rem;
}

.resource-builder-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem);
    gap: 1rem;
    align-items: stretch;
    border: 1px solid #d7e1ee;
    border-top: 4px solid #0b5bd3;
    border-radius: 8px;
    background: #ffffff;
    padding: 1.25rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.builder-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #0b5bd3;
    font-size: 0.9rem;
    font-weight: 900;
}

.resource-eyebrow {
    margin-top: 1rem;
    color: #0b5bd3;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.resource-builder-hero h2 {
    margin-top: 0.15rem;
    color: #081426;
    font-size: clamp(1.75rem, 2.35vw, 2.55rem);
    line-height: 1.1;
    font-weight: 900;
}

.resource-builder-hero p {
    max-width: 58rem;
    margin-top: 0.55rem;
    color: #475569;
}

.resource-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.resource-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid #d7e1ee;
    border-radius: 9999px;
    background: #f8fafc;
    padding: 0.35rem 0.7rem;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 800;
}

.resource-readiness-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #f8fbff;
    padding: 1rem;
}

.resource-readiness-panel span {
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.resource-readiness-panel strong {
    display: block;
    margin-top: 0.25rem;
    color: #081426;
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
}

.resource-readiness-panel p {
    margin-top: 0.7rem;
    color: #64748b;
    font-size: 0.84rem;
}

.resource-readiness-track {
    height: 0.55rem;
    margin-top: 0.85rem;
    overflow: hidden;
    border-radius: 9999px;
    background: #dbe3ef;
}

.resource-readiness-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0b5bd3, #12805c);
    transition: width 0.2s ease;
}

.resource-builder-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 24rem);
    gap: 1rem;
    align-items: start;
}

.resource-authoring-surface {
    display: grid;
    gap: 1rem;
}

.resource-section,
.resource-side-panel,
.resource-submit-panel {
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.resource-section {
    padding: 1.15rem;
}

.resource-section-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.resource-section-head span {
    display: inline-flex;
    border-radius: 9999px;
    background: #eaf2ff;
    padding: 0.2rem 0.55rem;
    color: #174ea6;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.resource-section-head h3 {
    margin-top: 0.4rem;
    color: #081426;
    font-size: 1.1rem;
    font-weight: 900;
}

.resource-section-head p {
    max-width: 28rem;
    color: #64748b;
    font-size: 0.86rem;
}

.resource-type-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.resource-type-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.45rem 0.65rem;
    align-items: center;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.9rem;
    text-align: left;
    cursor: pointer;
    transition: 0.18s ease;
}

.resource-type-card:hover,
.resource-type-card.is-selected {
    border-color: #0b5bd3;
    background: #f8fbff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.resource-type-card i {
    width: 2.35rem;
    height: 2.35rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eef5ff;
    color: #0b5bd3;
}

.resource-type-card strong {
    color: #081426;
    font-weight: 900;
}

.resource-type-card span {
    grid-column: 1 / -1;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.4;
}

.resource-field {
    display: grid;
    gap: 0.45rem;
}

.resource-type-hidden {
    display: none;
}

.resource-field + .resource-field {
    margin-top: 0.95rem;
}

.resource-field-compact {
    margin-top: 1rem;
}

.resource-field label {
    color: #334155;
    font-size: 0.82rem;
    font-weight: 900;
}

.resource-form-control {
    width: 100%;
    min-height: 2.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.78rem 0.9rem;
    color: #0f172a;
    font-size: 0.94rem;
}

.resource-select-control {
    cursor: pointer;
}

.resource-form-control:focus,
.resource-file-input:focus {
    border-color: #0b5bd3;
    box-shadow: 0 0 0 3px rgba(11, 91, 211, 0.16);
    outline: none;
}

.resource-help,
.resource-error {
    font-size: 0.78rem;
}

.resource-help {
    color: #64748b;
}

.resource-error {
    color: #dc2626;
    font-weight: 800;
}

.resource-alert {
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    padding: 0.85rem 1rem;
    color: #991b1b;
    font-weight: 800;
}

.source-panels {
    display: grid;
    gap: 0.9rem;
}

.source-panel {
    display: grid;
    gap: 0.8rem;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #f8fafc;
    padding: 1rem;
}

.resource-builder[data-selected-resource-type="certificate"] .certificate-template-panel {
    order: 1;
}

.resource-builder[data-selected-resource-type="certificate"] [data-source-panel="file"] {
    order: 2;
}

.resource-builder[data-selected-resource-type="certificate"] .source-panel-title [data-file-panel-title]::after {
    content: " (optional background)";
    color: #64748b;
    font-weight: 800;
}

.source-panel.is-hidden {
    display: none;
}

.source-panel-title {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.source-panel-title i {
    width: 2.45rem;
    height: 2.45rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b5bd3;
}

.source-panel-title strong,
.source-panel-title span {
    display: block;
}

.source-panel-title strong {
    color: #081426;
    font-weight: 900;
}

.source-panel-title span {
    margin-top: 0.1rem;
    color: #64748b;
    font-size: 0.84rem;
}

.resource-upload-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px dashed #9dbdf5;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.8rem;
}

.resource-file-input {
    max-width: 16rem;
    color: #334155;
    font-size: 0.9rem;
}

.resource-upload-zone span {
    min-width: 0;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-field-hint {
    margin: -0.25rem 0 0;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.45;
}

.resource-field-hint.is-hidden {
    display: none;
}

.resource-settings-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.resource-switch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.publish-mode-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.publish-mode-card {
    display: block;
    cursor: pointer;
}

.publish-mode-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.publish-mode-card > span {
    min-height: 8rem;
    display: grid;
    gap: 0.35rem;
    align-content: start;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    padding: 1rem;
    transition: 0.18s ease;
}

.publish-mode-card input:checked + span {
    border-color: #0b5bd3;
    background: #f8fbff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.publish-mode-card i {
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b5bd3;
}

.publish-mode-card strong,
.publish-mode-card small {
    display: block;
}

.publish-mode-card strong {
    color: #081426;
    font-weight: 900;
}

.publish-mode-card small {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.35;
}

.publish-schedule-field {
    margin-top: 1rem;
}

.publish-schedule-field.is-hidden {
    display: none;
}

.resource-switch {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.9rem;
    cursor: pointer;
}

.resource-switch-input {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
    margin-top: 0.15rem;
    accent-color: #0b5bd3;
}

.resource-switch strong,
.resource-switch small {
    display: block;
}

.resource-switch strong {
    color: #081426;
    font-size: 0.9rem;
    font-weight: 900;
}

.resource-switch small {
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.35;
}

.prerequisite-tool {
    display: grid;
    gap: 0.75rem;
}

.prerequisite-search {
    position: relative;
}

.prerequisite-search i {
    position: absolute;
    top: 50%;
    left: 0.9rem;
    color: #64748b;
    transform: translateY(-50%);
}

.prerequisite-search input {
    width: 100%;
    min-height: 2.7rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 0.9rem 0 2.55rem;
}

.resource-multi-select {
    min-height: 12rem;
}

.resource-multi-select option {
    padding: 0.45rem;
}

.selected-prerequisites {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    min-height: 2.5rem;
    align-items: center;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.55rem;
}

.selected-prerequisites > span {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 800;
}

.selected-prerequisite-chip {
    border-radius: 9999px;
    background: #eaf2ff;
    padding: 0.25rem 0.6rem;
    color: #174ea6 !important;
}

.resource-builder-sidebar {
    position: sticky;
    top: 5.25rem;
    display: grid;
    gap: 1rem;
}

.resource-side-panel,
.resource-submit-panel {
    padding: 1rem;
}

.resource-side-panel h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #081426;
    font-weight: 900;
}

.resource-side-panel h3 i {
    color: #0b5bd3;
}

.tracking-preview-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.9rem;
}

.tracking-preview-list div {
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #f8fafc;
    padding: 0.75rem;
}

.tracking-preview-list span,
.tracking-preview-list strong {
    display: block;
}

.tracking-preview-list span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.tracking-preview-list strong {
    margin-top: 0.2rem;
    color: #081426;
    font-size: 1rem;
    font-weight: 900;
}

.resource-impact-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.9rem;
}

.resource-impact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 700;
}

.resource-impact-list i {
    margin-top: 0.25rem;
    color: #94a3b8;
    font-size: 0.65rem;
}

.resource-impact-list li.is-complete {
    color: #166534;
}

.resource-impact-list li.is-complete i {
    color: #16a34a;
    font-size: 0.9rem;
}

.resource-submit-panel {
    display: grid;
    gap: 0.65rem;
}

.resource-submit-panel .btn {
    width: 100%;
}

.resource-submit-btn {
    min-height: 3rem;
}

@media (min-width: 640px) {
    .sm\:block { display: block; }
    .sm\:flex-row { flex-direction: row; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sm\:items-center { align-items: center; }
}

@media (min-width: 768px) {
    .md\:grid { display: grid; }
    .md\:flex-row { flex-direction: row; }
    .md\:items-center { align-items: center; }
    .md\:items-start { align-items: flex-start; }
    .md\:justify-between { justify-content: space-between; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .md\:gap-3 { gap: 0.75rem; }
    .md\:p-5 { padding: 1.25rem; }
    .md\:p-6 { padding: 1.5rem; }
    .md\:p-8 { padding: 2rem; }
    .md\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .md\:text-xl { font-size: 1.25rem; }
    .md\:text-3xl { font-size: 1.875rem; }
}

@media (min-width: 1024px) {
    .lg\:hidden { display: none; }
    .lg\:flex { display: flex; }
    .lg\:ml-64 { margin-left: 16rem; }
    .lg\:pb-0 { padding-bottom: 0; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
    .lg\:flex-row { flex-direction: row; }
    .lg\:items-center { align-items: center; }
    .lg\:items-start { align-items: flex-start; }
    .lg\:justify-between { justify-content: space-between; }
}

@media (max-width: 1320px) {
    .topbar-inner {
        grid-template-columns: minmax(10rem, 1fr) auto auto;
    }

    .topbar-identity h1 {
        max-width: min(36vw, 28rem);
    }
}

@media (max-width: 1023px) {
    .topbar-inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .course-navbar-menu {
        justify-self: end;
    }

    .topbar-actions {
        grid-column: 1 / -1;
        display: flex;
        justify-content: flex-end;
    }

    .sidebar {
        display: flex !important;
        width: min(19rem, calc(100vw - 2rem));
        z-index: 60;
        transform: translateX(-105%);
        transition: transform 0.2s ease;
        box-shadow: 24px 0 48px rgba(2, 6, 23, 0.28);
    }

    body.sidebar-mobile-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-scrim {
        position: fixed;
        inset: 0;
        z-index: 50;
        display: none;
        border: 0;
        background: rgba(2, 6, 23, 0.48);
    }

    body.sidebar-mobile-open .sidebar-scrim {
        display: block;
    }

    .sidebar-toggle {
        display: none;
    }

    .student-url-chip {
        display: none;
    }

    body.sidebar-collapsed .sidebar {
        width: min(19rem, calc(100vw - 2rem));
    }

    body.sidebar-collapsed .sidebar h2,
    body.sidebar-collapsed .sidebar p,
    body.sidebar-collapsed .sidebar-label {
        display: initial;
    }

    body.sidebar-collapsed .sidebar-link {
        justify-content: flex-start;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .content-wrap {
        max-width: none;
    }

    .course-player,
    .teacher-workspace {
        grid-template-columns: 1fr;
    }

    .course-index {
        position: static;
        max-height: none;
    }

    .gov-hero {
        grid-template-columns: 1fr;
    }

    .gov-action-panel {
        justify-content: flex-start;
        min-width: 0;
    }

    .premium-module-header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .module-toolbar {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .course-builder-bar {
        grid-template-columns: 1fr;
    }

    .course-builder-tabs {
        overflow-x: auto;
    }

    .builder-hero {
        grid-template-columns: 1fr;
    }

    .course-hero-command {
        max-width: none;
    }

    .course-hero-primary-actions {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .subscription-hero,
    .subscription-course-card,
    .legal-summary-grid {
        grid-template-columns: 1fr;
    }

    .subscription-price-card {
        justify-self: start;
        text-align: left;
    }

    .subscription-course-actions {
        justify-content: flex-start;
    }

    .builder-hero-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }

    .builder-hero-actions {
        justify-content: flex-start;
    }

    .progress-side-panel {
        position: static;
    }

    .teacher-command,
    .settings-grid,
    .teacher-dashboard-grid,
    .resource-builder-hero,
    .resource-builder-layout {
        grid-template-columns: 1fr;
    }

    .resource-builder-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .resource-submit-panel {
        grid-column: 1 / -1;
    }

    .teacher-command-actions {
        justify-content: flex-start;
    }

    .teacher-side-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .teacher-side-column .readiness-panel {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 14px;
    }

    .app-main {
        padding-bottom: calc(4.1rem + env(safe-area-inset-bottom, 0px)) !important;
    }

    .app-main > section {
        padding: 0.55rem !important;
    }

    .resource-builder {
        width: 100%;
    }

    .resource-builder-hero {
        padding: 0.9rem;
        border-radius: 8px;
    }

    .resource-builder-hero h2 {
        font-size: 1.55rem;
    }

    .resource-hero-meta {
        display: grid;
        grid-template-columns: 1fr;
    }

    .resource-hero-meta span {
        justify-content: flex-start;
        white-space: normal;
    }

    .resource-readiness-panel,
    .resource-section,
    .resource-side-panel,
    .resource-submit-panel {
        padding: 0.9rem;
    }

    .resource-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.55rem;
    }

    .resource-section-head p {
        max-width: none;
    }

    .source-panel-title {
        flex-direction: column;
    }

    .resource-upload-zone {
        align-items: stretch;
        flex-direction: column;
    }

    .resource-file-input {
        max-width: 100%;
        width: 100%;
    }

    .resource-builder-sidebar {
        grid-template-columns: 1fr;
    }

    .resource-submit-panel {
        position: sticky;
        bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
        z-index: 6;
        box-shadow: 0 14px 30px rgba(11, 91, 211, 0.2);
    }

    .tracking-preview-list {
        grid-template-columns: 1fr;
    }

    .certificate-size-toolbar {
        display: grid;
        grid-template-columns: 1fr;
    }

    .certificate-designer {
        grid-template-columns: 1fr;
    }

    .certificate-designer-preview {
        min-height: 0;
        padding: 0.8rem;
    }

    .certificate-designer-controls,
    .certificate-field-list {
        max-height: none;
        overflow: visible;
    }

    .certificate-designer-head {
        align-items: stretch;
        flex-direction: column;
    }

    .certificate-designer-head > button {
        width: 100%;
        justify-content: center;
    }

    .content-wrap {
        max-width: 100%;
    }

    .topbar {
        position: sticky;
        top: 0;
        min-height: 3.75rem;
    }

    .topbar-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.45rem;
        min-height: 3.75rem;
        padding: 0.42rem 0.55rem !important;
    }

    .topbar-identity {
        gap: 0.5rem !important;
    }

    .topbar-identity p {
        max-width: 12.5rem;
        overflow: hidden;
        font-size: 0.58rem;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar h1 {
        max-width: 12.5rem;
        overflow: hidden;
        font-size: 0.98rem;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .navbar-menu-btn,
    .navbar-icon-btn,
    .topbar .btn {
        width: 2.35rem;
        height: 2.35rem;
        min-height: 2.35rem;
        padding: 0;
        border-radius: 8px;
        flex: 0 0 auto;
    }

    .topbar .navbar-brand-mark {
        display: none;
    }

    .topbar-actions {
        grid-column: auto;
        display: flex;
        justify-content: flex-end;
        gap: 0.42rem !important;
    }

    .topbar-actions .hidden,
    .topbar .logout-label {
        display: none;
    }

    .topbar-actions form {
        display: flex;
    }

    .course-navbar-menu summary span {
        display: none;
    }

    .course-navbar-menu > div {
        right: 0;
        width: min(14rem, calc(100vw - 1.5rem));
    }

    .navbar-edit-mode > span:first-child {
        display: none;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .activity-header {
        flex-direction: column;
        gap: 0.7rem;
        padding: 0.72rem;
    }

    .learner-player-header {
        position: static;
        padding: 0.72rem;
    }

    .learner-player-header .lesson-title-actions {
        gap: 0.75rem;
    }

    .learner-player-header h2 {
        font-size: 1.28rem;
    }

    .learner-player-header p:not(.learner-player-kicker) {
        font-size: 0.86rem;
    }

    .learner-player-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .learner-player-actions .btn {
        justify-content: center;
        width: 100%;
        min-height: 2.75rem;
        font-size: 0.88rem;
    }

    .learner-resource-card .activity-body {
        padding: 0.42rem;
    }

    .learner-resource-header h3 {
        font-size: 1rem;
    }

    .learner-resource-header p {
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .type-pill {
        padding: 0.16rem 0.5rem;
        font-size: 0.64rem;
    }

    .completion-evidence-panel.is-compact {
        grid-template-columns: 1fr;
        margin-top: 0.5rem;
        padding: 0.55rem;
    }

    .completion-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.45rem;
        align-items: center;
        padding: 0.45rem;
    }

    .completion-row .completion-evidence-panel.is-compact {
        margin-top: 0;
        padding: 0;
    }

    .completion-evidence-panel.is-compact .completion-evidence-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.28rem;
    }

    .completion-evidence-panel.is-compact .completion-evidence-head p {
        font-size: 0.7rem;
    }

    .completion-evidence-panel.is-compact .completion-evidence-grid div {
        padding: 0.36rem 0.38rem;
    }

    .completion-evidence-panel.is-compact .completion-evidence-grid span {
        font-size: 0.52rem;
    }

    .completion-evidence-panel.is-compact .completion-evidence-grid strong {
        font-size: 0.72rem;
    }

    .completion-action-form {
        justify-content: flex-end;
    }

    .completion-action-form .btn {
        width: auto;
        justify-content: center;
        min-height: 2.05rem;
        padding: 0.42rem 0.68rem;
        font-size: 0.74rem;
        white-space: nowrap;
    }

    .activity-row-premium {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .activity-kind,
    .activity-actions {
        grid-column: 1 / -1;
    }

    .activity-actions {
        justify-content: flex-start;
    }

    .teacher-course-grid {
        grid-template-columns: 1fr;
    }

    .resource-type-grid,
    .publish-mode-grid,
    .resource-settings-grid,
    .resource-switch-grid {
        grid-template-columns: 1fr;
    }

    .resource-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .resource-upload-zone {
        align-items: stretch;
        flex-direction: column;
    }

    .resource-file-input {
        max-width: 100%;
    }

    .section-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .teacher-kpi-grid,
    .course-health-grid,
    .builder-stat-grid,
    .teacher-side-column {
        grid-template-columns: 1fr;
    }

    .course-review-head {
        align-items: stretch;
        flex-direction: column;
    }

    .course-review-main-action {
        width: 100%;
    }

    .course-review-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .course-review-feed-list {
        grid-template-columns: 1fr;
    }

    .course-review-feed-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }

    .teacher-review-hero,
    .teacher-review-controls .teacher-progress-filter-form {
        align-items: stretch;
        flex-direction: column;
    }

    .teacher-review-alert {
        width: 100%;
    }

    .teacher-review-controls .btn {
        width: 100%;
        justify-content: center;
    }

    .teacher-review-grade-form {
        grid-template-columns: 1fr;
        min-width: 16rem;
    }

    .teacher-review-grade-form > div {
        justify-content: stretch;
    }

    .teacher-review-grade-form .teacher-review-save,
    .teacher-review-grade-form .teacher-review-open {
        flex: 1 1 0;
    }

    .teacher-review-drilldown-grid {
        grid-template-columns: 1fr;
    }

    .activity-insight-strip {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.65rem;
        align-items: start;
        padding: 0.72rem;
    }

    .activity-insight-icon {
        width: 2.25rem;
        height: 2.25rem;
    }

    .activity-insight-copy strong {
        font-size: 0.84rem;
    }

    .activity-insight-copy span {
        font-size: 0.74rem;
    }

    .activity-insight-pills {
        grid-column: 1 / -1;
        justify-content: flex-start;
        gap: 0.35rem;
    }

    .activity-insight-pills span {
        white-space: normal;
        line-height: 1.25;
    }

    .course-online-tool-dock {
        grid-template-columns: 1fr;
    }

    .course-online-tool summary {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .course-online-tool-copy em {
        white-space: normal;
    }

    .survey-feed-card .activity-insight-strip {
        grid-column: 1 / -1;
    }

    .builder-hero {
        padding: 1rem;
    }

    .builder-hero-kpis {
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
    }

    .course-hero-topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .course-hero-primary-actions {
        grid-template-columns: 1fr;
    }

    .course-hero-more-button {
        width: 100%;
    }

    .course-hero-more .more-menu-panel {
        left: 0;
        right: auto;
        width: min(100%, 18rem);
    }

    .builder-hero-kpis div {
        min-height: 3rem;
        padding: 0.5rem;
    }

    .builder-hero-kpis i {
        width: 1.85rem;
        height: 1.85rem;
    }

    .settings-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .settings-hero-profile {
        align-items: flex-start;
    }

    .settings-avatar {
        width: 3.8rem;
        height: 3.8rem;
        font-size: 1.35rem;
    }

    .settings-form-grid {
        grid-template-columns: 1fr;
    }

    .settings-photo-field {
        grid-template-columns: 1fr;
    }

    .school-logo-field {
        grid-template-columns: 1fr;
    }

    .settings-photo-preview {
        min-height: 12rem;
    }

    .qr-share-grid {
        grid-template-columns: 1fr;
    }

    .settings-actions,
    .settings-actions .btn {
        width: 100%;
    }

    .builder-hero-actions .btn {
        width: 100%;
    }

    .teacher-command {
        padding: 1rem;
    }

    .teacher-command-actions .btn {
        width: 100%;
    }

    .teacher-command-actions .quick-create-trigger {
        width: 3rem;
    }

    .course-health-top,
    .course-health-footer,
    .dashboard-panel-head,
    .lesson-title-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .course-quality-panel {
        grid-template-columns: 1fr;
        padding: 0.85rem;
    }

    .course-quality-head {
        flex-direction: column;
    }

    .course-quality-chips {
        justify-content: flex-start;
    }

    .course-quality-issues {
        grid-template-columns: 1fr;
    }

    .course-quality-issue {
        min-height: auto;
    }

    .offline-package-panel {
        grid-template-columns: 1fr;
        padding: 0.85rem;
    }

    .offline-package-main {
        align-items: flex-start;
    }

    .offline-package-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .offline-package-action {
        align-content: stretch;
    }

    .offline-package-risks {
        display: grid;
        grid-template-columns: 1fr;
    }

    .offline-export-breakdown-head {
        flex-direction: column;
    }

    .offline-export-breakdown-head small {
        max-width: none;
        text-align: left;
    }

    .offline-export-item {
        grid-template-columns: 1fr;
    }

    .offline-export-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .offline-export-risks {
        grid-template-columns: 1fr;
    }

    .offline-export-risk {
        grid-template-columns: 1fr;
    }

    .offline-export-risk a,
    .offline-export-risk button {
        width: 100%;
    }

    .resource-reprocess-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .resource-reprocess-panel .btn {
        width: 100%;
        justify-content: center;
    }

    .package-diagnostics-grid {
        grid-template-columns: 1fr;
    }

    .learner-viewer-status {
        display: grid;
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }

    .learner-viewer-status span {
        width: 100%;
        justify-content: flex-start;
        min-height: 1.75rem;
        font-size: 0.68rem;
    }

    .learner-detail-page,
    .assignment-submit-page,
    .student-survey-page {
        width: 100%;
        margin-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    }

    .learner-detail-hero,
    .assignment-submit-hero,
    .student-survey-hero,
    .learner-submit-actions,
    .learner-attempt-card > div:first-child {
        align-items: stretch;
        flex-direction: column;
    }

    .learner-detail-hero,
    .assignment-submit-hero,
    .student-survey-hero {
        border-radius: 8px;
    }

    .learner-detail-hero-main,
    .assignment-submit-hero > div:first-child,
    .student-survey-hero > div:first-child {
        min-width: 0;
    }

    .learner-detail-meta,
    .assignment-submit-meta {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 0.4rem;
    }

    .learner-detail-meta span,
    .assignment-submit-meta span {
        width: 100%;
        justify-content: flex-start;
        white-space: normal;
    }

    .learner-detail-layout {
        grid-template-columns: 1fr;
    }

    .learner-detail-side {
        position: static;
    }

    .learner-detail-score,
    .assignment-submit-score,
    .student-survey-state {
        width: 100%;
        text-align: left;
    }

    .learner-submit-actions .btn,
    .assignment-submit-actions .btn,
    .survey-feed-actions .btn,
    .survey-feed-done,
    .premium-task-action .btn {
        width: 100%;
        justify-content: center;
    }

    .student-survey-hero {
        grid-template-columns: 1fr;
    }

    .student-survey-shell,
    .student-survey-section,
    .student-survey-question {
        border-radius: 8px;
    }

    .student-likert-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    .student-likert-table {
        min-width: 42rem;
    }

    .premium-task-lock-note {
        max-width: none;
        text-align: left;
    }

    .lesson-title-actions .btn {
        width: 100%;
    }

    .resource-viewer {
        margin-left: 0;
        margin-right: 0;
        border-radius: 8px;
    }

    .resource-frame {
        min-height: min(56vh, 26rem);
        height: min(56vh, 26rem);
        border-radius: 8px;
    }

    .resource-viewer[data-resource-type="h5p"] .resource-frame,
    .resource-viewer[data-resource-type="html"] .resource-frame,
    .resource-viewer[data-resource-type="scorm"] .resource-frame,
    .resource-viewer[data-resource-type="imscc"] .resource-frame {
        min-height: 13.5rem;
        height: 42vh;
        max-height: 24rem;
    }

    .resource-viewer[data-resource-type="h5p"] .resource-frame {
        min-height: 12.5rem;
        height: 34vh;
        max-height: 21rem;
    }

    .resource-viewer[data-resource-type="video"] {
        min-height: 0;
    }

    .media-viewer,
    .image-viewer {
        max-height: 58vh;
        object-fit: contain;
    }

    .media-viewer {
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .resource-viewer[data-resource-type="image"] .image-viewer {
        max-height: 54vh;
    }

    .resource-link-content {
        min-height: 8rem;
    }

    .premium-task-header {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.95rem;
    }

    .premium-task-icon {
        width: 2.6rem;
        height: 2.6rem;
    }

    .premium-task-action {
        grid-column: 1 / -1;
        width: 100%;
        align-items: stretch;
    }

    .premium-task-action .btn {
        width: 100%;
    }

    .survey-feed-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .premium-task-meta {
        gap: 0.35rem;
    }

    .premium-task-meta span {
        min-height: 1.75rem;
        font-size: 0.7rem;
    }

    .resource-unavailable-panel {
        min-height: 8rem;
        padding: 1rem;
    }

    .resource-text-content {
        min-height: 9rem;
        font-size: 0.86rem;
        line-height: 1.58;
    }

    .pdf-flipbook {
        min-height: 64vh;
    }

    .pdf-flipbook-stage {
        padding: 2.9rem 0.75rem 1.25rem;
    }

    .pdf-flipbook-spread {
        grid-template-columns: minmax(0, 1fr);
        width: min(100%, 28rem);
        min-height: 52vh;
    }

    .pdf-flipbook-page {
        height: 52vh;
    }

    .pdf-flipbook-page + .pdf-flipbook-page {
        display: none;
    }

    .pdf-flipbook-edge {
        width: 2.25rem;
        height: 3.2rem;
    }

    .pdf-flipbook-controls {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .pdf-flipbook-controls strong {
        min-width: 0;
    }

    .resource-viewer-toolbar {
        top: 0.42rem;
        right: 0.42rem;
        max-width: calc(100vw - 1rem);
    }

    .resource-viewer-toolbar > div {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.3rem;
        padding: 0.2rem;
    }

    .resource-viewer-icon-btn {
        width: 2.35rem;
        height: 2.35rem;
        font-size: 0.9rem;
    }

    .resource-text-content,
    .resource-link-content {
        padding: 3.35rem 0.85rem 0.85rem;
    }

    .tesda-pdf-scroll {
        max-height: 56vh;
        padding: 0.42rem;
        gap: 0.45rem;
    }

    .presentation-stage {
        min-height: 17rem;
    }

    .presentation-slide-frame {
        padding: 2.9rem 0.65rem 0.55rem;
    }

    .presentation-slide img {
        max-height: 48vh;
    }

    .presentation-edge {
        width: 2.1rem;
        height: 3rem;
    }

    .presentation-prev {
        left: 0.35rem;
    }

    .presentation-next {
        right: 0.35rem;
    }

    .presentation-controls {
        grid-template-columns: 1fr;
        gap: 0.35rem;
        padding: 0.48rem 0.55rem;
    }

    .presentation-controls strong {
        min-width: 0;
        font-size: 0.72rem;
    }

    .tesda-pdf-page {
        width: 100%;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.13);
    }

    .tesda-pdf-page figcaption {
        padding: 0.2rem 0.45rem;
        font-size: 0.52rem;
    }

    .course-content,
    .activity-card,
    .learner-resource-card,
    .completion-evidence-panel {
        border-radius: 8px;
    }

    .course-content {
        border-left: 0;
        border-right: 0;
    }

    .student-learning-player > .p-4,
    .student-learning-player > .md\:p-5 {
        padding: 0.5rem !important;
    }

    .resource-viewer.is-resource-fullscreen {
        padding: 0.35rem;
        border-radius: 0;
    }

    .resource-viewer.is-resource-fullscreen .resource-viewer-toolbar {
        top: 0.55rem;
        right: 0.55rem;
    }

    .mixed-activity-toolbar,
    .module-toolbar,
    .activity-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .mixed-activity-toolbar .btn,
    .module-toolbar .btn,
    .activity-actions .btn {
        width: 100%;
    }

    .premium-module-header {
        gap: 0.75rem;
        padding: 0.9rem;
    }

    .module-section-list {
        padding: 0.75rem;
    }

    .more-menu-panel {
        left: 0;
        right: auto;
        width: min(17rem, calc(100vw - 3rem));
    }

    .section-add-activity-btn {
        width: 100%;
        height: 2.85rem;
    }

    .section-add-inline {
        width: 100%;
    }

    .section-insert-line {
        grid-template-columns: minmax(1.5rem, 1fr) auto minmax(1.5rem, 1fr);
        padding-inline: 0.25rem;
    }

    .section-insert-line strong {
        display: none;
    }

    .activity-insert-line {
        grid-template-columns: minmax(1.5rem, 1fr) auto minmax(1.5rem, 1fr);
    }

    .activity-chooser {
        align-items: end;
        padding: 0;
    }

    .activity-chooser-dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 8px 8px 0 0;
    }

    .activity-chooser-header {
        padding: 1rem;
    }

    .activity-chooser-header h2 {
        font-size: 1.25rem;
    }

    .activity-chooser-body {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        padding: 1rem;
    }

    .activity-chooser-categories {
        display: flex;
        gap: 0.45rem;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
        padding: 0 0 0.75rem;
    }

    .activity-chooser-categories button {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .activity-chooser-grid {
        grid-template-columns: 1fr;
        max-height: 55vh;
    }

    .reuse-picker {
        grid-template-columns: 1fr;
        height: min(28rem, calc(100vh - 17rem));
    }

    .reuse-unit-list {
        display: flex;
        gap: 0.45rem;
        max-height: 8.5rem;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid #dbe7f6;
    }

    .reuse-unit-list button {
        min-width: 12rem;
        flex: 0 0 auto;
    }

    .activity-choice-card {
        min-height: auto;
    }

    .activity-chooser-footer {
        padding: 0.85rem 1rem;
    }

    .reuse-panel-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .reuse-panel-actions .btn {
        width: 100%;
    }
}

.learner-feed-list {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.learner-feed-list .feed-resource-card {
    overflow: hidden;
    border: 1px solid #d7e4f4;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.learner-feed-list .feed-resource-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    padding: 0.92rem 1rem;
    border-bottom: 1px solid #edf3fb;
}

.learner-feed-list .feed-resource-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #0b62d8, #148fb5);
}

.learner-feed-list .feed-resource-copy h3 {
    margin: 0;
    color: #071425;
    font-size: clamp(1rem, 1.7vw, 1.28rem);
    line-height: 1.2;
    letter-spacing: 0;
}

.learner-feed-list .feed-resource-meta {
    margin-top: 0.22rem;
    color: #51627a;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: none;
}

.learner-feed-list .feed-resource-description {
    margin: 0.38rem 0 0;
    color: #334155;
    font-size: 0.9rem;
}

.learner-feed-list .feed-media-shell {
    width: 100%;
    background: #050b17;
}

.learner-feed-list .feed-media-shell .resource-viewer {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.learner-feed-list .feed-media-shell .resource-viewer-toolbar {
    top: 0.7rem;
    right: 0.7rem;
}

.learner-feed-list .feed-media-shell .resource-viewer-toolbar > div {
    border: 1px solid rgba(226, 232, 240, 0.88);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.22);
}

.learner-feed-list .feed-resource-body .presentation-stage,
.learner-feed-list .feed-resource-body .resource-frame {
    min-height: clamp(30rem, 72vh, 54rem);
    height: clamp(30rem, 72vh, 54rem);
    border: 0;
    border-radius: 0;
}

.learner-feed-list .feed-resource-body .resource-viewer[data-resource-type="h5p"] .resource-frame,
.learner-feed-list .feed-resource-body .resource-viewer[data-resource-type="html"] .resource-frame,
.learner-feed-list .feed-resource-body .resource-viewer[data-resource-type="epub"] .resource-frame,
.learner-feed-list .feed-resource-body .resource-viewer[data-resource-type="scorm"] .resource-frame,
.learner-feed-list .feed-resource-body .resource-viewer[data-resource-type="imscc"] .resource-frame {
    min-height: clamp(28rem, 70vh, 52rem);
    height: clamp(28rem, 70vh, 52rem);
    background: #ffffff;
}

.learner-feed-list .feed-resource-body .media-viewer {
    width: 100%;
    min-height: min(62vh, 42rem);
    max-height: min(76vh, 52rem);
    border: 0;
    border-radius: 0;
    background: #020617;
}

.learner-feed-list .feed-resource-body .image-viewer {
    width: 100%;
    max-height: min(76vh, 52rem);
    border: 0;
    border-radius: 0;
    object-fit: contain;
    background: #020617;
}

.learner-feed-list .feed-monitor-bar.completion-evidence-panel.is-compact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: stretch;
    margin: 0;
    padding: 0;
    border: 0;
    border-top: 1px solid #e5edf7;
    border-radius: 0;
    background: #ffffff;
}

.learner-feed-list .feed-monitor-item {
    min-height: 4.6rem;
    padding: 0.78rem 0.95rem;
    border-right: 1px solid #edf2f7;
}

.learner-feed-list .feed-monitor-item i {
    color: #0b62d8;
    background: #eff6ff;
}

.learner-feed-list .feed-monitor-item span {
    color: #66758c;
    font-size: 0.66rem;
    letter-spacing: 0;
}

.learner-feed-list .feed-monitor-item strong {
    color: #0f172a;
    font-size: 0.88rem;
}

.learner-feed-list .feed-completion-action {
    display: grid;
    place-items: center;
    min-width: 11rem;
    padding: 0.65rem;
}

.learner-feed-list .feed-completion-action .btn {
    width: 100%;
    min-height: 2.8rem;
    border-radius: 8px;
}

@media (max-width: 767px) {
    .learner-feed-list {
        gap: 0.75rem;
        padding: 0.55rem 0;
    }

    .learner-feed-list .feed-resource-card {
        margin: 0;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
    }

    .learner-feed-list .feed-resource-header {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.68rem;
        padding: 0.74rem 0.78rem;
    }

    .learner-feed-list .feed-resource-state {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-left: 3.03rem;
    }

    .learner-feed-list .feed-resource-copy h3 {
        font-size: 0.98rem;
        line-height: 1.22;
    }

    .learner-feed-list .feed-resource-meta {
        font-size: 0.7rem;
    }

    .learner-feed-list .feed-resource-description {
        font-size: 0.82rem;
        line-height: 1.35;
    }

    .learner-feed-list .feed-resource-body .presentation-stage,
    .learner-feed-list .feed-resource-body .resource-frame {
        min-height: min(68vh, 34rem);
        height: min(68vh, 34rem);
        max-height: 34rem;
    }

    .learner-feed-list .feed-resource-body .resource-viewer[data-resource-type="h5p"] .resource-frame,
    .learner-feed-list .feed-resource-body .resource-viewer[data-resource-type="html"] .resource-frame,
    .learner-feed-list .feed-resource-body .resource-viewer[data-resource-type="epub"] .resource-frame,
    .learner-feed-list .feed-resource-body .resource-viewer[data-resource-type="scorm"] .resource-frame,
    .learner-feed-list .feed-resource-body .resource-viewer[data-resource-type="imscc"] .resource-frame {
        min-height: min(64vh, 32rem);
        height: min(64vh, 32rem);
        max-height: 32rem;
    }

    .learner-feed-list .feed-resource-body .media-viewer {
        min-height: 18rem;
        max-height: 66vh;
    }

    .learner-feed-list .feed-monitor-bar.completion-evidence-panel.is-compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .learner-feed-list .feed-monitor-item {
        min-height: 4.15rem;
        padding: 0.52rem 0.25rem;
        text-align: center;
    }

    .learner-feed-list .feed-monitor-item i {
        width: 1.65rem;
        height: 1.65rem;
        margin: 0 auto 0.18rem;
    }

    .learner-feed-list .feed-monitor-item span {
        font-size: 0.56rem;
        white-space: nowrap;
    }

    .learner-feed-list .feed-monitor-item strong {
        font-size: 0.72rem;
        line-height: 1.18;
    }

    .learner-feed-list .feed-completion-action {
        grid-column: 1 / -1;
        min-width: 0;
        padding: 0.55rem 0.75rem 0.75rem;
        border-top: 1px solid #edf2f7;
    }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
    .activity-order-row,
    .choice-row {
        align-items: stretch;
        flex-direction: column;
    }

    .order-input {
        width: 100%;
    }
}

/* TESDA E-Library inspired premium teacher workspace */
:root {
    --tesda-navy: #07365f;
    --tesda-sidebar: #082f57;
    --tesda-blue: #0b62b4;
    --tesda-sky: #159ccb;
    --tesda-yellow: #ffd21f;
    --tesda-page: #eaf2f8;
    --tesda-surface: #f8fbff;
    --tesda-border: #cfe0ee;
    --tesda-muted: #5a7089;
}

body {
    font-family: Roboto, "Segoe UI", Arial, sans-serif;
    background: var(--tesda-page);
    color: #0d1828;
}

.app-shell {
    background: var(--tesda-page);
}

.content-wrap {
    max-width: 1435px;
}

.topbar {
    background:
        linear-gradient(90deg, var(--tesda-sidebar) 0%, var(--tesda-blue) 58%, #1389b7 100%);
    border-bottom-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 24px rgba(7, 54, 95, 0.16);
}

.topbar-identity p {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.68rem;
    font-weight: 800;
}

.topbar-identity h1 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
}

.sidebar {
    background:
        linear-gradient(180deg, #07365f 0%, #082f57 54%, #052442 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.11);
    color: #ffffff;
    box-shadow: 10px 0 28px rgba(7, 54, 95, 0.16);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 0.82rem 0.88rem 0.55rem;
}

.sidebar-brand-main {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.brand-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: #ffffff;
    color: var(--tesda-blue);
    box-shadow: none;
}

.sidebar h2 {
    overflow: hidden;
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 850;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar h2::after {
    content: "";
}

.sidebar-brand p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 500;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    padding: 0.45rem 0.5rem 0.75rem !important;
}

.sidebar-section-label {
    margin: 1rem 0 0.28rem;
    padding: 0 0.5rem;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.78rem;
    font-weight: 800;
}

.sidebar-section-label:first-child {
    margin-top: 0.18rem;
}

.sidebar-section {
    display: grid;
    gap: 0.12rem;
}

.sidebar-section > summary.sidebar-section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    cursor: pointer;
    list-style: none;
}

.sidebar-section > summary.sidebar-section-label::-webkit-details-marker {
    display: none;
}

.sidebar-section > summary.sidebar-section-label i {
    font-size: 0.68rem;
    transition: transform 0.16s ease;
}

.sidebar-section[open] > summary.sidebar-section-label i {
    transform: rotate(180deg);
}

.sidebar-section > summary.sidebar-section-label:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.sidebar-section-links {
    display: grid;
    gap: 0.12rem;
}

.sidebar-link {
    min-height: 2.2rem;
    border-radius: 8px;
    padding: 0.48rem 0.58rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
    font-weight: 650;
}

.sidebar-link:hover,
.sidebar-link.is-active {
    background: var(--tesda-yellow);
    color: #081426;
}

.sidebar-link:hover .sidebar-icon,
.sidebar-link.is-active .sidebar-icon {
    color: #081426;
}

.sidebar-icon {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.98rem;
}

.sidebar-footer {
    margin-top: auto;
    padding: 0.45rem 0.42rem 0.55rem;
}

.sidebar-account-menu {
    position: relative;
}

.sidebar-account-menu summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.62rem;
    align-items: center;
    min-height: 3.65rem;
    border-radius: 12px;
    padding: 0.58rem 0.62rem;
    color: #ffffff;
    cursor: pointer;
    list-style: none;
}

.sidebar-account-menu summary::-webkit-details-marker {
    display: none;
}

.sidebar-account-menu summary:hover,
.sidebar-account-menu[open] summary {
    background: rgba(255, 255, 255, 0.12);
}

.sidebar-account-avatar {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 999px;
    background: #ffffff;
    color: var(--tesda-blue);
    font-size: 0.72rem;
    font-weight: 800;
}

.sidebar-account-avatar.large {
    width: 2.25rem;
    height: 2.25rem;
}

.sidebar-account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-account-copy {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.sidebar-account-copy strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 520;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-account-copy span {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.72rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-account-chevron {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.78rem;
    transition: transform 0.16s ease;
}

.sidebar-account-menu[open] .sidebar-account-chevron {
    transform: rotate(-90deg);
}

.sidebar-account-popover {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.45rem);
    left: 0;
    z-index: 45;
    display: grid;
    gap: 0.45rem;
    border: 1px solid var(--tesda-border);
    border-radius: 16px;
    background: #ffffff;
    padding: 0.65rem;
    color: #0d1828;
    box-shadow: 0 18px 42px rgba(7, 54, 95, 0.24);
}

.sidebar-account-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.62rem;
    align-items: center;
    padding: 0.3rem 0.22rem 0.48rem;
}

.sidebar-account-card span:last-child {
    display: grid;
    min-width: 0;
}

.sidebar-account-card strong,
.sidebar-menu-item strong {
    overflow: hidden;
    color: #0d1828;
    font-size: 0.84rem;
    font-weight: 560;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-account-card small,
.sidebar-menu-item small {
    overflow: hidden;
    color: var(--tesda-muted);
    font-size: 0.72rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-menu-group {
    display: grid;
    gap: 0.12rem;
    border-top: 1px solid #e4edf5;
    padding-top: 0.45rem;
}

.sidebar-menu-item,
.sidebar-menu-link {
    display: grid;
    grid-template-columns: 1.28rem minmax(0, 1fr);
    gap: 0.5rem;
    align-items: center;
    width: 100%;
    min-height: 2.35rem;
    border: 0;
    border-radius: 9px;
    background: transparent;
    padding: 0.44rem 0.46rem;
    color: #0d1828;
    font-size: 0.84rem;
    text-align: left;
    cursor: pointer;
}

.sidebar-menu-link:hover {
    background: #edf6ff;
}

.sidebar-menu-form {
    margin: 0;
}

.sidebar-menu-item > i,
.sidebar-menu-link > i {
    color: var(--tesda-blue);
    text-align: center;
}

.sidebar-menu-item > span {
    display: grid;
    min-width: 0;
}

.sidebar-menu-item.access.is-success > i {
    color: #0f8a43;
}

.sidebar-menu-item.access.is-danger > i {
    color: #dc2626;
}

.sidebar-access-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    margin: 0.1rem 0.1rem 0.2rem;
}

.sidebar-access-grid > span {
    display: grid;
    gap: 0.12rem;
    border-radius: 9px;
    background: #edf6ff;
    padding: 0.48rem 0.55rem;
}

.sidebar-access-grid small {
    color: var(--tesda-muted);
    font-size: 0.68rem;
}

.sidebar-access-grid strong {
    color: var(--tesda-navy);
    font-size: 0.86rem;
    font-weight: 650;
}

.sidebar-menu-note {
    border-radius: 9px;
    background: #edf6ff;
    padding: 0.5rem 0.55rem;
    color: #395872;
    font-size: 0.72rem;
    line-height: 1.32;
}

body.sidebar-collapsed .sidebar-brand {
    justify-content: center;
    padding-left: 0.58rem;
    padding-right: 0.58rem;
}

body.sidebar-collapsed .sidebar-brand-main {
    justify-content: center;
}

body.sidebar-collapsed .sidebar-brand-toggle,
body.sidebar-collapsed .sidebar-section-label,
body.sidebar-collapsed .sidebar-account-copy,
body.sidebar-collapsed .sidebar-account-chevron,
body.sidebar-collapsed .sidebar-account-popover {
    display: none;
}

body.sidebar-collapsed .sidebar-footer {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
}

body.sidebar-collapsed .sidebar-account-menu summary {
    grid-template-columns: auto;
    justify-content: center;
    min-height: 2.6rem;
    padding: 0.3rem;
}

.topbar .navbar-menu-btn,
.topbar .navbar-icon-btn {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-shadow: none;
}

.topbar .navbar-menu-btn:hover,
.topbar .navbar-icon-btn:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.18);
}

.topbar .student-url-chip {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.topbar .student-url-chip i,
.topbar .student-url-chip span,
.topbar .student-url-chip strong {
    color: #ffffff;
}

.topbar .student-url-chip span {
    color: rgba(255, 255, 255, 0.74);
}

.btn {
    border-radius: 7px;
    font-weight: 800;
}

.btn-primary {
    background: #0b62d8;
    color: #ffffff;
    border-color: #0b62d8;
}

.btn-primary:hover {
    background: #084ea9;
    color: #ffffff;
}

.teacher-command .btn-primary {
    background: #ffffff;
    color: #081426;
    border-color: rgba(255, 255, 255, 0.65);
}

.teacher-command .btn-primary:hover {
    background: #edf6ff;
    color: #081426;
}

.btn-accent {
    background: var(--tesda-yellow);
    border-color: var(--tesda-yellow);
    color: #101827;
}

.btn-accent:hover {
    background: #f2c400;
    border-color: #f2c400;
}

.btn-soft {
    background: #ffffff;
    border-color: #0b62d8;
    color: #0b62d8;
}

.btn-secondary {
    border-color: #d2deeb;
    color: #0f172a;
}

.teacher-home {
    gap: 1rem;
}

.teacher-home,
.student-workspace,
.system-health-page,
.learner-dashboard {
    color: #0d1828;
}

.teacher-command {
    grid-template-columns: minmax(0, 1fr) minmax(28rem, 0.95fr);
    border: 0;
    border-radius: 7px;
    background:
        linear-gradient(105deg, #0d4d8a 0%, #126fe7 57%, #20a6b8 100%);
    color: #ffffff;
    padding: 1.45rem 1.6rem;
    box-shadow: 0 16px 28px rgba(7, 54, 95, 0.2);
}

.teacher-command .eyebrow {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.72rem;
}

.teacher-command h2 {
    color: #ffffff;
    font-size: clamp(1.45rem, 2.1vw, 2rem);
    font-weight: 800;
}

.teacher-command p:last-child {
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.93);
    font-size: 0.92rem;
    font-weight: 400;
}

.teacher-command-panel {
    display: grid;
    gap: 1rem;
}

.teacher-command-actions {
    justify-content: flex-end;
}

.quick-create-menu {
    position: relative;
    display: inline-grid;
}

.quick-create-menu:not([open]) > .quick-create-panel {
    display: none;
}

.quick-create-menu > summary {
    list-style: none;
}

.quick-create-menu > summary::-webkit-details-marker {
    display: none;
}

.quick-create-trigger {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    min-width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 12px;
    background: #ffffff;
    color: #0b62d8;
    box-shadow: 0 12px 26px rgba(5, 33, 63, 0.16);
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.quick-create-trigger:hover,
.quick-create-trigger:focus {
    background: #f8fbff;
    color: #084ea9;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(5, 33, 63, 0.22);
}

.quick-create-trigger:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.44);
    outline-offset: 3px;
}

.quick-create-trigger i {
    font-size: 1.05rem;
}

.quick-create-panel {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    z-index: 50;
    display: grid;
    min-width: 17rem;
    gap: 0.3rem;
    border: 1px solid var(--tesda-border);
    border-radius: 14px;
    background: #ffffff;
    padding: 0.45rem;
    box-shadow: 0 22px 48px rgba(7, 54, 95, 0.28);
}

.quick-create-panel a {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    align-items: center;
    gap: 0.7rem;
    min-height: 3.25rem;
    border-radius: 10px;
    padding: 0.58rem 0.65rem;
    color: #0d1828;
}

.quick-create-panel a > i {
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #eaf2ff;
    color: #0b62d8;
    text-align: center;
}

.quick-create-panel span {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.quick-create-panel strong {
    color: #0d1828;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.15;
}

.quick-create-panel small {
    color: #5d7085;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.25;
}

.quick-create-panel a:hover,
.quick-create-panel a:focus {
    background: #edf6ff;
    color: #0b62d8;
}

.quick-create-panel a:hover > i,
.quick-create-panel a:focus > i {
    background: #0b62d8;
    color: #ffffff;
}

.common-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 345px;
    gap: 1rem;
    align-items: start;
}

.common-dashboard-grid.single-column-dashboard {
    grid-template-columns: 1fr;
}

.common-dashboard-actions {
    display: flex;
    justify-content: flex-end;
}

.common-dashboard-hero {
    overflow: visible;
}

.common-dashboard-kpis article {
    backdrop-filter: blur(8px);
}

.class-board-panel,
.join-class-panel {
    overflow: visible;
}

.class-space-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.class-space-card {
    min-height: 15rem;
}

.common-dashboard-side {
    display: grid;
    gap: 1rem;
}

.premium-join-form {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
}

.premium-join-form input {
    min-height: 2.75rem;
    border-radius: 9px;
    font-weight: 850;
}

.premium-join-form .btn {
    min-height: 2.75rem;
}

.common-empty-state {
    overflow: visible;
}

.home-premium-hero {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.58fr);
    min-height: 9.2rem;
    border-radius: 10px;
    padding: 1.55rem 1.6rem;
}

.home-premium-hero .teacher-command-copy,
.home-premium-hero > div:first-child {
    align-self: center;
}

.home-premium-hero h2 {
    letter-spacing: 0;
}

.home-action-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    align-self: stretch;
}

.home-action-panel.offline-learner-actions {
    grid-template-columns: minmax(0, 1fr);
}

.home-action-card {
    display: grid;
    align-content: center;
    gap: 0.42rem;
    min-height: 7rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.13);
    padding: 0.9rem;
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.home-action-card:hover,
.home-action-card:focus {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
}

.home-action-card.primary {
    background: #ffffff;
    color: #0b62d8;
}

.home-action-card.primary:hover,
.home-action-card.primary:focus {
    background: #f8fbff;
    color: #084ea9;
}

.home-action-card > span {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
}

.home-action-card.primary > span {
    background: #eaf2ff;
}

.home-action-card strong {
    color: inherit;
    font-size: 0.95rem;
    font-weight: 950;
    line-height: 1.1;
}

.home-action-card small {
    max-width: 14rem;
    color: currentColor;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.25;
    opacity: 0.82;
}

.home-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.home-metric-grid article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    border: 1px solid var(--tesda-border);
    border-radius: 10px;
    background: #ffffff;
    padding: 0.9rem;
    box-shadow: 0 8px 20px rgba(9, 42, 73, 0.06);
}

.home-metric-icon {
    display: grid;
    place-items: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 12px;
    background: #eaf2ff;
    color: #0b62d8;
}

.home-metric-grid small,
.home-metric-grid strong {
    display: block;
}

.home-metric-grid small {
    color: #53657a;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.home-metric-grid strong {
    margin-top: 0.18rem;
    color: #101827;
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 950;
}

.home-board-panel,
.home-side-panel {
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(9, 42, 73, 0.07);
}

.home-empty-state {
    display: grid;
    justify-items: center;
    gap: 0.7rem;
    min-height: 13rem;
    border-color: #bdd2e7;
    border-radius: 10px;
    background:
        linear-gradient(180deg, #fbfdff 0%, #f5f9fd 100%);
    padding: 2.3rem 1rem;
}

.home-empty-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    background: #eaf2ff;
    color: #0b62d8;
    font-size: 1.12rem;
}

.home-empty-state p {
    margin: 0;
}

.home-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 0.15rem;
}

.home-empty-actions .btn {
    min-height: 2.65rem;
}

.home-side-panel .dashboard-panel-head {
    margin-bottom: 0.85rem;
}

.teachers-space-premium {
    gap: 1rem;
}

.teachers-space-hero {
    border-radius: 10px;
}

.teachers-class-panel,
.teachers-action-panel {
    border-radius: 10px;
}

.teacher-space-card {
    min-height: 17rem;
}

.teachers-space-empty {
    display: grid;
    justify-items: center;
    gap: 0.7rem;
    min-height: 14.5rem;
    border-color: #bdd2e7;
    border-radius: 10px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9fd 100%);
    padding: 2.4rem 1rem;
}

.teacher-tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.teacher-tool-grid a {
    display: grid;
    gap: 0.45rem;
    min-height: 5.2rem;
    border: 1px solid #dce6f0;
    border-radius: 10px;
    background: #fbfdff;
    padding: 0.75rem;
    color: #101827;
    font-size: 0.78rem;
    font-weight: 900;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.teacher-tool-grid a:hover,
.teacher-tool-grid a:focus {
    border-color: #93bfe8;
    box-shadow: 0 10px 22px rgba(9, 42, 73, 0.1);
    transform: translateY(-1px);
}

.teacher-tool-grid i {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 10px;
    background: #eaf2ff;
    color: #0b62d8;
}

.space-page {
    display: grid;
    gap: 1rem;
}

.space-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    overflow: visible;
    border-radius: 10px;
    background:
        linear-gradient(105deg, #0d4d8a 0%, #126fe7 58%, #20a6b8 100%);
    color: #ffffff;
    padding: 1.45rem 1.6rem;
    box-shadow: 0 16px 28px rgba(7, 54, 95, 0.2);
}

.space-hero .eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

.space-hero h2 {
    margin-top: 0.2rem;
    color: #ffffff;
    font-size: clamp(1.45rem, 2.1vw, 2rem);
    font-weight: 900;
    line-height: 1.08;
}

.space-hero p:last-child {
    margin-top: 0.45rem;
    max-width: 38rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.94rem;
}

.space-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 2.9rem;
    border-radius: 10px;
    background: #ffffff;
    padding: 0 1rem;
    color: #0b62d8;
    font-size: 0.9rem;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(5, 33, 63, 0.16);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.space-primary-action:hover,
.space-primary-action:focus {
    background: #f8fbff;
    color: #084ea9;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(5, 33, 63, 0.22);
}

.space-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.space-kpi-grid article {
    border: 1px solid var(--tesda-border);
    border-radius: 10px;
    background: #ffffff;
    padding: 0.95rem;
    box-shadow: 0 8px 20px rgba(9, 42, 73, 0.06);
}

.space-kpi-grid span,
.space-kpi-grid strong {
    display: block;
}

.space-kpi-grid span {
    color: #53657a;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.space-kpi-grid strong {
    margin-top: 0.2rem;
    color: #101827;
    font-size: 1.6rem;
    line-height: 1;
    font-weight: 950;
}

.space-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 345px;
    gap: 1rem;
    align-items: start;
}

.space-board-panel,
.space-join-panel {
    overflow: visible;
}

.space-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.space-class-card {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--tesda-border);
    border-radius: 10px;
    background: #ffffff;
    color: #0d1828;
    box-shadow: 0 8px 20px rgba(9, 42, 73, 0.05);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.space-class-card:hover,
.space-class-card:focus {
    border-color: #93bfe8;
    box-shadow: 0 16px 30px rgba(9, 42, 73, 0.12);
    transform: translateY(-1px);
}

.space-class-cover {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 5.8rem;
    background:
        linear-gradient(135deg, #0d4d8a 0%, #126fe7 58%, #0f9f8f 100%);
    padding: 0.9rem;
    color: #ffffff;
}

.space-class-cover span {
    display: grid;
    place-items: center;
    min-width: 2.7rem;
    height: 2.7rem;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
}

.space-class-cover em {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    padding: 0.26rem 0.65rem;
    color: #ffffff;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 900;
}

.space-class-cover em.success {
    background: rgba(220, 252, 231, 0.24);
}

.space-class-cover em.warning {
    background: rgba(254, 240, 138, 0.24);
}

.space-class-cover em.danger {
    background: rgba(254, 202, 202, 0.24);
}

.space-class-body {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
}

.space-class-body h4 {
    color: #101827;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.22;
}

.space-class-body p,
.space-class-body small {
    display: block;
    margin-top: 0.22rem;
    color: #53657a;
    font-size: 0.82rem;
    font-weight: 700;
}

.space-metric-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

.space-metric-row span {
    display: grid;
    gap: 0.12rem;
    border: 1px solid #dce6f0;
    border-radius: 9px;
    background: #fbfdff;
    padding: 0.6rem;
}

.space-metric-row small {
    margin: 0;
    color: #53657a;
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.space-metric-row strong {
    color: #101827;
    font-size: 1rem;
    font-weight: 950;
}

.space-next-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.5rem;
    align-items: center;
    border-radius: 9px;
    background: #edf6ff;
    padding: 0.58rem 0.65rem;
    color: #0b62d8;
    font-size: 0.8rem;
    font-weight: 850;
}

.space-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: #53657a;
    font-size: 0.78rem;
    font-weight: 800;
}

.space-card-footer a,
.space-card-footer strong {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #0b62d8;
    font-size: 0.84rem;
    font-weight: 950;
}

.space-empty-state {
    grid-column: 1 / -1;
    display: grid;
    justify-items: center;
    gap: 0.7rem;
    border: 1px dashed #bdd2e7;
    border-radius: 10px;
    background: #f8fbff;
    padding: 2.4rem 1rem;
    text-align: center;
}

.space-empty-state > span {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    background: #eaf2ff;
    color: #0b62d8;
    font-size: 1.1rem;
}

.space-empty-state h3 {
    color: #101827;
    font-size: 1.15rem;
    font-weight: 950;
}

.space-empty-state p {
    max-width: 28rem;
    color: #53657a;
    font-size: 0.9rem;
}

.teacher-hero-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

.teacher-hero-kpis article {
    min-height: 3.2rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.65rem 0.75rem;
}

.teacher-hero-kpis strong,
.teacher-hero-kpis span {
    display: block;
}

.teacher-hero-kpis strong {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1;
    font-weight: 900;
}

.teacher-hero-kpis span {
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.teacher-dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 345px;
}

.dashboard-panel {
    background: rgba(255, 255, 255, 0.96);
    border-color: var(--tesda-border);
    border-radius: 7px;
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(9, 42, 73, 0.06);
}

.dashboard-panel-head h3 {
    font-size: 1.05rem;
    font-weight: 800;
}

.eyebrow {
    color: #0b62d8;
    font-weight: 900;
}

.course-health-grid {
    gap: 0.85rem;
}

.course-health-card {
    gap: 0.85rem;
    border-color: var(--tesda-border);
    border-radius: 7px;
    background: #ffffff;
    padding: 0.95rem;
}

.course-health-card:hover {
    border-color: #93bfe8;
    box-shadow: 0 12px 24px rgba(9, 42, 73, 0.11);
}

.course-code {
    color: #0b62d8;
}

.course-health-top h4 {
    color: #0a1524;
    font-size: 1rem;
    font-weight: 800;
}

.course-health-top span:not(.health-status) {
    color: #53657a;
    font-size: 0.8rem;
    font-weight: 600;
}

.health-status {
    border-radius: 999px;
    padding: 0.22rem 0.6rem;
}

.health-status.success {
    background: #dff8e9;
    color: #0f7a36;
}

.health-status.warning {
    background: #fff4ca;
    color: #8a5c00;
}

.health-status.danger {
    background: #ffe2e2;
    color: #a4161a;
}

.progress-track {
    height: 0.42rem;
    background: #dfe7ef;
}

.progress-fill {
    background: linear-gradient(90deg, #1057a8, #159ccb);
}

.course-health-metrics div {
    border-color: #dce6f0;
    border-radius: 7px;
    background: #fbfdff;
    padding: 0.65rem;
}

.activity-mix span {
    border-color: #dce6f0;
    background: #f7faff;
}

.course-health-footer a {
    color: #0b62d8;
    font-weight: 900;
}

.priority-item,
.priority-empty,
.tool-list a,
.tool-list.refined div {
    border: 1px solid var(--tesda-border);
    border-radius: 7px;
    background: #fbfdff;
}

.tool-list.refined div {
    padding: 0.8rem;
}

.priority-item strong,
.priority-empty strong,
.tool-list strong {
    color: #101827;
    font-weight: 800;
}

.tool-list span {
    color: #0b62d8;
}

.readiness-panel {
    background: #ffffff;
}

.readiness-panel h3 {
    font-size: 1.05rem;
    font-weight: 800;
}

.connection-url-box {
    border-color: #b8d9ff;
    background: #edf7ff;
    color: #0b62d8;
}

.qr-card {
    border-color: var(--tesda-border);
    border-radius: 7px;
}

@media (max-width: 1180px) {
    .teacher-command,
    .teacher-dashboard-grid,
    .common-dashboard-grid,
    .space-layout-grid,
    .home-premium-hero {
        grid-template-columns: 1fr;
    }

    .teacher-command-actions,
    .common-dashboard-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .teacher-command {
        padding: 1rem;
    }

    .teacher-command-panel,
    .teacher-hero-kpis {
        grid-template-columns: 1fr 1fr;
    }

    .home-action-panel,
    .home-metric-grid {
        grid-template-columns: 1fr;
    }

    .home-action-card {
        min-height: 6rem;
    }

    .teacher-command-actions {
        grid-column: 1 / -1;
    }

    .common-dashboard-actions {
        justify-content: flex-start;
    }

    .class-space-grid {
        grid-template-columns: 1fr;
    }

    .space-hero {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .space-primary-action {
        justify-self: start;
    }

    .space-kpi-grid,
    .space-card-grid {
        grid-template-columns: 1fr;
    }

    .space-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .quick-create-panel {
        right: auto;
        left: 0;
        max-width: calc(100vw - 3rem);
    }
}

.student-workspace {
    display: grid;
    gap: 1rem;
}

.student-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.6fr);
    gap: 1rem;
    align-items: center;
    border-radius: 7px;
    background: linear-gradient(105deg, #0d4d8a 0%, #126fe7 57%, #20a6b8 100%);
    color: #ffffff;
    padding: 1.35rem 1.5rem;
    box-shadow: 0 16px 28px rgba(7, 54, 95, 0.2);
}

.student-hero.compact {
    grid-template-columns: minmax(0, 1fr) auto;
}

.student-hero .eyebrow,
.student-hero .builder-back-link {
    color: rgba(255, 255, 255, 0.86);
}

.student-hero h2 {
    margin-top: 0.25rem;
    color: #ffffff;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.1;
    font-weight: 850;
}

.student-hero p:last-child {
    margin-top: 0.45rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
}

.student-join-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
}

#join-class,
#progress {
    scroll-margin-top: 6rem;
}

#join-class:target,
#progress:target,
#join-class.is-anchor-highlighted,
#progress.is-anchor-highlighted {
    outline: 3px solid rgba(11, 98, 216, 0.18);
    outline-offset: 4px;
}

[data-scroll-target] {
    cursor: pointer;
}

.student-join-card input {
    min-height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.95);
    padding: 0 0.8rem;
}

.student-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.student-kpi-grid article,
.student-course-progress {
    border: 1px solid var(--tesda-border);
    border-radius: 7px;
    background: #ffffff;
    padding: 0.9rem;
}

.student-kpi-grid span,
.student-kpi-grid strong,
.student-course-progress span,
.student-course-progress strong {
    display: block;
}

.student-kpi-grid span,
.student-course-progress span {
    color: #53657a;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.student-kpi-grid strong,
.student-course-progress strong {
    margin-top: 0.2rem;
    color: #101827;
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 900;
}

.student-course-progress {
    min-width: 9rem;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
}

.student-course-progress strong,
.student-course-progress span {
    color: #ffffff;
}

.student-course-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.student-course-card {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--tesda-border);
    border-radius: 7px;
    background: #ffffff;
    transition: 0.18s ease;
}

.student-course-overview {
    display: grid;
    color: inherit;
    text-decoration: none;
}

.student-course-card:hover {
    border-color: #93bfe8;
    box-shadow: 0 12px 24px rgba(9, 42, 73, 0.11);
    transform: translateY(-1px);
}

.student-card-cover {
    min-height: 5rem;
    background: linear-gradient(105deg, #126fe7 0%, #11856f 100%);
}

.student-course-body,
.learning-outcome-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
}

.student-course-body h4,
.learning-outcome-card h4 {
    color: #101827;
    font-size: 1.05rem;
    line-height: 1.25;
    font-weight: 850;
}

.student-course-body > span,
.learning-outcome-card > div > span {
    color: #53657a;
    font-size: 0.86rem;
}

.student-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.student-card-meta span {
    border-radius: 999px;
    background: #f1f5f9;
    padding: 0.28rem 0.62rem;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 800;
}

.student-open-link {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    justify-self: end;
    color: #0b62d8;
    font-size: 0.88rem;
    text-decoration: none;
}

.unit-card .student-course-body {
    min-height: 17rem;
}

.premium-learning-card {
    align-content: space-between;
}

.student-card-actions {
    display: grid;
    gap: 0.65rem;
    border-top: 1px solid #e6edf5;
    padding: 0.85rem 1rem 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.student-card-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.student-secondary-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.15rem;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.45rem 0.75rem;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
}

.student-secondary-link:hover {
    border-color: #9ac5ed;
    color: #0b62d8;
}

.continue-link {
    min-height: 2.25rem;
    border-radius: 8px;
    background: #0b62d8;
    padding: 0.5rem 0.82rem;
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(11, 98, 216, 0.18);
}

.continue-link:hover {
    background: #084fb5;
    color: #ffffff;
}

.learning-outcome-list {
    display: grid;
    gap: 0.85rem;
}

.learning-outcome-card {
    border: 1px solid var(--tesda-border);
    border-radius: 7px;
    background: #ffffff;
}

.learning-outcome-card .btn {
    justify-self: end;
}

.premium-path {
    gap: 0.7rem;
}

.learning-outcome-accordion {
    overflow: hidden;
    border: 1px solid var(--tesda-border);
    border-radius: 7px;
    background: #ffffff;
}

.learning-outcome-accordion summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    list-style: none;
}

.learning-outcome-accordion summary::-webkit-details-marker {
    display: none;
}

.learning-outcome-accordion[open] {
    border-color: #93bfe8;
    box-shadow: 0 12px 24px rgba(9, 42, 73, 0.08);
}

.learning-outcome-accordion[open] summary {
    border-bottom: 1px solid #e0e9f2;
    background: #fbfdff;
}

.outcome-summary-main h4 {
    color: #101827;
    font-size: 1.02rem;
    line-height: 1.25;
    font-weight: 850;
}

.outcome-summary-main span {
    display: block;
    margin-top: 0.25rem;
    color: #53657a;
    font-size: 0.84rem;
}

.outcome-summary-progress {
    min-width: 6rem;
    text-align: right;
}

.outcome-summary-progress strong,
.outcome-summary-progress span {
    display: block;
}

.outcome-summary-progress strong {
    color: #0b62d8;
    font-size: 1.15rem;
    font-weight: 900;
}

.outcome-summary-progress span {
    color: #53657a;
    font-size: 0.74rem;
    font-weight: 800;
}

.outcome-chevron {
    color: #64748b;
    transition: transform 0.18s ease;
}

.learning-outcome-accordion[open] .outcome-chevron {
    transform: rotate(180deg);
}

.outcome-expanded {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
}

.student-activity-list {
    display: grid;
    gap: 0.55rem;
}

.student-activity-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    border: 1px solid #dce6f0;
    border-radius: 7px;
    background: #ffffff;
    padding: 0.75rem;
    transition: 0.18s ease;
}

.student-activity-row:hover {
    border-color: #93bfe8;
    background: #f7fbff;
}

.student-activity-row.is-locked {
    background: #f8fafc;
}

.student-activity-icon {
    width: 2.2rem;
    height: 2.2rem;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #eaf2ff;
    color: #0b62d8;
}

.student-activity-icon.assignment {
    background: #f3e8ff;
    color: #7c3aed;
}

.student-activity-icon.quiz {
    background: #fff7ed;
    color: #ea580c;
}

.student-activity-row strong,
.student-activity-row small {
    display: block;
}

.student-activity-row strong {
    color: #101827;
    font-size: 0.92rem;
    font-weight: 850;
}

.student-activity-row small {
    margin-top: 0.12rem;
    color: #53657a;
    font-size: 0.76rem;
    font-weight: 750;
}

.activity-state {
    border-radius: 999px;
    background: #eaf2ff;
    padding: 0.28rem 0.62rem;
    color: #0b62d8;
    font-size: 0.74rem;
    font-style: normal;
    font-weight: 900;
}

.activity-state.done {
    background: #dcfce7;
    color: #15803d;
}

.activity-state.locked {
    background: #e2e8f0;
    color: #475569;
}

.student-activity-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 7px;
    background: #f8fafc;
    padding: 1rem;
    color: #53657a;
    font-size: 0.86rem;
    font-weight: 750;
}

.learner-command-center {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.9fr);
}

.learner-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 345px;
    gap: 1rem;
    align-items: start;
}

.learner-main-column,
.learner-side-column {
    display: grid;
    gap: 1rem;
}

.continue-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid #d6e4f2;
    border-radius: 8px;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 12px 26px rgba(9, 42, 73, 0.08);
}

.continue-panel-copy h3 {
    margin-top: 0.2rem;
    color: #0f172a;
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 900;
}

.continue-panel-copy span {
    display: block;
    margin-top: 0.25rem;
    color: #52657a;
    font-size: 0.88rem;
    font-weight: 700;
}

.continue-panel-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.continue-progress-ring {
    --progress: 0;
    width: 4.5rem;
    height: 4.5rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background:
        radial-gradient(circle at center, #ffffff 57%, transparent 58%),
        conic-gradient(#0b62d8 calc(var(--progress) * 1%), #e2e8f0 0);
}

.continue-progress-ring strong,
.continue-progress-ring span {
    grid-area: 1 / 1;
    display: block;
    text-align: center;
}

.continue-progress-ring strong {
    margin-top: -0.55rem;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 900;
}

.continue-progress-ring span {
    margin-top: 1.15rem;
    color: #64748b;
    font-size: 0.58rem;
    font-weight: 900;
    text-transform: uppercase;
}

.student-course-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.student-course-topline em {
    border-radius: 999px;
    background: #eaf2ff;
    padding: 0.22rem 0.55rem;
    color: #0b62d8;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 900;
}

.course-next-step {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.5rem 0.6rem;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
    transition: 0.18s ease;
}

.course-next-step i {
    color: #0b62d8;
    font-size: 0.72rem;
}

.course-next-step small {
    margin-left: auto;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
}

.learning-next-action:hover {
    border-color: #93bfe8;
    background: #eef6ff;
    color: #0f172a;
}

.learner-task-list,
.learner-recent-list,
.learner-progress-list {
    display: grid;
    gap: 0.55rem;
}

.learner-task-row,
.learner-recent-list a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.68rem;
    text-decoration: none;
}

.learner-task-row:hover,
.learner-recent-list a:hover {
    border-color: #91bde8;
    background: #f8fbff;
}

.learner-task-row.is-overdue {
    border-color: #fecaca;
    background: #fff7f7;
}

.learner-task-icon,
.learner-recent-list a > i {
    width: 2.15rem;
    height: 2.15rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b62d8;
}

.learner-task-icon.assignment {
    background: #f3e8ff;
    color: #7c3aed;
}

.learner-task-icon.quiz {
    background: #fff7ed;
    color: #ea580c;
}

.learner-task-row strong,
.learner-task-row small,
.learner-task-row em,
.learner-recent-list strong,
.learner-recent-list small {
    display: block;
}

.learner-task-row strong,
.learner-recent-list strong {
    min-width: 0;
    overflow: hidden;
    color: #101827;
    font-size: 0.84rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.learner-task-row small,
.learner-recent-list small {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
}

.learner-task-row em {
    margin-top: 0.12rem;
    color: #0b62d8;
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 850;
}

.learner-progress-list div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem 0.65rem;
    align-items: center;
}

.learner-progress-list span,
.learner-progress-list strong {
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 900;
}

.learner-progress-list span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.learner-progress-list i {
    grid-column: 1 / -1;
    height: 0.42rem;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.learner-progress-list b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0b62d8, #20a6b8);
}

.learner-empty-mini {
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    padding: 0.8rem;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 750;
}

.learner-progress-page {
    gap: 1rem;
}

.progress-hero {
    grid-template-columns: minmax(0, 1fr) auto;
}

.progress-hero-meter {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    padding: 0.8rem 1rem;
    backdrop-filter: blur(10px);
}

.continue-progress-ring.large {
    width: 5.2rem;
    height: 5.2rem;
}

.continue-progress-ring.large strong {
    font-size: 1.18rem;
}

.progress-hero-meter strong,
.progress-hero-meter span,
.progress-hero-meter small {
    display: block;
}

.progress-hero-meter > div:last-child strong {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
}

.progress-hero-meter > div:last-child span,
.progress-hero-meter > div:last-child small {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
    font-weight: 750;
}

.progress-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.progress-overview-grid article {
    position: relative;
    overflow: hidden;
    border: 1px solid #d7e1ee;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.9rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.progress-overview-grid span,
.progress-overview-grid strong {
    display: block;
}

.progress-overview-grid span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.progress-overview-grid strong {
    margin-top: 0.24rem;
    color: #081426;
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 900;
}

.progress-overview-grid i {
    position: absolute;
    right: -1rem;
    bottom: -1rem;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 999px;
    opacity: 0.16;
}

.progress-overview-grid i.success,
.progress-stacked-chart .done,
.progress-track.multi .done,
.progress-legend i.done {
    background: #15803d;
}

.progress-overview-grid i.active,
.progress-stacked-chart .active,
.progress-track.multi .active,
.progress-legend i.active {
    background: #0b62d8;
}

.progress-overview-grid i.pending,
.progress-stacked-chart .pending,
.progress-track.multi .pending,
.progress-legend i.pending {
    background: #f59e0b;
}

.progress-overview-grid i.points {
    background: #7c3aed;
}

.progress-stacked-chart .locked,
.progress-track.multi .locked,
.progress-legend i.locked {
    background: #94a3b8;
}

.progress-chart-panel {
    display: grid;
    gap: 0.75rem;
}

.progress-stacked-chart,
.progress-track.multi {
    display: flex;
    height: 0.85rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.progress-stacked-chart span,
.progress-track.multi span {
    display: block;
    min-width: 0;
}

.progress-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 850;
}

.progress-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.progress-legend i {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
}

.learner-progress-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 1rem;
    align-items: start;
}

.learner-progress-main,
.learner-progress-side,
.progress-course-list {
    display: grid;
    gap: 1rem;
}

.progress-course-card {
    display: grid;
    gap: 0.75rem;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    padding: 0.85rem;
}

.progress-course-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.progress-course-summary h4,
.progress-course-summary span,
.progress-course-summary strong {
    display: block;
}

.progress-course-summary h4 {
    margin-top: 0.2rem;
    color: #081426;
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 900;
}

.progress-course-summary span {
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 750;
}

.progress-course-summary > strong {
    color: #0b62d8;
    font-size: 1.25rem;
    font-weight: 900;
}

.progress-next-action {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.55rem 0.65rem;
    color: #0b62d8;
    font-size: 0.8rem;
    font-weight: 900;
}

.progress-panel-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.student-progress-course-filter select {
    min-height: 2.35rem;
    max-width: 20rem;
    border: 1px solid #cfe0f4;
    border-radius: 8px;
    background: #ffffff;
    color: #081426;
    padding: 0 0.75rem;
    font-size: 0.82rem;
    font-weight: 850;
    outline: none;
}

.student-progress-course-filter select:focus {
    border-color: #0b62d8;
    box-shadow: 0 0 0 3px rgba(11, 98, 216, 0.13);
}

.completion-matrix-wrap {
    overflow-x: auto;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
}

.completion-matrix {
    width: 100%;
    min-width: 42rem;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
}

.completion-matrix th,
.completion-matrix td {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem;
    text-align: left;
    vertical-align: middle;
}

.completion-matrix thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fbff;
    color: #334155;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.completion-matrix tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 16rem;
    background: #ffffff;
}

.completion-matrix tbody tr:last-child th,
.completion-matrix tbody tr:last-child td {
    border-bottom: 0;
}

.completion-matrix th span,
.completion-matrix th strong,
.completion-matrix td strong,
.completion-matrix td small {
    display: block;
}

.completion-matrix th span {
    color: #0b62d8;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.completion-matrix th strong {
    margin-top: 0.2rem;
    color: #081426;
    font-size: 0.88rem;
    line-height: 1.25;
    font-weight: 900;
}

.completion-matrix td strong {
    color: #081426;
    font-size: 0.9rem;
    font-weight: 900;
}

.completion-matrix td small {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
}

.matrix-cell-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(1.9rem, 1fr));
    gap: 0.25rem;
    min-width: 20rem;
}

.matrix-cell {
    height: 1.8rem;
    display: grid;
    place-items: center;
    border-radius: 5px;
    color: #ffffff;
    font-size: 0.72rem;
    position: relative;
    cursor: help;
    transition: box-shadow 0.16s ease, transform 0.16s ease, outline-color 0.16s ease;
}

.matrix-cell.done {
    background: #6da83b;
}

.matrix-cell.active {
    background: #0b62d8;
}

.matrix-cell.pending {
    background: #f6c343;
    color: #111827;
}

.matrix-cell.locked {
    background: #0c5785;
}

.matrix-cell:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.14);
}

.matrix-cell.is-inspected,
.matrix-cell:focus-visible {
    outline: 3px solid rgba(11, 98, 216, 0.24);
    outline-offset: 2px;
}

.matrix-activity-popover {
    position: fixed;
    z-index: 80;
    width: min(18rem, calc(100vw - 2rem));
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.2);
    padding: 0.7rem 0.8rem;
    pointer-events: auto;
}

.matrix-activity-popover span,
.matrix-activity-popover strong,
.matrix-activity-popover small,
.matrix-activity-popover em {
    display: block;
}

.matrix-activity-popover span {
    color: #0b62d8;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.matrix-activity-popover strong {
    margin-top: 0.18rem;
    color: #081426;
    font-size: 0.88rem;
    line-height: 1.25;
    font-weight: 900;
}

.matrix-activity-popover small {
    margin-top: 0.28rem;
    color: #475569;
    font-size: 0.74rem;
    font-weight: 750;
}

.matrix-activity-popover em {
    margin-top: 0.45rem;
    color: #0b62d8;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 900;
}

.matrix-popover-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    margin-top: 0.65rem;
}

.matrix-popover-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.1rem;
    border: 1px solid #bfdbfe;
    border-radius: 7px;
    background: #edf6ff;
    color: #0b62d8;
    font-size: 0.72rem;
    font-weight: 900;
    cursor: pointer;
}

.matrix-popover-actions button:hover,
.matrix-popover-actions button:focus {
    border-color: #0b62d8;
    background: #0b62d8;
    color: #ffffff;
}

.matrix-popover-actions button:disabled {
    border-color: #d1e0ef;
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

.matrix-empty {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 750;
}

.teacher-progress-page {
    max-width: 90rem;
    margin: 0 auto;
}

.teacher-progress-hero {
    align-items: center;
}

.teacher-progress-meter {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 17rem;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    padding: 1rem;
}

.teacher-progress-meter strong,
.teacher-progress-meter span {
    display: block;
}

.teacher-progress-meter strong {
    color: #081426;
    font-size: 1.7rem;
    line-height: 1;
    font-weight: 950;
}

.teacher-progress-meter span {
    margin-top: 0.25rem;
    color: #52657f;
    font-size: 0.78rem;
    font-weight: 850;
}

.teacher-progress-controls {
    margin-bottom: 1rem;
}

.teacher-progress-filter-form {
    display: grid;
    grid-template-columns: minmax(15rem, 1fr) repeat(5, minmax(9.25rem, 0.55fr)) auto auto;
    gap: 0.75rem;
    align-items: end;
}

.teacher-progress-filter-form label {
    display: grid;
    gap: 0.3rem;
}

.teacher-progress-filter-form label > span {
    color: #52657f;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.teacher-progress-filter-form input,
.teacher-progress-filter-form select {
    width: 100%;
    min-height: 2.6rem;
    border: 1px solid #cfe0f4;
    border-radius: 8px;
    background: #ffffff;
    color: #081426;
    padding: 0 0.75rem;
    font-size: 0.88rem;
    font-weight: 800;
    outline: none;
}

.teacher-progress-filter-form input:focus,
.teacher-progress-filter-form select:focus {
    border-color: #0b62d8;
    box-shadow: 0 0 0 3px rgba(11, 98, 216, 0.13);
}

.teacher-progress-search {
    position: relative;
}

.teacher-progress-search i {
    position: absolute;
    left: 0.78rem;
    bottom: 0.82rem;
    color: #64748b;
    font-size: 0.85rem;
}

.teacher-progress-search input {
    padding-left: 2.25rem;
}

.teacher-progress-matrix-panel {
    margin-bottom: 1.5rem;
}

.teacher-completion-matrix {
    min-width: 58rem;
}

.teacher-completion-matrix tbody th {
    width: 18rem;
}

.progress-legend.compact {
    margin-top: 0;
    justify-content: flex-end;
}

@media (max-width: 1024px) {
    .teacher-progress-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .teacher-progress-filter-form .btn {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .progress-panel-actions {
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
    }

    .student-progress-course-filter,
    .student-progress-course-filter select,
    .progress-panel-actions .btn {
        width: 100%;
        max-width: none;
    }

    .teacher-progress-meter {
        width: 100%;
    }

    .teacher-progress-filter-form {
        grid-template-columns: 1fr;
    }

    .progress-legend.compact {
        justify-content: flex-start;
    }
}

.assignment-submit-page {
    max-width: 90rem;
    margin: 0 auto;
}

.assignment-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    color: #0b62d8;
    font-size: 0.86rem;
    font-weight: 900;
}

.assignment-submit-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #0f766e 0%, #0b62d8 100%);
    color: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.16);
}

.assignment-submit-hero h2 {
    margin-top: 0.3rem;
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.15;
    font-weight: 950;
}

.assignment-submit-hero p:not(.eyebrow) {
    margin-top: 0.45rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
    font-weight: 750;
}

.assignment-submit-score {
    min-width: 6.5rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    padding: 0.9rem 1rem;
    text-align: center;
}

.assignment-submit-score strong,
.assignment-submit-score span {
    display: block;
}

.assignment-submit-score strong {
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 950;
}

.assignment-submit-score span {
    margin-top: 0.25rem;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.assignment-submit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22rem;
    gap: 1rem;
    margin-top: 1rem;
    align-items: start;
}

.assignment-submit-main,
.assignment-submit-side {
    display: grid;
    gap: 1rem;
}

.assignment-instructions {
    color: #334155;
    font-size: 0.94rem;
    line-height: 1.65;
}

.assignment-instructions p + p {
    margin-top: 0.8rem;
}

.assignment-submit-state {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.assignment-submit-state.submitted {
    background: #dcfce7;
    color: #166534;
}

.assignment-submit-state.closed {
    background: #fee2e2;
    color: #991b1b;
}

.assignment-submit-state.draft {
    background: #dbeafe;
    color: #1d4ed8;
}

.assignment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.assignment-methods span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid #dbe7f6;
    border-radius: 999px;
    background: #f8fbff;
    padding: 0.45rem 0.7rem;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 900;
}

.assignment-offline-note {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    background: #f0f9ff;
    padding: 0.85rem;
    color: #075985;
    font-size: 0.84rem;
    line-height: 1.45;
    font-weight: 800;
}

.assignment-offline-note i {
    margin-top: 0.12rem;
    color: #0284c7;
}

.assignment-field-block + .assignment-field-block {
    margin-top: 1rem;
}

.assignment-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.45rem;
}

.assignment-field-head label {
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 900;
}

.assignment-field-head small,
.assignment-field-head a {
    color: #0b62d8;
    font-size: 0.76rem;
    font-weight: 900;
}

.assignment-help-text {
    margin-top: 0.4rem;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 750;
}

.assignment-file-dropzone {
    display: grid;
    place-items: center;
    gap: 0.35rem;
    min-height: 9.5rem;
    border: 2px dashed #bfdbfe;
    border-radius: 8px;
    background: #f8fbff;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.assignment-file-dropzone.is-dragging,
.assignment-file-dropzone:hover {
    border-color: #0b62d8;
    background: #eff6ff;
    transform: translateY(-1px);
}

.assignment-file-dropzone i {
    color: #0b62d8;
    font-size: 1.45rem;
}

.assignment-file-dropzone strong,
.assignment-file-dropzone span {
    display: block;
}

.assignment-file-dropzone strong {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 950;
}

.assignment-file-dropzone span {
    max-width: 34rem;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 750;
}

.assignment-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.assignment-error {
    margin-top: 0.4rem;
    color: #dc2626;
    font-size: 0.78rem;
    font-weight: 850;
}

.assignment-submit-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.assignment-submit-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.assignment-submit-actions small {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 750;
}

.assignment-status-card h3,
.assignment-feedback-card h3 {
    margin-top: 0.2rem;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 950;
}

.assignment-status-card dl {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.assignment-status-card dl div {
    border-top: 1px solid #e2e8f0;
    padding-top: 0.75rem;
}

.assignment-status-card dt {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.assignment-status-card dd {
    margin-top: 0.2rem;
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 850;
}

.assignment-feedback-card p,
.assignment-feedback-text {
    margin-top: 0.75rem;
    color: #334155;
    font-size: 0.86rem;
    line-height: 1.55;
    font-weight: 750;
}

.certificate-template-panel {
    gap: 1rem;
}

.certificate-size-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.certificate-size-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.certificate-background-panel {
    display: grid;
    gap: 0.85rem;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(248, 251, 255, 0.96), rgba(240, 253, 250, 0.82)),
        #ffffff;
    padding: 0.95rem;
}

.certificate-background-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.certificate-background-head strong,
.certificate-background-head span {
    display: block;
}

.certificate-background-head strong {
    color: #0f172a;
    font-size: 0.94rem;
    font-weight: 900;
}

.certificate-background-head span {
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 750;
}

.certificate-background-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.certificate-designer {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
    gap: 1rem;
    align-items: start;
}

.certificate-designer-preview {
    display: grid;
    place-items: center;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.06), rgba(11, 98, 216, 0.08)),
        #f8fbff;
    padding: 1rem;
    min-height: 22rem;
}

.certificate-designer-canvas {
    position: relative;
    container-type: inline-size;
    --certificate-width: 3508;
    --certificate-height: 2480;
    width: min(100%, 42rem);
    aspect-ratio: 3508 / 2480;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(11, 98, 216, 0.12)),
        #ffffff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.certificate-designer-border {
    position: absolute;
    inset: 4%;
    border: 2px solid rgba(15, 23, 42, 0.14);
    border-radius: 8px;
    pointer-events: none;
}

.certificate-designer-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.certificate-preview-element {
    position: absolute;
    width: min(78%, 30rem);
    font-size: calc((var(--certificate-field-size, 18) / var(--certificate-width, 3508)) * 100cqw);
    line-height: 1.12;
    white-space: pre-line;
    overflow-wrap: anywhere;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.44);
}

.certificate-preview-element.align-center {
    transform: translate(-50%, -50%);
    text-align: center;
}

.certificate-preview-element.align-left {
    transform: translate(0, -50%);
    text-align: left;
}

.certificate-preview-element.align-right {
    transform: translate(-100%, -50%);
    text-align: right;
}

.certificate-designer-controls {
    display: grid;
    gap: 0.75rem;
}

.certificate-designer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.certificate-designer-head > button {
    flex: 0 0 auto;
}

.certificate-designer-head strong,
.certificate-designer-head span {
    display: block;
}

.certificate-designer-head strong {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 950;
}

.certificate-designer-head span {
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
}

.certificate-field-list {
    display: grid;
    gap: 0.75rem;
    max-height: 35rem;
    overflow: auto;
    padding-right: 0.15rem;
}

.certificate-field-card {
    display: grid;
    gap: 0.65rem;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.75rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.certificate-field-card label {
    display: grid;
    gap: 0.35rem;
    color: #0f172a;
    font-size: 0.74rem;
    font-weight: 900;
}

.certificate-field-card input,
.certificate-field-card select,
.certificate-field-card textarea {
    min-height: 2.4rem;
    border: 1px solid #cbd9eb;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.45rem 0.6rem;
    color: #0f172a;
    font-size: 0.8rem;
    font-weight: 800;
}

.certificate-field-card textarea {
    min-height: 4.75rem;
    resize: vertical;
    line-height: 1.45;
    font-family: inherit;
    font-weight: 650;
}

.certificate-field-card input[type="range"] {
    min-height: 1.8rem;
    padding: 0;
    accent-color: #0b62d8;
}

.certificate-field-card input[type="color"] {
    padding: 0.18rem;
}

.certificate-field-card-head label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.84rem;
}

.certificate-field-card-head small {
    color: #0b62d8;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.certificate-field-card-head input {
    width: 1rem;
    min-height: 1rem;
    accent-color: #0b62d8;
}

.certificate-checkbox-row {
    align-content: center;
    grid-template-columns: auto 1fr;
    align-items: center;
    min-height: 2.4rem;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.45rem 0.6rem;
}

.certificate-checkbox-row input {
    width: 1rem;
    min-height: 1rem;
    accent-color: #0b62d8;
}

.certificate-signature-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    padding: 0.45rem 0.55rem;
    color: #0b62d8;
    font-size: 0.72rem;
    font-weight: 900;
}

.certificate-element-signatory,
.certificate-preview-element.certificate-element-signatory {
    letter-spacing: 0;
}

.certificate-element-verification,
.certificate-preview-element.certificate-element-verification {
    opacity: 0.9;
}

.certificate-remove-field {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.45rem;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff7f7;
    color: #b91c1c;
    font-size: 0.8rem;
    font-weight: 850;
    cursor: pointer;
}

.certificate-remove-field:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.certificate-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.certificate-layout-storage textarea {
    display: none;
}

@media (max-width: 900px) {
    .certificate-designer {
        grid-template-columns: 1fr;
    }

    .certificate-background-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .certificate-field-list {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 640px) {
    .certificate-size-grid,
    .certificate-background-grid,
    .certificate-mini-grid {
        grid-template-columns: 1fr;
    }

    .certificate-designer-preview {
        min-height: 15rem;
        padding: 0.7rem;
    }

    .certificate-preview-element {
        font-size: clamp(0.55rem, 2.8vw, 1rem) !important;
    }
}

.certificate-benchmark-note {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    padding: 0.8rem;
    color: #1e3a8a;
    font-size: 0.8rem;
    line-height: 1.45;
    font-weight: 800;
}

.certificate-smart-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.certificate-smart-tags span {
    border: 1px solid #dbe7f6;
    border-radius: 999px;
    background: #f8fbff;
    padding: 0.35rem 0.55rem;
    color: #0b62d8;
    font-size: 0.72rem;
    font-weight: 900;
}

.certificate-award-lock {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(11, 98, 216, 0.16);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(219, 234, 254, 0.92), rgba(240, 253, 250, 0.88)),
        #f8fbff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.certificate-award-lock-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #0b62d8;
    background: #ffffff;
    border: 1px solid rgba(11, 98, 216, 0.16);
    box-shadow: 0 12px 24px rgba(11, 98, 216, 0.14);
}

.certificate-award-lock-copy span {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.35rem;
    color: #0b62d8;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.certificate-award-lock-copy h4 {
    margin: 0;
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.25;
}

.certificate-award-lock-copy p {
    max-width: 62rem;
    margin: 0.45rem 0 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.55;
}

.certificate-award-lock-copy ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.5rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.certificate-award-lock-copy li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.35rem;
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #334155;
    font-size: 0.86rem;
    font-weight: 700;
}

.certificate-award-lock-copy li::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #94a3b8;
}

.certificate-award-lock-copy small {
    display: inline-block;
    margin-top: 0.65rem;
    color: #64748b;
    font-weight: 700;
}

.certificate-viewer {
    background: #f4f8fc;
}

.certificate-stage {
    display: grid;
    place-items: center;
    padding: 1.25rem;
    overflow: auto;
}

.certificate-canvas {
    position: relative;
    container-type: inline-size;
    --certificate-width: 3508;
    --certificate-height: 2480;
    width: min(100%, calc(var(--certificate-width) * 1px));
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(11, 98, 216, 0.1)),
        #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.certificate-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: var(--certificate-background-opacity, 1);
    object-position: var(--certificate-background-x, 50%) var(--certificate-background-y, 50%);
    transform-origin: var(--certificate-background-x, 50%) var(--certificate-background-y, 50%);
}

.certificate-background-cover {
    object-fit: cover;
}

.certificate-background-contain {
    object-fit: contain;
}

.certificate-background-stretch {
    object-fit: fill;
}

.certificate-background-custom {
    object-fit: contain;
    transform: scale(var(--certificate-background-scale, 1));
}

.certificate-border {
    position: absolute;
    inset: 3.5%;
    border: 2px solid rgba(15, 23, 42, 0.16);
    border-radius: 8px;
    pointer-events: none;
}

.certificate-element {
    position: absolute;
    width: min(72%, 42rem);
    font-size: calc((var(--certificate-field-size, 18) / var(--certificate-width, 3508)) * 100cqw);
    line-height: 1.12;
    white-space: pre-line;
    overflow-wrap: anywhere;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
}

.certificate-element.align-center {
    transform: translate(-50%, -50%);
    text-align: center;
}

.certificate-element.align-left {
    transform: translate(0, -50%);
    text-align: left;
}

.certificate-element.align-right {
    transform: translate(-100%, -50%);
    text-align: right;
}

@media print {
    body.certificate-print-mode {
        margin: 0 !important;
        background: #ffffff !important;
        overflow: hidden !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    body.certificate-print-mode * {
        visibility: hidden !important;
    }

    body.certificate-print-mode .certificate-viewer.is-certificate-print-target,
    body.certificate-print-mode .certificate-viewer.is-certificate-print-target * {
        visibility: visible !important;
    }

    body.certificate-print-mode .certificate-viewer.is-certificate-print-target {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        overflow: hidden !important;
        z-index: 999999 !important;
    }

    body.certificate-print-mode .certificate-viewer-toolbar,
    body.certificate-print-mode .feed-monitor-bar,
    body.certificate-print-mode .resource-activity-status-grid {
        display: none !important;
    }

    body.certificate-print-mode .certificate-stage {
        position: fixed !important;
        inset: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        overflow: hidden !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    body.certificate-print-mode .certificate-canvas {
        width: 100vw !important;
        max-width: 100vw !important;
        height: auto !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: hidden !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }
}

@media (max-width: 640px) {
    .certificate-award-lock {
        grid-template-columns: 1fr;
        padding: 1rem;
        border-radius: 14px;
    }

    .certificate-award-lock-icon {
        width: 2.65rem;
        height: 2.65rem;
    }

    .certificate-award-lock-copy ul {
        grid-template-columns: 1fr;
    }
}

.assignment-builder {
    max-width: 90rem;
    margin: 0 auto;
}

.assignment-builder .resource-form-control {
    display: block;
    width: 100%;
    min-height: 3.25rem;
    border-color: #cbd9eb;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.02);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.assignment-builder select.resource-form-control {
    padding-right: 2.25rem;
}

.assignment-builder textarea.resource-form-control {
    min-height: 11.5rem;
    line-height: 1.55;
}

.assignment-builder-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #0f766e 0%, #0b62d8 100%);
    color: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.16);
    position: relative;
    overflow: hidden;
}

.assignment-builder-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 32%),
        radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.2), transparent 28%);
    pointer-events: none;
}

.assignment-builder-hero > * {
    position: relative;
    z-index: 1;
}

.assignment-builder-hero .builder-back-link {
    color: #ffffff;
}

.quiz-builder-hero {
    background: linear-gradient(135deg, #c2410c 0%, #0b62d8 100%);
}

.assignment-builder-hero h2 {
    margin-top: 0.35rem;
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.15;
    font-weight: 950;
}

.assignment-builder-hero p:not(.eyebrow) {
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
    font-weight: 750;
}

.assignment-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.assignment-hero-badges span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    padding: 0.38rem 0.65rem;
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.74rem;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.assignment-hero-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.assignment-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.85rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    padding: 0 0.8rem;
    font-size: 0.78rem;
    font-weight: 950;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.assignment-icon-button:hover {
    background: rgba(255, 255, 255, 0.22);
}

.assignment-builder-score {
    min-width: 7rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    padding: 0.9rem 1rem;
    text-align: center;
}

.assignment-builder-score strong,
.assignment-builder-score span {
    display: block;
}

.assignment-builder-score strong {
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 950;
}

.assignment-builder-score span {
    margin-top: 0.25rem;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.assignment-builder-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 21.5rem);
    gap: 1.25rem;
    margin-top: 1.25rem;
    align-items: start;
}

.assignment-builder-main,
.assignment-builder-side {
    display: grid;
    gap: 1.15rem;
}

.assignment-builder-side {
    position: sticky;
    top: 5rem;
    max-height: calc(100vh - 6rem);
    overflow: auto;
    padding-right: 0.15rem;
}

.assignment-builder-panel label {
    display: block;
    margin-bottom: 0.45rem;
    color: #0f172a;
    font-size: 0.84rem;
    font-weight: 900;
}

.assignment-premium-panel {
    border: 1px solid #d7e4f5;
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.085);
    position: relative;
    overflow: hidden;
}

.assignment-premium-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #14b8a6, #0b62d8);
    opacity: 0.86;
}

.assignment-builder-main .assignment-premium-panel {
    padding: 1.05rem;
}

.assignment-premium-panel .dashboard-panel-head {
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #edf3fb;
}

.assignment-premium-panel .dashboard-panel-head h3 {
    letter-spacing: 0;
    line-height: 1.25;
}

.assignment-panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 8px;
    background: #eef6ff;
    color: #0b62d8;
    box-shadow: inset 0 0 0 1px #dbeafe;
}

.assignment-side-settings {
    display: grid;
    gap: 0.85rem;
}

.assignment-config-panel-button {
    justify-content: center;
    width: 100%;
}

.assignment-field-block.is-muted {
    opacity: 0.62;
}

.assignment-field-block {
    min-width: 0;
}

.assignment-config-toggle.is-muted {
    opacity: 0.58;
}

.assignment-two-col,
.assignment-three-col,
.assignment-toggle-grid {
    display: grid;
    gap: 1rem;
    align-items: start;
}

.assignment-two-col > .assignment-field-block,
.assignment-three-col > .assignment-field-block,
.assignment-toggle-grid > .assignment-config-toggle {
    margin-top: 0;
}

.assignment-two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.assignment-three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.assignment-submission-settings,
.assignment-file-settings {
    grid-template-columns: minmax(0, 1fr) minmax(13rem, 18rem);
}

.assignment-grade-grid {
    grid-template-columns: minmax(9rem, 12rem) minmax(0, 1fr) minmax(12rem, 17rem);
}

.assignment-toggle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 1.15rem 0 1.1rem;
}

.assignment-config-toggle {
    display: flex !important;
    align-items: flex-start;
    gap: 0.75rem;
    height: 100%;
    min-height: 5.15rem;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 0.82rem;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.assignment-config-toggle:hover {
    border-color: #9ec8ff;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(11, 98, 216, 0.12);
    transform: translateY(-1px);
}

.assignment-config-toggle:has(input:checked) {
    border-color: #66b5b0;
    background: linear-gradient(180deg, #f0fdfa 0%, #f8fbff 100%);
    box-shadow: 0 12px 30px rgba(20, 184, 166, 0.13);
}

.assignment-config-toggle input {
    flex: 0 0 auto;
    width: 1.08rem;
    height: 1.08rem;
    margin-top: 0.22rem;
    accent-color: #0b62d8;
}

.assignment-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 8px;
    background: #eaf3ff;
    color: #0b62d8;
    box-shadow: inset 0 0 0 1px #dbeafe;
}

.assignment-config-toggle:has(input:checked) .assignment-toggle-icon {
    background: #ccfbf1;
    color: #0f766e;
    box-shadow: inset 0 0 0 1px #99f6e4;
}

.assignment-premium-panel .resource-form-control:focus {
    border-color: #0b62d8;
    background: #ffffff;
    box-shadow: 0 0 0 0.22rem rgba(11, 98, 216, 0.12), 0 12px 26px rgba(11, 98, 216, 0.08);
}

.assignment-premium-panel .resource-form-control::placeholder {
    color: #94a3b8;
    font-weight: 800;
}

.assignment-premium-panel .resource-multi-select {
    min-height: 14rem;
    padding: 0.65rem;
    line-height: 1.8;
}

.assignment-config-toggle strong,
.assignment-config-toggle small {
    display: block;
}

.assignment-config-toggle strong {
    color: #0f172a;
    font-size: 0.85rem;
    line-height: 1.25;
    font-weight: 950;
}

.assignment-config-toggle small {
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.74rem;
    line-height: 1.35;
    font-weight: 750;
}

.assignment-submission-settings .assignment-help-text,
.assignment-file-settings .assignment-help-text {
    min-height: 2rem;
}

.assignment-readiness-list {
    display: grid;
    gap: 0.6rem;
    margin-top: 1rem;
}

.assignment-readiness-list span {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 850;
}

.assignment-readiness-list span.is-complete {
    color: #166534;
}

.assignment-readiness-list span.is-complete i {
    color: #16a34a;
}

.assignment-preview-panel {
    background:
        linear-gradient(145deg, #0f172a 0%, #124174 58%, #0b62d8 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 46px rgba(11, 98, 216, 0.2);
}

.assignment-preview-panel .eyebrow,
.assignment-preview-panel h3 {
    color: #ffffff;
}

.assignment-preview-card {
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    padding: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.assignment-preview-topline {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.assignment-preview-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 0.25rem rgba(34, 197, 94, 0.16);
}

.assignment-preview-card strong {
    display: block;
    margin-top: 0.8rem;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 950;
    overflow-wrap: anywhere;
}

.assignment-preview-card p {
    margin-top: 0.6rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    line-height: 1.5;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.assignment-preview-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.9rem;
}

.assignment-preview-actions span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    min-height: 2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.68rem;
    font-weight: 900;
}

.assignment-save-button {
    justify-content: center;
    min-height: 3rem;
    border: 0;
    background: linear-gradient(135deg, #0b62d8 0%, #0f766e 100%);
    box-shadow: 0 16px 34px rgba(11, 98, 216, 0.24);
}

.assignment-save-button:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.assignment-config-modal[hidden] {
    display: none;
}

.assignment-config-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.assignment-config-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.54);
    backdrop-filter: blur(5px);
}

.assignment-config-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(56rem, calc(100vw - 2rem));
    max-height: min(46rem, calc(100vh - 2rem));
    border: 1px solid #d7e4f5;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
    overflow: hidden;
}

.assignment-config-head,
.assignment-config-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: #ffffff;
}

.assignment-config-head {
    border-bottom: 1px solid #e2e8f0;
}

.assignment-config-head h3 {
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 950;
}

.assignment-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #f8fbff;
    color: #0f172a;
    cursor: pointer;
}

.assignment-modal-close:hover {
    border-color: #9ec8ff;
    color: #0b62d8;
}

.assignment-config-body {
    display: grid;
    gap: 1rem;
    overflow: auto;
    padding: 1rem;
    background: #f4f8fc;
}

.assignment-config-section {
    border: 1px solid #d7e4f5;
    border-radius: 8px;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.assignment-config-section .dashboard-panel-head {
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #edf3fb;
}

.assignment-config-footer {
    border-top: 1px solid #e2e8f0;
}

.assignment-config-footer .btn {
    min-width: 8rem;
    justify-content: center;
}

body.assignment-config-lock {
    overflow: hidden;
}

.question-builder {
    max-width: 90rem;
    margin: 0 auto;
}

.question-builder-hero {
    background: linear-gradient(135deg, #ea580c 0%, #0f766e 100%);
}

.question-builder-form {
    display: grid;
    gap: 1rem;
}

.question-choice-panel,
.question-feedback-panel,
.question-bank-settings {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.question-choice-list {
    display: grid;
    gap: 0.7rem;
    margin-top: 0.8rem;
}

.question-bank-list {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
}

.question-bank-list form {
    display: grid;
    gap: 0.45rem;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.75rem;
}

.question-bank-list strong,
.question-bank-list small {
    display: block;
}

.question-bank-list strong {
    color: #0f172a;
    font-size: 0.82rem;
    line-height: 1.28;
    font-weight: 950;
}

.question-bank-list small {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
}

.quiz-feedback-detail {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.7rem;
}

.quiz-feedback-detail summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    cursor: pointer;
    list-style: none;
}

.quiz-feedback-detail summary::-webkit-details-marker {
    display: none;
}

.quiz-feedback-detail summary span {
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 900;
}

.quiz-feedback-detail summary strong {
    border-radius: 999px;
    padding: 0.25rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.quiz-feedback-detail summary strong.correct {
    background: #dcfce7;
    color: #166534;
}

.quiz-feedback-detail summary strong.wrong {
    background: #fee2e2;
    color: #991b1b;
}

.quiz-feedback-detail p,
.quiz-feedback-detail small {
    display: block;
    margin-top: 0.55rem;
    color: #475569;
    font-size: 0.78rem;
    line-height: 1.45;
    font-weight: 750;
}

@media (max-width: 980px) {
    .assignment-submit-layout,
    .assignment-builder-layout {
        grid-template-columns: 1fr;
    }

    .assignment-builder-side {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .assignment-preview-panel {
        order: -1;
    }

    .assignment-toggle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .assignment-submit-hero,
    .assignment-builder-hero,
    .assignment-submit-actions,
    .assignment-field-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .assignment-submit-score,
    .assignment-builder-score {
        width: 100%;
        text-align: left;
    }

    .assignment-hero-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column-reverse;
        margin-left: 0;
    }

    .assignment-icon-button {
        width: 100%;
    }

    .assignment-two-col,
    .assignment-three-col,
    .assignment-toggle-grid {
        grid-template-columns: 1fr;
    }

    .assignment-builder-main .assignment-premium-panel,
    .assignment-config-section {
        padding: 0.85rem;
    }

    .assignment-builder textarea.resource-form-control {
        min-height: 9rem;
    }

    .assignment-config-modal {
        align-items: end;
        padding: 0;
    }

    .assignment-config-dialog {
        width: 100%;
        max-height: 92vh;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 8px 8px 0 0;
    }

    .assignment-config-head,
    .assignment-config-footer {
        padding: 0.85rem;
    }

    .assignment-config-footer {
        position: sticky;
        bottom: 0;
        flex-direction: column;
        align-items: stretch;
    }

    .assignment-config-footer .btn {
        width: 100%;
    }

    .assignment-save-button {
        position: sticky;
        bottom: 0.75rem;
        z-index: 5;
        width: 100%;
    }
}

.progress-mobile-activity-list {
    display: none;
}

.mobile-report-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.65rem;
}

.mobile-report-head span,
.mobile-report-head strong,
.mobile-report-head small {
    display: block;
}

.mobile-report-head span {
    color: #0b62d8;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.mobile-report-head strong {
    color: #081426;
    font-size: 0.95rem;
    line-height: 1.2;
    font-weight: 900;
}

.mobile-report-head small {
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
}

.mobile-report-head em {
    color: #0b62d8;
    font-size: 1rem;
    font-style: normal;
    font-weight: 900;
}

.mobile-matrix-summary {
    margin-bottom: 0.72rem;
}

.mobile-matrix-summary .progress-track.multi {
    height: 0.68rem;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.mobile-matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(2.38rem, 1fr));
    gap: 0.42rem;
}

.mobile-matrix-grid .matrix-cell {
    min-height: 2.38rem;
    height: 2.38rem;
    border-radius: 8px;
    font-size: 0.78rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 14px rgba(15, 23, 42, 0.08);
}

.mobile-matrix-grid .matrix-cell.done {
    background: linear-gradient(180deg, #78b64a, #5d9832);
}

.mobile-matrix-grid .matrix-cell.active {
    background: linear-gradient(180deg, #1976ea, #0b62d8);
}

.mobile-matrix-grid .matrix-cell.pending {
    background: linear-gradient(180deg, #ffd866, #f6c343);
}

.mobile-matrix-grid .matrix-cell.locked {
    background: linear-gradient(180deg, #64748b, #475569);
}

.mobile-matrix-legend {
    margin-top: 0.72rem;
    gap: 0.42rem 0.72rem;
    font-size: 0.68rem;
}

.mobile-next-action {
    margin-top: 0.72rem;
}

.mobile-activity-status {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.6rem;
    align-items: center;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.62rem;
}

.mobile-activity-status + .mobile-activity-status {
    margin-top: 0.45rem;
}

.mobile-activity-status > i {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b62d8;
}

.mobile-activity-status.done > i {
    background: #dcfce7;
    color: #15803d;
}

.mobile-activity-status.pending > i {
    background: #fef3c7;
    color: #92400e;
}

.mobile-activity-status.locked > i {
    background: #e2e8f0;
    color: #475569;
}

.mobile-activity-status strong,
.mobile-activity-status small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-activity-status strong {
    color: #081426;
    font-size: 0.84rem;
    font-weight: 900;
}

.mobile-activity-status small {
    margin-top: 0.1rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 750;
}

@media (max-width: 1023px) {
    .student-hero,
    .student-hero.compact {
        grid-template-columns: 1fr;
    }

    .learner-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .learner-side-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .learner-recent-panel {
        grid-column: 1 / -1;
    }

    .student-course-grid {
        grid-template-columns: 1fr;
    }

    .progress-hero,
    .learner-progress-layout {
        grid-template-columns: 1fr;
    }

    .learner-progress-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .learner-command-center {
        gap: 0.8rem;
    }

    .continue-panel {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.85rem;
    }

    .continue-panel-copy h3 {
        font-size: 1.05rem;
    }

    .continue-panel-action {
        justify-content: space-between;
    }

    .continue-progress-ring {
        width: 3.9rem;
        height: 3.9rem;
    }

    .learner-side-column {
        grid-template-columns: 1fr;
    }

    .learner-recent-panel {
        grid-column: auto;
    }

    .student-course-card {
        border-radius: 8px;
    }

    .student-card-cover {
        min-height: 3.4rem;
    }

    .student-course-body {
        padding: 0.9rem;
    }

    .student-card-actions {
        padding: 0.75rem 0.9rem 0.9rem;
    }

    .student-card-action-row {
        align-items: stretch;
        flex-direction: column;
    }

    .student-secondary-link,
    .continue-link {
        justify-content: center;
        width: 100%;
    }

    .course-next-step {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .course-next-step small {
        width: 100%;
        margin-left: 1.15rem;
    }

    .student-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-join-card {
        grid-template-columns: 1fr;
    }

    .progress-hero-meter {
        align-items: flex-start;
        padding: 0.75rem;
    }

    .continue-progress-ring.large {
        width: 4.25rem;
        height: 4.25rem;
    }

    .progress-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .progress-overview-grid article {
        padding: 0.78rem;
    }

    .progress-overview-grid strong {
        font-size: 1.22rem;
    }

    .learner-progress-side {
        grid-template-columns: 1fr;
    }

    .completion-matrix-wrap {
        display: none;
    }

    .progress-mobile-activity-list {
        display: grid;
        gap: 0.75rem;
    }

    .progress-mobile-activity-list article {
        border: 1px solid #dbe7f6;
        border-radius: 8px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.98)),
            #f8fbff;
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
        padding: 0.78rem;
    }

    .learning-outcome-accordion summary,
    .student-activity-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .outcome-summary-main {
        grid-column: 1 / -1;
    }

    .outcome-summary-progress {
        text-align: left;
    }

    .activity-state {
        justify-self: start;
    }
}

@media (max-width: 767px) {
    .topbar {
        min-height: 3.65rem;
    }

    .topbar-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 3.65rem;
        gap: 0.45rem;
        padding: 0.4rem 0.55rem !important;
    }

    .topbar-identity p {
        max-width: 12.5rem;
        overflow: hidden;
        color: #53657a;
        font-size: 0.56rem;
        line-height: 1.12;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar-identity h1,
    .topbar h1 {
        max-width: 12.5rem;
        overflow: hidden;
        font-size: 0.98rem;
        line-height: 1.1;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar-actions {
        grid-column: auto;
        display: flex;
        gap: 0.38rem !important;
    }

    .navbar-menu-btn,
    .navbar-icon-btn,
    .topbar .btn {
        width: 2.3rem;
        height: 2.3rem;
        min-height: 2.3rem;
        padding: 0;
        font-size: 0.9rem;
    }

    .mobile-bottom-nav {
        padding-bottom: env(safe-area-inset-bottom, 0);
        border-top-color: #dbe7f6;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(14px);
    }

    .mobile-bottom-nav .grid {
        height: 3.35rem;
        align-items: center;
    }

    .mobile-bottom-nav a,
    .mobile-bottom-nav button {
        gap: 0.08rem;
        padding-top: 0.32rem !important;
        padding-bottom: 0.28rem !important;
        font-size: 0.68rem;
        line-height: 1.1;
    }

    .mobile-bottom-nav i {
        font-size: 0.96rem;
    }

    .course-player {
        display: block;
    }

    .student-learning-player {
        background: #f8fbff;
    }

    .learner-player-header {
        padding: 0.68rem;
    }

    .learner-player-kicker {
        font-size: 0.63rem;
    }

    .learner-player-header h2 {
        font-size: 1.22rem;
        line-height: 1.15;
    }

    .learner-player-header p:not(.learner-player-kicker) {
        font-size: 0.82rem;
        line-height: 1.42;
    }

    .activity-card {
        margin-bottom: 0.75rem;
    }

    .learner-resource-header {
        padding: 0.68rem;
    }

    .resource-frame {
        min-height: 13.5rem;
        height: 42vh;
        max-height: 24rem;
    }

    .tesda-pdf-scroll {
        max-height: 56vh;
    }

    .learner-resource-header .btn,
    .learner-task-card .btn {
        min-height: 1.9rem;
        padding: 0.32rem 0.62rem;
        font-size: 0.72rem;
    }

    .learner-resource-header {
        align-items: center;
    }

    .learner-resource-header,
    .learner-task-card .activity-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }

    .learner-resource-header .btn,
    .learner-task-card .btn {
        align-self: start;
        white-space: nowrap;
    }

    .learner-task-card .activity-header > div,
    .learner-resource-header > div {
        min-width: 0;
    }

    .learner-task-card h3,
    .learner-resource-header h3 {
        font-size: 0.96rem;
        line-height: 1.2;
    }
}

@media (max-width: 430px) {
    .completion-row {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .completion-row .completion-action-form {
        justify-content: flex-end;
        align-self: stretch;
    }

    .completion-row .completion-action-form .btn {
        width: 7.1rem;
        height: 100%;
        min-height: 4rem;
        padding: 0.45rem 0.55rem;
        font-size: 0.72rem;
        line-height: 1.05;
        white-space: normal;
    }

    .completion-row .completion-evidence-panel.is-compact {
        display: grid;
        grid-template-rows: auto auto;
        align-content: center;
    }

    .completion-row .completion-evidence-head {
        gap: 0.42rem;
        align-items: center;
    }

    .completion-row .completion-evidence-icon {
        width: 1.85rem;
        height: 1.85rem;
    }

    .completion-row .completion-evidence-head strong {
        font-size: 0.8rem;
        line-height: 1.1;
    }

    .completion-row .completion-evidence-head p {
        display: none;
    }

    .completion-row .completion-evidence-panel.is-compact .completion-evidence-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.24rem;
        margin-top: 0.45rem;
    }

    .completion-row .completion-evidence-panel.is-compact .completion-evidence-grid div {
        min-height: 2.6rem;
        padding: 0.32rem 0.3rem;
    }

    .completion-row .completion-evidence-panel.is-compact .completion-evidence-grid span {
        font-size: 0.48rem;
        line-height: 1.05;
    }

    .completion-row .completion-evidence-panel.is-compact .completion-evidence-grid strong {
        font-size: 0.68rem;
    }
}

/* Keep the shared TESDA blue shell consistent after responsive overrides. */
.topbar {
    background:
        linear-gradient(90deg, var(--tesda-sidebar) 0%, var(--tesda-blue) 58%, #1389b7 100%);
}

.topbar-identity p {
    color: rgba(255, 255, 255, 0.74);
}

.topbar-identity h1,
.topbar h1 {
    color: #ffffff;
}

/* System Administration command center */
.system-admin-page {
    display: grid;
    gap: 1rem;
    max-width: 96rem;
    margin: 0 auto;
}

.system-admin-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: center;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(8, 47, 87, 0.98), rgba(11, 98, 216, 0.94) 55%, rgba(19, 137, 183, 0.92)),
        #0b62d8;
    color: #ffffff;
    padding: clamp(1.15rem, 3vw, 2rem);
    box-shadow: 0 22px 48px rgba(8, 47, 87, 0.22);
}

.system-admin-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    background-size: 3rem 3rem;
}

.system-admin-hero::after {
    content: "";
    position: absolute;
    left: -8%;
    top: 47%;
    width: 116%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 210, 31, 0.78), transparent);
}

.system-admin-hero-copy,
.system-admin-health-orb {
    position: relative;
    z-index: 1;
}

.system-admin-hero h2 {
    max-width: 52rem;
    margin: 0.4rem 0 0;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.02;
    font-weight: 950;
}

.system-admin-hero p:not(.eyebrow) {
    max-width: 45rem;
    margin: 0.85rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.98rem;
    line-height: 1.55;
    font-weight: 750;
}

.system-admin-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.15rem;
}

.system-admin-health-orb {
    display: grid;
    place-items: center;
    min-width: 10rem;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.24), transparent 3.8rem),
        rgba(255, 255, 255, 0.11);
    box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.04);
    text-align: center;
}

.system-admin-health-orb span,
.system-admin-health-orb strong,
.system-admin-health-orb small {
    display: block;
}

.system-admin-health-orb span {
    color: #ffd21f;
    font-size: 0.74rem;
    font-weight: 950;
    text-transform: uppercase;
}

.system-admin-health-orb strong {
    margin-top: 0.18rem;
    font-size: 3.4rem;
    line-height: 0.9;
    font-weight: 950;
}

.system-admin-health-orb small {
    max-width: 7.2rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    font-weight: 800;
}

.system-admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.system-admin-kpi-grid article,
.system-admin-role-grid article,
.system-admin-learning-grid > div,
.system-admin-subscription-grid > div {
    border: 1px solid #d8e7f8;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
        #ffffff;
    box-shadow: 0 14px 30px rgba(8, 47, 87, 0.08);
}

.system-admin-kpi-grid article {
    display: grid;
    gap: 0.28rem;
    padding: 1rem;
}

.system-admin-kpi-grid i {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b62d8;
}

.system-admin-kpi-grid span,
.system-admin-kpi-grid strong,
.system-admin-kpi-grid small {
    display: block;
}

.system-admin-kpi-grid span,
.system-admin-role-grid span,
.system-admin-learning-grid span,
.system-admin-subscription-grid span {
    color: #52657f;
    font-size: 0.7rem;
    font-weight: 950;
    text-transform: uppercase;
}

.system-admin-kpi-grid strong {
    color: #081426;
    font-size: 1.85rem;
    line-height: 1;
    font-weight: 950;
}

.system-admin-kpi-grid small {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
}

.system-admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24rem;
    gap: 1rem;
    align-items: start;
}

.system-admin-main,
.system-admin-side {
    display: grid;
    gap: 1rem;
}

.system-admin-side {
    position: sticky;
    top: 5.2rem;
}

.system-admin-panel {
    box-shadow: 0 16px 38px rgba(8, 47, 87, 0.08);
}

.system-admin-meter-grid,
.system-admin-role-grid,
.system-admin-learning-grid,
.system-admin-subscription-grid {
    display: grid;
    gap: 0.75rem;
}

.system-admin-meter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.system-admin-role-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.system-admin-role-grid article {
    display: grid;
    gap: 0.32rem;
    padding: 0.85rem;
}

.system-admin-role-grid i {
    color: #0b62d8;
    font-size: 1.05rem;
}

.system-admin-role-grid article.green i {
    color: #15803d;
}

.system-admin-role-grid article.yellow i {
    color: #a16207;
}

.system-admin-role-grid article.navy i {
    color: #082f57;
}

.system-admin-role-grid strong,
.system-admin-learning-grid strong,
.system-admin-subscription-grid strong {
    display: block;
    margin-top: 0.16rem;
    color: #081426;
    font-size: 1.22rem;
    font-weight: 950;
}

.system-admin-learning-grid,
.system-admin-subscription-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 0.9rem;
}

.system-admin-learning-grid.single {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.system-admin-learning-grid > div,
.system-admin-subscription-grid > div {
    min-height: 4.4rem;
    padding: 0.78rem;
}

.system-admin-table {
    display: grid;
    gap: 0.55rem;
}

.system-admin-table article {
    display: grid;
    grid-template-columns: auto minmax(0, 1.4fr) minmax(5rem, 0.65fr) minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.65rem;
}

.system-admin-table strong,
.system-admin-table small,
.system-admin-table em,
.system-admin-table span,
.system-admin-table time {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.system-admin-table strong {
    color: #081426;
    font-size: 0.86rem;
    font-weight: 950;
}

.system-admin-table small,
.system-admin-table em,
.system-admin-table span,
.system-admin-table time {
    color: #52657f;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
}

.system-admin-event-list {
    display: grid;
    gap: 0.62rem;
    margin-top: 0.85rem;
}

.system-admin-event-list.compact {
    gap: 0.45rem;
}

.system-admin-event-list article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.68rem;
}

.system-admin-event-list i {
    display: grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b62d8;
}

.system-admin-event-list article.success i {
    background: #dcfce7;
    color: #15803d;
}

.system-admin-event-list article.warning i {
    background: #fef3c7;
    color: #a16207;
}

.system-admin-event-list span,
.system-admin-event-list strong,
.system-admin-event-list small,
.system-admin-event-list time {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.system-admin-event-list span {
    color: #0b62d8;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.system-admin-event-list strong {
    color: #081426;
    font-size: 0.84rem;
    font-weight: 950;
}

.system-admin-event-list small,
.system-admin-event-list time {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 760;
}

.system-warning-list.compact {
    margin-top: 0.75rem;
}

/* Learner registry */
.student-roster-hero,
.student-form-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    margin: 0 auto 1rem;
    max-width: 96rem;
    border: 1px solid #d7e6f7;
    border-top: 4px solid #0b62d8;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 246, 255, 0.98)),
        #ffffff;
    box-shadow: 0 16px 36px rgba(8, 47, 87, 0.1);
    padding: clamp(1rem, 2.4vw, 1.55rem);
}

.student-form-hero {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.student-form-hero.is-reset {
    border-top-color: #082f57;
}

.student-roster-hero h1,
.student-form-hero h1 {
    margin: 0.24rem 0 0;
    color: #081426;
    font-size: clamp(1.65rem, 3vw, 2.55rem);
    line-height: 1.06;
    font-weight: 950;
}

.student-roster-hero p:not(.eyebrow),
.student-form-hero p:not(.eyebrow) {
    max-width: 49rem;
    margin: 0.45rem 0 0;
    color: #52657f;
    font-size: 0.94rem;
    line-height: 1.48;
    font-weight: 650;
}

.student-roster-actions,
.student-form-actions,
.student-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.student-roster-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 96rem;
    margin: 0 auto 1rem;
}

.student-roster-stats > div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.2rem 0.65rem;
    align-items: center;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.86rem 0.95rem;
    box-shadow: 0 10px 24px rgba(8, 47, 87, 0.06);
}

.student-roster-stats i {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b62d8;
}

.student-roster-stats span {
    color: #52657f;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.student-roster-stats strong {
    color: #081426;
    font-size: 1.25rem;
    line-height: 1;
    font-weight: 950;
}

.student-roster-filter {
    display: grid;
    grid-template-columns: minmax(14rem, 1fr) minmax(16rem, 1fr) auto auto;
    gap: 0.65rem;
    align-items: end;
    max-width: 96rem;
    margin: 0 auto 1rem;
}

.student-roster-filter label,
.student-form-field {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.student-roster-filter label span,
.student-form-field > label {
    color: #33465f;
    font-size: 0.75rem;
    font-weight: 950;
}

.student-roster-filter input,
.student-roster-filter select,
.student-form-field input,
.student-form-field select,
.student-form-field textarea {
    width: 100%;
    min-height: 2.75rem;
    border: 1px solid #cbd8e8;
    border-radius: 8px;
    background: #ffffff;
    color: #081426;
    padding: 0.72rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.student-form-field textarea {
    min-height: 6rem;
    resize: vertical;
}

.student-roster-filter input:focus,
.student-roster-filter select:focus,
.student-form-field input:focus,
.student-form-field select:focus,
.student-form-field textarea:focus {
    border-color: #0b62d8;
    box-shadow: 0 0 0 4px rgba(11, 98, 216, 0.14);
    outline: 0;
}

.student-roster-table,
.student-form-shell,
.student-reset-shell {
    max-width: 96rem;
    margin: 0 auto;
}

.student-roster-table {
    overflow: hidden;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(8, 47, 87, 0.08);
}

.student-roster-head,
.student-roster-row {
    display: grid;
    grid-template-columns: minmax(13rem, 1.45fr) minmax(10rem, 0.95fr) minmax(10rem, 1fr) minmax(11rem, 1.05fr) minmax(7rem, 0.65fr) auto;
    gap: 0.8rem;
    align-items: center;
}

.student-roster-head {
    background: #f5f9fe;
    padding: 0.78rem 1rem;
    color: #52657f;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.student-roster-row {
    padding: 0.95rem 1rem;
    border-top: 1px solid #edf3f9;
}

.student-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    min-width: 0;
}

.student-avatar {
    display: grid;
    place-items: center;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #0b62d8, #1389b7);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 950;
}

.student-identity strong,
.student-identity small,
.student-roster-cell strong,
.student-roster-cell small,
.student-roster-cell span:not(.student-status) {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-identity strong,
.student-roster-cell strong {
    color: #081426;
    font-size: 0.9rem;
    font-weight: 950;
}

.student-identity small,
.student-roster-cell small {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 760;
}

.student-roster-cell span:not(.student-status) {
    color: #0b62d8;
    font-size: 0.66rem;
    font-weight: 950;
    text-transform: uppercase;
}

.student-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    border-radius: 999px;
    padding: 0.28rem 0.6rem;
    font-size: 0.74rem;
    font-weight: 950;
}

.student-status.active {
    background: #dcfce7;
    color: #15803d;
}

.student-status.inactive {
    background: #fee2e2;
    color: #b91c1c;
}

.student-row-actions {
    justify-content: flex-end;
}

.student-roster-empty {
    display: grid;
    justify-items: center;
    gap: 0.5rem;
    padding: 3rem 1rem;
    text-align: center;
}

.student-roster-empty i {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b62d8;
    font-size: 1.2rem;
}

.student-roster-empty h3 {
    margin: 0.25rem 0 0;
    color: #081426;
    font-size: 1.15rem;
    font-weight: 950;
}

.student-roster-empty p {
    max-width: 28rem;
    margin: 0;
    color: #52657f;
}

.student-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    width: fit-content;
    border: 1px solid #cbd8e8;
    border-radius: 8px;
    background: #ffffff;
    color: #0b62d8;
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 950;
}

.student-form-shell {
    display: grid;
    gap: 0.9rem;
}

.student-form-section {
    display: grid;
    gap: 1rem;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(8, 47, 87, 0.07);
    padding: clamp(1rem, 2vw, 1.35rem);
}

.student-form-section > header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
}

.student-form-section > header > span {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b62d8;
}

.student-form-section h2 {
    margin: 0;
    color: #081426;
    font-size: 1.02rem;
    font-weight: 950;
}

.student-form-section p {
    margin: 0.16rem 0 0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.42;
    font-weight: 700;
}

.student-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.student-form-field.is-wide {
    grid-column: 1 / -1;
}

.student-form-field small {
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.35;
}

.student-form-field.is-checkbox {
    align-content: end;
}

.student-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.75rem;
    border: 1px solid #cbd8e8;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0.65rem 0.75rem;
}

.student-checkbox-label input {
    width: auto;
    min-height: auto;
}

.student-field-error {
    margin: 0;
    color: #dc2626;
    font-size: 0.74rem;
    font-weight: 850;
}

.student-form-alert {
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff1f2;
    color: #b91c1c;
    padding: 0.8rem 0.95rem;
    font-size: 0.85rem;
    font-weight: 850;
}

.student-form-actions {
    justify-content: flex-end;
    padding-top: 0.2rem;
}

.student-reset-shell {
    display: grid;
    grid-template-columns: 18rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.student-reset-card {
    display: grid;
    gap: 0.35rem;
    justify-items: start;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(8, 47, 87, 0.07);
    padding: 1rem;
}

.student-reset-card .student-avatar {
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.35rem;
}

.student-reset-card strong {
    color: #081426;
    font-size: 1rem;
    font-weight: 950;
}

.student-reset-card small {
    color: #52657f;
    font-size: 0.78rem;
    font-weight: 800;
}

@media (max-width: 1120px) {
    .student-roster-head {
        display: none;
    }

    .student-roster-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .student-row-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 860px) {
    .student-roster-hero,
    .student-form-hero,
    .student-roster-filter,
    .student-reset-shell {
        grid-template-columns: 1fr;
    }

    .student-roster-stats,
    .student-form-grid {
        grid-template-columns: 1fr;
    }

    .student-form-actions,
    .student-roster-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .student-roster-row {
        grid-template-columns: 1fr;
    }

    .student-roster-actions .btn,
    .student-form-actions .btn,
    .student-row-actions .btn,
    .student-roster-filter .btn {
        width: 100%;
    }
}

@media (max-width: 1180px) {
    .system-admin-layout {
        grid-template-columns: 1fr;
    }

    .system-admin-side {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .system-admin-hero,
    .system-admin-meter-grid,
    .system-admin-role-grid,
    .system-admin-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .system-admin-hero-copy {
        grid-column: 1 / -1;
    }

    .system-admin-health-orb {
        justify-self: start;
        min-width: 8.5rem;
    }

    .system-admin-side,
    .system-admin-learning-grid,
    .system-admin-learning-grid.single,
    .system-admin-subscription-grid {
        grid-template-columns: 1fr;
    }

    .system-admin-table article {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .system-admin-table em,
    .system-admin-table span,
    .system-admin-table time {
        grid-column: 2;
    }
}

@media (max-width: 560px) {
    .system-admin-hero,
    .system-admin-kpi-grid,
    .system-admin-meter-grid,
    .system-admin-role-grid {
        grid-template-columns: 1fr;
    }

    .system-admin-hero h2 {
        font-size: 1.65rem;
        line-height: 1.08;
    }

    .system-admin-hero p:not(.eyebrow) {
        font-size: 0.86rem;
    }

    .system-admin-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Production error pages */
.error-page-body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(135deg, rgba(7, 54, 95, 0.94), rgba(11, 98, 216, 0.78)),
        #07365f;
    color: #081426;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.toast-stack {
    position: fixed;
    top: 0.9rem;
    right: 1rem;
    z-index: 120;
    display: grid;
    justify-items: end;
    gap: 0.55rem;
    width: min(28rem, calc(100vw - 2rem));
    pointer-events: none;
}

.pasado-toast {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.62rem;
    min-height: 3rem;
    width: fit-content;
    max-width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 45px rgba(8, 20, 38, 0.18), 0 2px 8px rgba(8, 20, 38, 0.08);
    padding: 0.68rem 0.62rem 0.68rem 0.72rem;
    color: #081426;
    font-size: 0.86rem;
    font-weight: 850;
    line-height: 1.28;
    pointer-events: auto;
    backdrop-filter: blur(14px);
    animation: toast-enter 240ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.pasado-toast.is-leaving {
    animation: toast-leave 220ms ease-in both;
}

.pasado-toast::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(8, 20, 38, 0.13);
    transform-origin: left;
    animation: toast-progress 5200ms linear forwards;
}

.pasado-toast:hover::after {
    animation-play-state: paused;
}

.pasado-toast-icon {
    display: grid;
    place-items: center;
    width: 1.72rem;
    height: 1.72rem;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0b62d8;
    font-size: 0.86rem;
}

.pasado-toast.success {
    border-color: rgba(34, 197, 94, 0.45);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.97), rgba(22, 163, 74, 0.97));
    color: #ffffff;
    box-shadow: 0 18px 42px rgba(21, 128, 61, 0.28), 0 2px 8px rgba(21, 128, 61, 0.18);
}

.pasado-toast.success .pasado-toast-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.pasado-toast.success::after {
    background: rgba(255, 255, 255, 0.42);
}

.pasado-toast.error .pasado-toast-icon {
    background: #fee2e2;
    color: #dc2626;
}

.pasado-toast.warning .pasado-toast-icon {
    background: #fef3c7;
    color: #a16207;
}

.pasado-toast-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.pasado-toast-close {
    display: grid;
    place-items: center;
    width: 1.6rem;
    height: 1.6rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 0.78rem;
}

.pasado-toast.success .pasado-toast-close {
    color: rgba(255, 255, 255, 0.9);
}

.pasado-toast-close:hover {
    background: #f1f5f9;
    color: #081426;
}

.pasado-toast.success .pasado-toast-close:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

@keyframes toast-enter {
    from {
        opacity: 0;
        transform: translate3d(0.75rem, -0.45rem, 0) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes toast-leave {
    to {
        opacity: 0;
        transform: translate3d(0.75rem, -0.35rem, 0) scale(0.98);
    }
}

@keyframes toast-progress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

@media (max-width: 720px) {
    .toast-stack {
        top: 0.65rem;
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
        justify-items: stretch;
    }

    .pasado-toast {
        width: 100%;
    }
}

.error-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.error-panel {
    width: min(100%, 34rem);
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 26px 70px rgba(3, 18, 38, 0.28);
    padding: clamp(1.35rem, 4vw, 2.5rem);
}

.error-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.error-brand span {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(11, 98, 216, 0.18);
    color: #ffffff;
    font-weight: 950;
}

.error-brand span img {
    width: 86%;
    height: 86%;
    object-fit: contain;
}

.error-brand strong {
    color: #07365f;
    font-weight: 950;
    letter-spacing: 0;
}

.error-kicker {
    margin: 0 0 0.5rem;
    color: #0b62d8;
    font-size: 0.74rem;
    font-weight: 950;
    text-transform: uppercase;
}

.error-panel h1 {
    margin: 0;
    color: #081426;
    font-size: clamp(1.65rem, 5vw, 2.45rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.error-copy {
    margin: 1rem 0 0;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.65;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.error-primary,
.error-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    border-radius: 8px;
    padding: 0.78rem 1rem;
    font-weight: 900;
    text-decoration: none;
}

.error-primary {
    background: #0b62d8;
    color: #ffffff;
}

.error-secondary {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #07365f;
}

.error-footnote {
    margin: 1.25rem 0 0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.5;
}

@media (max-width: 520px) {
    .error-actions {
        flex-direction: column;
    }

    .error-primary,
    .error-secondary {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .feed-resource-card {
        margin-left: -0.42rem;
        margin-right: -0.42rem;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    }

    .feed-resource-header {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 0.78rem 0.85rem 0.68rem;
    }

    .feed-resource-icon {
        width: 2.2rem;
        height: 2.2rem;
    }

    .feed-resource-state {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .feed-resource-copy h3 {
        font-size: 1.02rem;
    }

    .feed-resource-description {
        font-size: 0.86rem;
    }

    .feed-resource-body .resource-viewer {
        border-left: 0;
        border-right: 0;
    }

    .feed-resource-body .resource-frame,
    .feed-resource-body .resource-viewer[data-resource-type="h5p"] .resource-frame,
    .feed-resource-body .resource-viewer[data-resource-type="html"] .resource-frame,
    .feed-resource-body .resource-viewer[data-resource-type="scorm"] .resource-frame,
    .feed-resource-body .resource-viewer[data-resource-type="imscc"] .resource-frame {
        min-height: 58vh;
        height: 58vh;
        max-height: 34rem;
        border-radius: 0;
    }

    .feed-resource-body .resource-viewer[data-resource-type="h5p"] .resource-frame {
        min-height: 52vh;
        height: 52vh;
        max-height: 31rem;
    }

    .feed-resource-body .media-viewer {
        min-height: 15rem;
        max-height: 62vh;
        border-radius: 0;
    }

    .feed-resource-body .image-viewer {
        max-height: 62vh;
        border-radius: 0;
    }

    .feed-monitor-bar.completion-evidence-panel.is-compact {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        margin-top: 0;
        padding: 0;
    }

    .feed-monitor-item {
        grid-template-columns: 1fr;
        grid-template-areas:
            "icon"
            "label"
            "value";
        justify-items: center;
        min-height: 4.4rem;
        padding: 0.58rem 0.28rem;
        text-align: center;
    }

    .feed-monitor-item i {
        width: 1.75rem;
        height: 1.75rem;
        margin-bottom: 0.22rem;
    }

    .feed-monitor-item span {
        font-size: 0.58rem;
    }

    .feed-monitor-item strong {
        font-size: 0.73rem;
        line-height: 1.2;
    }

    .feed-completion-action {
        grid-column: 1 / -1;
        min-width: 0;
        padding: 0.5rem 0.75rem 0.75rem;
        border-top: 1px solid #edf2f7;
    }
}

/* Final scoped overrides for the mobile course materials feed. */
body.course-materials-feed-page .content-wrap {
    max-width: 100%;
}

@media (max-width: 767px) {
    body.course-materials-feed-page {
        background: #eef3f8;
        overflow-x: hidden;
    }

    body.course-materials-feed-page .app-main {
        padding-bottom: calc(3.7rem + env(safe-area-inset-bottom, 0));
    }

    body.course-materials-feed-page .app-main > section {
        padding: 0;
    }

    body.course-materials-feed-page .topbar {
        position: sticky;
        top: 0;
        transform: translateY(0);
        transition: transform 0.22s ease, box-shadow 0.22s ease;
        will-change: transform;
    }

    body.course-materials-feed-page.course-feed-scroll-down .topbar {
        transform: translateY(-105%);
        box-shadow: none;
    }

    body.course-materials-feed-page .mobile-bottom-nav {
        transform: translateY(112%);
        transition: transform 0.22s ease, box-shadow 0.22s ease, bottom 0.16s ease;
    }

    body.course-materials-feed-page.course-feed-scroll-down .mobile-bottom-nav {
        transform: translateY(0);
    }

    body.course-materials-feed-page.course-feed-scroll-up .mobile-bottom-nav {
        transform: translateY(112%);
        box-shadow: none;
    }

    body.course-materials-feed-page .course-player,
    body.course-materials-feed-page .course-content {
        display: block;
        width: 100%;
        border: 0;
        border-radius: 0;
        background: #eef3f8;
        box-shadow: none;
    }

    body.course-materials-feed-page .learner-player-header {
        display: none;
    }

    body.course-materials-feed-page .learner-feed-list {
        display: block;
        padding: 0;
    }

    body.course-materials-feed-page .learner-feed-list .feed-resource-card,
    body.course-materials-feed-page .feed-resource-card,
    body.course-materials-feed-page .learner-task-card {
        margin: 0 0 0.55rem;
        border: 0;
        border-radius: 0;
        background: #ffffff;
        box-shadow: none;
    }

    body.course-materials-feed-page .learner-feed-list .feed-resource-header,
    body.course-materials-feed-page .feed-resource-header {
        grid-template-columns: 2.25rem minmax(0, 1fr) auto;
        gap: 0.62rem;
        align-items: start;
        padding: 0.58rem 0.75rem 0.46rem;
        border-bottom: 0;
    }

    body.course-materials-feed-page .learner-feed-list .feed-resource-icon,
    body.course-materials-feed-page .feed-resource-icon {
        width: 2.18rem;
        height: 2.18rem;
        border: 2px solid #d8e8ff;
        background: linear-gradient(135deg, #0b5bd3, #11a2bf);
        box-shadow: none;
        font-size: 0.84rem;
    }

    body.course-materials-feed-page .learner-feed-list .feed-resource-copy h3,
    body.course-materials-feed-page .feed-resource-copy h3 {
        overflow: hidden;
        margin: 0;
        color: #071425;
        font-size: 0.94rem;
        line-height: 1.16;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.course-materials-feed-page .feed-resource-copy {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    body.course-materials-feed-page .learner-feed-list .feed-resource-meta,
    body.course-materials-feed-page .feed-resource-meta {
        display: none;
    }

    body.course-materials-feed-page .learner-feed-list .feed-resource-description,
    body.course-materials-feed-page .feed-resource-description {
        grid-column: 2 / -1;
        grid-row: 2;
        margin: 0.2rem 0 0;
        padding-right: 0;
        color: #111827;
        font-size: 0.86rem;
        line-height: 1.28;
    }

    body.course-materials-feed-page .feed-resource-description [data-expandable-content] {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        overflow: hidden;
    }

    body.course-materials-feed-page .feed-resource-description.is-expanded [data-expandable-content] {
        display: inline;
    }

    body.course-materials-feed-page .feed-resource-description [data-expandable-toggle] {
        padding-left: 0.24rem;
        color: #64748b;
        font-weight: 900;
    }

    body.course-materials-feed-page .feed-resource-state {
        grid-column: 3;
        grid-row: 1;
        align-self: start;
        justify-content: flex-end;
        padding-left: 0;
    }

    body.course-materials-feed-page .status-chip {
        min-height: 1.45rem;
        border: 0;
        border-radius: 999px;
        padding: 0.16rem 0.48rem;
        font-size: 0.62rem;
        white-space: nowrap;
    }

    body.course-materials-feed-page .feed-media-shell {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        background: #020617;
    }

    body.course-materials-feed-page .feed-media-shell .resource-viewer,
    body.course-materials-feed-page .feed-resource-body .resource-viewer {
        width: 100vw;
        border: 0;
        border-radius: 0;
        background: #020617;
    }

    body.course-materials-feed-page .resource-viewer-toolbar {
        top: 0.5rem;
        right: 0.5rem;
    }

    body.course-materials-feed-page .resource-viewer-toolbar > div,
    body.course-materials-feed-page .learner-feed-list .feed-media-shell .resource-viewer-toolbar > div {
        border: 1px solid rgba(255, 255, 255, 0.34);
        background: rgba(255, 255, 255, 0.72);
        box-shadow: 0 12px 26px rgba(2, 6, 23, 0.26);
        backdrop-filter: blur(14px);
    }

    body.course-materials-feed-page .resource-viewer-icon-btn {
        background: rgba(255, 255, 255, 0.58);
        color: #0b5bd3;
    }

    body.course-materials-feed-page .learner-feed-list .feed-resource-body .presentation-stage,
    body.course-materials-feed-page .feed-resource-body .presentation-stage,
    body.course-materials-feed-page .learner-feed-list .feed-resource-body .resource-frame,
    body.course-materials-feed-page .feed-resource-body .resource-frame {
        width: 100vw;
        min-height: 20rem;
        height: clamp(22rem, calc(100svh - 10rem), 42rem);
        max-height: none;
        border: 0;
        border-radius: 0;
    }

    body.course-materials-feed-page .learner-feed-list .feed-resource-body .presentation-stage,
    body.course-materials-feed-page .feed-resource-body .presentation-stage {
        display: block;
        min-height: 0;
        height: auto;
        background: #111827;
    }

    body.course-materials-feed-page .learner-feed-list .feed-resource-body .presentation-slide-frame,
    body.course-materials-feed-page .feed-resource-body .presentation-slide-frame {
        display: block;
        min-height: 0;
        padding: 0;
    }

    body.course-materials-feed-page .learner-feed-list .feed-resource-body .presentation-slide,
    body.course-materials-feed-page .feed-resource-body .presentation-slide {
        width: 100vw;
        margin: 0;
        background: #111827;
        box-shadow: none;
    }

    body.course-materials-feed-page .learner-feed-list .feed-resource-body .presentation-slide img,
    body.course-materials-feed-page .feed-resource-body .presentation-slide img {
        width: 100vw;
        height: auto;
        max-height: clamp(12rem, calc(100svh - 11rem), 32rem);
        object-fit: contain;
        background: #111827;
    }

    body.course-materials-feed-page .presentation-edge {
        top: 44%;
        width: 2.1rem;
        height: 3rem;
        background: rgba(15, 23, 42, 0.24);
    }

    body.course-materials-feed-page .presentation-controls {
        grid-template-columns: 5.5rem minmax(0, 1fr);
        gap: 0.45rem;
        padding: 0.42rem 0.7rem;
    }

    body.course-materials-feed-page .presentation-controls strong {
        min-width: 0;
        font-size: 0.72rem;
    }

    body.course-materials-feed-page .learner-feed-list .feed-resource-body .tesda-pdf-scroll,
    body.course-materials-feed-page .feed-resource-body .tesda-pdf-scroll {
        width: 100vw;
        min-height: 22rem;
        height: clamp(24rem, calc(100svh - 9.5rem), 46rem);
        max-height: none;
        border: 0;
        border-radius: 0;
        background: #101827;
        scroll-snap-type: y proximity;
        overscroll-behavior-y: auto;
    }

    body.course-materials-feed-page .learner-feed-list .feed-resource-body .tesda-pdf-page,
    body.course-materials-feed-page .feed-resource-body .tesda-pdf-page {
        width: min(100vw, 48rem);
        margin: 0 auto 0.7rem;
        scroll-snap-align: start;
    }

    body.course-materials-feed-page .learner-feed-list .feed-resource-body .tesda-pdf-page img,
    body.course-materials-feed-page .feed-resource-body .tesda-pdf-page img {
        width: 100%;
        height: auto;
    }

    body.course-materials-feed-page .resource-text-content {
        min-height: 12rem;
        max-height: clamp(14rem, calc(100svh - 12rem), 34rem);
        overflow-y: auto;
        padding: 3.3rem 1rem 1rem;
        background: #ffffff;
    }

    body.course-materials-feed-page .resource-link-content {
        min-height: 12rem;
        padding: 3.3rem 1rem 1rem;
        background: #ffffff;
    }

    body.course-materials-feed-page .resource-pdf-fallback {
        min-height: 18rem;
        border-radius: 0;
    }

    body.course-materials-feed-page .learner-feed-list .feed-resource-body .resource-viewer[data-resource-type="h5p"] .resource-frame,
    body.course-materials-feed-page .learner-feed-list .feed-resource-body .resource-viewer[data-resource-type="html"] .resource-frame,
    body.course-materials-feed-page .learner-feed-list .feed-resource-body .resource-viewer[data-resource-type="epub"] .resource-frame,
    body.course-materials-feed-page .learner-feed-list .feed-resource-body .resource-viewer[data-resource-type="scorm"] .resource-frame,
    body.course-materials-feed-page .learner-feed-list .feed-resource-body .resource-viewer[data-resource-type="imscc"] .resource-frame {
        min-height: 23rem;
        height: clamp(24rem, calc(100svh - 9rem), 45rem);
        max-height: none;
    }

    body.course-materials-feed-page .learner-feed-list .feed-resource-body .resource-viewer[data-resource-type="html"] .resource-frame,
    body.course-materials-feed-page .learner-feed-list .feed-resource-body .resource-viewer[data-resource-type="epub"] .resource-frame {
        min-height: 24rem;
        height: clamp(26rem, calc(100svh - 8.5rem), 48rem);
    }

    body.course-materials-feed-page .learner-feed-list .feed-resource-body .resource-viewer[data-resource-type="scorm"] .resource-frame,
    body.course-materials-feed-page .learner-feed-list .feed-resource-body .resource-viewer[data-resource-type="imscc"] .resource-frame {
        min-height: 24rem;
        height: clamp(25rem, calc(100svh - 8rem), 50rem);
    }

    body.course-materials-feed-page .learner-feed-list .feed-resource-body .resource-viewer[data-resource-type="h5p"] .resource-frame {
        min-height: 20rem;
        height: clamp(22rem, 70svh, 42rem);
    }

    body.course-materials-feed-page .learner-feed-list .feed-resource-body .image-viewer,
    body.course-materials-feed-page .feed-resource-body .image-viewer {
        width: 100vw;
        min-height: 0;
        max-height: clamp(18rem, calc(100svh - 10rem), 40rem);
        border: 0;
        border-radius: 0;
        background: #020617;
        object-fit: contain;
    }

    body.course-materials-feed-page .learner-feed-list .feed-resource-body .media-viewer,
    body.course-materials-feed-page .feed-resource-body .media-viewer {
        display: block;
        width: 100vw;
        height: auto;
        min-height: 0;
        max-height: clamp(14rem, calc(100svh - 11rem), 32rem);
        border: 0;
        border-radius: 0;
        background: #020617;
        object-fit: contain;
    }

    body.course-materials-feed-page .learner-feed-list .feed-monitor-bar.completion-evidence-panel.is-compact,
    body.course-materials-feed-page .feed-monitor-bar.completion-evidence-panel.is-compact {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        border: 0;
        border-top: 1px solid #e5e7eb;
        border-bottom: 1px solid #e5e7eb;
        background: #ffffff;
    }

    body.course-materials-feed-page .learner-feed-list .feed-monitor-item,
    body.course-materials-feed-page .feed-monitor-item {
        grid-template-columns: auto auto;
        grid-template-areas:
            "icon value"
            "icon label";
        justify-content: center;
        justify-items: start;
        align-items: center;
        column-gap: 0.34rem;
        min-height: 3.05rem;
        padding: 0.42rem 0.24rem;
        border-right: 0;
        color: #4b5563;
        text-align: left;
    }

    body.course-materials-feed-page .learner-feed-list .feed-monitor-item i,
    body.course-materials-feed-page .feed-monitor-item i {
        width: auto;
        height: auto;
        margin: 0;
        background: transparent;
        color: #4b5563;
        font-size: 1.02rem;
    }

    body.course-materials-feed-page .learner-feed-list .feed-monitor-item span,
    body.course-materials-feed-page .feed-monitor-item span {
        color: #6b7280;
        font-size: 0.61rem;
        font-weight: 800;
        line-height: 1;
        text-transform: none;
        white-space: nowrap;
    }

    body.course-materials-feed-page .learner-feed-list .feed-monitor-item strong,
    body.course-materials-feed-page .feed-monitor-item strong {
        color: #374151;
        font-size: 0.74rem;
        font-weight: 900;
        line-height: 1.05;
    }

    body.course-materials-feed-page .feed-monitor-status i {
        color: #0b5bd3;
    }

    body.course-materials-feed-page .feed-completion-action {
        grid-column: 1 / -1;
        padding: 0.55rem 0.85rem 0.75rem;
        border-top: 1px solid #eef2f7;
    }

    body.course-materials-feed-page .learner-task-card .activity-header {
        padding: 0.85rem;
    }
}

.feed-resource-description [data-expandable-toggle][hidden] {
    display: none !important;
}

@media (min-width: 768px) {
    body.course-materials-feed-page .course-content {
        border-color: #d8e6f5;
        background: #f4f8fd;
        box-shadow: 0 18px 48px rgba(7, 54, 95, 0.08);
    }

    body.course-materials-feed-page .learner-feed-list {
        gap: 1.15rem;
        padding: 1.1rem;
    }

    body.course-materials-feed-page .learner-feed-list .feed-resource-card {
        border: 1px solid #d6e4f5;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
    }

    body.course-materials-feed-page .learner-feed-list .feed-resource-header {
        grid-template-columns: 2.8rem minmax(0, 1fr) auto;
        gap: 0.8rem;
        align-items: center;
        padding: 0.9rem 1.05rem;
        border-bottom: 1px solid #e6eef8;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94));
    }

    body.course-materials-feed-page .learner-feed-list .feed-resource-icon {
        width: 2.55rem;
        height: 2.55rem;
        border: 1px solid #c9dcf7;
        background: linear-gradient(135deg, #0b5bd3, #159ccb);
        box-shadow: 0 10px 24px rgba(11, 91, 211, 0.2);
    }

    body.course-materials-feed-page .learner-feed-list .feed-resource-copy h3 {
        margin: 0;
        font-size: 1.08rem;
        line-height: 1.2;
    }

    body.course-materials-feed-page .learner-feed-list .feed-resource-meta {
        margin-top: 0.16rem;
        color: #50627a;
        font-size: 0.72rem;
        font-weight: 850;
    }

    body.course-materials-feed-page .learner-feed-list .feed-resource-description {
        margin-top: 0.32rem;
        max-width: min(68rem, 86%);
        color: #25364d;
        font-size: 0.88rem;
        line-height: 1.4;
    }

    body.course-materials-feed-page .learner-feed-list .feed-resource-description [data-expandable-toggle] {
        color: #0b5bd3;
        font-size: 0.84rem;
    }

    body.course-materials-feed-page .learner-feed-list .status-chip {
        min-height: 2rem;
        border-radius: 999px;
        padding: 0.32rem 0.78rem;
        font-size: 0.75rem;
        box-shadow: inset 0 0 0 1px rgba(11, 91, 211, 0.08);
    }

    body.course-materials-feed-page .learner-feed-list .feed-monitor-bar.completion-evidence-panel.is-compact {
        grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
        gap: 0.75rem;
        align-items: center;
        border: 0;
        border-top: 1px solid #e5edf7;
        background:
            linear-gradient(180deg, #ffffff, #f8fbff);
        padding: 0.72rem 0.9rem;
    }

    body.course-materials-feed-page .learner-feed-list .feed-monitor-item {
        min-height: 4.35rem;
        border: 1px solid #dce8f7;
        border-radius: 12px;
        background: #ffffff;
        padding: 0.72rem 0.85rem;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    }

    body.course-materials-feed-page .learner-feed-list .feed-monitor-item i {
        width: 2.2rem;
        height: 2.2rem;
        border-radius: 999px;
        background: #eef5ff;
        color: #0b5bd3;
        font-size: 0.9rem;
    }

    body.course-materials-feed-page .learner-feed-list .feed-monitor-item span {
        color: #61738a;
        font-size: 0.62rem;
        font-weight: 950;
        letter-spacing: 0.03em;
    }

    body.course-materials-feed-page .learner-feed-list .feed-monitor-item strong {
        margin-top: 0.08rem;
        color: #081426;
        font-size: 0.88rem;
        line-height: 1.15;
    }

    body.course-materials-feed-page .learner-feed-list .feed-monitor-status i,
    body.course-materials-feed-page .learner-feed-list .feed-monitor-bar.is-ready .feed-monitor-status i,
    body.course-materials-feed-page .learner-feed-list .feed-monitor-bar.is-completed .feed-monitor-status i {
        background: #e8f8ef;
        color: #15803d;
    }

    body.course-materials-feed-page .learner-feed-list .feed-completion-action {
        align-self: stretch;
        min-width: 11rem;
        padding: 0;
    }

    body.course-materials-feed-page .learner-feed-list .feed-completion-action .btn {
        height: 100%;
        min-height: 4.35rem;
        border-radius: 12px;
        font-weight: 900;
    }
}
