:root {
    --gw-navy: #0b2d5c;
    --gw-navy-deep: #082347;
    --gw-orange: #e57200;
    --gw-paper: #f4f5f7;
    --gw-surface: #ffffff;
    --gw-border: #d7dde7;
    --gw-text: #16233b;
    --gw-muted: #5f6f86;
    --gw-shadow: 0 18px 50px rgba(8, 35, 71, 0.12);
}

html,
body {
    min-height: 100%;
}
#ham-nav {
    margin-left: 100px !important;
}
body {
    margin: 0;
    color: var(--gw-text);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(244, 245, 247, 0.96)),
        radial-gradient(circle at top left, rgba(229, 114, 0, 0.12), transparent 22%),
        linear-gradient(180deg, #eff3f8 0%, #f7f8fa 100%);
}

a {
    color: var(--gw-navy);
}

#lawLogoutButton {
    display: none !important;
}

.site-frame {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.uva-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--gw-surface);
    box-shadow: 0 1px 0 rgba(8, 35, 71, 0.08);
}

.uva-header-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem;
    padding: 1rem 2rem 0.9rem;
    background: #0b3a75;
    color: #fff;
}

.uva-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-right: auto;
}

.uva-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.uva-brand-mark,
.uva-brand-school {
    font-size: 0.95rem;
    line-height: 0.9;
}

.uva-brand-divider {
    width: 1px;
    height: 2.4rem;
    background: rgba(255, 255, 255, 0.4);
}

.uva-utility {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-left: 0;
}

.uva-utility-menu {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.78);
}

.site-product-link {
    color: #7b5a3d;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    font-family: Georgia, "Times New Roman", serif;
}

.site-nav-shell {
    border-bottom: 1px solid rgba(8, 35, 71, 0.08);
    background: #f9f9fb;
}

.site-nav {
    max-width: 104rem;
    margin: 0 auto;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-nav-brand {
    display: flex;
    align-items: center;
    margin-right: 0.75rem;
}

.site-nav-links,
.site-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.site-nav-mobile-menu,
.admin-mobile-dropdown {
    display: none;
}

.site-product-link-nav {
    font-size: 1.5rem;
    white-space: nowrap;
}

.site-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2rem;
    padding: 0.4rem 0.65rem;
    border-radius: 0.35rem;
    text-decoration: none;
    color: var(--gw-text);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.site-nav-link.active,
.site-nav-link:hover {
    background: rgba(11, 45, 92, 0.08);
    color: var(--gw-navy);
}

.site-nav-action {
    background: var(--gw-navy);
    color: #fff;
}

.site-nav-action-compact {
    min-height: 2rem;
    padding: 0.3rem 0.55rem;
    font-size: 0.8rem;
}

.site-nav-action:hover {
    background: var(--gw-navy-deep);
    color: #fff;
}

.site-nav-action-secondary {
    background: #eef2f7;
    color: var(--gw-text);
    border: 1px solid #d4dce8;
}

.site-nav-action-secondary:hover,
.site-nav-action-secondary.active {
    background: #dde6f2;
    color: var(--gw-text);
}

.site-nav-user {
    color: var(--gw-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.site-search-input {
    width: 100%;
    padding: 0.35rem 0.55rem;
    border: 0;
    outline: 0;
    font-size: 0.9rem;
}

.site-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    color: #567099;
    border-left: 1px solid #cdd7e5;
}

.site-main {
    flex: 1;
}

.site-status-shell {
    max-width: 104rem;
    margin: 0 auto;
    padding: 1rem 1rem 0;
}

.site-alert {
    box-shadow: 0 10px 24px rgba(8, 35, 71, 0.08);
}

.app-alert {
    position: relative;
    margin: 0 0 1rem;
    padding: 1rem 1.1rem 1rem 1.25rem;
    border: 1px solid var(--gw-border);
    border-left-width: 4px;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.98);
    color: var(--gw-text);
    line-height: 1.45;
}

.app-alert-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
}

.app-alert-message {
    flex: 1 1 auto;
    min-width: 0;
}

.app-alert-dismiss {
    flex: 0 0 auto;
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--gw-muted);
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
    margin-top: 0.05rem;
}

.app-alert-dismiss:hover,
.app-alert-dismiss:focus-visible {
    color: var(--gw-text);
}

.app-alert-info {
    border-left-color: #4fb6e8;
}

.app-alert-success {
    border-left-color: #3fa76f;
}

.app-alert-warning {
    border-left-color: #f0a43b;
}

.app-alert-danger {
    border-left-color: #d35a5a;
}

.site-alert-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.site-alert-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.site-content {
    padding-bottom: 3rem;
}

.page-shell {
    max-width: 104rem;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.page-shell > h1 {
    margin-bottom: 1.25rem;
}

.side-panel,
.admin-grid-card,
.card.border-0.shadow-sm {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--gw-border) !important;
    border-radius: 1rem;
    box-shadow: var(--gw-shadow);
}

.side-panel {
    padding: 1.5rem;
}

.student-photo-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 35, 71, 0.58);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1050;
}

.student-photo-popup {
    width: min(32rem, 100%);
}

.student-photo-frame {
    border: 1px solid var(--gw-border);
    border-radius: 1rem;
    background: linear-gradient(180deg, #fff 0%, #eef2f8 100%);
    padding: 1rem;
    min-height: 18rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.student-photo-image {
    display: block;
    max-width: 100%;
    max-height: 24rem;
    border-radius: 0.75rem;
    object-fit: contain;
}

.student-photo-empty {
    text-align: center;
}

.admin-section-nav,
.admin-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--gw-border);
    border-radius: 0.9rem;
    box-shadow: 0 12px 30px rgba(8, 35, 71, 0.08);
}

.admin-subnav {
    margin-top: -0.25rem;
    margin-bottom: 1.5rem;
}

.admin-section-link,
.admin-subnav-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.4rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--gw-text);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.admin-subnav-link {
    border-color: rgba(8, 35, 71, 0.24);
    background: #fff;
    color: var(--gw-navy);
}

.admin-section-link.active,
.admin-subnav-link.active {
    background: var(--gw-navy);
    color: #fff;
    border-color: var(--gw-navy);
}

.admin-subnav-link:hover,
.admin-subnav-link:focus-visible {
    background: rgba(8, 35, 71, 0.06);
    border-color: var(--gw-navy);
    color: var(--gw-navy);
    text-decoration: none;
}

.admin-grid-card {
    padding: 1rem;
}

.faq-display-shell {
    max-width: 72rem;
}

.faq-display-stack {
    display: grid;
    gap: 1rem;
}

.faq-role-section {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--gw-border);
    border-radius: 0.5rem;
    box-shadow: var(--gw-shadow);
    padding: 1.25rem;
}

.faq-role-header {
    border-bottom: 1px solid var(--gw-border);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
}

.faq-role-header h2 {
    color: var(--gw-navy);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

.faq-list {
    display: grid;
    gap: 0.75rem;
}

.faq-item {
    background: #fff;
    border: 1px solid #d7dde7;
    border-radius: 0.5rem;
    overflow: hidden;
}

.faq-item summary {
    align-items: flex-start;
    color: var(--gw-text);
    cursor: pointer;
    display: flex;
    gap: 0.4rem;
    font-weight: 700;
    line-height: 1.35;
    padding: 0.9rem 1rem;
}

.faq-item summary:hover,
.faq-item summary:focus-visible {
    background: #f5f7fb;
    color: var(--gw-navy);
}

.faq-item-number {
    color: var(--gw-muted);
    flex: 0 0 auto;
}

.faq-item-question {
    min-width: 0;
}

.faq-item-question p,
.faq-item-answer p {
    margin: 0 0 0.65rem;
}

.faq-item-question :last-child,
.faq-item-answer :last-child {
    margin-bottom: 0;
}

.faq-item-answer {
    border-top: 1px solid rgba(215, 221, 231, 0.75);
    color: var(--gw-text);
    line-height: 1.55;
    padding: 1rem;
}

.faq-display-empty {
    max-width: 48rem;
}

.project-detail-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0.5rem 0.25rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.project-detail-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--gw-border);
    border-radius: 1rem;
    box-shadow: 0 10px 22px rgba(8, 35, 71, 0.06);
    padding: 1rem;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.project-detail-card-primary {
    grid-column: 1 / -1;
}

