.teacher-portal {
    --teacher-ink: #1d2268;
    --teacher-accent: #2767aa;
    --teacher-accent-strong: #8a63f6;
    --teacher-bg: #f8efe6;
    --teacher-card: #ffffff;
    --teacher-border: #d5dbe7;
    --teacher-text: #2d3252;
    --teacher-muted: #6b7089;
    --teacher-soft: #eef4ff;
    position: relative;
    margin: 0 calc(50% - 50vw);
    width: 100vw;
    background:
        radial-gradient(circle at top left, rgba(255, 202, 146, 0.22), transparent 28%),
        linear-gradient(180deg, var(--teacher-bg) 0 330px, #fff 330px 100%);
    overflow: hidden;
    color: var(--teacher-text);
    font-family: inherit;
}
.teacher-portal__hero {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding: 74px 24px 130px;
}
.teacher-portal__hero::before,
.teacher-portal__hero::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background-image: radial-gradient(rgba(255, 181, 98, 0.5) 1.8px, transparent 1.8px);
    background-size: 10px 10px;
    opacity: 0.55;
    pointer-events: none;
}
.teacher-portal__hero::before {
    left: -70px;
    bottom: 18px;
}
.teacher-portal__hero::after {
    right: -70px;
    top: 18px;
}
.teacher-portal__title {
    margin: 0;
    color: var(--teacher-ink);
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -0.04em;
}
.teacher-portal__shell {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 24px auto 0;
    padding: 0 24px 88px;
    display: flex;
    justify-content: center;
}
.teacher-portal__card {
    width: min(100%, 430px);
    background: var(--teacher-card);
    border: 1px solid var(--teacher-border);
    box-shadow: 0 24px 60px rgba(24, 34, 74, 0.12);
    border-radius: 20px;
    padding: 30px 26px 24px;
}
.teacher-portal__card-title,
.teacher-portal__modal-title {
    margin: 0 0 8px;
    color: var(--teacher-ink);
    font-size: 31px;
    line-height: 1.2;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
}
.teacher-portal-notice {
    width: min(100%, 430px);
    margin: 0 auto 18px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid transparent;
    background: #eef4ff;
}
.teacher-portal-notice--success {
    border-color: #bfd5ff;
    color: #18406f;
    background: #eef5ff;
}
.teacher-portal-notice--error {
    border-color: #f5c3c3;
    color: #842029;
    background: #fff1f1;
}
.teacher-portal__section-title {
    margin: 14px 0 14px;
    color: var(--teacher-ink);
    font-size: 18px;
    font-weight: 700;
}
.teacher-portal__field {
    margin-bottom: 14px;
}
.teacher-portal__field-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.teacher-portal__field-half {
    flex: 1 1 0;
    min-width: 0;
}
@media (max-width: 767px) {
    .teacher-portal__field-row {
        display: block;
    }
}
.teacher-portal__choice-row {
    display: flex;
    gap: 18px;
    align-items: center;
    padding-top: 6px;
}
.teacher-portal__choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--teacher-text);
}
.teacher-portal__field label {
    display: block;
    margin-bottom: 8px;
    color: var(--teacher-ink);
    font-size: 13px;
    font-weight: 600;
}
.teacher-portal__field input,
.teacher-portal__field select,
.teacher-portal__field textarea {
    width: 100%;
    border: 1px solid #b9c4d6;
    background: #fbfcff;
    color: #2e3558;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 12px;
    padding: 13px 14px;
    box-sizing: border-box;
}
.teacher-portal__field textarea {
    min-height: 96px;
    resize: vertical;
}
.teacher-portal__remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 16px;
    color: var(--teacher-ink);
    font-size: 13px;
}
.teacher-portal__remember input {
    width: auto;
    margin: 0;
}
.teacher-portal__button,
.teacher-portal__secondary,
.teacher-portal__submit {
    width: 100%;
    border: 0;
    border-radius: 3px;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}


.teacher-portal__button:hover,
.teacher-portal__secondary:hover,
.teacher-portal__submit:hover {
    transform: translateY(-1px);
}
.teacher-portal__button {
    background: linear-gradient(135deg, var(--teacher-accent) 0%, #1d87cf 100%);
    color: #fff;
    box-shadow: 0 14px 30px rgba(39, 103, 170, 0.28);
}
.teacher-portal__links {
    padding: 14px 0 18px;
    text-align: center;
}
.teacher-portal__links a {
    color: var(--teacher-ink);
    font-size: 13px;
    text-decoration: none;
}
.teacher-portal__secondary {
    background: #fff;
    color: #1b63c7;
    border: 1px solid #9ebdea;
}
.teacher-portal__logged-in {
    text-align: center;
}
.teacher-portal__logged-in p {
    margin: 0 0 18px;
    color: var(--teacher-muted);
}
.teacher-portal__actions {
    display: flex;
    gap: 12px;
    flex-direction: column;
}
.teacher-portal__modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}
.teacher-portal__modal.is-open {
    display: block;
}
.teacher-portal__modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 22, 19, 0.66);
    backdrop-filter: blur(2px);
}
.teacher-portal__modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100% - 16px, 640px);
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    margin: 18px auto;
    background: linear-gradient(180deg, #ffffff 0%, #fffdfb 100%);
    border-radius: 22px;
    padding: 34px 30px 28px;
    border: 1px solid rgba(213, 219, 231, 0.9);
    box-shadow: 0 28px 70px rgba(16, 26, 60, 0.30);
}
.teacher-portal__modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: #efefef;
    color: #5a6175;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.teacher-portal__modal-title {
    text-align: left;
    font-size: 34px;
    margin-bottom: 22px;
}
.teacher-portal__required {
    color: #ff4b4b;
}
.teacher-portal__add-school {
    margin-top: 8px;
    display: inline-block;
    color: #1b63c7;
    font-size: 13px;
    text-decoration: none;
}
.teacher-portal__new-school {
    display: none;
    margin-top: 10px;
}
.teacher-portal__new-school.is-visible {
    display: block;
}
.teacher-portal__submit {
    width: auto;
    min-width: 168px;
    border-radius: 14px;
    background: linear-gradient(90deg, #8b63f6 0%, #a55cf2 100%);
    color: #fff;
    box-shadow: 0 14px 24px rgba(139, 99, 246, 0.24);
}
@media (max-width: 767px) {
    .teacher-portal__hero {
        padding: 46px 20px 108px;
    }
    .teacher-portal__shell {
        padding: 0 16px 64px;
        margin-top: -60px;
    }
    .teacher-portal__title {
        font-size: 40px;
    }
    .teacher-portal__card {
        padding: 22px 18px;
    }
    .teacher-portal__modal-dialog {
        width: min(100% - 20px, 640px);
        margin: 22px auto;
        padding: 24px 18px 22px;
    }
    .teacher-portal__modal-title {
        font-size: 28px;
    }
}

.teacher-dashboard-portal {
    --teacher-ink: #1d2268;
    --teacher-accent: #8a63f6;
    --teacher-accent-strong: #a55cf2;
    --teacher-accent-soft: #efe8ff;
    --teacher-border: #d8cfff;
    --teacher-text: #324160;
    --teacher-muted: #66738f;
    --teacher-card: #ffffff;
    --teacher-panel: #fffdfb;
    --teacher-input-border: #cabaff;
    --teacher-table-head: #f6f1ff;
    --teacher-table-hover: #fcfaff;
    --teacher-accent-rgb: 138, 99, 246;
    --teacher-ink-rgb: 29, 34, 104;
    --teacher-danger: #c0445f;
    --teacher-danger-soft: #f0a8b5;
    width: min(1380px, calc(100vw - 32px));
    margin: 28px auto 90px;
    color: var(--teacher-text);
}
.teacher-dashboard-portal__sidebar,
.teacher-dashboard-portal__panel {
    background: linear-gradient(180deg, var(--teacher-card) 0%, var(--teacher-panel) 100%);
    border: 1px solid var(--teacher-border);
    border-radius: 24px;
    box-shadow: 0 22px 65px rgba(31, 41, 84, 0.08);
}
.teacher-dashboard-portal__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: all .18s ease;
    box-sizing: border-box;
}
.teacher-dashboard-portal__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(var(--teacher-accent-rgb), 0.14);
}
.teacher-dashboard-portal__layout {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}
.teacher-dashboard-portal__sidebar {
    padding: 22px 18px;
    position: sticky;
    top: 24px;
}
.teacher-dashboard-portal__nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.teacher-dashboard-portal__panel {
    padding: 28px;
    margin-bottom: 28px;
}
.teacher-dashboard-portal__notice {
    margin-bottom: 20px;
}
.teacher-dashboard-portal__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 16px;
}
.teacher-dashboard-portal__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.teacher-dashboard-portal__panel-view {
    display: none;
}
.teacher-dashboard-portal__panel-view.is-active {
    display: block;
}
.teacher-dashboard-portal__bulk-help {
    margin: 10px 0 8px;
    color: var(--teacher-muted);
    font-size: 14px;
    line-height: 1.5;
}
.teacher-dashboard-portal__sample-link {
    display: inline-block;
    color: var(--teacher-accent);
    font-weight: 700;
    text-decoration: none;
    margin-top: 2px;
}
.teacher-dashboard-portal__sample-link:hover {
    text-decoration: underline;
}
.teacher-dashboard-portal__bulk-form input[type="file"],
.teacher-dashboard-portal__field input[type="file"] {
    width: 100%;
    min-height: 48px;
    height: auto;
    border: 1px solid var(--teacher-input-border);
    border-radius: 14px;
    background: var(--teacher-card);
    padding: 10px 12px;
    box-sizing: border-box;
    color: var(--teacher-text);
}
.teacher-dashboard-portal__field--full {
    grid-column: 1 / -1;
    margin-bottom: 10px;
}
.teacher-dashboard-portal__entries {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.teacher-dashboard-portal__entry {
    border: 1px solid rgba(var(--teacher-accent-rgb), 0.28);
    border-radius: 22px;
    padding: 24px 22px 22px;
    background: radial-gradient(circle at top right, rgba(var(--teacher-accent-rgb), 0.12), transparent 38%), linear-gradient(180deg, var(--teacher-card) 0%, var(--teacher-panel) 100%);
    box-shadow: 0 16px 38px rgba(40, 48, 102, 0.06);
}
.teacher-dashboard-portal__entry-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.teacher-dashboard-portal__entry-title {
    margin: 0;
    color: var(--teacher-ink);
    font-size: 22px;
    line-height: 1.2;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 500;
}
.teacher-dashboard-portal__entry-subtitle {
    margin: 6px 0 0;
    color: var(--teacher-muted);
    font-size: 14px;
}
.teacher-dashboard-portal__entry-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(var(--teacher-accent-rgb), 0.18);
}
.teacher-dashboard-portal__entry-actions-copy {
    color: var(--teacher-muted);
    font-size: 13px;
    line-height: 1.4;
}
.teacher-dashboard-portal__entry-actions-buttons {
    display: flex;
    gap: 10px;
}
.teacher-dashboard-portal__entry-toggle {
    width: 48px;
    height: 48px;
    border: 1px solid var(--teacher-accent);
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, var(--teacher-accent-soft) 100%);
    color: var(--teacher-accent);
    font-size: 26px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s ease;
}
.teacher-dashboard-portal__entry-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(var(--teacher-accent-rgb), 0.14);
}
.teacher-dashboard-portal__field label {
    font-size: 14px;
    font-weight: 700;
    color: var(--teacher-ink);
}
.teacher-dashboard-portal__field input,
.teacher-dashboard-portal__field select {
    width: 100%;
    height: 48px;
    border: 1px solid var(--teacher-input-border);
    border-radius: 14px;
    background: var(--teacher-card);
    padding: 0 14px;
    box-sizing: border-box;
    color: var(--teacher-text);
    font-size: 14px;
    box-shadow: inset 0 1px 2px rgba(27, 34, 86, 0.04);
}
.teacher-dashboard-portal__field input:focus,
.teacher-dashboard-portal__field select:focus {
    outline: none;
    border-color: var(--teacher-accent);
    box-shadow: 0 0 0 4px rgba(var(--teacher-accent-rgb), 0.12);
}
.teacher-dashboard-portal__field select:disabled {
    background: var(--teacher-accent-soft);
    color: var(--teacher-muted);
    cursor: not-allowed;
}
.teacher-dashboard-portal__submit-row {
    margin-top: 18px;
}
.teacher-dashboard-portal__submit {
    border: 1px solid var(--teacher-accent);
    background: var(--teacher-card);
    color: var(--teacher-accent);
    padding: 14px 20px;
    min-width: 188px;
    font-weight: 700;
}
.teacher-dashboard-portal__empty {
    color: var(--teacher-muted);
    margin: 0;
}
.teacher-dashboard-portal__section-title {
    margin: 0 0 8px;
    color: var(--teacher-ink);
    font-size: 28px;
    line-height: 1.15;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 500;
}
.teacher-dashboard-portal__section-copy {
    margin: 0 0 18px;
    max-width: 720px;
    color: var(--teacher-muted);
    font-size: 15px;
    line-height: 1.6;
}
@media (max-width: 1100px) {
    .teacher-dashboard-portal__layout {
        grid-template-columns: 1fr;
    }
    .teacher-dashboard-portal__sidebar {
        position: static;
    }
    .teacher-dashboard-portal__nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .teacher-dashboard-portal__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .teacher-dashboard-portal__participant-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 16px;
    }
    .teacher-dashboard-portal__participant-toolbar-action {
        grid-column: 1 / -1;
    }
    .teacher-dashboard-portal__panel,
    .teacher-dashboard-portal__sidebar {
        padding: 22px 18px;
    }
    .teacher-dashboard-portal__participant-head,
    .teacher-dashboard-portal__participant-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .teacher-dashboard-portal__participant-artwork {
        text-align: left;
    }
    .teacher-dashboard-portal__participant-meta {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 767px) {
    .teacher-dashboard-portal {
        width: min(calc(100vw - 24px), 100%);
        margin: 18px auto 64px;
    }
    .teacher-dashboard-portal__nav {
        grid-template-columns: 1fr;
    }
    .teacher-dashboard-portal__panel,
    .teacher-dashboard-portal__sidebar {
        padding: 20px 16px;
    }
    .teacher-dashboard-portal__grid {
        grid-template-columns: 1fr;
    }
    .teacher-dashboard-portal__participant-toolbar {
        grid-template-columns: 1fr;
        padding: 14px;
        border-radius: 18px;
    }
    .teacher-dashboard-portal__participant-toolbar .teacher-dashboard-portal__field {
        padding: 10px 12px;
    }
    .teacher-dashboard-portal__participant-toolbar-action {
        grid-column: auto;
    }
    .teacher-dashboard-portal__reset-filters {
        width: 100%;
    }
    .teacher-dashboard-portal__entry-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .teacher-dashboard-portal__entry-actions-buttons {
        justify-content: flex-end;
    }
    .teacher-dashboard-portal__participant-card {
        padding: 18px;
    }
    .teacher-dashboard-portal__competition-add-form .teacher-dashboard-portal__grid {
        grid-template-columns: 1fr;
    }
}