.project-detail-secondary-shell {
    grid-column: 1 / -1;
    padding: 0;
    min-width: 0;
    width: 100%;
}

.project-detail-secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
    min-width: 0;
    width: 100%;
}

.project-detail-secondary-card {
    min-width: 0;
    width: 100%;
}

.project-detail-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.project-detail-card-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gw-navy);
}

.project-detail-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.85rem 1rem;
    margin: 0;
    min-width: 0;
}

/* Completed student-evaluation view: question text next to each answer, with the
   related comment adjacent (mirrors the fill-in form rather than a terse label list). */
.eval-responses {
    margin: 0;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.eval-response-question {
    font-weight: 600;
}

.eval-response-answer {
    margin-top: 0.15rem;
    white-space: pre-wrap;
}

.eval-response-comment {
    margin-top: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-left: 3px solid rgba(8, 35, 71, 0.15);
    background: rgba(248, 250, 252, 0.9);
    white-space: pre-wrap;
}

.eval-response-comment-label {
    font-weight: 600;
}

.project-detail-list-primary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-detail-list-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-detail-list-requirements > div {
    align-self: start;
}

.projects-grid .k-table-th,
.projects-grid .k-table-td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.projects-grid .admin-grid-actions {
    align-items: flex-start;
    flex-wrap: wrap;
    row-gap: 0.35rem;
    gap: 0.35rem;
}

.projects-grid .admin-grid-actions .btn {
    flex: 0 0 auto;
    max-width: 100%;
    padding: 0.22rem 0.45rem;
    font-size: 0.8rem;
    line-height: 1.2;
    white-space: normal;
}

.projects-grid-shell {
    min-width: 0;
}

@media (max-width: 768px) {
    .projects-grid-shell {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .projects-grid {
        min-width: 64rem;
    }

    .project-detail-stack-project {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .project-detail-stack-project > * {
        min-width: 56rem;
    }
}

.project-detail-list > div {
    min-width: 0;
}

.project-detail-list-full {
    grid-column: 1 / -1;
}

.project-detail-list dt {
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gw-muted);
}

.project-detail-list dd {
    margin: 0;
    color: var(--gw-text);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.project-detail-table {
    margin-bottom: 0;
}

.project-detail-empty {
    padding: 0.5rem 0;
    color: var(--gw-muted);
}

.project-detail-card-copy {
    margin: 0.2rem 0 0;
    color: var(--gw-muted);
    font-size: 0.88rem;
}

.project-detail-card-tools {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.project-detail-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.project-signup-person {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    position: relative;
}

.project-signup-meta {
    color: var(--gw-muted);
    font-size: 0.82rem;
}

.project-selected-student-panel {
    margin-bottom: 1rem;
}

.project-selected-student-hero {
    margin-bottom: 0;
}

.project-selected-student-loading {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(18, 59, 118, 0.12);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.98));
    box-shadow: 0 16px 32px rgba(18, 59, 118, 0.08);
    color: #123b76;
    font-weight: 600;
}

.project-signup-hover-trigger {
    padding: 0;
    border: 0;
    color: var(--gw-navy);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.12em;
    box-shadow: none !important;
    display: inline-block;
    text-align: left;
}

.project-signup-hover-trigger:hover,
.project-signup-hover-trigger:focus-visible {
    color: var(--gw-navy);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    background: transparent;
}

.project-signup-hover-trigger.is-active {
    color: var(--gw-navy);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.project-student-popover-shell {
    position: fixed;
    z-index: 1080;
    width: min(760px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow: auto;
}

.project-student-popover-dismiss {
    position: fixed;
    inset: 0;
    z-index: 1070;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: default;
}

.project-selected-student-popover {
    margin-bottom: 0;
    box-shadow: 0 24px 48px rgba(18, 59, 118, 0.18);
}

.project-student-popover-shell h2 {
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

.project-student-popover-close {
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(18, 59, 118, 0.18);
    border-radius: 999px;
    background: #fff;
    color: #123b76;
    font-size: 1.1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.organization-supervisor-popover-shell {
    width: min(540px, calc(100vw - 2rem));
}

.organization-supervisor-popover {
    background: #fff;
    border: 1px solid rgba(18, 59, 118, 0.16);
    border-radius: 8px;
    box-shadow: 0 24px 48px rgba(18, 59, 118, 0.18);
    padding: 1rem;
}

.organization-supervisor-popover-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.organization-supervisor-popover-header h2 {
    margin: 0;
    color: var(--gw-navy);
    font-size: 1.1rem;
    line-height: 1.25;
}

.organization-supervisor-list {
    display: grid;
    gap: 0.75rem;
}

.organization-supervisor-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid rgba(18, 59, 118, 0.14);
    border-radius: 8px;
    padding: 0.85rem;
}

.organization-supervisor-card-copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.organization-supervisor-card-copy strong {
    color: var(--gw-navy);
}

.organization-supervisor-card-copy span {
    color: #526887;
    overflow-wrap: anywhere;
}


.project-signup-progress {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

@media (max-width: 1100px) {
    .project-detail-list-primary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .project-detail-grid,
    .project-detail-list-primary,
    .project-detail-secondary-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.student-project-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.student-project-item {
    border: 1px solid var(--gw-border);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 22px rgba(8, 35, 71, 0.05);
    overflow: hidden;
}

.student-project-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
}

.student-project-summary {
    min-width: 0;
}

.student-project-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.student-project-detail {
    padding: 0 1.1rem 1rem;
}

.admin-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.admin-page-heading > h1 {
    margin: 0;
}

.admin-empty-state {
    padding: 1rem 0;
    color: var(--gw-muted);
}

.k-grid .k-grid-content,
.k-grid .k-table-body {
    min-height: 18rem;
}

.admin-grid-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.admin-grid-search {
    flex: 1 1 28rem;
    min-width: min(100%, 18rem);
}

.admin-search-box {
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
}

.admin-search-box .form-control {
    min-width: 0;
}

.admin-search-clear {
    flex: 0 0 auto;
    min-width: 4.25rem;
}

.admin-search-clear.is-hidden {
    visibility: hidden;
    pointer-events: none;
}

.admin-grid-summary {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.sent-email-test-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.admin-grid-bottom-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
}

/* Project grid: center the load-more control (button stacked over the count). */
.admin-grid-bottom-controls--centered {
    flex-direction: column;
    justify-content: center;
}

.btn-load-more {
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.admin-toolbar-select {
    min-width: 14rem;
    flex: 0 1 18rem;
}

.admin-toolbar-actions,
.admin-grid-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-grid-actions .btn,
.admin-toolbar-actions .btn {
    margin: 0;
}

.admin-detail-template-card {
    padding: 0.85rem 0 0.15rem;
}

.admin-detail-template-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.admin-detail-template-title {
    margin: 0;
    font-size: 1rem;
    color: #123b76;
}

.admin-detail-template-copy {
    margin: 0.2rem 0 0;
    color: #667892;
    font-size: 0.92rem;
}

.admin-related-list {
    display: grid;
    gap: 0.45rem;
}

.admin-related-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid rgba(18, 59, 118, 0.1);
    border-radius: 0.8rem;
    background: rgba(248, 250, 253, 0.92);
}

.admin-related-list-copy {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.admin-related-list-copy strong {
    color: #123b76;
    font-size: 0.95rem;
}

.admin-related-list-copy span {
    color: #667892;
    font-size: 0.88rem;
}

.project-slideover-action-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-slideover-action-group-utility {
    padding-left: 0.75rem;
    margin-left: 0.25rem;
    border-left: 1px solid var(--gw-border);
}

.admin-toolbar-date-range {
    display: flex;
    align-items: end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-toolbar-date-caption {
    align-self: center;
    color: var(--gw-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-toolbar-date-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 10rem;
}

.admin-toolbar-date-field .form-label {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gw-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.k-grid {
    border-radius: 0.85rem;
    overflow: hidden;
}

.k-grid .k-table-thead,
.k-grid .k-grid-header {
    background: #f3f6fb;
}

.k-grid .k-table-th,
.k-grid .k-header {
    font-weight: 700;
    color: var(--gw-text);
}

.k-grid td,
.k-grid th {
    vertical-align: top;
}

.uva-footer {
    margin-top: auto;
    background: #565656;
    border-top: 4px solid var(--gw-orange);
    color: #fff;
}

.uva-footer-inner {
    max-width: 96rem;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1fr;
    gap: 2rem;
    align-items: start;
}

.uva-footer-title {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.uva-footer a {
    color: #fff;
    text-decoration: none;
}

.uva-footer-contact,
.uva-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: flex-end;
}

.uva-footer-meta {
    max-width: 96rem;
    margin: 0 auto;
    padding: 0 1.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.85rem;
    text-align: right;
}

.slideover-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(8, 35, 71, 0.34);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
}

.slideover-backdrop-open {
    animation: slideover-fade-in 180ms ease-out;
}

.slideover-backdrop-closing {
    animation: slideover-fade-out 180ms ease-in forwards;
}

.slideover-panel {
    width: min(44rem, 100%);
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(215, 221, 231, 0.9);
    border-radius: 1.25rem;
    box-shadow: 0 28px 80px rgba(8, 35, 71, 0.22);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.slideover-panel-open {
    animation: slideover-slide-in 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slideover-panel-closing {
    animation: slideover-slide-out 180ms ease-in forwards;
}

.slideover-panel-sm {
    width: min(32rem, 100%);
}

.slideover-panel-md {
    width: min(44rem, 100%);
}

.slideover-panel-lg {
    width: min(52rem, 100%);
}

.slideover-panel-xl {
    width: min(60rem, 100%);
}

.slideover-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0.75rem;
    border-bottom: 1px solid rgba(8, 35, 71, 0.08);
}

.slideover-eyebrow {
    color: var(--gw-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.slideover-title {
    margin: 0.25rem 0 0;
    font-size: 1.5rem;
}

.slideover-subtitle {
    margin: 0;
    padding: 0.75rem 1.25rem 0;
    color: var(--gw-muted);
}

.slideover-body {
    flex: 1;
    overflow: auto;
    padding: 1.25rem;
    position: relative;
}

.slideover-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.slideover-section {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.slideover-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.slideover-section-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gw-text);
}

.slideover-section-copy {
    margin: 0;
    color: var(--gw-muted);
}

.slideover-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.slideover-summary-title {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.slideover-summary-copy {
    margin: 0;
    color: var(--gw-muted);
}

.slideover-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(8, 35, 71, 0.08);
    border-radius: 1rem;
    box-shadow: 0 10px 26px rgba(8, 35, 71, 0.08);
    padding: 1rem;
}

.slideover-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.slideover-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.slideover-form-grid {
    row-gap: 0.9rem;
}

.worklog-editor-panel {
    border-top: 1px solid rgba(8, 35, 71, 0.12);
    padding-top: 1rem;
}

.worklog-editor-empty {
    align-items: center;
    background: rgba(248, 250, 252, 0.9);
    border: 1px dashed rgba(8, 35, 71, 0.22);
    border-radius: 0.5rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.85rem 1rem;
}

.audit-log-pre {
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(8, 35, 71, 0.1);
    border-radius: 0.5rem;
    color: var(--gw-text);
    font-size: 0.85rem;
    margin: 0;
    max-height: 24rem;
    overflow: auto;
    padding: 0.85rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.supervisor-intake-shell {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.supervisor-intake-hero {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.15rem 1.35rem;
    border: 1px solid rgba(8, 35, 71, 0.08);
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at top right, rgba(235, 143, 52, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 253, 0.98));
    box-shadow: 0 14px 34px rgba(8, 35, 71, 0.08);
}

.supervisor-intake-hero-compact {
    padding-block: 1rem;
}

.supervisor-intake-hero-compact h1 {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 2.35rem);
}

.supervisor-intake-intro {
    padding: 1rem 1.15rem;
    border: 1px solid rgba(8, 35, 71, 0.08);
    border-radius: 0.4rem;
    background: rgba(245, 245, 245, 0.95);
    color: var(--gw-text);
}

.supervisor-intake-intro p {
    margin: 0 0 1rem;
}

.supervisor-intake-intro p:last-child {
    margin-bottom: 0;
}

.supervisor-intake-intro-emphasis {
    font-style: italic;
    font-weight: 700;
}

.supervisor-intake-eyebrow {
    color: var(--gw-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.supervisor-intake-copy {
    margin: 0;
    max-width: 50rem;
    color: var(--gw-muted);
}

.supervisor-intake-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(8, 35, 71, 0.08);
    border-radius: 1.25rem;
    box-shadow: 0 16px 42px rgba(8, 35, 71, 0.08);
}

.supervisor-intake-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem 1rem;
}

.supervisor-intake-section {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem 0.5rem;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.supervisor-intake-section-header h2 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--gw-text);
}

.supervisor-intake-section-header p {
    margin: 0.15rem 0 0;
    color: var(--gw-muted);
    font-size: 0.92rem;
}

.form-field-label-text {
    display: inline;
}

.form-field-label-title {
    display: inline;
    font-weight: 700;
}

.form-field-label-required {
    display: inline;
    margin-left: 0.2rem;
    white-space: nowrap;
    color: #b42318;
    font-weight: 700;
}

.supervisor-intake-section .form-label {
    margin-bottom: 0.35rem;
}

/* Stacked yes/no question: label above a compact dropdown so several questions
   line up in a grid, with any conditional follow-up shown in the column beside. */
.boolean-question-stacked-control {
    width: 11rem;
    max-width: 100%;
    margin-top: 0.35rem;
}

.supervisor-question-grid {
    --bs-gutter-y: 1rem;
}

/* Equalize the supervisor-contact label heights so the controls line up even
   when a longer label (e.g. "Previously submitted...") wraps to two lines. */
.supervisor-contact-grid .form-label {
    min-height: 3.4rem;
}

.supervisor-intake-card-body > .supervisor-intake-section {
    padding: 0.15rem 0 0;
}

.supervisor-intake-section .form-control,
.supervisor-intake-section .form-select,
.supervisor-intake-section .k-input-inner,
.supervisor-intake-section .k-picker,
.supervisor-intake-section .k-multiselect {
    min-height: 2.65rem;
}

.supervisor-intake-section textarea.form-control {
    min-height: 5.5rem;
}

.supervisor-intake-helper {
    line-height: 1.35;
    max-width: 58rem;
}

.supervisor-intake-textarea {
    min-height: 4.5rem !important;
}

.supervisor-intake-textarea-lg {
    min-height: 6rem !important;
}

.supervisor-field-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.12) !important;
}

.supervisor-field-host-invalid .k-input-inner,
.supervisor-field-host-invalid .k-input-values,
.supervisor-field-host-invalid .k-picker,
.supervisor-field-host-invalid .k-multiselect,
.supervisor-field-host-invalid .k-input-solid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.12) !important;
    border-radius: 0.5rem;
}

.supervisor-invalid-block {
    border: 1px solid rgba(220, 53, 69, 0.22);
    border-radius: 0.8rem;
    border-color: rgba(220, 53, 69, 0.42) !important;
    box-shadow: inset 0 0 0 1px rgba(220, 53, 69, 0.08);
    box-sizing: border-box;
    padding: 0.75rem;
}

.supervisor-check-invalid {
    outline: 2px solid rgba(220, 53, 69, 0.3);
    outline-offset: 2px;
}

.supervisor-field-error {
    color: #b42318;
    font-size: 0.875rem;
    line-height: 1.35;
    margin-top: 0.35rem;
}

.supervisor-label-note {
    display: block;
    margin-top: 0.15rem;
    min-height: 1.05rem;
    font-size: 0.82rem;
    line-height: 1.25;
    color: #667085;
    font-weight: 400;
}

.form-field-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #8898aa;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    cursor: help;
    margin-left: 5px;
    vertical-align: middle;
    position: relative;
    flex-shrink: 0;
    user-select: none;
}

.form-field-tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a202c;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 400;
    padding: 4px 9px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 9999;
}

.form-field-tooltip::after {
    content: "";
    position: absolute;
    bottom: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1a202c;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 9999;
}

.form-field-tooltip:hover::before,
.form-field-tooltip:hover::after {
    opacity: 1;
}

.supervisor-label-note-placeholder {
    visibility: hidden;
}

.supervisor-intake-shell .row.g-3 > [class*="col-"] > .form-label,
.supervisor-intake-shell .row.g-4 > [class*="col-"] > .form-label,
.supervisor-intake-shell .slideover-form-grid > [class*="col-"] > .form-label {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-height: 3.45rem;
}

.supervisor-intake-shell .row.g-3 > [class*="col-"] > .form-label + .supervisor-field-error,
.supervisor-intake-shell .row.g-4 > [class*="col-"] > .form-label + .supervisor-field-error,
.supervisor-intake-shell .slideover-form-grid > [class*="col-"] > .form-label + .supervisor-field-error {
    margin-top: 0.35rem;
}

.supervisor-intake-shell .row.g-3.align-items-end > [class*="col-"] > .form-label {
    min-height: auto;
}

.supervisor-intake-shell .row.g-4,
.supervisor-intake-shell .slideover-form-grid {
    --bs-gutter-y: 1rem;
}

.supervisor-intake-shell .form-check {
    padding-left: 1.75rem;
}

.supervisor-intake-shell .form-check-input {
    margin-left: -1.75rem;
}

.supervisor-intake-shell .form-check-label {
    display: block;
    max-width: 72rem;
}

.form-field-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-field-block > .form-label {
    margin-bottom: 0;
}

.supervisor-application-deadline-field {
    margin-bottom: 12px;
}

.form-field-block .form-control,
.form-field-block .form-select,
.form-field-block .k-input-inner,
.form-field-block .k-picker,
.form-field-block .k-multiselect,
.form-field-block .k-combobox {
    min-height: 2.65rem;
}

.form-field-block textarea.form-control {
    min-height: 5.25rem;
}

.checkbox-field {
    padding: 0.1rem 0;
}

.checkbox-field-label {
    display: inline;
}

.checkbox-field-note {
    margin-left: 1.55rem;
}

.supervisor-intake-shell .supervisor-intake-submit {
    margin-top: 0.35rem;
}

.supervisor-intake-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.supervisor-intake-section-balanced > .row,
.supervisor-intake-section-balanced > .supervisor-intake-toggle {
    width: 100%;
    max-width: 74rem;
}

.uniform-form-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--gw-border);
    border-radius: 1rem;
    box-shadow: 0 10px 22px rgba(8, 35, 71, 0.06);
}

.uniform-form-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem;
}

@media (min-width: 1200px) {
    .supervisor-intake-section-balanced {
        align-items: center;
    }

    .supervisor-intake-section-balanced > .supervisor-intake-section-header {
        width: 100%;
        max-width: 74rem;
    }
}

.supervisor-intake-toggle-option {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem;
    border: 1px solid rgba(8, 35, 71, 0.12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.supervisor-intake-toggle-option:hover,
.supervisor-intake-toggle-option:focus-within {
    border-color: rgba(9, 48, 98, 0.3);
    box-shadow: 0 12px 30px rgba(8, 35, 71, 0.08);
    transform: translateY(-1px);
}

.supervisor-intake-toggle-option.active {
    border-color: rgba(9, 48, 98, 0.45);
    box-shadow: 0 14px 34px rgba(8, 35, 71, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(241, 246, 252, 0.98));
}

.supervisor-intake-toggle-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.supervisor-intake-toggle-title {
    font-weight: 700;
    color: var(--gw-text);
}

.supervisor-intake-toggle-copy {
    color: var(--gw-muted);
    font-size: 0.94rem;
    line-height: 1.45;
}

.supervisor-intake-submit {
    display: flex;
    justify-content: flex-start;
}

.supervisor-intake-submit-section .row.g-3 > [class*="col-"] > .form-label {
    min-height: auto;
    margin-bottom: 0.2rem;
}

.supervisor-intake-submit-button {
    min-width: 10rem;
    padding: 0.55rem 1rem;
    font-size: 0.95rem;
}

.supervisor-captcha-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.45rem;
    min-height: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid rgba(8, 35, 71, 0.12);
    border-radius: 0.75rem;
    background: rgba(248, 250, 253, 0.96);
}

.supervisor-captcha-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #667085;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.supervisor-captcha-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.supervisor-captcha-panel .form-control,
.supervisor-captcha-panel .supervisor-field-invalid,
.supervisor-captcha-panel input[type="text"] {
    flex: 0 1 18rem;
    max-width: 18rem;
}

.supervisor-captcha-display {
    display: flex;
    align-items: center;
    justify-content: center;
}

.supervisor-captcha-display img,
.supervisor-captcha-display canvas,
.supervisor-captcha-display svg {
    display: block;
    max-width: 100%;
    min-height: 3rem;
    margin: 0;
}

.supervisor-captcha-actions {
    display: flex;
    flex-direction: row;
    gap: 0.45rem;
}

.supervisor-captcha-icon-button {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0.65rem;
}

.supervisor-captcha-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    color: #50667d;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 575.98px) {
    .supervisor-captcha-row {
        align-items: center;
        flex-wrap: wrap;
    }

    .supervisor-captcha-panel .form-control,
    .supervisor-captcha-panel .supervisor-field-invalid,
    .supervisor-captcha-panel input[type="text"] {
        flex-basis: 100%;
        max-width: 100%;
    }

    .supervisor-captcha-actions {
        width: 100%;
        justify-content: center;
    }
}

.supervisor-public-shell {
    display: grid;
    gap: 1.5rem;
}

.supervisor-public-hero {
    padding: 1.5rem;
    border: 1px solid rgba(8, 35, 71, 0.08);
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at top right, rgba(235, 143, 52, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 253, 0.98));
    box-shadow: 0 14px 34px rgba(8, 35, 71, 0.08);
}

.supervisor-public-eyebrow {
    color: var(--gw-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.supervisor-public-hero-copy {
    margin: 0;
    max-width: 52rem;
}

.supervisor-public-hero-copy p {
    margin: 0.35rem 0 0;
    color: var(--gw-muted);
}

.supervisor-public-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(8, 35, 71, 0.08);
    border-radius: 1.25rem;
    box-shadow: 0 16px 42px rgba(8, 35, 71, 0.08);
}

.supervisor-public-card-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.25rem;
}

.supervisor-public-section + .supervisor-public-section {
    margin-top: 0.5rem;
}

.supervisor-public-section-header h2 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--gw-text);
}

.supervisor-public-section-header p {
    margin: 0.25rem 0 0;
    color: var(--gw-muted);
}

.supervisor-public-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

.supervisor-public-summary-item {
    display: grid;
    gap: 0.2rem;
}

.supervisor-public-summary-label {
    color: var(--gw-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.supervisor-public-summary-value {
    color: var(--gw-text);
    font-weight: 600;
}

.supervisor-public-complete-state {
    padding: 1rem;
    border: 1px solid rgba(8, 35, 71, 0.08);
    border-radius: 1rem;
    background: rgba(249, 250, 252, 0.85);
}

.supervisor-public-complete-state h2 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--gw-text);
}