.teacher-dashboard-portal__single-notice:empty {
    display: none;
}
.teacher-dashboard-portal__students-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0 0 18px;
}
.teacher-dashboard-portal__students-header .teacher-dashboard-portal__submit {
    min-width: 190px;
    padding: 13px 24px;
    background: var(--teacher-accent);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 24px rgba(var(--teacher-accent-rgb), 0.18);
}
.teacher-dashboard-portal__students-toolbar {
    margin: 0 0 18px;
    padding: 18px;
    border: 1px solid rgba(var(--teacher-accent-rgb), 0.18);
    border-radius: 24px;
    background: linear-gradient(180deg, var(--teacher-card) 0%, var(--teacher-accent-soft) 100%);
    box-shadow: 0 14px 34px rgba(43, 52, 108, 0.06);
}
.teacher-dashboard-portal__students-toolbar input[type="search"] {
    width: 100%;
    max-width: 460px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--teacher-input-border);
    border-radius: 8px;
    background: var(--teacher-card);
}
.teacher-dashboard-portal__students-toolbar input[type="search"]:focus {
    outline: none;
    border-color: var(--teacher-accent);
    box-shadow: 0 0 0 3px rgba(var(--teacher-accent-rgb), 0.18);
}
.teacher-dashboard-portal__students-empty {
    display: none;
    margin-top: 14px;
}
.teacher-dashboard-portal__students-empty.is-active {
    display: block;
}
.teacher-dashboard-portal__competition-empty {
    display: none;
}
.teacher-dashboard-portal__competition-empty.is-active {
    display: block;
}
.teacher-dashboard-portal__competition-filter {
    display: block;
    margin-bottom: 18px;
}
.teacher-dashboard-portal__competition-filter label {
    display: block !important;
    margin: 0 0 8px;
    color: var(--teacher-ink) !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.teacher-dashboard-portal__competition-filter select {
    display: block !important;
    width: 100%;
    min-height: 48px;
    color: var(--teacher-text) !important;
    background: var(--teacher-card) !important;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-text-fill-color: var(--teacher-text);
}

.teacher-dashboard-portal__competition-add-wrap {
    display: none;
    margin: 0 0 20px;
}
.teacher-dashboard-portal__competition-add-wrap.is-active {
    display: block;
}
.teacher-dashboard-portal__competition-add-form {
    display: none;
    margin-top: 16px;
    padding: 22px;
    border: 1px solid rgba(var(--teacher-accent-rgb), 0.18);
    border-radius: 24px;
    background: linear-gradient(180deg, var(--teacher-card) 0%, var(--teacher-accent-soft) 100%);
    box-shadow: 0 14px 34px rgba(43, 52, 108, 0.06);
}
.teacher-dashboard-portal__competition-add-form.is-active {
    display: block;
}
.teacher-dashboard-portal__competition-add-form .teacher-dashboard-portal__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.teacher-dashboard-portal__competition-add-form .teacher-dashboard-portal__field {
    min-width: 0;
}
.teacher-dashboard-portal__all-competition-heading {
    display: none;
}
.teacher-dashboard-portal__all-competition-heading.is-active {
    display: block;
}
.teacher-dashboard-portal__competition-records-group {
    display: none;
    margin-top: 20px;
}
.teacher-dashboard-portal__competition-records-group.is-active {
    display: block;
}
.teacher-dashboard-portal__competition-records-group .teacher-dashboard-portal__empty {
    color: var(--teacher-text);
}
.teacher-dashboard-portal__table-wrap {
    width: 100%;
    overflow-x: auto;
}
.teacher-dashboard-portal__table-wrap .teacher-dashboard-portal__students-table {
    width: 100%;
    min-width: 940px;
}
.teacher-dashboard-portal__students-table {
    table-layout: fixed;
}
.teacher-dashboard-portal__students-table th:nth-child(1),
.teacher-dashboard-portal__students-table td:nth-child(1) {
    width: 20%;
}
.teacher-dashboard-portal__students-table th:nth-child(2),
.teacher-dashboard-portal__students-table td:nth-child(2) {
    width: 28%;
}
.teacher-dashboard-portal__students-table th:nth-child(3),
.teacher-dashboard-portal__students-table td:nth-child(3) {
    width: 24%;
}
.teacher-dashboard-portal__students-table th:nth-child(4),
.teacher-dashboard-portal__students-table td:nth-child(4) {
    width: 16%;
}
.teacher-dashboard-portal__students-table th,
.teacher-dashboard-portal__students-table td {
    vertical-align: top;
    white-space: normal;
    word-break: break-word;
}
.teacher-dashboard-portal__students-table td,
.teacher-dashboard-portal__students-table td p,
.teacher-dashboard-portal__students-table td strong {
    color: var(--teacher-text);
}
.teacher-dashboard-portal__students-table th:last-child,
.teacher-dashboard-portal__students-table td:last-child {
    width: 150px;
}
.teacher-dashboard-portal__students-table td {
    padding-top: 12px;
    padding-bottom: 12px;
}
.teacher-dashboard-portal__students-table td p {
    margin: 0 0 8px;
}
.teacher-dashboard-portal__students-table td p:last-child {
    margin-bottom: 0;
}
.teacher-dashboard-portal__students-table {
    border: 1px solid rgba(var(--teacher-accent-rgb), 0.2);
    border-radius: 18px;
    overflow: hidden;
    background: var(--teacher-card);
}
.teacher-dashboard-portal__students-table thead th {
    background: var(--teacher-table-head);
    color: var(--teacher-ink);
    font-weight: 700;
}
.teacher-dashboard-portal__students-table tbody tr:hover td {
    background: var(--teacher-table-hover);
}
.teacher-dashboard-portal__students-table td:last-child {
    white-space: normal;
}
.teacher-dashboard-portal__action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    margin: 0 6px 8px 0;
    padding: 9px 12px;
    border: 1px solid var(--teacher-accent);
    border-radius: 999px;
    background: var(--teacher-card);
    color: var(--teacher-accent);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all .18s ease;
}
.teacher-dashboard-portal__action-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(var(--teacher-accent-rgb), 0.14);
}
.teacher-dashboard-portal__action-button--danger {
    border-color: var(--teacher-danger-soft);
    color: var(--teacher-danger);
}
.teacher-dashboard-portal__modal {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: none;
}
.teacher-dashboard-portal__modal.is-open {
    display: block;
}
.teacher-dashboard-portal__modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(var(--teacher-ink-rgb), 0.76);
}
.teacher-dashboard-portal__modal-dialog {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 32px), 760px);
    max-height: calc(100vh - 72px);
    margin: 36px auto;
    overflow-y: auto;
    border-radius: 24px;
    border: 1px solid var(--teacher-border);
    background: linear-gradient(180deg, var(--teacher-card) 0%, var(--teacher-panel) 100%);
    box-shadow: 0 24px 60px rgba(31, 41, 84, 0.18);
    padding: 28px;
}
.teacher-dashboard-portal__modal-dialog--compact {
    width: min(calc(100% - 32px), 560px);
}
.teacher-dashboard-portal__modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: 0;
    background: transparent;
    color: var(--teacher-accent);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}
.teacher-dashboard-portal__modal-title {
    margin: 0 0 18px;
    color: var(--teacher-ink);
    font-size: 28px;
    line-height: 1.15;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 500;
}
.teacher-dashboard-portal__modal-copy {
    margin: 0 0 18px;
    color: var(--teacher-muted);
    font-size: 15px;
    line-height: 1.6;
}
.teacher-dashboard-portal__modal-form {
    margin: 0;
}
.teacher-dashboard-portal__modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}
.teacher-dashboard-portal__ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--teacher-border);
    border-radius: 999px;
    background: var(--teacher-card);
    color: var(--teacher-muted);
    padding: 14px 20px;
    font-weight: 700;
    cursor: pointer;
}
.teacher-dashboard-portal__submit--danger {
    border-color: var(--teacher-danger-soft);
    color: var(--teacher-danger);
}
@media (max-width: 767px) {
    .teacher-dashboard-portal__modal-dialog,
    .teacher-dashboard-portal__modal-dialog--compact {
        width: min(calc(100% - 20px), 100%);
        max-height: calc(100vh - 24px);
        margin: 12px auto;
        padding: 22px 18px;
        border-radius: 18px;
    }
    .teacher-dashboard-portal__modal-actions {
        flex-direction: column;
    }
    .teacher-dashboard-portal__action-button {
        min-width: 64px;
    }
}

@media (max-width: 767px) {
    .teacher-dashboard-portal__students-header {
        justify-content: stretch;
    }
    .teacher-dashboard-portal__students-header .teacher-dashboard-portal__submit {
        width: 100%;
    }
}

.teacher-dashboard-portal__success-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.teacher-dashboard-portal__success-modal.is-open {
    display: flex;
}
.teacher-dashboard-portal__success-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(var(--teacher-ink-rgb), 0.42);
}
.teacher-dashboard-portal__success-dialog {
    position: relative;
    width: min(100%, 420px);
    border: 1px solid var(--teacher-border);
    border-radius: 20px;
    background: var(--teacher-card);
    box-shadow: 0 24px 70px rgba(24, 34, 74, 0.22);
    padding: 30px 26px 24px;
    text-align: center;
}
.teacher-dashboard-portal__success-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: var(--teacher-accent-soft);
    color: var(--teacher-ink);
    font-size: 24px;
    font-weight: 700;
}
.teacher-dashboard-portal__success-title {
    margin: 0 0 10px;
    color: var(--teacher-ink);
    font-size: 28px;
    line-height: 1.2;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 500;
}
.teacher-dashboard-portal__success-copy {
    margin: 0 0 20px;
    color: var(--teacher-text);
    font-size: 15px;
    line-height: 1.5;
}
.teacher-dashboard-portal__success-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    border: 1px solid var(--teacher-accent);
    border-radius: 999px;
    background: var(--teacher-accent);
    color: #fff;
    padding: 12px 22px;
    font-weight: 700;
    cursor: pointer;
}


/* WordPress-style dashboard navigation and pagination. */
.teacher-dashboard-portal__layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
}
.teacher-dashboard-portal__sidebar,
.teacher-dashboard-portal__panel {
    border-radius: 4px;
    box-shadow: none;
    background: var(--teacher-card);
}
.teacher-dashboard-portal__sidebar {
    padding: 0;
    border-color: #c3c4c7;
    overflow: hidden;
}
.teacher-dashboard-portal__nav {
    gap: 0;
}
.teacher-dashboard-portal__panel {
    padding: 22px;
    border-color: #c3c4c7;
}
.teacher-dashboard-portal__competitions-toolbar {
    display: block;
}
.teacher-dashboard-portal__participant-pagination {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 18px 0 20px;
}
.teacher-dashboard-portal__participant-pagination.is-active {
    display: flex;
}
.teacher-dashboard-portal__participant-pagination .page-numbers {
    min-width: 36px;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid #c3c4c7;
    border-radius: 0;
    background: #fff;
    color: #2271b1;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
}
.teacher-dashboard-portal__participant-pagination .page-numbers:hover:not(:disabled) {
    background: #f6f7f7;
    border-color: #8c8f94;
    color: #135e96;
}
.teacher-dashboard-portal__participant-pagination .page-numbers.current,
.teacher-dashboard-portal__participant-pagination .page-numbers.is-active {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}
.teacher-dashboard-portal__participant-pagination .page-numbers:disabled {
    color: #a7aaad;
    cursor: default;
    opacity: 1;
}
@media (max-width: 1100px) {
    .teacher-dashboard-portal__nav {
        display: flex;
        flex-direction: column;
    }
}


/* Final dashboard navigation alignment and theme pagination overrides. */
.teacher-dashboard-portal {
    width: min(1180px, calc(100vw - 32px));
}
.teacher-dashboard-portal__layout {
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 18px;
}
.teacher-dashboard-portal__sidebar {
    min-width: 245px;
    background: #f0f0f1;
    border: 1px solid #dcdcde;
}
.teacher-dashboard-portal__panel {
    min-width: 0;
}
.teacher-dashboard-portal__table-wrap .teacher-dashboard-portal__students-table {
    min-width: 860px;
}
.teacher-dashboard-portal__participant-pagination.nav-links {
    display: none;
    width: 100%;
    margin: 22px 0 20px;
    padding-top: 18px;
    border-top: 1px solid #9ca3af;
    align-items: center;
    gap: 8px;
}
.teacher-dashboard-portal__participant-pagination.nav-links.is-active {
    display: flex;
}
.teacher-dashboard-portal__participant-pagination.nav-links .page-numbers {
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--teacher-accent);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: none;
}
.teacher-dashboard-portal__participant-pagination.nav-links .page-numbers:hover:not(:disabled) {
    background: transparent;
    border: 0;
    color: var(--teacher-accent-strong);
    text-decoration: underline;
}
.teacher-dashboard-portal__participant-pagination.nav-links .page-numbers.current,
.teacher-dashboard-portal__participant-pagination.nav-links .page-numbers.is-active {
    background: transparent;
    border: 0;
    color: var(--teacher-accent-strong);
    font-weight: 700;
}
.teacher-dashboard-portal__participant-pagination.nav-links .page-numbers.next {
    margin-left: auto;
}
.teacher-dashboard-portal__participant-pagination.nav-links .page-numbers.prev + .page-numbers:not(.next) {
    margin-left: 18px;
}
@media (max-width: 1100px) {
    .teacher-dashboard-portal__layout {
        grid-template-columns: 1fr;
    }
    .teacher-dashboard-portal__sidebar {
        min-width: 0;
    }
}


/* Flat WordPress dashboard table/list sections. */
.teacher-dashboard-portal__panel {
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}
.teacher-dashboard-portal__students-toolbar {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.teacher-dashboard-portal__students-toolbar input[type="search"] {
    border-radius: 0;
    border-color: #8c8f94;
    background: #fff;
}
.teacher-dashboard-portal__table-wrap {
    border: 1px solid #c3c4c7;
    border-radius: 0;
    background: #fff;
    overflow-x: auto;
}
.teacher-dashboard-portal__table-wrap .teacher-dashboard-portal__students-table {
    min-width: 860px;
    border: 0;
    border-radius: 0;
}
.teacher-dashboard-portal__students-table {
    border: 0;
    border-radius: 0;
    border-collapse: collapse;
    overflow: visible;
}
.teacher-dashboard-portal__students-table thead th {
    background: #f6f7f7;
    color: #1d2327;
    border-bottom: 1px solid #c3c4c7;
}
.teacher-dashboard-portal__students-table th,
.teacher-dashboard-portal__students-table td {
    border-bottom: 1px solid #dcdcde;
}
.teacher-dashboard-portal__students-table tbody tr:hover td {
    background: #f6f7f7;
}
.teacher-dashboard-portal__competition-add-form {
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    border-color: #c3c4c7;
}
.teacher-dashboard-portal__participant-pagination.nav-links {
    justify-content: flex-start;
    column-gap: 8px;
}
.teacher-dashboard-portal__participant-pagination.nav-links .page-numbers.prev {
    margin-right: auto;
}
.teacher-dashboard-portal__participant-pagination.nav-links .page-numbers.next {
    margin-left: auto;
}
.teacher-dashboard-portal__participant-pagination.nav-links .page-numbers.prev + .page-numbers:not(.next) {
    margin-left: 0;
}
.teacher-dashboard-portal__participant-pagination.nav-links .page-numbers.current,
.teacher-dashboard-portal__participant-pagination.nav-links .page-numbers.is-active {
    color: var(--teacher-accent);
    font-weight: 500;
}


/* Theme-native controls and table alignment refinements. */
.teacher-dashboard-portal__students-header .teacher-dashboard-portal__submit,
.teacher-dashboard-portal__action-button,
.teacher-dashboard-portal__submit,
.teacher-dashboard-portal__ghost-button {
    width: auto;
    min-width: 0;
    min-height: 0;
    padding: 6px 12px;
    border-radius: 3px;
    border: 1px solid currentColor;
    background: transparent;
    color: currentColor;
    box-shadow: none;
    font: inherit;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transform: none;
}
.teacher-dashboard-portal__students-header .teacher-dashboard-portal__submit,
.teacher-dashboard-portal__action-button,
.teacher-dashboard-portal__submit {
    color: var(--teacher-accent);
}
.teacher-dashboard-portal__students-header .teacher-dashboard-portal__submit:hover,
.teacher-dashboard-portal__action-button:hover,
.teacher-dashboard-portal__submit:hover,
.teacher-dashboard-portal__ghost-button:hover {
    background: transparent;
    color: var(--teacher-accent-strong);
    box-shadow: none;
    text-decoration: underline;
    transform: none;
}
.teacher-dashboard-portal__students-table th:nth-child(3),
.teacher-dashboard-portal__students-table td:nth-child(3),
.teacher-dashboard-portal__students-table th:nth-child(4),
.teacher-dashboard-portal__students-table td:nth-child(4) {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.45;
}
.teacher-dashboard-portal__competition-list th:nth-child(2),
.teacher-dashboard-portal__competition-list td:nth-child(2) {
    text-align: center;
    vertical-align: middle;
}
.teacher-dashboard-portal__bulk-form {
    margin: 0;
    color: inherit;
    font: inherit;
}
.teacher-dashboard-portal__bulk-form .teacher-dashboard-portal__grid {
    display: block;
}
.teacher-dashboard-portal__bulk-form .teacher-dashboard-portal__field,
.teacher-dashboard-portal__bulk-form .teacher-dashboard-portal__bulk-help,
.teacher-dashboard-portal__bulk-form .teacher-dashboard-portal__sample-link {
    color: inherit;
    font: inherit;
}
.teacher-dashboard-portal__bulk-form input[type="file"] {
    border-radius: 0;
    border-color: #8c8f94;
    background: #fff;
    color: inherit;
    font: inherit;
}
.teacher-dashboard-portal__bulk-form .teacher-dashboard-portal__submit-row {
    margin-top: 14px;
}


/* WordPress-like list navigation markup. */
.teacher-dashboard-portal__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.teacher-dashboard-portal__nav-item {
    margin: 0;
    border-bottom: 1px solid #dcdcde;
}
.teacher-dashboard-portal__nav-link {
    display: block;
    padding: 12px 16px;
    color: inherit;
    font: inherit;
    line-height: 1.35;
    text-decoration: none;
    background: transparent;
}
.teacher-dashboard-portal__nav-link:hover,
.teacher-dashboard-portal__nav-link:focus {
    color: var(--teacher-accent);
    text-decoration: none;
    background: rgba(var(--teacher-accent-rgb), 0.06);
}
.teacher-dashboard-portal__nav-item.is-active .teacher-dashboard-portal__nav-link,
.teacher-dashboard-portal__nav-link.is-active {
    color: var(--teacher-accent);
    font-weight: 700;
    background: rgba(var(--teacher-accent-rgb), 0.1);
    border-left: 4px solid var(--teacher-accent);
    padding-left: 12px;
}
.teacher-dashboard-portal__students-table th:nth-child(3),
.teacher-dashboard-portal__students-table td:nth-child(3),
.teacher-dashboard-portal__students-table th:nth-child(4),
.teacher-dashboard-portal__students-table td:nth-child(4) {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    hyphens: auto;
    vertical-align: top;
}


.teacher-dashboard-portal__competitions-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
}
.teacher-dashboard-portal__competition-search-field {
    flex: 1 1 auto;
    margin: 0;
}
.teacher-dashboard-portal__competitions-toolbar .teacher-dashboard-portal__all-participants-link {
    flex: 0 0 auto;
    white-space: nowrap;
}
.teacher-dashboard-portal__participants-header {
    justify-content: flex-start;
}
@media (max-width: 700px) {
    .teacher-dashboard-portal__competitions-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
    .teacher-dashboard-portal__competitions-toolbar .teacher-dashboard-portal__all-participants-link {
        text-align: center;
    }
}