.supervisor-public-complete-state p {
    margin: 0.35rem 0 0;
    color: var(--gw-muted);
}

.supervisor-public-submit,
.supervisor-public-inline-action {
    display: flex;
    justify-content: flex-start;
}

.supervisor-public-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.9rem;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(8, 35, 71, 0.12);
    background: rgba(255, 255, 255, 0.96);
    color: var(--gw-navy);
    font-size: 0.82rem;
    font-weight: 700;
}

.supervisor-public-badge.is-complete {
    border-color: rgba(22, 101, 52, 0.18);
    background: rgba(22, 101, 52, 0.12);
    color: #166534;
}

.supervisor-public-badge.is-pending {
    border-color: rgba(180, 83, 9, 0.18);
    background: rgba(245, 158, 11, 0.14);
    color: #9a3412;
}

.supervisor-public-badge.is-muted {
    color: var(--gw-muted);
}

.supervisor-public-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.supervisor-worklog-detail-shell {
    border: 1px solid rgba(8, 35, 71, 0.08);
    border-radius: 0.9rem;
    background: rgba(249, 250, 252, 0.8);
    padding: 0.85rem 1rem;
}

.supervisor-worklog-detail-toggle {
    cursor: pointer;
    font-weight: 700;
    color: var(--gw-navy);
    list-style: none;
}

.supervisor-worklog-detail-toggle::-webkit-details-marker {
    display: none;
}

.supervisor-worklog-detail-toggle::after {
    content: " ▾";
    color: var(--gw-muted);
}

.supervisor-worklog-detail-shell[open] .supervisor-worklog-detail-toggle::after {
    content: " ▴";
}

.slideover-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(8, 35, 71, 0.08);
    background: rgba(249, 249, 251, 0.94);
}

.slideover-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--gw-navy);
}

.slideover-focus-guard {
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

@keyframes slideover-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideover-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideover-slide-in {
    from {
        opacity: 0;
        transform: translateX(1.5rem) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideover-slide-out {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(1.5rem) scale(0.99);
    }
}

.admin-mobile-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--gw-border);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.96);
    color: var(--gw-navy);
    font-weight: 700;
    list-style: none;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(8, 35, 71, 0.08);
}

.admin-mobile-dropdown-toggle::-webkit-details-marker,
.site-nav-mobile-toggle::-webkit-details-marker {
    display: none;
}

.admin-mobile-dropdown-toggle::after,
.site-nav-mobile-toggle::after {
    content: "▾";
    font-size: 0.95rem;
    color: var(--gw-muted);
}

.admin-mobile-dropdown[open] .admin-mobile-dropdown-toggle::after,
.site-nav-mobile-menu[open] .site-nav-mobile-toggle::after {
    content: "▴";
}

.admin-mobile-dropdown-panel,
.site-nav-mobile-panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.55rem;
    padding: 0.65rem;
    border: 1px solid var(--gw-border);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 30px rgba(8, 35, 71, 0.08);
}

.admin-mobile-dropdown-panel .admin-section-link,
.admin-mobile-dropdown-panel .admin-subnav-link {
    justify-content: flex-start;
}

.site-nav-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--gw-border);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.96);
    color: var(--gw-navy);
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.auth-loading-shell {
    min-height: min(70vh, 42rem);
    display: grid;
    place-items: center;
    padding: 2rem 1rem 3rem;
}

.auth-loading-shell.is-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    min-height: 100vh;
    padding: 1.5rem;
    background: rgba(244, 246, 249, 0.96);
    backdrop-filter: blur(3px);
}

.auth-loading-card {
    width: min(100%, 36rem);
    border: 1px solid rgba(8, 35, 71, 0.1);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--gw-shadow);
    overflow: hidden;
}

.auth-loading-brand {
    padding: 1.1rem 1.35rem 1rem;
    background: linear-gradient(135deg, #0b3a75, var(--gw-navy));
    color: #fff;
}

.auth-loading-brand-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-loading-brand-divider {
    width: 1px;
    height: 1.7rem;
    background: rgba(255, 255, 255, 0.45);
}

.auth-loading-product {
    display: inline-block;
    margin-top: 0.7rem;
    color: #f0d7be;
    font-size: 1.7rem;
    line-height: 1;
    font-family: Georgia, "Times New Roman", serif;
}

.auth-loading-body {
    display: grid;
    justify-items: center;
    gap: 0.9rem;
    padding: 2rem 1.5rem 2.2rem;
    text-align: center;
}

.auth-loading-body h1 {
    margin: 0;
    color: var(--gw-navy);
    font-size: clamp(1.6rem, 3vw, 2rem);
}

.auth-loading-spinner {
    width: 2.75rem;
    height: 2.75rem;
    object-fit: contain;
}

.gw-global-loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(244, 246, 249, 0.96);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 160ms ease, visibility 160ms ease;
    pointer-events: none;
}

.gw-global-loading.is-visible {
    opacity: 1;
    visibility: visible;
}

body.gw-loading-active {
    overflow: hidden;
}

.site-content-shell {
    position: relative;
}

.site-content-stage {
    transition: opacity 140ms ease;
}

.site-content-stage.is-loading {
    opacity: 0.18;
}

.site-route-loading {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(244, 246, 249, 0.96);
    backdrop-filter: blur(3px);
}

.site-route-loading-inline {
    position: relative;
    inset: auto;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
}

.page-grid-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(1px);
    border-radius: 0.5rem;
    pointer-events: none;
}

.page-grid-loading-overlay .site-route-loading-card {
    width: min(100%, 34rem);
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.35rem 1rem rgba(8, 35, 71, 0.08);
}

.page-grid-loading-overlay .site-route-loading-header {
    margin-bottom: 0;
}

.page-grid-loading-overlay .site-route-loading-header h2 {
    font-size: 1rem;
}

.page-grid-loading-overlay .site-route-loading-spinner {
    width: 1.6rem;
    height: 1.6rem;
}

.page-grid-loading-overlay .site-route-loading-skeleton,
.page-grid-loading-overlay .site-route-loading-grid {
    display: none;
}

.site-route-loading-card {
    width: min(100%, 68rem);
    border: 1px solid rgba(8, 35, 71, 0.1);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--gw-shadow);
    padding: 1.4rem;
}

.site-route-loading-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.site-route-loading-header h2 {
    margin: 0;
    color: var(--gw-navy);
    font-size: 1.2rem;
}

.site-route-loading-header p {
    color: #5e6f8f;
}

.site-route-loading-spinner {
    width: 2.25rem;
    height: 2.25rem;
    object-fit: contain;
}