.teacher-dashboard-portal__participants-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
}
.teacher-dashboard-portal__participants-toolbar input[type="search"] {
    flex: 1 1 auto;
}
.teacher-dashboard-portal__participants-toolbar .teacher-dashboard-portal__all-participants-link {
    flex: 0 0 auto;
    white-space: nowrap;
}
.teacher-dashboard-portal__all-participants-link.is-hidden {
    display: none !important;
}
@media (max-width: 700px) {
    .teacher-dashboard-portal__participants-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
    .teacher-dashboard-portal__participants-toolbar .teacher-dashboard-portal__all-participants-link {
        text-align: center;
    }
}

/* Teacher dashboard reference redesign v5. Presentation and layout only. */
body:has(.teacher-dashboard-portal) {
    background:
        radial-gradient(circle at 1px 1px, rgba(249, 181, 128, 0.24) 1.2px, transparent 1.8px) right -22px top 92px / 13px 13px no-repeat,
        radial-gradient(circle at 1px 1px, rgba(249, 181, 128, 0.24) 1.3px, transparent 1.8px) left -36px bottom 140px / 14px 14px no-repeat,
        radial-gradient(ellipse at 76% 18%, rgba(255, 207, 178, 0.42), transparent 21%),
        linear-gradient(180deg, #fff8f1 0%, #fffdf9 52%, #fff7ef 100%);
    color: #0b1648;
}
body:has(.teacher-dashboard-portal__modal.is-open) {
    overflow: hidden;
}
.teacher-dashboard-portal {
    --ja-cream: #fff8f1;
    --ja-paper: #fffdf9;
    --ja-white: #ffffff;
    --ja-navy: #0b1648;
    --ja-ink: #17234f;
    --ja-muted: #66718b;
    --ja-purple: #7652ee;
    --ja-purple-dark: #5d3dde;
    --ja-purple-soft: #f0e9ff;
    --ja-purple-line: rgba(118, 82, 238, 0.26);
    --ja-peach: #ffc49a;
    --ja-border: rgba(14, 24, 72, 0.13);
    --ja-shadow: 0 24px 70px rgba(16, 22, 62, 0.10);
    --ja-shadow-soft: 0 14px 38px rgba(16, 22, 62, 0.07);
    --teacher-ink: var(--ja-navy);
    --teacher-text: var(--ja-ink);
    --teacher-muted: var(--ja-muted);
    --teacher-accent: var(--ja-purple);
    --teacher-accent-strong: var(--ja-purple-dark);
    --teacher-accent-soft: var(--ja-purple-soft);
    --teacher-border: var(--ja-purple-line);
    --teacher-card: var(--ja-paper);
    --teacher-panel: #fffaf5;
    --teacher-input-border: rgba(118, 82, 238, 0.36);
    --teacher-table-head: #f7f2ff;
    --teacher-table-hover: #fff8f0;
    position: relative;
    isolation: isolate;
    width: min(1500px, calc(100vw - 56px));
    margin: 34px auto 96px;
    padding: 0;
    border: 0;
    color: var(--ja-ink);
    background: transparent;
    box-shadow: none;
    overflow: visible;
}
.teacher-dashboard-portal__hero-banner {
    position: relative;
    min-height: 168px;
    margin: 0 0 22px;
    border: 1px solid rgba(14, 24, 72, 0.10);
    border-radius: 14px;
    background:
        radial-gradient(circle at 64% 54%, rgba(255, 149, 83, 0.34) 0 7px, transparent 8px),
        radial-gradient(circle at 70% 46%, rgba(255, 149, 83, 0.22) 0 4px, transparent 5px),
        radial-gradient(circle at 1px 1px, rgba(249, 181, 128, 0.28) 1.25px, transparent 1.75px) right 18px bottom 18px / 12px 12px no-repeat,
        linear-gradient(132deg, transparent 0 58%, rgba(104, 74, 45, 0.34) 58.2% 59.4%, transparent 59.8%) right 142px center / 390px 150px no-repeat,
        radial-gradient(ellipse at 78% 66%, rgba(255, 209, 181, 0.48), transparent 30%),
        linear-gradient(90deg, rgba(255, 253, 248, 0.96), rgba(255, 249, 243, 0.92));
    box-shadow: var(--ja-shadow-soft);
    overflow: hidden;
}
.teacher-dashboard-portal__hero-banner::after {
    content: "";
    position: absolute;
    right: 56px;
    bottom: 16px;
    width: 150px;
    height: 76px;
    opacity: 0.42;
    border-right: 2px solid rgba(103, 104, 70, 0.55);
    border-bottom: 1px solid rgba(103, 104, 70, 0.32);
    border-radius: 0 0 80% 0;
    transform: rotate(-20deg);
}
.teacher-dashboard-portal__hero-content {
    position: relative;
    z-index: 1;
    max-width: 620px;
    padding: clamp(28px, 4vw, 44px);
}
.teacher-dashboard-portal__hero-content h2 {
    margin: 0 0 10px;
    color: var(--ja-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.02;
}
.teacher-dashboard-portal__hero-content p {
    margin: 0;
    color: var(--ja-muted);
    font-size: 16px;
}
.teacher-dashboard-portal__layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.teacher-dashboard-portal__sidebar,
.teacher-dashboard-portal__panel {
    border: 1px solid var(--ja-border);
    background: rgba(255, 253, 249, 0.94);
    box-shadow: var(--ja-shadow);
    backdrop-filter: blur(10px);
}
.teacher-dashboard-portal__sidebar {
    position: sticky;
    top: 24px;
    min-width: 0;
    min-height: 600px;
    padding: 18px;
    border-radius: 16px;
    overflow: hidden;
}
.teacher-dashboard-portal__sidebar::before {
    content: "";
    position: absolute;
    left: -62px;
    bottom: -74px;
    width: 255px;
    height: 255px;
    opacity: 0.62;
    pointer-events: none;
    background:
        radial-gradient(circle at 1px 1px, rgba(255, 176, 112, 0.42) 1.65px, transparent 1.9px) 0 0 / 12px 12px,
        radial-gradient(ellipse at 58% 46%, rgba(255, 215, 189, 0.46), transparent 58%);
}
.teacher-dashboard-portal__sidebar::after {
    content: "";
    position: absolute;
    left: 24px;
    bottom: 46px;
    width: 124px;
    height: 164px;
    opacity: 0.28;
    pointer-events: none;
    border-left: 2px solid rgba(114, 83, 51, 0.50);
    border-bottom: 1px solid rgba(114, 83, 51, 0.28);
    border-radius: 56% 0 42% 24%;
    transform: rotate(30deg);
}
.teacher-dashboard-portal__nav,
.teacher-dashboard-portal__nav-list,
.teacher-dashboard-portal__sidebar-card {
    position: relative;
    z-index: 1;
}
.teacher-dashboard-portal__nav-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.teacher-dashboard-portal__nav-item {
    margin: 0;
    border: 0;
}
.teacher-dashboard-portal__nav-link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 13px 16px 13px 52px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--ja-ink);
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.28;
    text-decoration: none;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.teacher-dashboard-portal__nav-link::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 50%;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 6px;
    transform: translateY(-50%);
    opacity: 0.82;
}
.teacher-dashboard-portal__nav-item:nth-child(1) .teacher-dashboard-portal__nav-link::before {
    border-radius: 999px 999px 7px 7px;
    box-shadow: -8px 5px 0 -4px currentColor, 8px 5px 0 -4px currentColor;
}
.teacher-dashboard-portal__nav-item:nth-child(2) .teacher-dashboard-portal__nav-link::before {
    border-radius: 3px;
    box-shadow: inset 0 6px 0 -4px currentColor;
}
.teacher-dashboard-portal__nav-item:nth-child(3) .teacher-dashboard-portal__nav-link::before {
    border-radius: 3px 3px 9px 9px;
    box-shadow: 0 9px 0 -6px currentColor;
}
.teacher-dashboard-portal__nav-link:hover,
.teacher-dashboard-portal__nav-link:focus {
    color: var(--ja-purple-dark);
    background: rgba(240, 232, 255, 0.74);
    border-color: rgba(118, 82, 238, 0.18);
    text-decoration: none;
    transform: translateY(-1px);
}
.teacher-dashboard-portal__nav-item.is-active .teacher-dashboard-portal__nav-link,
.teacher-dashboard-portal__nav-link.is-active {
    color: var(--ja-purple-dark);
    background: linear-gradient(90deg, rgba(118, 82, 238, 0.17), rgba(240, 232, 255, 0.86));
    border-color: rgba(118, 82, 238, 0.18);
    box-shadow: inset 4px 0 0 var(--ja-purple), 0 10px 26px rgba(118, 82, 238, 0.10);
    padding-left: 52px;
}
.teacher-dashboard-portal__sidebar-card {
    margin-top: 118px;
    padding: 118px 18px 18px;
    border: 1px solid rgba(14, 24, 72, 0.10);
    border-radius: 12px;
    background: rgba(255, 252, 247, 0.78);
}
.teacher-dashboard-portal__sidebar-card h3 {
    margin: 0 0 8px;
    color: var(--ja-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    line-height: 1.1;
}
.teacher-dashboard-portal__sidebar-card p {
    margin: 0;
    color: var(--ja-muted);
    font-size: 13px;
    line-height: 1.5;
}
.teacher-dashboard-portal__sidebar-art {
    position: absolute;
    left: 16px;
    top: 12px;
    width: 112px;
    height: 118px;
    border-radius: 20px;
    background:
        linear-gradient(82deg, transparent 0 34%, rgba(88, 55, 32, 0.35) 35% 37%, transparent 38%) 50% 20% / 88px 90px no-repeat,
        radial-gradient(ellipse at 44% 78%, rgba(236, 160, 132, 0.42), transparent 46%),
        radial-gradient(ellipse at 50% 72%, rgba(226, 213, 186, 0.52), transparent 52%);
}
.teacher-dashboard-portal__panel {
    min-width: 0;
    padding: clamp(24px, 2.5vw, 34px);
    border-radius: 14px;
    overflow: hidden;
}
.teacher-dashboard-portal__welcome-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 96px;
    margin: 0 0 22px;
    padding: 18px 56px 18px 24px;
    border: 1px solid rgba(118, 82, 238, 0.16);
    border-radius: 12px;
    background:
        radial-gradient(ellipse at 94% 50%, rgba(189, 198, 150, 0.25), transparent 18%),
        linear-gradient(90deg, rgba(244, 238, 255, 0.66), rgba(255, 253, 249, 0.92));
    box-shadow: var(--ja-shadow-soft);
}
.teacher-dashboard-portal__welcome-card::after {
    content: "×";
    position: absolute;
    top: 16px;
    right: 22px;
    color: var(--ja-navy);
    font-size: 28px;
    line-height: 1;
    opacity: 0.76;
}
.teacher-dashboard-portal__welcome-icon {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--teacher-border, rgba(124, 77, 242, 0.18));
    overflow: hidden;
}