.site-route-loading-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.site-route-loading-skeleton {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: linear-gradient(90deg, rgba(220, 227, 235, 0.95), rgba(239, 243, 247, 0.98), rgba(220, 227, 235, 0.95));
    background-size: 220% 100%;
    animation: site-route-loading-shimmer 1.2s ease-in-out infinite;
}

.site-route-loading-skeleton-title {
    height: 2.4rem;
    width: min(22rem, 36%);
    margin-bottom: 0.9rem;
}

.site-route-loading-skeleton-tabs {
    height: 3.2rem;
    width: 100%;
    margin-bottom: 1rem;
}

.site-route-loading-skeleton-card {
    min-height: 12rem;
}

@keyframes site-route-loading-shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

@media (max-width: 991.98px) {
    .uva-header-bar {
        gap: 0.75rem;
        padding: 1rem 1.25rem;
    }

    .uva-brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .uva-utility {
        flex: 0 1 auto;
        min-width: 0;
    }

    .site-nav {
        padding: 0.85rem 1.25rem;
    }

    .page-shell {
        padding: 1.5rem 1.25rem 2.5rem;
    }

    .uva-footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.75rem 1.25rem;
    }

    .uva-footer-contact,
    .uva-footer-links,
    .uva-footer-meta,
    .site-meta-right {
        text-align: left;
        align-items: flex-start;
    }

    .slideover-backdrop {
        padding: 0;
        align-items: stretch;
    }

    .slideover-panel,
    .slideover-panel-sm,
    .slideover-panel-md,
    .slideover-panel-lg,
    .slideover-panel-xl {
        width: 100%;
        max-width: 100%;
        height: 100%;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .supervisor-intake-toggle {
        grid-template-columns: 1fr;
    }

    .site-route-loading-grid {
        grid-template-columns: 1fr;
    }

    .site-route-loading-header {
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    html,
    body,
    .site-frame,
    .site-main,
    .site-content,
    .site-content-shell,
    .site-content-stage {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body {
        overflow-x: hidden;
    }

    .site-nav-shell {
        padding-inline: 0;
    }

    .site-nav {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.85rem;
        padding: 0.9rem 1rem;
        align-items: stretch;
    }

    .site-nav-brand {
        margin-right: 0;
    }

    .site-product-link-nav {
        font-size: 1.25rem;
    }

    .site-nav-links-desktop,
    .admin-section-nav-desktop,
    .admin-subnav-desktop {
        display: none;
    }

    .site-nav-mobile-menu,
    .admin-mobile-dropdown {
        display: block;
        width: 100%;
    }

    .site-nav-actions {
        width: 100%;
        justify-content: flex-start;
        gap: 0.6rem;
        flex-wrap: wrap;
    }

    .site-nav-user {
        width: 100%;
        min-width: 0;
        flex: 1 1 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .site-nav-link {
        width: auto;
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .site-status-shell {
        padding: 0.85rem 1rem 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .site-alert-actions .btn {
        min-height: 2rem;
    }

    .page-shell {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 1rem 1rem 2rem;
    }

    .site-nav-mobile-panel,
    .admin-mobile-dropdown-panel,
    .admin-grid-card,
    .projects-grid-shell,
    .site-alert,
    .admin-page-heading,
    .admin-section-nav,
    .admin-mobile-dropdown,
    .site-nav-mobile-menu {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .supervisor-intake-hero,
    .supervisor-intake-intro,
    .supervisor-intake-card-body,
    .supervisor-intake-section {
        padding: 1rem;
    }

    .supervisor-public-hero,
    .supervisor-public-card-body {
        padding: 1rem;
    }

    .supervisor-intake-shell,
    .supervisor-intake-shell > *,
    .supervisor-intake-card,
    .supervisor-intake-card-body,
    .supervisor-intake-section,
    .supervisor-intake-section-balanced > .row,
    .supervisor-intake-section-balanced > .supervisor-intake-toggle,
    .site-alert {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .supervisor-intake-intro p,
    .supervisor-intake-copy,
    .supervisor-intake-helper {
        max-width: none;
    }

    .supervisor-intake-hero-compact h1 {
        font-size: 1.95rem;
        line-height: 1.05;
    }

    .supervisor-intake-shell .row.g-3 > [class*="col-"] > .form-label,
    .supervisor-intake-shell .row.g-4 > [class*="col-"] > .form-label,
    .supervisor-intake-shell .slideover-form-grid > [class*="col-"] > .form-label {
        min-height: auto;
    }

    .supervisor-intake-toggle-option {
        padding: 0.9rem;
    }

    .supervisor-captcha-panel {
        padding: 0.75rem;
    }

    .supervisor-captcha-title {
        font-size: 0.76rem;
    }

    .supervisor-intake-submit-button {
        width: 100%;
        min-width: 0;
    }

    .auth-loading-brand,
    .auth-loading-body {
        padding-inline: 1rem;
    }

    .project-radio-group {
        justify-content: flex-start;
    }

    .supervisor-public-summary {
        grid-template-columns: 1fr;
    }

    .admin-grid-toolbar {
        align-items: stretch;
    }

    .admin-page-heading {
        align-items: stretch;
    }

    .admin-toolbar-select {
        min-width: 0;
        flex-basis: 100%;
    }

    .projects-grid-shell {
        margin-inline: 0;
        border-radius: 0.85rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.project-radio-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 2.625rem;
    flex-wrap: wrap;
}

.project-radio-option,
.project-checkbox-option {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--gw-navy);
    font-weight: 500;
}

.project-checkbox-list {
    display: grid;
    gap: 0.45rem;
}

.student-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.9fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.student-dashboard-profile,
.student-dashboard-hour-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.98));
    border: 1px solid rgba(18, 59, 118, 0.12);
    border-radius: 1rem;
    box-shadow: 0 16px 32px rgba(18, 59, 118, 0.08);
}

.student-dashboard-profile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1.125rem 1.25rem;
}

.student-dashboard-avatar-shell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.student-dashboard-avatar {
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 1rem;
    object-fit: cover;
    border: 1px solid rgba(18, 59, 118, 0.12);
    background: #eef3fb;
    box-shadow: 0 10px 24px rgba(18, 59, 118, 0.08);
}

.student-dashboard-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    font-weight: 800;
    color: #123b76;
    background: linear-gradient(180deg, #eff4fb, #dfe8f6);
}

.student-dashboard-profile-copy {
    min-width: 0;
}

.student-dashboard-profile-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.student-dashboard-profile-eyebrow {
    color: #6a7891;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.student-dashboard-profile-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(18, 59, 118, 0.08);
    color: #123b76;
    font-size: 0.78rem;
    font-weight: 700;
}

.student-dashboard-profile h2 {
    margin: 0;
    color: #123b76;
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
}

.student-dashboard-uvaid {
    font-size: 0.48em;
    font-weight: 400;
    color: #123b76;
    vertical-align: middle;
}

.student-dashboard-profile-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.student-dashboard-profile-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.student-dashboard-profile-stat {
    display: grid;
    gap: 0.2rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(18, 59, 118, 0.08);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.92);
}

.student-dashboard-profile-stat-label {
    color: #6a7891;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.student-dashboard-profile-stat-value {
    color: #123b76;
    font-size: 1rem;
    font-weight: 700;
}

.student-dashboard-profile-copy-text {
    margin: 0.85rem 0 0;
    color: #5f6f8c;
    max-width: 42rem;
}

.student-dashboard-hour-panel {
    padding: 1.125rem 1.25rem;
}

.student-hour-summary-card {
    margin-bottom: 1.25rem;
    padding: 1.125rem 1.25rem;
    border: 1px solid rgba(18, 59, 118, 0.12);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.98));
    box-shadow: 0 16px 32px rgba(18, 59, 118, 0.08);
}

.student-hour-summary-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.student-hour-summary-header h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #123b76;
}

.student-hour-summary-header p {
    margin: 0.25rem 0 0;
    color: #5f6f8c;
}

.student-hour-summary-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.student-hour-summary-badge.is-complete {
    background: rgba(34, 125, 81, 0.14);
    color: #1f6d49;
}

.student-hour-summary-badge.is-in-progress {
    background: rgba(18, 59, 118, 0.1);
    color: #123b76;
}

.student-hour-summary-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
}

.student-hour-metric {
    padding: 0.95rem 1rem;
    border: 1px solid rgba(18, 59, 118, 0.1);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.92);
}

.student-hour-metric-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6a7891;
}

.student-hour-metric-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    color: #123b76;
}

.student-hour-summary-message {
    margin: 1rem 0 0;
    font-size: 1rem;
    font-weight: 600;
    color: #345070;
}

.student-hour-summary-message.is-complete {
    color: #1f6d49;
}

.student-evaluation-draft-status {
    color: #5f6f8c;
    font-size: 0.88rem;
    font-weight: 600;
}

.student-worklog-mobile-list {
    display: none;
}

.student-worklog-mobile-card {
    display: grid;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(18, 59, 118, 0.1);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.96);
}

.student-worklog-mobile-card + .student-worklog-mobile-card {
    margin-top: 0.75rem;
}

.student-worklog-mobile-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.student-worklog-mobile-field {
    display: grid;
    gap: 0.25rem;
}

.student-worklog-mobile-label {
    color: #6a7891;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.student-worklog-mobile-actions .btn {
    width: 100%;
}

.student-worklog-mobile-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    margin-top: 0.85rem;
    border-radius: 0.95rem;
    background: rgba(18, 59, 118, 0.06);
    color: #123b76;
    font-weight: 700;
}

.student-worklog-entry-field {
    display: grid;
}

.student-worklog-entry-notes {
    min-height: 8rem;
    line-height: 1.55;
}

.student-evaluation-textarea {
    min-height: 7rem;
    line-height: 1.55;
}

.student-evaluation-textarea-lg {
    min-height: 10rem;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid transparent;
}

.status-chip-outline {
    background: rgba(18, 59, 118, 0.04);
    color: #123b76;
    border-color: rgba(18, 59, 118, 0.14);
}

.status-chip-approved {
    background: rgba(34, 125, 81, 0.14);
    color: #1f6d49;
    border-color: rgba(34, 125, 81, 0.22);
}

.status-chip-active {
    background: rgba(18, 59, 118, 0.1);
    color: #123b76;
    border-color: rgba(18, 59, 118, 0.16);
}

.status-chip-pending,
.status-chip-warning {
    background: rgba(243, 156, 18, 0.14);
    color: #9a5b00;
    border-color: rgba(243, 156, 18, 0.22);
}

.status-chip-danger {
    background: rgba(201, 52, 52, 0.12);
    color: #a12727;
    border-color: rgba(201, 52, 52, 0.22);
}

.status-chip-neutral {
    background: rgba(34, 125, 81, 0.12);
    color: #1f6d49;
    border-color: rgba(34, 125, 81, 0.2);
}

.status-chip-complete {
    background: rgba(94, 109, 131, 0.12);
    color: #4c5f78;
    border-color: rgba(94, 109, 131, 0.2);
}

.status-chip-info {
    background: rgba(87, 168, 233, 0.14);
    color: #1f6ea9;
    border-color: rgba(87, 168, 233, 0.22);
}

.student-dashboard-mobile-cards {
    display: none;
}

.student-project-card {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid rgba(18, 59, 118, 0.12);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.98));
    box-shadow: 0 12px 28px rgba(18, 59, 118, 0.08);
}

.student-project-card + .student-project-card {
    margin-top: 0.9rem;
}

.student-project-worklog-card {
    margin-top: 1rem;
}

.student-project-worklog-editor {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid rgba(18, 59, 118, 0.08);
    border-radius: 0.85rem;
    background: rgba(248, 250, 253, 0.92);
}

.student-project-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.student-project-card-header-button {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    border-radius: 0.9rem;
    transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.student-project-card-header-content {
    display: grid;
    gap: 0.55rem;
    flex: 1 1 auto;
}

.student-project-card-header-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
}

.student-project-card-header h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #123b76;
}

.student-project-card-subtitle {
    margin: 0.25rem 0 0;
    color: #5f6f8c;
    font-size: 0.94rem;
}

.student-project-card-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(18, 59, 118, 0.08);
    color: #123b76;
    flex: 0 0 auto;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.student-project-card-toggle-caret {
    width: 0.65rem;
    height: 0.65rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.18s ease;
}

.student-project-card-toggle.is-expanded .student-project-card-toggle-caret {
    transform: rotate(225deg) translateY(-1px);
}

.student-project-card-header-button:hover .student-project-card-toggle,
.student-project-card-header-button:focus-visible .student-project-card-toggle {
    background: rgba(18, 59, 118, 0.12);
}

.student-project-card-header-button:hover,
.student-project-card-header-button:focus-visible {
    background: rgba(18, 59, 118, 0.04);
    box-shadow: inset 0 0 0 1px rgba(18, 59, 118, 0.08);
}

.student-project-card-header-button:active {
    transform: scale(0.995);
    background: rgba(18, 59, 118, 0.06);
}

.student-project-card-type {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.65rem;
    border-radius: 999px;
    background: rgba(18, 59, 118, 0.08);
    color: #123b76;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.student-project-card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.student-project-card-meta-item {
    display: grid;
    gap: 0.18rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(18, 59, 118, 0.08);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.94);
}