.teacher-dashboard-portal__welcome-icon img {
    display: block;
    width: 78%;
    height: 78%;
    object-fit: contain;
}
.teacher-dashboard-portal__welcome-card h3 {
    margin: 0 0 6px;
    color: var(--ja-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.15;
}
.teacher-dashboard-portal__welcome-card p {
    margin: 0;
    color: var(--ja-muted);
    font-size: 15px;
}
.teacher-dashboard-portal__stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 24px;
}
.teacher-dashboard-portal__stat-card {
    position: relative;
    min-height: 84px;
    padding: 18px 18px 18px 82px;
    border: 1px solid rgba(118, 82, 238, 0.18);
    border-radius: 12px;
    background: rgba(255, 253, 249, 0.9);
    box-shadow: 0 10px 28px rgba(16, 22, 62, 0.04);
}
.teacher-dashboard-portal__stat-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    transform: translateY(-50%);
    background: var(--ja-purple-soft);
}
.teacher-dashboard-portal__stat-card--assigned .teacher-dashboard-portal__stat-icon { background: #e9f8ed; }
.teacher-dashboard-portal__stat-card--unassigned .teacher-dashboard-portal__stat-icon { background: #f0e9ff; }
.teacher-dashboard-portal__stat-card--entries .teacher-dashboard-portal__stat-icon { background: #fff0e4; }
.teacher-dashboard-portal__stat-value {
    display: block;
    color: var(--ja-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    font-weight: 700;
    line-height: 1;
}
.teacher-dashboard-portal__stat-label {
    display: block;
    margin-top: 5px;
    color: var(--ja-muted);
    font-size: 10px;
    line-height: 1.3;
}
.teacher-dashboard-portal__section-title {
    margin: 0 0 8px;
    color: var(--ja-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 2.7vw, 44px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
}
.teacher-dashboard-portal__section-copy {
    max-width: 800px;
    margin: 0 0 22px;
    color: var(--ja-muted);
    font-size: 15px;
    line-height: 1.65;
}
.teacher-dashboard-portal__students-header,
.teacher-dashboard-portal__participants-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin: 0 0 18px;
}
.teacher-dashboard-portal__students-toolbar,
.teacher-dashboard-portal__competitions-toolbar,
.teacher-dashboard-portal__participants-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 20px;
    padding: 14px;
    border: 1px solid rgba(118, 82, 238, 0.18);
    border-radius: 12px;
    background: rgba(255, 253, 249, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 10px 26px rgba(16, 22, 62, 0.04);
}
.teacher-dashboard-portal__participants-toolbar input[type="search"],
.teacher-dashboard-portal__students-toolbar input[type="search"],
.teacher-dashboard-portal__competition-search-field input[type="search"] {
    width: 100%;
    max-width: none;
    min-height: 48px;
    border: 1px solid rgba(14, 24, 72, 0.22);
    border-radius: 8px;
    background: var(--ja-white);
    color: var(--ja-ink);
    padding: 0 42px 0 16px;
    font-size: 14px;
    box-shadow: inset 0 1px 2px rgba(14, 24, 72, 0.03);
}
.teacher-dashboard-portal__students-toolbar input[type="search"]:focus,
.teacher-dashboard-portal__participants-toolbar input[type="search"]:focus,
.teacher-dashboard-portal__competition-search-field input[type="search"]:focus,
.teacher-dashboard-portal__field input:focus,
.teacher-dashboard-portal__field select:focus {
    outline: none;
    border-color: var(--ja-purple);
    box-shadow: 0 0 0 4px rgba(118, 82, 238, 0.13);
}
.teacher-dashboard-portal__competition-search-field {
    flex: 1 1 auto;
    margin: 0;
}
.teacher-dashboard-portal__submit,
.teacher-dashboard-portal__students-header .teacher-dashboard-portal__submit,
.teacher-dashboard-portal__action-button,
.teacher-dashboard-portal__ghost-button,
.teacher-dashboard-portal__success-button,
.teacher-dashboard-portal__all-participants-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid var(--ja-purple);
    border-radius: 7px;
    background: var(--ja-white);
    color: var(--ja-purple-dark);
    box-shadow: none;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.teacher-dashboard-portal__submit,
.teacher-dashboard-portal__students-header .teacher-dashboard-portal__submit,
.teacher-dashboard-portal__success-button {
    background: linear-gradient(180deg, #8964fb 0%, var(--ja-purple-dark) 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(92, 61, 215, 0.24);
}
.teacher-dashboard-portal__submit:hover,
.teacher-dashboard-portal__students-header .teacher-dashboard-portal__submit:hover,
.teacher-dashboard-portal__action-button:hover,
.teacher-dashboard-portal__ghost-button:hover,
.teacher-dashboard-portal__success-button:hover,
.teacher-dashboard-portal__all-participants-link:hover {
    color: #fff;
    background: var(--ja-purple-dark);
    border-color: var(--ja-purple-dark);
    box-shadow: 0 16px 30px rgba(92, 61, 215, 0.22);
    text-decoration: none;
    transform: translateY(-1px);
}
.teacher-dashboard-portal__ghost-button {
    background: var(--ja-white);
    color: var(--ja-navy);
    border-color: rgba(14, 24, 72, 0.28);
}
.teacher-dashboard-portal__ghost-button:hover {
    color: var(--ja-navy);
    background: #fff8f0;
    border-color: rgba(14, 24, 72, 0.42);
}
.teacher-dashboard-portal__action-button--danger,
.teacher-dashboard-portal__submit--danger {
    border-color: rgba(202, 57, 82, 0.42);
    color: #c73952;
    background: #fffafa;
}
.teacher-dashboard-portal__action-button--danger:hover,
.teacher-dashboard-portal__submit--danger:hover {
    color: #fff;
    background: #c73952;
    border-color: #c73952;
}
.teacher-dashboard-portal__table-wrap {
    width: 100%;
    max-width: 100%;
    border: 1px solid rgba(14, 24, 72, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--ja-shadow-soft);
    overflow-x: auto;
}
.teacher-dashboard-portal__table-wrap .teacher-dashboard-portal__students-table,
.teacher-dashboard-portal__students-table {
    width: 100%;
    min-width: 860px;
    border: 0;
    border-radius: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
    table-layout: fixed;
    color: var(--ja-ink);
    overflow: visible;
}
.teacher-dashboard-portal__students-table thead th {
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid rgba(14, 24, 72, 0.10);
    background: linear-gradient(180deg, #faf7ff 0%, #f4edff 100%);
    color: var(--ja-navy);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}
.teacher-dashboard-portal__students-table th,
.teacher-dashboard-portal__students-table td {
    border: 0;
    border-bottom: 1px solid rgba(14, 24, 72, 0.08);
    color: var(--ja-ink);
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}
.teacher-dashboard-portal__students-table td {
    padding: 16px;
    font-size: 14px;
    line-height: 1.5;
}
.teacher-dashboard-portal__students-table td p {
    margin: 0 0 6px;
}
.teacher-dashboard-portal__students-table td strong {
    color: var(--ja-navy);
    font-weight: 800;
}
.teacher-dashboard-portal__students-table tbody tr:last-child td {
    border-bottom: 0;
}
.teacher-dashboard-portal__students-table tbody tr:hover td {
    background: rgba(255, 248, 240, 0.76);
}
.teacher-dashboard-portal__students-table th:last-child,
.teacher-dashboard-portal__students-table td:last-child {
    width: 154px;
    text-align: center;
}
.teacher-dashboard-portal__competition-list-wrap {
    border-color: rgba(118, 82, 238, 0.18);
}
.teacher-dashboard-portal__competition-list tbody tr:first-child td {
    border-top: 1px solid var(--ja-purple);
    border-bottom: 1px solid var(--ja-purple);
    background: rgba(247, 242, 255, 0.58);
}
.teacher-dashboard-portal__competition-list th:nth-child(2),
.teacher-dashboard-portal__competition-list td:nth-child(2),
.teacher-dashboard-portal__competition-list th:nth-child(4),
.teacher-dashboard-portal__competition-list td:nth-child(4),
.teacher-dashboard-portal__competition-list th:nth-child(5),
.teacher-dashboard-portal__competition-list td:nth-child(5) {
    text-align: center;
}
.teacher-dashboard-portal__competition-list td:nth-child(2) {
    color: #2f8f4f;
    font-weight: 800;
}
.teacher-dashboard-portal__competition-list td:nth-child(3) {
    color: var(--ja-navy);
    font-weight: 700;
}
.teacher-dashboard-portal__competition-list td:nth-child(4) {
    color: var(--ja-navy);
    font-weight: 800;
}
.teacher-dashboard-portal__bulk-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 22px;
    align-items: start;
}
.teacher-dashboard-portal__bulk-form {
    position: relative;
    margin: 0;
    min-height: 300px;
    padding: clamp(28px, 4vw, 56px);
    border: 1.5px dashed rgba(118, 82, 238, 0.58);
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 18%, rgba(118, 82, 238, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(255, 253, 249, 0.94), rgba(255, 248, 241, 0.94));
    box-shadow: var(--ja-shadow-soft);
    overflow: hidden;
}
.teacher-dashboard-portal__bulk-form::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px dashed rgba(118, 82, 238, 0.24);
    border-radius: 14px;
    pointer-events: none;
}
.teacher-dashboard-portal__bulk-form .teacher-dashboard-portal__grid {
    display: block;
}
.teacher-dashboard-portal__bulk-form .teacher-dashboard-portal__field {
    position: relative;
    z-index: 1;
    align-items: center;
    text-align: center;
}
.teacher-dashboard-portal__bulk-form .teacher-dashboard-portal__field label {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 2.2vw, 34px);
    font-weight: 700;
    letter-spacing: -0.03em;
}
.teacher-dashboard-portal__bulk-form input[type="file"],
.teacher-dashboard-portal__field input[type="file"] {
    width: min(100%, 560px);
    min-height: 54px;
    margin: 10px auto 4px;
    border: 1px dashed rgba(118, 82, 238, 0.52);
    border-radius: 10px;
    background: var(--ja-white);
    color: var(--ja-ink);
    padding: 14px;
}
.teacher-dashboard-portal__bulk-form .teacher-dashboard-portal__submit-row {
    position: relative;
    z-index: 1;
    text-align: center;
}
.teacher-dashboard-portal__bulk-requirements {
    padding: 20px;
    border: 1px solid rgba(14, 24, 72, 0.12);
    border-radius: 14px;
    background: rgba(255, 253, 249, 0.9);
    box-shadow: var(--ja-shadow-soft);
}
.teacher-dashboard-portal__bulk-requirements h4 {
    margin: 0 0 10px;
    color: var(--ja-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
}
.teacher-dashboard-portal__bulk-requirements p,
.teacher-dashboard-portal__bulk-requirements li {
    color: var(--ja-muted);
    font-size: 13px;
    line-height: 1.55;
}
.teacher-dashboard-portal__bulk-requirements ul {
    display: grid;
    gap: 8px;
    margin: 12px 0 22px;
    padding: 0;
    list-style: none;
}
.teacher-dashboard-portal__bulk-requirements li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border-radius: 999px;
    background: #35b75a;
    color: #fff;
    font-size: 10px;
}
.teacher-dashboard-portal__bulk-help {
    color: var(--ja-muted);
    font-size: 14px;
    line-height: 1.65;
}
.teacher-dashboard-portal__bulk-help--notice {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 22px auto 0;
    padding: 12px 16px;
    border: 1px solid rgba(255, 157, 78, 0.28);
    border-radius: 10px;
    background: rgba(255, 246, 229, 0.92);
    color: var(--ja-ink);
}
.teacher-dashboard-portal__sample-link {
    color: var(--ja-purple-dark);
    font-weight: 800;
    text-decoration: none;
}
.teacher-dashboard-portal__sample-link:hover {
    color: var(--ja-navy);
    text-decoration: underline;
}
.teacher-dashboard-portal__field {
    gap: 8px;
}
.teacher-dashboard-portal__field label {
    color: var(--ja-navy);
    font-size: 13px;
    font-weight: 800;
}
.teacher-dashboard-portal__field input,
.teacher-dashboard-portal__field select {
    height: 48px;
    border: 1px solid rgba(118, 82, 238, 0.34);
    border-radius: 8px;
    background: var(--ja-white);
    color: var(--ja-ink);
    box-shadow: inset 0 1px 2px rgba(14, 24, 72, 0.04);
}
.teacher-dashboard-portal__competition-add-form {
    margin-top: 18px;
    padding: 24px;
    border: 1px solid rgba(118, 82, 238, 0.18);
    border-radius: 14px;
    background: rgba(255, 253, 249, 0.92);
    box-shadow: var(--ja-shadow-soft);
}
.teacher-dashboard-portal__modal {
    z-index: 99998;
    overflow: hidden;
    overscroll-behavior: contain;
}
.teacher-dashboard-portal__modal-backdrop {
    background: rgba(13, 18, 47, 0.72);
    backdrop-filter: blur(3px);
}
.teacher-dashboard-portal__modal-dialog {
    position: relative;
    width: min(calc(100% - 36px), 880px);
    max-height: min(720px, calc(100dvh - 56px));
    margin: max(20px, calc((100dvh - min(720px, calc(100dvh - 56px))) / 2)) auto;
    padding: clamp(30px, 4vw, 56px);
    border: 1px solid rgba(14, 24, 72, 0.18);
    border-radius: 22px;
    background:
        radial-gradient(circle at 1px 1px, rgba(255, 185, 130, 0.34) 1.4px, transparent 1.7px) left 18px bottom 14px / 11px 11px no-repeat,
        radial-gradient(ellipse at 88% 14%, rgba(255, 205, 182, 0.62), transparent 27%),
        linear-gradient(180deg, #fffdfa 0%, #fff7ef 100%);
    box-shadow: 0 36px 96px rgba(13, 18, 47, 0.30);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.teacher-dashboard-portal__modal-dialog::before {
    content: "";
    position: absolute;
    top: 24px;
    right: 62px;
    width: 150px;
    height: 116px;
    opacity: 0.34;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 38%, rgba(255, 185, 160, 0.70), transparent 58%),
        linear-gradient(135deg, transparent 38%, rgba(96, 74, 48, 0.35) 39% 40%, transparent 41%);
    border-radius: 60% 40% 58% 42%;
}
.teacher-dashboard-portal__modal-dialog--compact {
    width: min(calc(100% - 36px), 620px);
    max-height: min(640px, calc(100dvh - 56px));
}
.teacher-dashboard-portal__modal-dialog--logout {
    width: min(calc(100% - 36px), 460px);
    max-height: min(420px, calc(100dvh - 56px));
    padding: clamp(24px, 3vw, 30px);
}
.teacher-dashboard-portal__modal-dialog--logout .teacher-dashboard-portal__modal-title {
    font-size: clamp(24px, 2.2vw, 30px);
    margin-bottom: 10px;
}
.teacher-dashboard-portal__modal-dialog--logout .teacher-dashboard-portal__modal-copy {
    margin-bottom: 22px;
}
.teacher-dashboard-portal__modal-dialog--logout .teacher-dashboard-portal__modal-actions {
    margin-top: 24px;
}
.teacher-dashboard-portal__modal-dialog--logout .teacher-dashboard-portal__modal-actions .teacher-dashboard-portal__submit,
.teacher-dashboard-portal__modal-dialog--logout .teacher-dashboard-portal__modal-actions .teacher-dashboard-portal__ghost-button {
    min-width: 132px;
    min-height: 44px;
}
.teacher-dashboard-portal__modal-title {
    margin: 0 0 14px;
    color: var(--ja-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
}
.teacher-dashboard-portal__modal-copy {
    max-width: 620px;
    margin: 0 0 30px;
    color: var(--ja-muted);
    font-size: 16px;
    line-height: 1.58;
}
.teacher-dashboard-portal__modal-close {
    top: 26px;
    right: 28px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ja-navy);
    font-size: 34px;
    line-height: 38px;
    transition: background-color 0.18s ease, color 0.18s ease;
}
.teacher-dashboard-portal__modal-close:hover {
    color: #fff;
    background: var(--ja-purple);
}
.teacher-dashboard-portal__modal-form .teacher-dashboard-portal__grid,
#teacher-dashboard-student-user-form .teacher-dashboard-portal__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.teacher-dashboard-portal__modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 44px;
}
.teacher-dashboard-portal__modal-actions .teacher-dashboard-portal__submit,
.teacher-dashboard-portal__modal-actions .teacher-dashboard-portal__ghost-button {
    min-width: 164px;
    min-height: 52px;
}
.teacher-dashboard-portal__success-backdrop {
    background: rgba(13, 18, 47, 0.58);
    backdrop-filter: blur(3px);
}
.teacher-dashboard-portal__success-dialog {
    border: 1px solid rgba(14, 24, 72, 0.16);
    border-radius: 20px;
    background: var(--ja-paper);
    box-shadow: 0 30px 80px rgba(13, 18, 47, 0.22);
}
.teacher-dashboard-portal__success-title {
    color: var(--ja-navy);
    font-family: Georgia, "Times New Roman", serif;
}
.teacher-dashboard-portal__success-badge {
    background: var(--ja-purple-soft);
    color: var(--ja-purple-dark);
}
.teacher-dashboard-portal__participant-pagination,
.teacher-dashboard-portal__participant-pagination.nav-links {
    display: none;
    width: 100%;
    margin: 24px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(14, 24, 72, 0.12);
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.teacher-dashboard-portal__participant-pagination.is-active,
.teacher-dashboard-portal__participant-pagination.nav-links.is-active {
    display: flex;
}
.teacher-dashboard-portal__participant-pagination .page-numbers,
.teacher-dashboard-portal__participant-pagination.nav-links .page-numbers,
.teacher-dashboard-portal__pagination-button {
    min-width: 36px;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--ja-navy);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    cursor: pointer;
}
.teacher-dashboard-portal__participant-pagination .page-numbers:hover:not(:disabled),
.teacher-dashboard-portal__participant-pagination.nav-links .page-numbers:hover:not(:disabled),
.teacher-dashboard-portal__pagination-button:hover:not(:disabled) {
    background: var(--ja-purple-soft);
    color: var(--ja-purple-dark);
    text-decoration: none;
}
.teacher-dashboard-portal__participant-pagination .page-numbers.current,
.teacher-dashboard-portal__participant-pagination .page-numbers.is-active,
.teacher-dashboard-portal__participant-pagination.nav-links .page-numbers.current,
.teacher-dashboard-portal__participant-pagination.nav-links .page-numbers.is-active,
.teacher-dashboard-portal__pagination-button.is-active {
    background: linear-gradient(180deg, #8964fb 0%, var(--ja-purple-dark) 100%);
    border-color: var(--ja-purple-dark);
    color: #fff;
    box-shadow: 0 8px 18px rgba(92, 61, 215, 0.20);
}
.teacher-dashboard-portal__participant-pagination.nav-links .page-numbers.prev,
.teacher-dashboard-portal__participant-pagination .page-numbers.prev {
    margin-right: auto;
}
.teacher-dashboard-portal__participant-pagination.nav-links .page-numbers.next,
.teacher-dashboard-portal__participant-pagination .page-numbers.next {
    margin-left: auto;
}
.teacher-dashboard-portal__participant-card,
.teacher-dashboard-portal__entry {
    border: 1px solid rgba(14, 24, 72, 0.12);
    border-radius: 14px;
    background: rgba(255, 253, 249, 0.92);
    box-shadow: var(--ja-shadow-soft);
}
.teacher-dashboard-portal__participant-title,
.teacher-dashboard-portal__entry-title {
    color: var(--ja-navy);
    font-family: Georgia, "Times New Roman", serif;
}
.teacher-dashboard-portal__empty,
.teacher-dashboard-portal__students-empty,
.teacher-dashboard-portal__competition-empty {
    color: var(--ja-muted);
}
.teacher-dashboard-portal__notice:empty,
.teacher-dashboard-portal__single-notice:empty {
    display: none;
}
@media (max-width: 1180px) {
    .teacher-dashboard-portal {
        width: min(100% - 32px, 980px);
        margin-top: 28px;
    }
    .teacher-dashboard-portal__layout,
    .teacher-dashboard-portal__bulk-layout {
        grid-template-columns: 1fr;
    }
    .teacher-dashboard-portal__sidebar {
        position: static;
        min-height: 0;
    }
    .teacher-dashboard-portal__nav-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .teacher-dashboard-portal__sidebar-card {
        display: none;
    }
    .teacher-dashboard-portal__modal-form .teacher-dashboard-portal__grid,
    #teacher-dashboard-student-user-form .teacher-dashboard-portal__grid,
    .teacher-dashboard-portal__competition-add-form .teacher-dashboard-portal__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .teacher-dashboard-portal__stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .teacher-dashboard-portal {
        width: min(100% - 18px, 100%);
        margin: 18px auto 64px;
    }
    .teacher-dashboard-portal__hero-banner {
        min-height: auto;
    }
    .teacher-dashboard-portal__hero-content {
        padding: 24px 18px;
    }
    .teacher-dashboard-portal__panel,
    .teacher-dashboard-portal__sidebar {
        padding: 16px;
        border-radius: 14px;
    }
    .teacher-dashboard-portal__nav-list,
    .teacher-dashboard-portal__modal-form .teacher-dashboard-portal__grid,
    #teacher-dashboard-student-user-form .teacher-dashboard-portal__grid,
    .teacher-dashboard-portal__competition-add-form .teacher-dashboard-portal__grid,
    .teacher-dashboard-portal__stat-grid {
        grid-template-columns: 1fr;
    }
    .teacher-dashboard-portal__students-header,
    .teacher-dashboard-portal__participants-header,
    .teacher-dashboard-portal__students-toolbar,
    .teacher-dashboard-portal__competitions-toolbar,
    .teacher-dashboard-portal__participants-toolbar,
    .teacher-dashboard-portal__modal-actions,
    .teacher-dashboard-portal__welcome-card {
        align-items: stretch;
        flex-direction: column;
    }
    .teacher-dashboard-portal__submit,
    .teacher-dashboard-portal__students-header .teacher-dashboard-portal__submit,
    .teacher-dashboard-portal__action-button,
    .teacher-dashboard-portal__ghost-button,
    .teacher-dashboard-portal__all-participants-link {
        width: 100%;
    }
    .teacher-dashboard-portal__modal-dialog,
    .teacher-dashboard-portal__modal-dialog--compact {
        width: min(calc(100% - 20px), 100%);
        max-height: calc(100dvh - 24px);
        margin: 12px auto;
        padding: 28px 18px;
        border-radius: 18px;
    }
    .teacher-dashboard-portal__modal-actions .teacher-dashboard-portal__submit,
    .teacher-dashboard-portal__modal-actions .teacher-dashboard-portal__ghost-button {
        min-width: 0;
    }
}

/* Teacher dashboard screenshot refinement v6. Presentation only. */
body:has(.teacher-dashboard-portal) {
    background:
        radial-gradient(circle at 1px 1px, rgba(246, 165, 101, 0.32) 1.3px, transparent 1.9px) right -46px top 132px / 12px 12px no-repeat,
        radial-gradient(circle at 1px 1px, rgba(246, 165, 101, 0.28) 1.35px, transparent 1.9px) left -50px bottom 72px / 13px 13px no-repeat,
        radial-gradient(ellipse at 70% 17%, rgba(255, 199, 168, 0.46), transparent 18%),
        linear-gradient(180deg, #fff8f1 0%, #fffdf9 48%, #fff7ef 100%);
    color: #0a1546;
}

.teacher-dashboard-portal {
    --ja-cream: #fff8f1;
    --ja-paper: #fffdfa;
    --ja-navy: #0a1546;
    --ja-ink: #17244d;
    --ja-muted: #66718b;
    --ja-purple: #7047ec;
    --ja-purple-dark: #5832d6;
    --ja-purple-soft: #f1eaff;
    --ja-border: rgba(14, 24, 72, 0.13);
    --ja-shadow: 0 24px 70px rgba(18, 24, 65, 0.10);
    --ja-shadow-soft: 0 14px 38px rgba(18, 24, 65, 0.07);
    width: min(1488px, calc(100vw - 96px));
    margin: 26px auto 96px;
}

.teacher-dashboard-portal__hero-banner {
    min-height: 182px;
    margin: 0 0 22px;
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(circle at 60.5% 52%, rgba(252, 150, 83, 0.46) 0 7px, transparent 7.5px),
        radial-gradient(circle at 58.6% 61%, rgba(252, 150, 83, 0.34) 0 4px, transparent 4.5px),
        radial-gradient(circle at 1px 1px, rgba(246, 165, 101, 0.32) 1.35px, transparent 1.9px) right -5px top 2px / 12px 12px no-repeat,
        radial-gradient(ellipse at 71% 55%, rgba(255, 198, 170, 0.52), transparent 18%),
        linear-gradient(114deg, transparent 0 61%, rgba(84, 52, 35, 0.62) 61.1% 62.1%, transparent 62.4%) right 118px center / 500px 170px no-repeat;
    box-shadow: none;
    overflow: visible;
}

.teacher-dashboard-portal__hero-banner::before {
    content: "";
    position: absolute;
    right: 146px;
    top: 42px;
    width: 170px;
    height: 110px;
    border-radius: 48% 52% 52% 48%;
    opacity: 0.55;
    background:
        radial-gradient(circle at 24% 58%, #d18a9b 0 9px, transparent 9.5px),
        radial-gradient(circle at 43% 46%, #e7b54d 0 8px, transparent 8.5px),
        radial-gradient(circle at 55% 64%, #6aa7b4 0 8px, transparent 8.5px),
        radial-gradient(circle at 37% 72%, #a78bd2 0 7px, transparent 7.5px),
        radial-gradient(ellipse at 50% 52%, rgba(255, 237, 196, 0.72), transparent 58%);
    border: 2px solid rgba(96, 72, 46, 0.42);
    transform: rotate(-13deg);
}

.teacher-dashboard-portal__hero-banner::after {
    right: 44px;
    bottom: 22px;
    width: 180px;
    height: 92px;
    opacity: 0.36;
    border-right: 2px solid rgba(88, 103, 72, 0.62);
    border-bottom: 1px solid rgba(88, 103, 72, 0.38);
    border-radius: 0 0 90% 0;
    transform: rotate(-21deg);
}

.teacher-dashboard-portal__hero-content {
    padding: 34px 0 0;
}

.teacher-dashboard-portal__hero-content h2 {
    color: var(--ja-navy);
    font-size: clamp(48px, 4.6vw, 72px);
    letter-spacing: -0.05em;
}

.teacher-dashboard-portal__hero-content p {
    color: #5f6b86;
    font-size: 17px;
    line-height: 1.55;
}

.teacher-dashboard-portal__layout {
    grid-template-columns: 272px minmax(0, 1fr);
    gap: 16px;
}

.teacher-dashboard-portal__sidebar,
.teacher-dashboard-portal__panel {
    border: 1px solid rgba(14, 24, 72, 0.12);
    background: rgba(255, 253, 249, 0.94);
    box-shadow: var(--ja-shadow);
}

.teacher-dashboard-portal__sidebar {
    min-height: 602px;
    padding: 18px 16px;
    border-radius: 12px;
}

.teacher-dashboard-portal__sidebar::before {
    left: -78px;
    bottom: -88px;
    width: 285px;
    height: 285px;
    opacity: 0.62;
    background:
        radial-gradient(circle at 1px 1px, rgba(246, 165, 101, 0.42) 1.45px, transparent 1.95px) 0 0 / 11px 11px,
        radial-gradient(ellipse at 58% 46%, rgba(255, 215, 189, 0.42), transparent 58%);
}

.teacher-dashboard-portal__sidebar::after {
    left: 22px;
    bottom: 56px;
    width: 138px;
    height: 182px;
    opacity: 0.30;
}

.teacher-dashboard-portal__nav-list {
    gap: 11px;
}

.teacher-dashboard-portal__nav-link {
    min-height: 52px;
    padding: 12px 14px 12px 52px;
    border-radius: 8px;
    color: var(--ja-ink);
    font-size: 15px;
    font-weight: 600;
}

.teacher-dashboard-portal__nav-link::before {
    left: 18px;
    width: 17px;
    height: 17px;
}

.teacher-dashboard-portal__nav-item.is-active .teacher-dashboard-portal__nav-link,
.teacher-dashboard-portal__nav-link.is-active {
    color: var(--ja-purple-dark);
    background: linear-gradient(90deg, rgba(112, 71, 236, 0.15), rgba(241, 234, 255, 0.86));
    border-color: rgba(112, 71, 236, 0.14);
    box-shadow: inset 4px 0 0 var(--ja-purple);
}

.teacher-dashboard-portal__sidebar-card {
    margin-top: 116px;
    padding: 116px 16px 18px;
    border-color: rgba(14, 24, 72, 0.10);
    background: rgba(255, 253, 249, 0.74);
}

.teacher-dashboard-portal__panel {
    border-radius: 12px;
    padding: 26px;
}

.teacher-dashboard-portal__welcome-card {
    min-height: 96px;
    margin: 0 0 22px;
    padding: 18px 58px 18px 24px;
    border-radius: 10px;
    background:
        linear-gradient(132deg, transparent 0 74%, rgba(96, 120, 80, 0.22) 74.3% 75.4%, transparent 75.8%) right 70px center / 210px 90px no-repeat,
        radial-gradient(ellipse at 93% 51%, rgba(188, 202, 151, 0.25), transparent 17%),
        linear-gradient(90deg, rgba(246, 240, 255, 0.78), rgba(255, 253, 249, 0.95));
    box-shadow: 0 12px 28px rgba(18, 24, 65, 0.05);
}

.teacher-dashboard-portal__welcome-card::after {
    top: 16px;
    right: 22px;
    color: var(--ja-navy);
    font-family: Arial, sans-serif;
    font-size: 30px;
    font-weight: 300;
}

.teacher-dashboard-portal__welcome-icon {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
}

.teacher-dashboard-portal__welcome-card h3 {
    color: var(--ja-navy);
    font-size: 22px;
}

.teacher-dashboard-portal__welcome-card p {
    color: #5f6b86;
    font-size: 15px;
}

.teacher-dashboard-portal__stat-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 26px;
}

.teacher-dashboard-portal__stat-card {
    min-height: 88px;
    padding: 18px 16px 16px 78px;
    border-radius: 10px;
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 10px 25px rgba(18, 24, 65, 0.035);
}

.teacher-dashboard-portal__stat-icon {
    left: 17px;
    width: 48px;
    height: 48px;
}

.teacher-dashboard-portal__stat-card--participants .teacher-dashboard-portal__stat-icon { background: #efe6ff; }
.teacher-dashboard-portal__stat-card--assigned .teacher-dashboard-portal__stat-icon { background: #e7f7ec; }
.teacher-dashboard-portal__stat-card--competitions .teacher-dashboard-portal__stat-icon { background: #fff0e6; }
.teacher-dashboard-portal__stat-card--entries .teacher-dashboard-portal__stat-icon { background: #fff2d8; }
.teacher-dashboard-portal__stat-card--deadlines .teacher-dashboard-portal__stat-icon { background: #e9f4ff; }

.teacher-dashboard-portal__stat-value {
    color: var(--ja-navy);
    font-size: 30px;
}

.teacher-dashboard-portal__stat-label {
    color: #5f6b86;
    font-size: 10px;
}

.teacher-dashboard-portal__stat-icon {
    display: grid;
    place-items: center;
    color: #7148f4;
    overflow: hidden;
}

.teacher-dashboard-portal__stat-icon::before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background-color: currentColor;
    mask: var(--teacher-stat-icon) center / contain no-repeat;
    -webkit-mask: var(--teacher-stat-icon) center / contain no-repeat;
}

.teacher-dashboard-portal__stat-card--participants .teacher-dashboard-portal__stat-icon {
    color: #7347ec;
    background: #efe6ff;
}

.teacher-dashboard-portal__stat-card--participants {
    --teacher-stat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.teacher-dashboard-portal__stat-card--assigned .teacher-dashboard-portal__stat-icon {
    color: #15823b;
    background: #e4f6ea;
}

.teacher-dashboard-portal__stat-card--assigned {
    --teacher-stat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8'/%3E%3Cpath d='M12 17v4'/%3E%3Cpath d='M7 4h10v4a5 5 0 0 1-10 0V4Z'/%3E%3Cpath d='M17 6h2a2 2 0 0 1-2 4'/%3E%3Cpath d='M7 6H5a2 2 0 0 0 2 4'/%3E%3C/svg%3E");
}

.teacher-dashboard-portal__stat-card--competitions .teacher-dashboard-portal__stat-icon {
    color: #e06b2d;
    background: #fff0e6;
}

.teacher-dashboard-portal__stat-card--competitions {
    --teacher-stat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='13.5' cy='6.5' r='2.5'/%3E%3Ccircle cx='8' cy='13' r='2.5'/%3E%3Ccircle cx='16' cy='15' r='2.5'/%3E%3Cpath d='M7.5 5.5c-2.8 1.4-4.5 4-4.5 7A8.5 8.5 0 0 0 11.5 21H13c.8 0 1.3-.9.8-1.6l-.3-.4c-.5-.8 0-1.8.9-1.9'/%3E%3C/svg%3E");
}

.teacher-dashboard-portal__stat-card--entries .teacher-dashboard-portal__stat-icon {
    color: #f2a20d;
    background: #fff2d8;
}

.teacher-dashboard-portal__stat-card--entries {
    --teacher-stat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E");
}

.teacher-dashboard-portal__stat-card--anthology .teacher-dashboard-portal__stat-icon {
    color: #1675d1;
    background: #e6f3ff;
}

.teacher-dashboard-portal__stat-card--anthology {
    --teacher-stat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z'/%3E%3Cpath d='M9 7h7'/%3E%3Cpath d='M9 11h7'/%3E%3Cpath d='M9 15h4'/%3E%3C/svg%3E");
}

.teacher-dashboard-portal__section-title {
    color: var(--ja-navy);
    font-size: clamp(28px, 2.2vw, 38px);
    letter-spacing: -0.04em;
}

.teacher-dashboard-portal__section-copy {
    color: #5f6b86;
}

.teacher-dashboard-portal__students-header,
.teacher-dashboard-portal__participants-header {
    margin: 0 0 18px;
}

.teacher-dashboard-portal__students-header .teacher-dashboard-portal__submit {
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 8px;
}

.teacher-dashboard-portal__students-toolbar,
.teacher-dashboard-portal__participants-toolbar,
.teacher-dashboard-portal__competitions-toolbar {
    gap: 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.teacher-dashboard-portal__students-toolbar input[type="search"],
.teacher-dashboard-portal__participants-toolbar input[type="search"],
.teacher-dashboard-portal__competition-search-field input[type="search"] {
    min-height: 52px;
    border-color: rgba(14, 24, 72, 0.30);
    border-radius: 8px;
    background: #fff;
    color: var(--ja-ink);
    font-size: 14px;
}

.teacher-dashboard-portal__table-wrap {
    border-color: rgba(14, 24, 72, 0.11);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 35px rgba(18, 24, 65, 0.055);
}

.teacher-dashboard-portal__students-table thead th {
    padding: 13px 16px;
    background: linear-gradient(180deg, #fbf9ff 0%, #f4efff 100%);
    color: var(--ja-navy);
    font-size: 13px;
}

.teacher-dashboard-portal__students-table td {
    padding: 15px 16px;
    color: var(--ja-ink);
    font-size: 14px;
}

.teacher-dashboard-portal__students-table td strong,
.teacher-dashboard-portal__students-table th {
    color: var(--ja-navy);
}

.teacher-dashboard-portal__students-table tbody tr:hover td {
    background: rgba(255, 249, 242, 0.72);
}

.teacher-dashboard-portal__action-button,
.teacher-dashboard-portal__all-participants-link,
.teacher-dashboard-portal__ghost-button {
    min-height: 38px;
    padding: 9px 17px;
    border-radius: 7px;
    color: var(--ja-purple-dark);
    border-color: var(--ja-purple);
    background: #fff;
}

.teacher-dashboard-portal__submit,
.teacher-dashboard-portal__success-button,
.teacher-dashboard-portal__students-header .teacher-dashboard-portal__submit {
    border-color: var(--ja-purple);
    background: linear-gradient(180deg, #805cf4 0%, #663fe7 100%);
    color: #fff;
    box-shadow: 0 15px 30px rgba(92, 61, 215, 0.24);
}

.teacher-dashboard-portal__participant-pagination,
.teacher-dashboard-portal__participant-pagination.nav-links {
    border-top: 0;
    margin-top: 22px;
    padding-top: 0;
}

.teacher-dashboard-portal__participant-pagination .page-numbers,
.teacher-dashboard-portal__participant-pagination.nav-links .page-numbers,
.teacher-dashboard-portal__pagination-button {
    border-radius: 7px;
}

.teacher-dashboard-portal__participant-pagination .page-numbers.current,
.teacher-dashboard-portal__participant-pagination .page-numbers.is-active,
.teacher-dashboard-portal__participant-pagination.nav-links .page-numbers.current,
.teacher-dashboard-portal__participant-pagination.nav-links .page-numbers.is-active,
.teacher-dashboard-portal__pagination-button.is-active {
    background: linear-gradient(180deg, #805cf4 0%, #663fe7 100%);
}

.teacher-dashboard-portal__bulk-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
}

.teacher-dashboard-portal__bulk-form {
    border-radius: 12px;
    border-color: rgba(112, 71, 236, 0.58);
    background:
        radial-gradient(circle at 50% 18%, rgba(112, 71, 236, 0.08), transparent 23%),
        linear-gradient(180deg, rgba(255, 253, 249, 0.94), rgba(255, 248, 241, 0.94));
}

.teacher-dashboard-portal__bulk-requirements {
    border-radius: 12px;
    background: rgba(255, 253, 249, 0.92);
}

.teacher-dashboard-portal__competition-list tbody tr:first-child td {
    border-top-color: var(--ja-purple);
    border-bottom-color: var(--ja-purple);
    background: rgba(246, 240, 255, 0.58);
}

.teacher-dashboard-portal__modal {
    padding: 0;
}

.teacher-dashboard-portal__modal-backdrop {
    background: rgba(11, 16, 45, 0.70);
    backdrop-filter: blur(3px);
}

.teacher-dashboard-portal__modal-dialog {
    width: min(calc(100% - 48px), 860px);
    max-height: min(650px, calc(100dvh - 56px));
    margin: max(22px, calc((100dvh - min(650px, calc(100dvh - 56px))) / 2)) auto;
    padding: clamp(36px, 4vw, 56px);
    border-radius: 18px;
    background:
        radial-gradient(circle at 1px 1px, rgba(246, 165, 101, 0.34) 1.35px, transparent 1.85px) left 14px bottom 13px / 11px 11px no-repeat,
        radial-gradient(ellipse at 86% 13%, rgba(255, 198, 178, 0.56), transparent 27%),
        linear-gradient(180deg, #fffdfa 0%, #fff8f1 100%);
}

.teacher-dashboard-portal__modal-dialog--compact {
    width: min(calc(100% - 48px), 620px);
}

.teacher-dashboard-portal__modal-title {
    color: var(--ja-navy);
    font-size: clamp(30px, 3vw, 42px);
}

.teacher-dashboard-portal__modal-copy {
    color: #5f6b86;
    max-width: 610px;
}

.teacher-dashboard-portal__modal-close {
    top: 24px;
    right: 24px;
    color: var(--ja-navy);
}

#teacher-dashboard-student-user-form .teacher-dashboard-portal__grid,
.teacher-dashboard-portal__modal-form .teacher-dashboard-portal__grid--single {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.teacher-dashboard-portal__modal-actions {
    margin-top: 42px;
}

.teacher-dashboard-portal__field input,
.teacher-dashboard-portal__field select,
.teacher-dashboard-portal__field textarea {
    border-radius: 8px;
    color: var(--ja-ink);
}

@media (max-width: 1220px) {
    .teacher-dashboard-portal {
        width: min(100% - 36px, 1040px);
    }
    .teacher-dashboard-portal__layout,
    .teacher-dashboard-portal__bulk-layout {
        grid-template-columns: 1fr;
    }
    .teacher-dashboard-portal__sidebar {
        position: relative;
        min-height: 0;
    }
    .teacher-dashboard-portal__stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .teacher-dashboard-portal {
        width: min(100% - 18px, 100%);
        margin-top: 16px;
    }
    .teacher-dashboard-portal__hero-banner {
        min-height: 142px;
        background-position: right -80px center, right -80px center, right -40px top, right -70px center, right -96px center;
    }
    .teacher-dashboard-portal__hero-content h2 {
        font-size: 40px;
    }
    .teacher-dashboard-portal__panel,
    .teacher-dashboard-portal__sidebar {
        padding: 16px;
    }
    .teacher-dashboard-portal__stat-grid,
    #teacher-dashboard-student-user-form .teacher-dashboard-portal__grid,
    .teacher-dashboard-portal__modal-form .teacher-dashboard-portal__grid--single,
    .teacher-dashboard-portal__modal-form .teacher-dashboard-portal__grid {
        grid-template-columns: 1fr;
    }
    .teacher-dashboard-portal__modal-dialog,
    .teacher-dashboard-portal__modal-dialog--compact {
        width: min(calc(100% - 20px), 100%);
        max-height: calc(100dvh - 24px);
        margin: 12px auto;
        padding: 30px 18px;
    }
}

/* Align the custom teacher dashboard title section. */
.teacher-dashboard-portal__hero-banner {
    display: grid;
    align-items: center;
    min-height: 168px;
    margin: 0 0 26px;
    padding: 0 clamp(18px, 3vw, 34px);
    background-position: right 32px center, right 22px center, right top, right center, right 98px center;
}

.teacher-dashboard-portal__hero-content {
    width: min(620px, 100%);
    padding: 0;
}

.teacher-dashboard-portal__hero-content h2 {
    margin: 0 0 10px;
    font-size: clamp(42px, 4.2vw, 64px);
    line-height: 1.02;
}

.teacher-dashboard-portal__hero-content p {
    max-width: 560px;
    margin: 0;
}

.teacher-dashboard-portal__hero-banner::before {
    right: clamp(170px, 17vw, 260px);
    top: 30px;
}

.teacher-dashboard-portal__hero-banner::after {
    right: clamp(32px, 5vw, 72px);
    bottom: 24px;
}

@media (max-width: 900px) {
    .teacher-dashboard-portal__hero-banner {
        min-height: 150px;
        padding: 0 20px;
        background-position: right -90px center, right -120px center, right top, right -80px center, right -70px center;
    }
    .teacher-dashboard-portal__hero-content h2 {
        font-size: clamp(36px, 8vw, 48px);
    }
}

@media (max-width: 600px) {
    .teacher-dashboard-portal__hero-banner {
        min-height: 132px;
        margin-bottom: 18px;
        background:
            linear-gradient(90deg, rgba(255, 248, 241, 0.96), rgba(255, 248, 241, 0.72)),
            radial-gradient(ellipse at right center, rgba(255, 198, 170, 0.36), transparent 42%);
    }
    .teacher-dashboard-portal__hero-banner::before,
    .teacher-dashboard-portal__hero-banner::after {
        display: none;
    }
}


/* Add spacing so the custom teacher dashboard title section stays visible. */
.teacher-dashboard-portal__hero-banner {
    margin-top: 110px;
}

@media (max-width: 900px) {
    .teacher-dashboard-portal__hero-banner {
        margin-top: 70px;
    }
}

/* Match welcome card reference and remove decorative X. */
.teacher-dashboard-portal__welcome-card {
    min-height: 94px;
    margin: 0 0 22px;
    padding: 18px 28px 18px 24px;
    gap: 22px;
    border-radius: 10px;
    background:
        linear-gradient(132deg, transparent 0 78%, rgba(96, 120, 80, 0.22) 78.3% 79.2%, transparent 79.6%) right 84px center / 190px 86px no-repeat,
        radial-gradient(ellipse at 93% 52%, rgba(189, 202, 151, 0.22), transparent 16%),
        linear-gradient(90deg, rgba(246, 240, 255, 0.76), rgba(255, 253, 249, 0.95));
}

.teacher-dashboard-portal__welcome-card::after {
    content: none !important;
    display: none !important;
}

.teacher-dashboard-portal__welcome-icon {
    width: 70px;
    height: 70px;
}

.teacher-dashboard-portal__welcome-card h3 {
    margin-bottom: 6px;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.teacher-dashboard-portal__welcome-card p {
    font-size: 15px;
    line-height: 1.45;
}

/* Let teacher portal modals scroll naturally without locking the page. */
body:has(.teacher-portal__modal.is-open),
body:has(.teacher-dashboard-portal__modal.is-open) {
    overflow: auto !important;
}

.teacher-portal__modal.is-open,
.teacher-dashboard-portal__modal.is-open {
    position: fixed;
    inset: 0;
    display: block !important;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 32px 16px;
    box-sizing: border-box;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.teacher-portal__modal-dialog,
.teacher-dashboard-portal__modal-dialog,
.teacher-dashboard-portal__modal-dialog--compact {
    max-height: none !important;
    margin: 0 auto !important;
    overflow: visible !important;
}

.teacher-portal__modal-backdrop,
.teacher-dashboard-portal__modal-backdrop {
    position: fixed;
    inset: 0;
}

.teacher-portal__modal-dialog,
.teacher-dashboard-portal__modal-dialog {
    position: relative;
    z-index: 1;
}

@media (max-width: 760px) {
    .teacher-portal__modal.is-open,
    .teacher-dashboard-portal__modal.is-open {
        padding: 14px 10px 28px;
    }
}

/* Teacher dashboard design refinements requested 2026-06-05. */
.teacher-dashboard-portal {
    --ja-cream: #fff8f1;
    --ja-paper: #fffdf9;
    --ja-navy: #101746;
    --ja-muted: #65708d;
    --ja-lavender: #7c4df2;
    --ja-lavender-soft: #f3ecff;
    --ja-border-soft: rgba(124, 77, 242, 0.18);
    --ja-shadow-card: 0 18px 46px rgba(16, 23, 70, 0.10);
    color: var(--ja-navy);
    background: var(--teacher-panel, var(--ja-cream));
}

.teacher-dashboard-portal__hero-banner {
    min-height: 190px;
    margin-top: 110px;
    margin-bottom: 32px;
    padding: 44px 52px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    overflow: hidden;
}

.teacher-dashboard-portal__hero-banner::before,
.teacher-dashboard-portal__hero-banner::after {
    content: none !important;
}

.teacher-dashboard-portal__hero-content {
    max-width: 620px;
}

.teacher-dashboard-portal__hero-content h2 {
    margin: 0 0 10px;
    color: var(--ja-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.teacher-dashboard-portal__hero-content p {
    margin: 0;
    color: var(--ja-muted);
    font-size: clamp(16px, 1.45vw, 22px);
    line-height: 1.5;
}

.teacher-dashboard-portal__layout {
    align-items: start;
    gap: 28px;
}

.teacher-dashboard-portal__sidebar {
    border-color: rgba(16, 23, 70, 0.12);
    border-radius: 18px;
    background-color: rgba(255, 253, 249, 0.86);
    background-image:
        linear-gradient(180deg, rgba(255, 253, 249, 0.94), rgba(255, 248, 241, 0.84)),
        radial-gradient(circle at 6px 6px, rgba(244, 157, 96, 0.24) 0 2px, transparent 2.5px);
    background-size: auto, 18px 18px;
    background-position: center, left bottom;
    box-shadow: var(--ja-shadow-card);
}

.teacher-dashboard-portal__nav-link {
    border-radius: 10px;
    color: var(--ja-navy);
    font-weight: 700;
}

.teacher-dashboard-portal__nav-link.is-active,
.teacher-dashboard-portal__nav-item.is-active .teacher-dashboard-portal__nav-link {
    border-color: var(--ja-border-soft);
    background: var(--ja-lavender-soft);
    color: var(--ja-lavender);
    box-shadow: inset 4px 0 0 var(--ja-lavender);
}

.teacher-dashboard-portal__sidebar-card {
    min-height: 228px;
    padding: 132px 20px 22px;
    border: 1px solid rgba(16, 23, 70, 0.12);
    border-radius: 14px;
    background-color: rgba(255, 253, 249, 0.82);
    background-image: linear-gradient(180deg, var(--teacher-card, rgba(255, 253, 249, 0.82)), var(--teacher-panel, rgba(255, 248, 241, 0.92)));
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto;
    box-shadow: 0 14px 30px rgba(16, 23, 70, 0.08);
}

.teacher-dashboard-portal__sidebar-art {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    margin: -92px auto 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--teacher-border, rgba(124, 77, 242, 0.18));
    overflow: hidden;
}

.teacher-dashboard-portal__sidebar-art img {
    display: block;
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.teacher-dashboard-portal__sidebar-card h3 {
    margin: 0 0 8px;
    color: var(--ja-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    line-height: 1.08;
}

.teacher-dashboard-portal__sidebar-card p {
    margin: 0;
    color: var(--ja-muted);
    font-size: 14px;
    line-height: 1.55;
}

.teacher-dashboard-portal__panel {
    border-color: rgba(16, 23, 70, 0.12);
    border-radius: 18px;
    background: rgba(255, 253, 249, 0.94);
    box-shadow: var(--ja-shadow-card);
}

.teacher-dashboard-portal__welcome-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 80px;
    margin-bottom: 24px;
    padding: 14px 68px 14px 22px;
    border: 1px solid #e9ddff;
    border-radius: 9px;
    background:
        linear-gradient(90deg, rgba(247, 241, 255, 0.96) 0%, rgba(255, 253, 249, 0.98) 46%, rgba(247, 241, 255, 0.84) 100%),
        radial-gradient(circle at 86% 42%, rgba(117, 139, 91, 0.20) 0 3px, transparent 3.5px);
    box-shadow: none;
    overflow: hidden;
}

.teacher-dashboard-portal__welcome-card::before {
    content: "";
    position: absolute;
    top: 16px;
    right: 98px;
    width: 120px;
    height: 48px;
    opacity: 0.55;
    background:
        linear-gradient(135deg, transparent 0 44%, rgba(117, 139, 91, 0.42) 45% 48%, transparent 49%),
        radial-gradient(ellipse at 88% 22%, rgba(117, 139, 91, 0.36) 0 9px, transparent 10px),
        radial-gradient(ellipse at 72% 42%, rgba(117, 139, 91, 0.30) 0 8px, transparent 9px),
        radial-gradient(ellipse at 58% 62%, rgba(117, 139, 91, 0.24) 0 7px, transparent 8px);
    background-repeat: no-repeat;
    pointer-events: none;
}

.teacher-dashboard-portal__welcome-card::after {
    content: none !important;
    display: none !important;
}

.teacher-dashboard-portal__welcome-icon {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    box-shadow: none;
}

.teacher-dashboard-portal__welcome-card h3 {
    margin: 0 0 4px;
    color: var(--ja-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(20px, 1.7vw, 26px);
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.teacher-dashboard-portal__welcome-card p {
    margin: 0;
    color: var(--ja-muted);
    font-size: 15px;
    line-height: 1.45;
}

.teacher-dashboard-portal__after-stats-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin: 4px 0 28px;
}

.teacher-dashboard-portal__after-stats-actions .teacher-dashboard-portal__submit,
.teacher-dashboard-portal__after-stats-actions .teacher-dashboard-portal__guide-button {
    min-width: 210px;
    min-height: 52px;
    border-radius: 10px;
    box-shadow: 0 16px 36px rgba(124, 77, 242, 0.22);
}

.teacher-dashboard-portal__ajax-popup .teacher-dashboard-portal__success-dialog {
    max-width: 460px;
    text-align: center;
}

.teacher-dashboard-portal__ajax-popup--error .teacher-dashboard-portal__success-badge {
    background: #fff1f1;
    color: #b42318;
}

@media (max-width: 900px) {
    .teacher-dashboard-portal__hero-banner {
        min-height: 150px;
        margin-top: 70px;
        padding: 30px 24px;
        background-size: 80% 100%, auto 100%;
    }

    .teacher-dashboard-portal__after-stats-actions {
        justify-content: stretch;
        flex-direction: column;
    }

    .teacher-dashboard-portal__after-stats-actions .teacher-dashboard-portal__submit,
    .teacher-dashboard-portal__after-stats-actions .teacher-dashboard-portal__guide-button {
        width: 100%;
    }

    .teacher-dashboard-portal__welcome-card {
        padding-right: 48px;
    }

    .teacher-dashboard-portal__welcome-card::before {
        display: none;
    }
}


/* Theme-driven dashboard backgrounds. */
.teacher-dashboard-portal {
    background: var(--teacher-panel, var(--ja-cream));
}

.teacher-dashboard-portal__hero-banner {
    background: transparent;
}

.teacher-dashboard-portal__sidebar-card {
    background-image: linear-gradient(180deg, var(--teacher-card, rgba(255, 253, 249, 0.82)), var(--teacher-panel, rgba(255, 248, 241, 0.92)));
}

.teacher-dashboard-portal__welcome-card {
    background-image: linear-gradient(90deg, var(--teacher-accent-soft, rgba(247, 241, 255, 0.80)), var(--teacher-card, rgba(255, 253, 249, 0.94)));
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.teacher-dashboard-portal__welcome-card::after {
    content: none !important;
    display: none !important;
}

/* Alignment and table readability fixes requested 2026-06-05. */
.teacher-dashboard-portal {
    width: min(100% - 48px, 1380px);
    max-width: 1380px;
    margin-left: auto;
    margin-right: auto;
}

.teacher-dashboard-portal__layout {
    grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
}

.teacher-dashboard-portal__panel {
    min-width: 0;
    overflow: visible;
}

.teacher-dashboard-portal__panel-view {
    min-width: 0;
}

.teacher-dashboard-portal__participants-header,
.teacher-dashboard-portal__students-header {
    align-items: center;
    gap: 14px;
}

.teacher-dashboard-portal__section-title,
.teacher-dashboard-portal__section-copy {
    max-width: 780px;
}

.teacher-dashboard-portal__table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.teacher-dashboard-portal__table-wrap .teacher-dashboard-portal__students-table {
    table-layout: auto !important;
    width: 100%;
    min-width: 880px;
    border-collapse: collapse;
}

.teacher-dashboard-portal__participants-list-wrap .teacher-dashboard-portal__students-table,
.teacher-dashboard-portal__panel-view[data-dashboard-view="participants"] .teacher-dashboard-portal__students-table {
    min-width: 1040px;
}

.teacher-dashboard-portal__students-table th,
.teacher-dashboard-portal__students-table td {
    padding: 13px 14px !important;
    color: var(--ja-navy, #101746);
    font-size: 13px !important;
    line-height: 1.45 !important;
    text-align: left;
    vertical-align: middle;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere;
    hyphens: none;
}

.teacher-dashboard-portal__students-table th {
    font-size: 12px !important;
    font-weight: 800;
    line-height: 1.25 !important;
    text-transform: none;
}

.teacher-dashboard-portal__students-table td p,
.teacher-dashboard-portal__students-table td div,
.teacher-dashboard-portal__students-table td span,
.teacher-dashboard-portal__students-table td strong,
.teacher-dashboard-portal__students-table td a {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere;
    hyphens: none;
}

.teacher-dashboard-portal__students-table td:nth-child(1) {
    width: 18%;
    min-width: 150px;
}

.teacher-dashboard-portal__students-table td:nth-child(2) {
    width: 24%;
    min-width: 210px;
}

.teacher-dashboard-portal__students-table td:nth-child(3) {
    width: 24%;
    min-width: 210px;
}

.teacher-dashboard-portal__students-table td:nth-child(4) {
    width: 16%;
    min-width: 150px;
}

.teacher-dashboard-portal__students-table td:nth-child(5) {
    width: 110px;
    min-width: 100px;
    text-align: center;
}

.teacher-dashboard-portal__students-table th:last-child,
.teacher-dashboard-portal__students-table td:last-child {
    text-align: center;
    white-space: nowrap !important;
    overflow-wrap: normal;
}

.teacher-dashboard-portal__participant-card,
.teacher-dashboard-portal__entry {
    font-size: 13px;
    line-height: 1.45;
}

.teacher-dashboard-portal__action-button,
.teacher-dashboard-portal__entry-toggle,
.teacher-dashboard-portal__edit-button,
.teacher-dashboard-portal__remove-button {
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .teacher-dashboard-portal {
        width: min(100% - 28px, 980px);
    }

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

/* Keep teacher dashboard aligned to the public site content column. */
.teacher-dashboard-portal {
    width: min(100% - 32px, 1120px) !important;
    max-width: 1120px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
    overflow: visible;
}

.teacher-dashboard-portal__hero-banner {
    width: min(100% - 32px, 1120px) !important;
    max-width: 1120px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

.teacher-dashboard-portal__layout {
    grid-template-columns: 190px minmax(0, 1fr) !important;
    gap: 18px !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.teacher-dashboard-portal__sidebar,
.teacher-dashboard-portal__panel,
.teacher-dashboard-portal__panel-view,
.teacher-dashboard-portal__table-wrap {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.teacher-dashboard-portal__sidebar {
    padding: 18px 14px !important;
}

.teacher-dashboard-portal__nav-link {
    padding: 12px 12px !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
}

.teacher-dashboard-portal__sidebar-card {
    padding: 112px 14px 18px !important;
    background-size: 100% 100%, 210px auto !important;
}

.teacher-dashboard-portal__sidebar-card h3 {
    font-size: 20px !important;
}

.teacher-dashboard-portal__sidebar-card p {
    font-size: 12px !important;
}

.teacher-dashboard-portal__panel {
    padding: 28px 28px !important;
    overflow: hidden;
}

.teacher-dashboard-portal__competitions-toolbar,
.teacher-dashboard-portal__participants-toolbar,
.teacher-dashboard-portal__students-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
}

.teacher-dashboard-portal__competitions-toolbar input,
.teacher-dashboard-portal__participants-toolbar input,
.teacher-dashboard-portal__students-toolbar input {
    min-width: 0;
    flex: 1 1 auto;
}

.teacher-dashboard-portal__competitions-toolbar .teacher-dashboard-portal__action-button,
.teacher-dashboard-portal__participants-toolbar .teacher-dashboard-portal__action-button {
    flex: 0 0 auto;
    max-width: 170px;
    white-space: normal;
    text-align: center;
}

.teacher-dashboard-portal__table-wrap {
    overflow-x: auto;
    overflow-y: visible;
}

.teacher-dashboard-portal__table-wrap .teacher-dashboard-portal__students-table,
.teacher-dashboard-portal__competition-list-wrap .teacher-dashboard-portal__students-table,
.teacher-dashboard-portal__participants-list-wrap .teacher-dashboard-portal__students-table,
.teacher-dashboard-portal__panel-view[data-dashboard-view="participants"] .teacher-dashboard-portal__students-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
}

.teacher-dashboard-portal__students-table th,
.teacher-dashboard-portal__students-table td {
    padding: 12px 10px !important;
    font-size: 12px !important;
    line-height: 1.38 !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
}

.teacher-dashboard-portal__students-table th:last-child,
.teacher-dashboard-portal__students-table td:last-child {
    width: 108px !important;
    min-width: 108px !important;
    white-space: normal !important;
}

.teacher-dashboard-portal__competition-list-wrap .teacher-dashboard-portal__students-table th:nth-child(1),
.teacher-dashboard-portal__competition-list-wrap .teacher-dashboard-portal__students-table td:nth-child(1) {
    width: 34%;
}

.teacher-dashboard-portal__competition-list-wrap .teacher-dashboard-portal__students-table th:nth-child(2),
.teacher-dashboard-portal__competition-list-wrap .teacher-dashboard-portal__students-table td:nth-child(2) {
    width: 16%;
    text-align: center;
}

.teacher-dashboard-portal__competition-list-wrap .teacher-dashboard-portal__students-table th:nth-child(3),
.teacher-dashboard-portal__competition-list-wrap .teacher-dashboard-portal__students-table td:nth-child(3) {
    width: 24%;
}

.teacher-dashboard-portal__competition-list-wrap .teacher-dashboard-portal__students-table th:nth-child(4),
.teacher-dashboard-portal__competition-list-wrap .teacher-dashboard-portal__students-table td:nth-child(4) {
    width: 12%;
    text-align: center;
}

.teacher-dashboard-portal__competition-list-wrap .teacher-dashboard-portal__students-table th:nth-child(5),
.teacher-dashboard-portal__competition-list-wrap .teacher-dashboard-portal__students-table td:nth-child(5) {
    width: 14%;
    text-align: center;
}

.teacher-dashboard-portal__competition-list-wrap .teacher-dashboard-portal__action-button,
.teacher-dashboard-portal__participants-list-wrap .teacher-dashboard-portal__action-button {
    max-width: 96px;
    padding: 7px 8px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
}

@media (max-width: 900px) {
    .teacher-dashboard-portal,
    .teacher-dashboard-portal__hero-banner {
        width: min(100% - 24px, 100%) !important;
    }

    .teacher-dashboard-portal__layout {
        grid-template-columns: 1fr !important;
    }

    .teacher-dashboard-portal__panel {
        padding: 22px 16px !important;
    }

    .teacher-dashboard-portal__competitions-toolbar,
    .teacher-dashboard-portal__participants-toolbar,
    .teacher-dashboard-portal__students-toolbar {
        flex-wrap: wrap;
    }
}

/* Final dashboard alignment fixes for hero, nav icons, and participants date column. */
.teacher-dashboard-portal__hero-banner {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: max(32px, calc((100vw - 1120px) / 2 + 32px)) !important;
    padding-right: max(32px, calc((100vw - 1120px) / 2 + 32px)) !important;
    background-position: center right !important;
    background-size: auto 100% !important;
}

.teacher-dashboard-portal__layout {
    grid-template-columns: 200px minmax(0, 1fr) !important;
    gap: 20px !important;
}

.teacher-dashboard-portal__sidebar {
    padding: 20px 14px !important;
}

.teacher-dashboard-portal__nav-list {
    gap: 8px !important;
}

.teacher-dashboard-portal__nav-link {
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center !important;
    column-gap: 10px !important;
    min-height: 44px;
    padding: 10px 12px !important;
    font-size: 12px !important;
    line-height: 1.22 !important;
    text-align: left !important;
}

.teacher-dashboard-portal__nav-link::before {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 auto !important;
    flex: 0 0 18px !important;
    background-size: 18px 18px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.teacher-dashboard-portal__participants-list-wrap {
    overflow-x: auto !important;
}

.teacher-dashboard-portal__participants-list-wrap .teacher-dashboard-portal__participants-list {
    table-layout: fixed !important;
    width: 100% !important;
    min-width: 760px !important;
}

.teacher-dashboard-portal__participants-list th,
.teacher-dashboard-portal__participants-list td {
    padding: 11px 9px !important;
    font-size: 11px !important;
    line-height: 1.34 !important;
    vertical-align: middle !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
}

.teacher-dashboard-portal__participants-list td p {
    margin: 0 0 5px !important;
}

.teacher-dashboard-portal__participants-list th:nth-child(1),
.teacher-dashboard-portal__participants-list td:nth-child(1) {
    width: 15% !important;
}

.teacher-dashboard-portal__participants-list th:nth-child(2),
.teacher-dashboard-portal__participants-list td:nth-child(2) {
    width: 25% !important;
}

.teacher-dashboard-portal__participants-list th:nth-child(3),
.teacher-dashboard-portal__participants-list td:nth-child(3) {
    width: 28% !important;
}

.teacher-dashboard-portal__participants-list th:nth-child(4),
.teacher-dashboard-portal__participants-list td:nth-child(4) {
    width: 14% !important;
    min-width: 100px !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-align: left !important;
}

.teacher-dashboard-portal__participants-list th:nth-child(5),
.teacher-dashboard-portal__participants-list td:nth-child(5) {
    width: 18% !important;
    min-width: 132px !important;
    text-align: center !important;
    white-space: normal !important;
}

.teacher-dashboard-portal__participants-list .teacher-dashboard-portal__action-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 2px !important;
    padding: 6px 8px !important;
    font-size: 10px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
}

.teacher-dashboard-portal__competition-list-wrap .teacher-dashboard-portal__students-table th,
.teacher-dashboard-portal__competition-list-wrap .teacher-dashboard-portal__students-table td {
    font-size: 11px !important;
}

.teacher-dashboard-portal__competition-list-wrap .teacher-dashboard-portal__students-table th:nth-child(3),
.teacher-dashboard-portal__competition-list-wrap .teacher-dashboard-portal__students-table td:nth-child(3) {
    width: 22% !important;
    min-width: 118px !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
}

@media (max-width: 900px) {
    .teacher-dashboard-portal__hero-banner {
        width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
        background-size: auto 100% !important;
    }

    .teacher-dashboard-portal__layout {
        grid-template-columns: 1fr !important;
    }

    .teacher-dashboard-portal__participants-list-wrap {
        overflow-x: auto !important;
    }

    .teacher-dashboard-portal__participants-list-wrap .teacher-dashboard-portal__participants-list {
        min-width: 760px !important;
    }
}

/* Responsive hero content-width and sidebar navigation alignment fixes. */
.teacher-dashboard-portal__hero-banner {
    width: min(100% - 32px, 1120px) !important;
    max-width: 1120px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 42px !important;
    padding-right: 42px !important;
    background-position: right center !important;
    background-size: auto 100% !important;
}

.teacher-dashboard-portal__nav-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.teacher-dashboard-portal__nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100%;
    min-height: 42px !important;
    padding: 10px 12px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    text-align: left !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

.teacher-dashboard-portal__nav-link::before {
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    flex: 0 0 18px !important;
    margin: 0 !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.teacher-dashboard-portal__nav-link span,
.teacher-dashboard-portal__nav-link strong {
    min-width: 0;
}

@media (max-width: 1180px) {
    .teacher-dashboard-portal__hero-banner {
        width: min(100% - 28px, 980px) !important;
        max-width: 980px !important;
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
}

@media (max-width: 900px) {
    .teacher-dashboard-portal__hero-banner {
        width: min(100% - 24px, 100%) !important;
        max-width: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 22px !important;
        padding-right: 22px !important;
        background-position: right center !important;
        background-size: auto 100% !important;
    }

    .teacher-dashboard-portal__nav-list {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .teacher-dashboard-portal__nav-link {
        font-size: 13px !important;
        min-height: 44px !important;
    }
}

@media (max-width: 560px) {
    .teacher-dashboard-portal__hero-banner {
        min-height: 140px !important;
        padding-top: 26px !important;
        padding-bottom: 26px !important;
        background-size: auto 82% !important;
        background-position: right bottom !important;
    }

    .teacher-dashboard-portal__hero-content {
        max-width: 72%;
    }
}

/* Final sidebar navigation cleanup: stop icon/text overlap. */
.teacher-dashboard-portal__layout {
    grid-template-columns: 230px minmax(0, 1fr) !important;
}

.teacher-dashboard-portal__sidebar {
    padding: 22px 18px !important;
}

.teacher-dashboard-portal__nav-list {
    gap: 12px !important;
}

.teacher-dashboard-portal__nav-link,
.teacher-dashboard-portal__nav-item.is-active .teacher-dashboard-portal__nav-link,
.teacher-dashboard-portal__nav-link.is-active {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    min-height: 50px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

.teacher-dashboard-portal__nav-link::before,
.teacher-dashboard-portal__nav-item:nth-child(1) .teacher-dashboard-portal__nav-link::before,
.teacher-dashboard-portal__nav-item:nth-child(2) .teacher-dashboard-portal__nav-link::before,
.teacher-dashboard-portal__nav-item:nth-child(3) .teacher-dashboard-portal__nav-link::before {
    position: static !important;
    left: auto !important;
    top: auto !important;
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    flex: 0 0 20px !important;
    margin: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
    opacity: 0.9 !important;
}

.teacher-dashboard-portal__nav-item:nth-child(1) .teacher-dashboard-portal__nav-link::before {
    border-radius: 999px 999px 7px 7px !important;
    box-shadow: -8px 6px 0 -5px currentColor, 8px 6px 0 -5px currentColor !important;
}

.teacher-dashboard-portal__nav-item:nth-child(2) .teacher-dashboard-portal__nav-link::before {
    border-radius: 4px !important;
    box-shadow: inset 0 7px 0 -5px currentColor !important;
}

.teacher-dashboard-portal__nav-item:nth-child(3) .teacher-dashboard-portal__nav-link::before {
    border-radius: 4px 4px 10px 10px !important;
    box-shadow: 0 10px 0 -7px currentColor !important;
}

.teacher-dashboard-portal__nav-item.is-active .teacher-dashboard-portal__nav-link,
.teacher-dashboard-portal__nav-link.is-active {
    box-shadow: inset 4px 0 0 var(--ja-purple), 0 10px 26px rgba(118, 82, 238, 0.10) !important;
}

@media (max-width: 1180px) {
    .teacher-dashboard-portal__layout {
        grid-template-columns: 1fr !important;
    }

    .teacher-dashboard-portal__nav-list {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 700px) {
    .teacher-dashboard-portal__nav-list {
        grid-template-columns: 1fr !important;
    }
}

/* Modal action alignment: close/cancel left, submit right. */
.teacher-dashboard-portal__modal-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    width: 100%;
}

.teacher-dashboard-portal__modal-actions .teacher-dashboard-portal__ghost-button,
.teacher-dashboard-portal__modal-actions [data-modal-close] {
    order: 1 !important;
    margin-right: auto !important;
}

.teacher-dashboard-portal__modal-actions .teacher-dashboard-portal__submit,
.teacher-dashboard-portal__modal-actions button[type="submit"] {
    order: 2 !important;
    margin-left: auto !important;
}

@media (max-width: 560px) {
    .teacher-dashboard-portal__modal-actions {
        flex-direction: column-reverse !important;
        align-items: stretch !important;
    }

    .teacher-dashboard-portal__modal-actions .teacher-dashboard-portal__ghost-button,
    .teacher-dashboard-portal__modal-actions [data-modal-close],
    .teacher-dashboard-portal__modal-actions .teacher-dashboard-portal__submit,
    .teacher-dashboard-portal__modal-actions button[type="submit"] {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Keep competition entries on the dedicated Participants page, while preserving edit modals. */
.teacher-dashboard-portal__panel-view[data-dashboard-view="add_to_compition"] [data-add-competition-controls],
.teacher-dashboard-portal__panel-view[data-dashboard-view="add_to_compition"] [data-dashboard-all-competition-empty],
.teacher-dashboard-portal__panel-view[data-dashboard-view="add_to_compition"] [data-all-competition-heading],
.teacher-dashboard-portal__panel-view[data-dashboard-view="add_to_compition"] [data-all-competition-group] > .teacher-dashboard-portal__empty,
.teacher-dashboard-portal__panel-view[data-dashboard-view="add_to_compition"] [data-all-competition-group] > .teacher-dashboard-portal__table-wrap {
    display: none !important;
}

.teacher-dashboard-portal__panel-view[data-dashboard-view="add_to_compition"] [data-all-competition-group] {
    display: block !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* Competitions table column alignment. nee to commit */
.teacher-dashboard-portal__competition-list-wrap .teacher-dashboard-portal__competition-list th:nth-child(3),
.teacher-dashboard-portal__competition-list-wrap .teacher-dashboard-portal__competition-list td:nth-child(3),
.teacher-dashboard-portal__competition-list-wrap .teacher-dashboard-portal__competition-list th:nth-child(4),
.teacher-dashboard-portal__competition-list-wrap .teacher-dashboard-portal__competition-list td:nth-child(4) {
    text-align: center !important;
    vertical-align: middle !important;
}

/* Add the teacher dashboard subtitle back under the default page-builder title. */
body:has(.teacher-dashboard-portal) .section-wrapper[data-id="6gzmBc"] h1::after,
body:has(.teacher-dashboard-portal) .section-wrapper[data-id="6gzmBc"] h2::after,
body:has(.teacher-portal) .section-wrapper[data-id="6gzmBc"] h1::after,
body:has(.teacher-portal) .section-wrapper[data-id="6gzmBc"] h2::after {
    content: "Manage your participants and competitions with ease.";
    display: block;
    margin-top: 10px;
    color: #5f6b86;
    font-family: inherit;
    font-size: clamp(16px, 1.45vw, 24px);
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: normal;
}

/* Show the theme title only; keep the custom dashboard hero hidden. */
.teacher-dashboard-portal > .teacher-dashboard-portal__hero-banner {
    display: none !important;
}

/* Keep the default title subtitle directly below the heading, not beside it. */
body:has(.teacher-dashboard-portal) .section-wrapper[data-id="6gzmBc"] h1,
body:has(.teacher-dashboard-portal) .section-wrapper[data-id="6gzmBc"] h2,
body:has(.teacher-portal) .section-wrapper[data-id="6gzmBc"] h1,
body:has(.teacher-portal) .section-wrapper[data-id="6gzmBc"] h2 {
    display: block !important;
    width: 100% !important;
}

body:has(.teacher-dashboard-portal) .section-wrapper[data-id="6gzmBc"] h1::after,
body:has(.teacher-dashboard-portal) .section-wrapper[data-id="6gzmBc"] h2::after,
body:has(.teacher-portal) .section-wrapper[data-id="6gzmBc"] h1::after,
body:has(.teacher-portal) .section-wrapper[data-id="6gzmBc"] h2::after {
    width: 100%;
    max-width: 720px;
    text-align: left;
    white-space: normal;
}

.teacher-dashboard-portal > .teacher-dashboard-portal__welcome-card {
    margin-top: -18px;
    margin-bottom: 24px;
}

.teacher-dashboard-portal > .teacher-dashboard-portal__stat-grid {
    margin-bottom: 18px;
}

.teacher-dashboard-portal > .teacher-dashboard-portal__after-stats-actions {
    margin-bottom: 28px;
}



/* Stable real SVG navigation icons. These override the older pseudo-icon drawings. */
.teacher-dashboard-portal__nav-link,
.teacher-dashboard-portal__nav-item.is-active .teacher-dashboard-portal__nav-link,
.teacher-dashboard-portal__nav-link.is-active {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 12px 14px !important;
}

.teacher-dashboard-portal__nav-link::before,
.teacher-dashboard-portal__nav-item:nth-child(1) .teacher-dashboard-portal__nav-link::before,
.teacher-dashboard-portal__nav-item:nth-child(2) .teacher-dashboard-portal__nav-link::before,
.teacher-dashboard-portal__nav-item:nth-child(3) .teacher-dashboard-portal__nav-link::before {
    content: none !important;
    display: none !important;
}

.teacher-dashboard-portal__nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    color: currentColor;
}

.teacher-dashboard-portal__nav-icon svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.teacher-dashboard-portal__nav-text {
    display: block;
    min-width: 0;
    line-height: 1.25;
}


.teacher-dashboard-portal__competition-title-link,
.teacher-dashboard-portal__competition-title-link:visited,
.teacher-dashboard-portal__competition-title-link:hover,
.teacher-dashboard-portal__competition-title-link:focus {
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    text-decoration: none;
}


.teacher-dashboard-portal__competition-list td:last-child {
    white-space: normal;
}

.teacher-dashboard-portal__competition-list td:last-child .teacher-dashboard-portal__action-button {
    margin-right: 8px;
    margin-bottom: 8px;
}


.teacher-dashboard-portal__competition-status--closed {
    color: #c0392b;
}

/* Sidebar creativity card logo alignment. */
.teacher-dashboard-portal__sidebar-card {
    position: relative;
    min-height: 238px;
    margin-top: 72px;
    padding: 112px 22px 24px !important;
    overflow: visible;
}

.teacher-dashboard-portal__sidebar-art {
    position: absolute;
    left: 30%;
    top: 7px;
    width: 100px;
    height: 100px;
    margin: 0;
    transform: translateX(-50%);
    z-index: 2;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--teacher-card, #fff);
    border: 1px solid var(--teacher-border, rgba(124, 77, 242, 0.24));
    box-shadow: 0 12px 28px rgba(16, 23, 70, 0.08);
    overflow: hidden;
}

.teacher-dashboard-portal__sidebar-art img {
    display: block;
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.teacher-dashboard-portal__sidebar-card h3 {
    margin-top: 0;
}

/* Keep non-artist dashboards visually aligned with the artists sidebar card. */
.teacher-dashboard-portal[data-site-key=artists] .teacher-dashboard-portal__sidebar-card,
.teacher-dashboard-portal[data-site-key=poets] .teacher-dashboard-portal__sidebar-card,
.teacher-dashboard-portal[data-site-key=photographers] .teacher-dashboard-portal__sidebar-card,
.teacher-dashboard-portal[data-site-key=writers] .teacher-dashboard-portal__sidebar-card {
    min-height: 0;
    padding: 100px 22px 22px !important;
}

.teacher-dashboard-portal[data-site-key=artists] .teacher-dashboard-portal__sidebar-art,
.teacher-dashboard-portal[data-site-key=poets] .teacher-dashboard-portal__sidebar-art,
.teacher-dashboard-portal[data-site-key=photographers] .teacher-dashboard-portal__sidebar-art,
.teacher-dashboard-portal[data-site-key=writers] .teacher-dashboard-portal__sidebar-art {
    top: -18px;
}

@media (max-width: 1100px) {
    .teacher-dashboard-portal__sidebar-card {
        margin-top: 64px;
        padding: 104px 18px 22px !important;
    }

    .teacher-dashboard-portal__sidebar-art {
        top: -46px;
        width: 100px;
        height: 100px;
    }

    .teacher-dashboard-portal[data-site-key=artists] .teacher-dashboard-portal__sidebar-card,
    .teacher-dashboard-portal[data-site-key=poets] .teacher-dashboard-portal__sidebar-card,
    .teacher-dashboard-portal[data-site-key=photographers] .teacher-dashboard-portal__sidebar-card,
    .teacher-dashboard-portal[data-site-key=writers] .teacher-dashboard-portal__sidebar-card {
        padding: 92px 18px 20px !important;
    }

    .teacher-dashboard-portal[data-site-key=artists] .teacher-dashboard-portal__sidebar-art,
    .teacher-dashboard-portal[data-site-key=poets] .teacher-dashboard-portal__sidebar-art,
    .teacher-dashboard-portal[data-site-key=photographers] .teacher-dashboard-portal__sidebar-art,
    .teacher-dashboard-portal[data-site-key=writers] .teacher-dashboard-portal__sidebar-art {
        top: -34px;
    }
}

@media (max-width: 782px) {
    .teacher-dashboard-portal__sidebar-card {
        margin-top: 58px;
        padding-top: 92px !important;
    }

    .teacher-dashboard-portal__sidebar-art {
        top: -42px;
        width: 88px;
        height: 88px;
    }
}

#teacher-dashboard-logout-modal .teacher-dashboard-portal__modal-dialog {
    width: min(calc(100% - 36px), 460px) !important;
    max-width: 460px !important;
    padding: clamp(22px, 3vw, 30px) !important;
}

#teacher-dashboard-logout-modal .teacher-dashboard-portal__modal-title {
    margin-bottom: 10px !important;
    font-size: clamp(24px, 2.2vw, 30px) !important;
}

#teacher-dashboard-logout-modal .teacher-dashboard-portal__modal-copy {
    margin-bottom: 20px !important;
}

#teacher-dashboard-logout-modal .teacher-dashboard-portal__modal-actions {
    margin-top: 22px !important;
}

#teacher-dashboard-logout-modal .teacher-dashboard-portal__modal-actions .teacher-dashboard-portal__submit,
#teacher-dashboard-logout-modal .teacher-dashboard-portal__modal-actions .teacher-dashboard-portal__ghost-button {
    min-width: 132px !important;
    min-height: 44px !important;
}




.teacher-user-guide {
    max-width: 1120px;
    margin: 0 auto;
    padding: 34px 18px 64px;
    color: #25304a;
    font-family: inherit;
}

.teacher-user-guide__hero {
    position: relative;
    overflow: hidden;
    padding: clamp(32px, 6vw, 68px);
    border: 1px solid #dfe5f3;
    border-radius: 28px;
    background:
        radial-gradient(circle at 14% 20%, rgba(255, 214, 119, 0.42), transparent 26%),
        radial-gradient(circle at 86% 12%, rgba(77, 183, 255, 0.22), transparent 28%),
        linear-gradient(135deg, #fffdf7 0%, #eef8ff 48%, #f8f1ff 100%);
    box-shadow: 0 24px 70px rgba(44, 54, 92, 0.12);
}

.teacher-user-guide__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 8px 12px;
    border: 1px solid rgba(37, 48, 74, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: #1d2268;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.teacher-user-guide__brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 50%;
}

.teacher-user-guide__hero h1 {
    max-width: 760px;
    margin: 0 0 16px;
    color: #172057;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.02;
}

.teacher-user-guide__hero p {
    max-width: 710px;
    margin: 0;
    color: #43506f;
    font-size: 18px;
    line-height: 1.65;
}

.teacher-user-guide__hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.teacher-user-guide__hero-actions a,
.teacher-user-guide__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #1d2268;
    color: #ffffff !important;
    font-weight: 800;
    text-decoration: none !important;
}

.teacher-user-guide__hero-actions a:nth-child(2),
.teacher-user-guide__link {
    border: 1px solid #cfd7eb;
    background: #ffffff;
    color: #1d2268 !important;
}

.teacher-user-guide__toc {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 22px 0;
}

.teacher-user-guide__toc a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid #dde4f2;
    border-radius: 14px;
    background: #ffffff;
    color: #25304a !important;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 12px 26px rgba(37, 48, 74, 0.06);
}

.teacher-user-guide__steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.teacher-user-guide__card {
    padding: 26px;
    border: 1px solid #dde4f2;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(37, 48, 74, 0.08);
}

.teacher-user-guide__card--wide {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #ffffff 0%, #f5fbff 100%);
}

.teacher-user-guide__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff3c8;
    color: #7c5510;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.teacher-user-guide__card h2 {
    margin: 0 0 10px;
    color: #1d2268;
    font-size: 25px;
    line-height: 1.2;
}

.teacher-user-guide__card p,
.teacher-user-guide__card li {
    color: #4c5875;
    font-size: 16px;
    line-height: 1.65;
}

.teacher-user-guide__card ul {
    margin: 0 0 20px;
    padding-left: 20px;
}

.teacher-user-guide__card .teacher-user-guide__link {
    margin-top: 8px;
}

@media (max-width: 900px) {

    .teacher-user-guide__steps {
        grid-template-columns: 1fr;
    }

    .teacher-user-guide__hero-actions a,
    .teacher-user-guide__link {
        width: 100%;
    }
}

/* Keep the top dashboard action buttons visually identical. */
.teacher-dashboard-portal__after-stats-actions .teacher-dashboard-portal__submit,
.teacher-dashboard-portal__after-stats-actions .teacher-dashboard-portal__guide-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 228px !important;
    min-height: 52px !important;
    padding: 14px 22px !important;
    border: 1px solid var(--teacher-accent) !important;
    border-radius: 10px !important;
    background: var(--teacher-accent) !important;
    background-image: none !important;
    color: var(--teacher-button-text, #ffffff) !important;
    box-shadow: 0 16px 36px rgba(var(--teacher-accent-rgb, 138, 99, 246), 0.22) !important;
    font: inherit !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.teacher-dashboard-portal__after-stats-actions .teacher-dashboard-portal__submit:hover,
.teacher-dashboard-portal__after-stats-actions .teacher-dashboard-portal__submit:focus,
.teacher-dashboard-portal__after-stats-actions .teacher-dashboard-portal__guide-button:hover,
.teacher-dashboard-portal__after-stats-actions .teacher-dashboard-portal__guide-button:focus {
    background: var(--teacher-accent) !important;
    background-image: none !important;
    color: var(--teacher-button-text, #ffffff) !important;
    box-shadow: 0 18px 38px rgba(var(--teacher-accent-rgb, 138, 99, 246), 0.28) !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
}

@media (max-width: 900px) {
    .teacher-dashboard-portal__after-stats-actions .teacher-dashboard-portal__submit,
    .teacher-dashboard-portal__after-stats-actions .teacher-dashboard-portal__guide-button {
        width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
    }
}