.student-project-card-meta-item span {
    color: #6a7891;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.student-project-card-meta-item strong {
    color: #123b76;
    font-size: 0.96rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.student-project-end-date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.student-project-end-date.is-overdue {
    color: #c62828;
}

.student-project-end-date.is-warning {
    color: #b26a00;
}

.student-project-end-date-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.student-project-card-meta-item-full {
    grid-column: 1 / -1;
}

.student-project-card-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.student-project-card-status-row > span:first-child {
    color: #5f6f8c;
    font-size: 0.88rem;
    font-weight: 700;
}

.student-project-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.student-project-card-actions .btn {
    flex: 1 1 10rem;
}

.student-project-card-expanded {
    display: grid;
    gap: 0.9rem;
    animation: student-card-expand 0.22s ease;
}

.student-project-card-details {
    padding-top: 0.25rem;
    border-top: 1px solid rgba(18, 59, 118, 0.08);
}

@keyframes student-card-expand {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.student-project-card-details .project-detail-stack,
.student-project-card-details .student-project-detail {
    padding-left: 0;
    padding-right: 0;
}

.project-longtext-field {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.project-longtext-preview {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(8, 35, 71, 0.1);
    border-radius: 0.9rem;
    background: rgba(248, 250, 253, 0.92);
}

.project-longtext-preview-title {
    color: var(--gw-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.project-longtext-preview-body {
    color: var(--gw-text);
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.project-longtext-editor {
    min-height: 15rem;
    line-height: 1.6;
    resize: vertical;
}

@media (max-width: 767.98px) {
    .student-dashboard-hero {
        grid-template-columns: 1fr;
    }

    .student-dashboard-mobile-cards {
        display: block;
    }

    .student-dashboard-desktop-grid {
        display: none;
    }

    .student-dashboard-profile {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .student-dashboard-profile-stats {
        grid-template-columns: 1fr;
    }

    .student-hour-summary-header {
        flex-direction: column;
    }

    .student-hour-summary-metrics {
        grid-template-columns: 1fr;
    }

    .student-project-card-meta {
        grid-template-columns: 1fr;
    }

    .student-project-card-header,
    .student-project-card-status-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .student-project-card-header-badges {
        width: 100%;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .student-project-card-actions .btn {
        width: 100%;
        flex-basis: 100%;
    }

    .student-dashboard-grid-shell .admin-grid-toolbar {
        gap: 0.85rem;
    }

    .student-dashboard-grid-shell .admin-grid-summary {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .student-dashboard-grid-shell .slideover-card-body .btn,
    .student-dashboard-grid-shell .slideover-footer .btn,
    .student-dashboard-grid-shell .admin-toolbar-actions .btn {
        width: 100%;
        min-height: 2.85rem;
    }

    .student-dashboard-grid-shell .admin-toolbar-actions {
        display: grid;
        gap: 0.75rem;
    }

    .student-dashboard-grid-shell .slideover-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .student-dashboard-grid-shell .slideover-footer .btn {
        margin: 0;
    }

    .student-dashboard-grid-shell .slideover-section-header {
        gap: 0.75rem;
    }

    .student-dashboard-grid-shell .slideover-section-header .btn {
        width: 100%;
        min-height: 2.75rem;
    }

    .student-worklog-table {
        display: none;
    }

    .student-worklog-mobile-list {
        display: block;
    }

    .student-worklog-mobile-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .student-worklog-entry-form {
        gap: 1rem;
    }

    .student-worklog-entry-grid {
        gap: 0.85rem;
    }

    .student-worklog-entry-field {
        padding: 0.9rem;
        border: 1px solid rgba(18, 59, 118, 0.08);
        border-radius: 0.95rem;
        background: rgba(248, 250, 253, 0.92);
    }

    .student-worklog-entry-field-compact {
        padding-bottom: 0.75rem;
    }

    .student-worklog-entry-field .form-control {
        min-height: 2.85rem;
    }

    .student-evaluation-form-grid .form-control,
    .student-evaluation-form-grid textarea {
        font-size: 1rem;
    }

    .student-evaluation-form-grid .form-check {
        padding-top: 0.35rem;
    }
}

.student-agreement-readonly {
    display: grid;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(18, 59, 118, 0.12);
}

.student-agreement-readonly-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.student-agreement-readonly-label {
    font-weight: 600;
    color: #123b76;
}

.admin-email-recipient-summary {
    margin-bottom: 0.75rem;
}

.admin-email-recipient-list {
    display: grid;
    gap: 0.5rem;
}

.admin-email-recipient-item {
    display: flex;
    flex-direction: column;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    background: #f8fafc;
}

.admin-email-recipient-name {
    font-weight: 600;
}

.admin-email-recipient-email {
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
}

.admin-email-body {
    min-height: 18rem;
}

.sent-email-preview-frame a {
    color: #1155CC;
    text-decoration: underline;
}

.student-search-empty {
    padding: 0.5rem 0.75rem;
    color: var(--app-text-muted, #66758f);
    font-size: 0.9rem;
}

#blazor-error-ui.site-error-toast {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    left: 1rem;
    z-index: 2000;
    max-width: 40rem;
    margin-left: auto;
    background: #fff;
    color: #0b1f44;
    border: 1px solid rgba(87, 168, 233, 0.35);
    border-left: 4px solid #57a8e9;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(11, 31, 68, 0.18);
    padding: 0.9rem 1rem;
    align-items: center;
    gap: 1rem;
}

#blazor-error-ui.site-error-toast .site-error-toast-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

#blazor-error-ui.site-error-toast .site-error-toast-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
}

#blazor-error-ui.site-error-toast .reload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: #133b7a;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

#blazor-error-ui.site-error-toast .reload:hover {
    background: #0f3267;
    color: #fff;
    text-decoration: none;
}

#blazor-error-ui.site-error-toast .dismiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    color: #5f6f8c;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

#blazor-error-ui.site-error-toast .dismiss:hover {
    background: #eef3f9;
    color: #0b1f44;
}

.page-toast {
    position: fixed;
    top: 7.25rem;
    right: 1.5rem;
    z-index: 1085;
    width: min(24rem, calc(100vw - 2rem));
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.95rem 1rem 0.95rem 1.1rem;
    border: 1px solid #dbe5f4;
    border-left: 4px solid #4ea7ff;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(8px);
    animation: page-toast-enter 180ms ease-out;
}

.page-toast-success {
    border-left-color: #22a06b;
}

.page-toast-warning {
    border-left-color: #d4a11e;
}

.page-toast-danger {
    border-left-color: #d14343;
}

.page-toast-info {
    border-left-color: #4ea7ff;
}

.page-toast-body {
    min-width: 0;
    flex: 1 1 auto;
}

.page-toast-heading {
    margin-bottom: 0.2rem;
    color: #12386b;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-toast-message {
    color: #183153;
    font-size: 0.96rem;
    line-height: 1.45;
}

.page-toast-dismiss {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #5b6b84;
    font-size: 1.2rem;
    line-height: 1;
    transition: background-color 120ms ease, color 120ms ease;
}

.page-toast-dismiss:hover {
    background: #eef3fb;
    color: #183153;
}

@keyframes page-toast-enter {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 991.98px) {
    .page-toast {
        top: 6.25rem;
        right: 1rem;
        left: 1rem;
        width: auto;
    }
}

/* Load-more button */
.btn-gw-navy {
    background-color: var(--gw-navy);
    border-color: var(--gw-navy);
    color: #fff;
    font-weight: 500;
}

.btn-gw-navy:hover {
    background-color: var(--gw-navy-deep);
    border-color: var(--gw-navy-deep);
    color: #fff;
}

.btn-gw-navy:focus-visible {
    background-color: var(--gw-navy-deep);
    border-color: var(--gw-navy-deep);
    color: #fff;
    outline: 2px solid var(--gw-navy);
    outline-offset: 2px;
}

.btn-gw-navy:disabled,
.btn-gw-navy.disabled {
    background-color: var(--gw-navy);
    border-color: var(--gw-navy);
    color: #fff;
    opacity: 0.65;
}

/* Scroll-to-top button */
.gw-scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: none;
    background-color: #123b76;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, background-color 0.15s ease;
    z-index: 1050;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.gw-scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
}

.gw-scroll-top-btn:hover {
    background-color: #5c636a;
}

.gw-scroll-top-btn:focus-visible {
    outline: 2px solid #6c757d;
    outline-offset: 2px;
    background-color: #5c636a;
}

/* ── File drop zone ─────────────────────────────────────────────────────── */
.file-drop-zone {
    position: relative;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    background-color: #fafafa;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.file-drop-zone:hover,
.file-drop-zone--over {
    border-color: #0d6efd;
    background-color: #f0f6ff;
}

.file-drop-zone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.file-drop-zone-body {
    pointer-events: none;
}

.file-drop-zone-icon {
    display: block;
    margin: 0 auto 0.5rem;
    color: #6c757d;
    transition: color 0.15s ease;
}

.file-drop-zone:hover .file-drop-zone-icon,
.file-drop-zone--over .file-drop-zone-icon {
    color: #0d6efd;
}

.file-drop-zone-filename {
    font-weight: 600;
    color: #198754;
    word-break: break-all;
}

.resume-download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #f8f9fa;
    color: #0d6efd;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    max-width: 100%;
    overflow: hidden;
}

.resume-download-link:hover {
    background: #e9ecef;
    border-color: #0d6efd;
    color: #0a58ca;
}

.resume-download-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
