:root {
    --navy-950: #5a1010;
    --navy-900: #8B1A1A;
    --navy-800: #a32020;
    --blue-500: #c0392b;
    --blue-400: #d46060;
    --blue-300: #e8a0a0;
    --blue-100: #fde8e8;
    --bg: #f4f6fb;
    --surface: #ffffff;
    --surface-muted: #fff8f8;
    --text: #172033;
    --muted: #667085;
    --border: #dbe4f0;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 30px 70px rgba(15, 23, 42, 0.14);
    --ring: 0 0 0 4px rgba(139, 26, 26, 0.12);
    --green: #16a34a;
    --green-bg: #dcfce7;
    --yellow: #d4a106;
    --yellow-bg: #fef3c7;
    --red: #dc2626;
    --red-bg: #fee2e2;
    --gray-bg: #eef2f7;
    --radius-xl: 24px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

.is-hidden {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: #ffffff;
    color: var(--text);
}

body::before {
    display: none;
}

*::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

*::-webkit-scrollbar-track {
    background: rgba(219, 228, 240, 0.55);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(139,26,26,0.7), rgba(192,57,43,0.7));
    border: 3px solid rgba(255,255,255,0.7);
    border-radius: 999px;
}

body.sidebar-collapsed {
    --sidebar-width: 84px;
}

/* ── Notification menu wrapper ── */
.notification-menu {
    position: relative;
    z-index: 102;
}

/* ── Bell trigger button ── */
.notif-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid var(--border);
    cursor: pointer;
    color: var(--navy-900);
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    outline: none;
}

.notif-trigger:hover {
    background: var(--navy-900);
    color: #fff;
    border-color: var(--navy-900);
    box-shadow: 0 3px 12px rgba(139,26,26,0.3);
}
.notification-menu.is-open .notif-trigger {
    background: var(--navy-900);
    color: #fff;
    border-color: var(--navy-900);
    box-shadow: 0 3px 12px rgba(139,26,26,0.3);
}

.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #dc2626;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    line-height: 1;
    pointer-events: none;
}

/* ── Notification panel — hidden by default, fixed to viewport ── */
.notif-panel {
    position: fixed;
    z-index: 999;
    width: 370px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.notif-panel[hidden] {
    display: none !important;
}

/* Arrow caret pointing up toward bell button */
.notif-panel::before {
    content: '';
    position: absolute;
    top: -7px;
    left: var(--caret-left, 24px);
    width: 14px;
    height: 14px;
    background: var(--navy-900);
    transform: rotate(45deg);
    border-radius: 2px 0 0 0;
    z-index: 1;
}

.notif-panel.is-open {
    display: block;
    animation: notifFadeIn 0.20s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes notifFadeIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ── Panel header (coral-red) ── */
.notif-panel-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 16px;
    background: var(--navy-900);
}

.notif-panel-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
}

.notif-panel-gear {
    opacity: 0.65;
    cursor: pointer;
    transition: opacity 0.15s;
    color: #fff;
    background: none;
    border: none;
    padding: 2px;
    display: inline-flex;
}
.notif-panel-gear:hover { opacity: 1; }

/* ── Empty state ── */
.notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 44px 24px 40px;
    text-align: center;
}

.notif-empty-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fdf2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    color: var(--navy-900);
    opacity: 0.5;
}

.notif-empty p {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.notif-empty small {
    font-size: 12px;
    color: #9ca3af;
}

/* ── Notification list ── */
.notif-list {
    max-height: 340px;
    overflow-y: auto;
    padding: 6px 0;
}

.notif-list::-webkit-scrollbar { width: 4px; }
.notif-list::-webkit-scrollbar-track { background: transparent; }
.notif-list::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }

/* ── Notification item ── */
.notif-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 18px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.12s;
}

.notif-item + .notif-item {
    border-top: 1px solid #f3f4f6;
}

.notif-item:hover { background: #fdf5f5; }
.notif-item.is-unread { background: #fff9f9; }
.notif-item.is-unread:hover { background: #fdeaea; }

/* ── Avatar circle ── */
.notif-avatar {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Body text ── */
.notif-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.notif-title {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notif-msg {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-time {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 3px;
}

/* ── Unread dot (right) ── */
.notif-dot {
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.18);
}

/* ── Footer ── */
.notif-footer {
    border-top: 1px solid #f3f4f6;
    padding: 13px 18px;
    text-align: center;
}

.notif-mark-all {
    font-size: 13px;
    color: var(--navy-900);
    text-decoration: none;
    font-weight: 600;
}
.notif-mark-all:hover { text-decoration: underline; }

.email-log-type {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff1f1;
    color: var(--navy-900);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: capitalize;
}

.table-actions {
    width: 110px;
}

.table-actions .btn {
    min-height: 34px;
    padding-inline: 12px;
}

.requirement-review-list {
    margin-top: 12px;
    border: 1px solid #e6edf7;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #fffaf9);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.requirement-review-list summary {
    list-style: none;
}

.requirement-review-list summary::-webkit-details-marker {
    display: none;
}

.requirement-review-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
    background: linear-gradient(180deg, #fff8f8, #fff2f2);
}

.requirement-review-toggle-copy {
    display: grid;
    gap: 3px;
}

.requirement-review-toggle-copy strong {
    color: var(--navy-900);
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.requirement-review-toggle-copy small {
    color: #6b7280;
    font-size: 0.78rem;
}

.requirement-review-toggle-icon {
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--navy-900);
    border-bottom: 2px solid var(--navy-900);
    transform: rotate(45deg);
    transition: transform 0.18s ease;
    margin-right: 4px;
}

.requirement-review-list[open] .requirement-review-toggle-icon {
    transform: rotate(225deg);
}

.requirement-review-panel {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.requirement-review-item {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

.requirement-review-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.requirement-review-title {
    display: block;
    font-size: 1rem;
    color: #1f2937;
    margin-bottom: 4px;
}

.requirement-review-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.requirement-review-file {
    min-width: 112px;
}

.requirement-review-empty {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f8fafc;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 600;
}

.requirement-review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.requirement-review-reject-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    flex: 1;
}

.requirement-review-note {
    min-width: 220px;
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
}

.requirement-review-note:focus {
    border-color: rgba(139, 26, 26, 0.7);
    box-shadow: var(--ring);
    outline: none;
}

.requirement-review-notes {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.requirement-review-notes span {
    color: #b45309;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.requirement-review-notes strong {
    color: #7c2d12;
    line-height: 1.5;
}

.student-predeployment-cell > .badge {
    margin-bottom: 8px;
}

.requirement-review-launch {
    margin-top: 4px;
}

.requirement-review-count {
    display: block;
    margin-top: 8px;
    color: #6b7280;
    font-size: 0.78rem;
}

.requirement-review-ready {
    color: #166534;
    font-weight: 700;
}

.requirement-review-modal {
    z-index: 430;
}

.requirement-review-modal-card {
    width: min(1240px, 97vw);
    max-width: 1240px;
    max-height: 92vh;
    padding: 28px;
    border-radius: 32px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    background: linear-gradient(180deg, #ffffff 0%, #fffbfb 100%);
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.2), 0 10px 30px rgba(139, 26, 26, 0.08);
}

.requirement-review-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 50px 18px 0;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(219, 228, 240, 0.75);
}

.requirement-review-modal-header h2 {
    margin: 0 0 6px;
    font-size: 1.55rem;
}

.requirement-review-modal-header p {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.requirement-review-modal-body {
    overflow: auto;
    padding-right: 8px;
    margin-right: -2px;
}

.requirement-review-modal-body::-webkit-scrollbar {
    width: 8px;
}

.requirement-review-modal-body::-webkit-scrollbar-track {
    background: rgba(248, 250, 252, 0.9);
    border-radius: 999px;
}

.requirement-review-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(139,26,26,0.55), rgba(192,57,43,0.72));
    border-radius: 999px;
}

.requirement-review-modal-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 2;
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff8f8, #fff2f2);
    color: var(--navy-900);
    border: 1px solid rgba(243, 214, 214, 0.95);
    box-shadow: 0 12px 28px rgba(139, 26, 26, 0.08);
    backdrop-filter: blur(8px);
}

.requirement-review-modal-summary span {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.72;
}

.requirement-review-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
    align-items: start;
}

.requirement-review-modal .modal-close {
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.requirement-review-modal .badge {
    flex-shrink: 0;
}

.requirement-review-modal .requirement-review-item {
    gap: 14px;
    padding: 20px;
    border-radius: 22px;
    min-height: 100%;
    align-content: start;
    background: linear-gradient(180deg, #ffffff 0%, #fffdfd 100%);
    border-color: #d8e3f0;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.requirement-review-modal .requirement-review-head {
    align-items: flex-start;
    gap: 14px;
}

.requirement-review-modal .requirement-review-title {
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.3;
}

.requirement-review-modal .requirement-review-file-row {
    justify-content: flex-start;
}

.requirement-review-modal .requirement-review-file,
.requirement-review-modal .requirement-review-actions .btn {
    min-width: 128px;
}

.requirement-review-modal .requirement-review-actions {
    display: grid;
    gap: 12px;
    align-items: stretch;
}

.requirement-review-modal .requirement-review-actions > .inline {
    display: flex;
}

.requirement-review-modal .requirement-review-reject-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

.requirement-review-modal .requirement-review-note {
    min-width: 0;
    min-height: 46px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #fffafa);
}

.requirement-review-item.status-approved {
    border-color: #bbf7d0;
    background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
}

.requirement-review-item.status-rejected {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fef2f2 0%, #fff1f2 100%);
}

.requirement-review-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 700;
    animation: reviewResultFadeIn 0.35s ease;
}

.requirement-review-result svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.requirement-review-result.result-approved {
    background: linear-gradient(135deg, #dcfce7, #d1fae5);
    color: #166534;
    border: 1px solid #86efac;
}

.requirement-review-result.result-approved svg {
    fill: #16a34a;
}

.requirement-review-result.result-rejected {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.requirement-review-result.result-rejected svg {
    fill: #dc2626;
}

.requirement-review-result .result-note {
    display: block;
    margin-top: 4px;
    font-weight: 600;
    font-size: 0.82rem;
    opacity: 0.8;
    font-style: italic;
}

@keyframes reviewResultFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.requirement-review-modal .requirement-review-empty {
    min-height: 42px;
    padding-inline: 14px;
}

.requirement-forward-box {
    margin-top: 18px;
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff9f9, #fff3f3);
    border: 1px solid #f3d6d6;
    display: grid;
    gap: 14px;
    box-shadow: 0 14px 30px rgba(139, 26, 26, 0.07);
}

.requirement-forward-box strong {
    display: block;
    color: var(--navy-900);
    margin-bottom: 4px;
}

.requirement-forward-box small {
    color: #6b7280;
}

.requirement-forward-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.requirement-forward-form .btn {
    min-width: 168px;
}

@media (max-width: 760px) {
    .requirement-review-head,
    .requirement-review-file-row {
        grid-template-columns: 1fr;
        display: grid;
    }

    .requirement-review-reject-form,
    .requirement-review-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .requirement-review-note {
        min-width: 0;
        width: 100%;
    }

    .requirement-review-modal-card {
        width: min(100%, 100vw);
        max-height: 94vh;
        padding: 20px;
        border-radius: 24px;
    }

    .requirement-review-modal-grid,
    .requirement-forward-form {
        grid-template-columns: 1fr;
    }

    .requirement-review-modal-summary,
    .requirement-review-modal-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .requirement-review-modal .requirement-review-reject-form {
        grid-template-columns: 1fr;
    }
}

body:not(.sidebar-collapsed) {
    --sidebar-width: 260px;
}

a {
    color: var(--blue-500);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex: 0 0 auto;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

small,
.muted {
    color: var(--muted);
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px 18px;
    background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
    color: #fff;
    box-shadow: 20px 0 50px rgba(16, 40, 77, 0.22);
    transition: width 0.25s ease, padding 0.25s ease;
    z-index: 30;
    overflow: hidden;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
    min-height: 0;
}

.sidebar::before,
.sidebar::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.16;
}

.sidebar::before {
    width: 220px;
    height: 220px;
    top: -80px;
    right: -80px;
    background: radial-gradient(circle, rgba(143,192,242,0.55), transparent 68%);
}

.sidebar::after {
    width: 280px;
    height: 280px;
    bottom: -120px;
    left: -120px;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
}

.sidebar-toggle {
    position: relative;
    align-self: flex-start;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-toggle svg {
    transition: transform 0.25s ease;
}

.sidebar-collapsed .sidebar-toggle svg {
    transform: rotate(180deg);
}

.brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    overflow: hidden;
}

.brand > div {
    min-width: 0;
    overflow: hidden;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.brand-mark svg {
    width: 22px;
    height: 22px;
}

.brand strong {
    display: block;
    font-size: 1.25rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand small {
    display: block;
    margin-top: 4px;
    color: rgba(235, 242, 255, 0.78);
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



.nav-link {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 0 14px;
    color: rgba(235, 242, 255, 0.86);
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease;
    min-width: 0;
    overflow: hidden;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.nav-link svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: currentColor;
    opacity: 0.85;
}

.nav-link span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-link-label--short,
.nav-group-toggle .nav-link-label--short {
    display: none;
}

/* ── Nav Group (Manage Users dropdown) ── */
.nav-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-group-toggle {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 0 14px;
    width: 100%;
    color: rgba(235, 242, 255, 0.86);
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
    overflow: hidden;
}

.nav-group-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav-group-toggle svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: currentColor;
    opacity: 0.85;
}

.nav-group-toggle span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-group-toggle .chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
    opacity: 0.7;
}

.nav-group.open .chevron {
    transform: rotate(180deg);
}

.nav-group-items {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding-left: 14px;
}

.nav-group.open .nav-group-items,
.nav-group--student-docs.nav-group--active .nav-group-items {
    display: flex;
}

.nav-group.open > .nav-group-toggle,
.nav-group--student-docs.nav-group--active > .nav-group-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav-sub {
    min-height: 38px;
    font-size: 0.92rem;
    padding: 0 12px;
    border-radius: 10px;
}

/* ── Sidebar user footer ── */
.sidebar-user {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
}

.sidebar-user-info .user-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.sidebar-user-info strong {
    display: block;
    font-size: 0.88rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-info small {
    display: block;
    font-size: 0.76rem;
    color: rgba(235,242,255,0.65);
}

.sidebar-logout {
    color: rgba(235, 242, 255, 0.75);
    font-size: 0.9rem;
    min-height: 38px;
}


/* ─── Programs / Courses Page ───────────────────────────────────────────── */
.programs-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 8px;
}

.programs-page-intro {
    position: relative;
    padding: 18px 24px;
    border-radius: var(--radius-md);
    background:
        radial-gradient(circle at 100% 0%, rgba(139, 26, 26, 0.06) 0%, transparent 42%),
        linear-gradient(135deg, #fff 0%, #fafbfd 100%);
    border: 1px solid rgba(219, 228, 240, 0.9);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.programs-page-eyebrow {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy-800);
}

.programs-page-desc {
    margin: 0;
    max-width: 62ch;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--muted);
}

.programs-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.programs-stat-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid rgba(219, 228, 240, 0.95);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    overflow: hidden;
}

.programs-stat-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.programs-stat-total::after  { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.programs-stat-active::after { background: linear-gradient(90deg, #16a34a, #4ade80); }
.programs-stat-inactive::after { background: linear-gradient(90deg, #94a3b8, #cbd5e1); }
.programs-stat-terms::after  { background: linear-gradient(90deg, var(--navy-900), var(--blue-400)); }

.programs-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    border-color: rgba(139, 26, 26, 0.12);
}

.programs-stat-card:hover::after {
    opacity: 1;
}

.programs-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.programs-stat-total .programs-stat-icon   { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #2563eb; }
.programs-stat-active .programs-stat-icon  { background: linear-gradient(135deg, #ecfdf5, #dcfce7); color: #16a34a; }
.programs-stat-inactive .programs-stat-icon { background: linear-gradient(135deg, #f8fafc, #f1f5f9); color: #64748b; }
.programs-stat-terms .programs-stat-icon   { background: linear-gradient(135deg, #fff5f5, #fee2e2); color: var(--navy-800); }

.programs-stat-body span {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 4px;
}

.programs-stat-body strong {
    display: block;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text);
    line-height: 1;
}

.programs-top-row {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 22px;
    align-items: stretch;
}

.programs-panel {
    background: var(--surface);
    border: 1px solid rgba(219, 228, 240, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.05);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.programs-panel-head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(219, 228, 240, 0.8);
}

.programs-icon-wrap {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 20px rgba(139, 26, 26, 0.22);
}

.programs-icon-wrap--add {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--blue-500) 100%);
}

.programs-icon-wrap--term {
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    box-shadow: 0 8px 20px rgba(30, 41, 59, 0.18);
}

.programs-panel-head h2,
.programs-list-header h2 {
    margin: 0 0 6px;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.programs-panel-head p,
.programs-list-header p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.55;
}

.programs-panel-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.programs-panel .form.programs-form,
.programs-panel .form.programs-term-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.programs-form {
    flex: 1;
    width: 100%;
}

.programs-panel .form.programs-form .programs-field,
.programs-panel .form.programs-term-form .programs-field,
.programs-panel .form.programs-form .programs-inline-hint,
.programs-form-section {
    width: 100%;
}

.programs-form-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.programs-form-section-head,
.programs-term-list-head {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
}

.programs-form-row {
    display: grid;
    grid-template-columns: minmax(140px, 0.38fr) minmax(0, 1fr);
    gap: 14px;
    align-items: end;
}

.programs-form-row .programs-field-label {
    min-height: 2.4em;
    display: flex;
    align-items: flex-end;
}

.programs-panel .form label.programs-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.programs-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.programs-field-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    letter-spacing: 0.01em;
}

.programs-field-label em {
    color: var(--navy-800);
    font-style: normal;
}

.programs-panel .form input,
.programs-panel .form select,
.program-row-fields input,
.program-row-fields select {
    width: 100%;
    height: 46px;
    min-height: 46px;
    padding: 0 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 0.92rem;
    line-height: 1.35;
    color: var(--text);
    box-sizing: border-box;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.programs-panel .form select {
    appearance: none;
    padding-right: 38px;
    background-color: #f8fafc;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.programs-panel .form select:focus {
    background-color: #fff;
}

.programs-panel .form input::placeholder {
    color: #94a3b8;
}

.programs-panel .form input:focus,
.programs-panel .form select:focus,
.program-row-fields input:focus,
.program-row-fields select:focus {
    border-color: rgba(30, 41, 59, 0.35);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.08);
    transform: none;
    outline: none;
}

.programs-panel .form input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.programs-panel .form input[type="number"]::-webkit-outer-spin-button,
.programs-panel .form input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.programs-inline-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 0.82rem;
    font-weight: 600;
}

.programs-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    align-self: center;
    gap: 8px;
    width: auto;
    max-width: max-content;
    min-height: 42px;
    padding: 0 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    border: none;
    box-shadow: 0 8px 20px rgba(30, 41, 59, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.programs-add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(30, 41, 59, 0.26);
    filter: brightness(1.04);
}

.programs-add-btn--secondary {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    box-shadow: 0 8px 20px rgba(30, 41, 59, 0.18);
}

.programs-add-btn--secondary:hover {
    box-shadow: 0 10px 24px rgba(30, 41, 59, 0.26);
}

.programs-term-form {
    width: 100%;
}

.programs-term-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-height: 0;
}

.programs-term-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
}

.programs-term-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.programs-term-row:hover {
    background: #fff;
    border-color: rgba(139, 26, 26, 0.18);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.programs-term-chip {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
}

.programs-term-chip svg {
    flex-shrink: 0;
    color: var(--navy-800);
    opacity: 0.75;
}

.programs-term-label-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    word-break: break-word;
}

.programs-term-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 4px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    flex-shrink: 0;
}

.programs-term-delete-btn:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: var(--red);
}

.programs-term-delete-form {
    display: inline-flex;
}

.programs-term-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 16px;
    border: 1.5px dashed #dbe4f0;
    border-radius: 14px;
    background: linear-gradient(180deg, #fafbfd 0%, #f8fafc 100%);
    color: #94a3b8;
    text-align: center;
}

.programs-term-empty p {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 600;
}

.programs-count-badge {
    flex-shrink: 0;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.programs-count-badge--accent {
    background: linear-gradient(135deg, #fff5f5, #fee2e2);
    color: var(--navy-900);
    border-color: rgba(139, 26, 26, 0.15);
}

.programs-list-card {
    gap: 18px;
}

.programs-list-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 4px;
}

.programs-table-head {
    display: grid;
    grid-template-columns: 96px minmax(160px, 1.4fr) minmax(180px, 1.2fr) 96px 118px 132px;
    gap: 10px;
    padding: 0 16px 10px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
}

.programs-row-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.program-row-card {
    position: relative;
    display: flex;
    align-items: stretch;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

.program-row-card:hover {
    border-color: rgba(139, 26, 26, 0.2);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
    transform: translateY(-1px);
}

.program-row-active {
    background: #fff;
}

.program-row-inactive {
    background: #fafbfd;
    opacity: 0.88;
}

.program-row-inline {
    display: grid;
    grid-template-columns: 96px minmax(160px, 1.4fr) minmax(180px, 1.2fr) 96px 118px 132px;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
}

.program-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.program-row-actions form {
    display: inline-flex;
}

.pf-input {
    min-height: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 0.86rem;
    font-weight: 500;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--text);
    width: 100%;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.pf-input:focus {
    border-color: rgba(139, 26, 26, 0.45);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.1);
}

.pf-code {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--navy-900);
}

.pf-hours-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pf-hours {
    padding-right: 38px;
    text-align: right;
}

.pf-hours-suffix {
    position: absolute;
    right: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    pointer-events: none;
}

.programs-save-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 78px;
    height: 40px;
    padding: 0 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.programs-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(139, 26, 26, 0.28);
}

.programs-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #94a3b8;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.programs-delete-btn:hover {
    background: #fef2f2;
    color: var(--red);
    border-color: #fecaca;
}

.programs-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 56px 24px;
    text-align: center;
    border: 1.5px dashed #dbe4f0;
    border-radius: 16px;
    background: linear-gradient(180deg, #fafbfd 0%, #f8fafc 100%);
}

.programs-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff5f5, #fee2e2);
    color: var(--navy-800);
    margin-bottom: 6px;
}

.programs-empty-state h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
}

.programs-empty-state p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

/* ─── Partner Companies ─────────────────────────────────────────────────── */
.partner-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 8px;
    animation: partnerFadeUp 0.34s ease both;
}

@keyframes partnerFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.partner-page-intro {
    position: relative;
    padding: 18px 24px;
    border-radius: var(--radius-md);
    background:
        radial-gradient(circle at 100% 0%, rgba(139, 26, 26, 0.06) 0%, transparent 42%),
        linear-gradient(135deg, #fff 0%, #fafbfd 100%);
    border: 1px solid rgba(219, 228, 240, 0.9);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.partner-page-eyebrow {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy-800);
}

.partner-page-desc {
    margin: 0;
    max-width: 62ch;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--muted);
}

.partner-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.partner-stat-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid rgba(219, 228, 240, 0.95);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    overflow: hidden;
}

.partner-stat-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.partner-stat-total::after    { background: linear-gradient(90deg, var(--navy-900), var(--blue-400)); }
.partner-stat-active::after  { background: linear-gradient(90deg, #16a34a, #4ade80); }
.partner-stat-inactive::after { background: linear-gradient(90deg, #94a3b8, #cbd5e1); }
.partner-stat-programs::after { background: linear-gradient(90deg, #2563eb, #60a5fa); }

.partner-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    border-color: rgba(139, 26, 26, 0.12);
}

.partner-stat-card:hover::after {
    opacity: 1;
}

.partner-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.partner-stat-total .partner-stat-icon    { background: linear-gradient(135deg, #fff5f5, #fee2e2); color: var(--navy-800); }
.partner-stat-active .partner-stat-icon   { background: linear-gradient(135deg, #ecfdf5, #dcfce7); color: #16a34a; }
.partner-stat-inactive .partner-stat-icon { background: linear-gradient(135deg, #f8fafc, #f1f5f9); color: #64748b; }
.partner-stat-programs .partner-stat-icon { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #2563eb; }

.partner-stat-body span {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 4px;
}

.partner-stat-body strong {
    display: block;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text);
    line-height: 1;
}

.partner-admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 22px;
    align-items: stretch;
}

.partner-panel {
    background: var(--surface);
    border: 1px solid rgba(219, 228, 240, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.05);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.partner-panel-head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(219, 228, 240, 0.8);
}

.partner-panel-head--split {
    justify-content: space-between;
}

.partner-panel-head-main {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    min-width: 0;
}

.partner-icon-wrap {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 20px rgba(139, 26, 26, 0.22);
}

.partner-icon-wrap--add {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--blue-500) 100%);
}

.partner-icon-wrap--directory {
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    box-shadow: 0 8px 20px rgba(30, 41, 59, 0.18);
}

.partner-icon-wrap--programs {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}

.partner-panel-head h2 {
    margin: 0 0 6px;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.partner-panel-head p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.55;
}

.partner-panel-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.partner-count-badge {
    flex-shrink: 0;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #fff5f5, #fee2e2);
    color: var(--navy-900);
    border: 1px solid rgba(139, 26, 26, 0.15);
    white-space: nowrap;
}

.partner-form-card {
    height: min(78vh, 860px);
    overflow: auto;
    align-self: stretch;
}

.partner-form-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 0 0 auto;
}

.partner-form-section-head {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
}

.partner-form-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.partner-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.partner-field--full {
    width: 100%;
}

.partner-field-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    letter-spacing: 0.01em;
}

.partner-field-label em {
    color: var(--navy-800);
    font-style: normal;
}

.partner-field input,
.partner-field textarea {
    width: 100%;
    padding: 0 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 0.92rem;
    line-height: 1.35;
    color: var(--text);
    box-sizing: border-box;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    font-family: inherit;
    outline: none;
}

.partner-field input {
    height: 46px;
    min-height: 46px;
}

.partner-field textarea {
    min-height: 96px;
    padding: 12px 14px;
    resize: vertical;
}

.partner-field input::placeholder,
.partner-field textarea::placeholder {
    color: #94a3b8;
}

.partner-field input:focus,
.partner-field textarea:focus {
    border-color: rgba(139, 26, 26, 0.35);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.08);
}

.partner-program-picker {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 180px;
    overflow-y: auto;
    padding: 2px 0;
}

.partner-program-option {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.partner-program-option:hover {
    border-color: rgba(139, 26, 26, 0.2);
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.partner-program-option:has(input:checked) {
    border-color: rgba(139, 26, 26, 0.35);
    background: linear-gradient(135deg, #fffafa 0%, #fff5f5 100%);
    box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.08);
}

.partner-program-option--card {
    padding: 14px 16px;
}

.partner-program-option input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--navy-900);
    cursor: pointer;
}

.partner-program-copy strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.partner-program-copy span {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.partner-program-option em {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
}

.partner-credential-strip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: 14px;
    margin-top: 2px;
}

.partner-credential-strip svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #d97706;
}

.partner-credential-strip strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 3px;
}

.partner-credential-strip span {
    font-size: 0.78rem;
    color: #a16207;
    line-height: 1.45;
}

.partner-credential-note {
    margin: 4px 0 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #dc2626 !important;
    text-align: center !important;
}

.partner-credential-note strong {
    display: block;
    font-weight: 700;
    color: #dc2626 !important;
    text-align: center !important;
}

.partner-form-actions .btn {
    width: 100%;
    justify-content: center;
}

/* Partner Directory */
.partner-directory-card {
    height: min(78vh, 860px);
    position: relative;
    overflow: hidden;
    align-self: stretch;
}

.partner-directory-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    padding: 6px 4px 6px 0;
}

.partner-directory-scroll::-webkit-scrollbar {
    width: 8px;
}

.partner-directory-scroll::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 999px;
}

.partner-directory-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.45);
    border-radius: 999px;
}

.partner-company-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding-block: 6px;
}

.partner-company-card {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
    border: 1px solid rgba(219, 228, 240, 0.95);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
}

.partner-company-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--navy-900), var(--blue-400));
    opacity: 0;
    transition: opacity 0.22s ease;
}

.partner-company-card:hover {
    border-color: rgba(139, 26, 26, 0.18);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.partner-company-card:hover::before {
    opacity: 1;
}

.partner-company-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
    gap: 12px;
}

.partner-company-brand {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-width: 0;
}

.partner-company-brand-copy {
    flex: 1;
    min-width: 0;
    padding-top: 1px;
}

.partner-company-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--blue-500) 100%);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: -0.02em;
    box-shadow: 0 8px 20px rgba(139, 26, 26, 0.24);
}

.partner-company-brand h3 {
    margin: 0 0 2px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
}

.partner-company-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
    max-width: 100%;
}

.partner-company-brand p {
    margin: 0;
    font-size: 0.78rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.partner-company-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.partner-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    min-width: 0;
}

.partner-meta-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--navy-800);
    opacity: 0.7;
}

.partner-meta-item > div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.partner-meta-item span {
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.partner-meta-item strong {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.partner-company-status {
    align-self: flex-start;
    min-height: 30px;
    padding-inline: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
}

.partner-program-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.partner-program-tags span {
    padding: 5px 11px;
    background: linear-gradient(135deg, #eff6ff, #eef2ff);
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    border: 1px solid rgba(191, 219, 254, 0.9);
    white-space: nowrap;
}

.partner-tag-empty {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    border-color: #e2e8f0 !important;
}

.partner-company-footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(219, 228, 240, 0.8);
}

.partner-company-action {
    display: block;
    min-width: 0;
}

.partner-action-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    padding: 9px 10px !important;
    min-height: 38px !important;
    height: auto !important;
    border-radius: 10px !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #fff !important;
    color: #475569 !important;
    box-shadow: none !important;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease !important;
}

.partner-action-btn:hover {
    border-color: rgba(139, 26, 26, 0.25) !important;
    background: #fffafa !important;
    color: var(--navy-900) !important;
    transform: translateY(-1px);
}

.partner-action-btn--danger:hover {
    border-color: rgba(220, 38, 38, 0.35) !important;
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

.partner-action-btn.btn-primary {
    border-color: transparent !important;
    background: linear-gradient(135deg, var(--navy-900), var(--blue-500)) !important;
    color: #fff !important;
}

.partner-action-btn.btn-primary:hover {
    filter: brightness(1.05);
    color: #fff !important;
}

.partner-company-edit summary {
    list-style: none;
}

.partner-company-edit summary::-webkit-details-marker {
    display: none;
}

.partner-company-edit[open] {
    flex-basis: 100%;
}

.partner-company-edit[open] summary {
    margin-bottom: 10px;
}

.partner-company-edit-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border: 1px solid #f0f0f4;
    border-radius: 12px;
    background: #fff;
}

.partner-company-edit-form .partner-program-picker {
    max-height: 180px;
}

.partner-company-edit-form .partner-program-option {
    background: #fff;
}

.partner-company-edit-form .btn {
    width: 100%;
    justify-content: center;
}

.partner-company-doc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px dashed #dbeafe;
    border-radius: 12px;
}

.partner-company-doc-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.partner-company-doc-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.partner-doc-missing {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
}

.partner-company-doc-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    border-radius: 10px !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    padding: 8px 12px !important;
    min-height: 36px !important;
}

/* ═══════════════════════════════════════════════════════════════
   COORDINATOR – MOA/MOU DOCUMENT CENTRE  (cdoc-*)
═══════════════════════════════════════════════════════════════ */

.cdoc-page {
    display: flex;
    flex-direction: column;
    gap: 26px;
    animation: cdocFadeUp 0.34s ease both;
}

@keyframes cdocFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cdoc-page svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
    flex-shrink: 0;
}

.cdoc-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 28px;
    align-items: stretch;
    min-height: 290px;
    padding: clamp(26px, 4vw, 42px);
    overflow: hidden;
    border-radius: 30px;
    color: #fff;
    background: #7b1113;
    box-shadow: none;
}

.cdoc-hero::before,
.cdoc-hero::after {
    content: none;
}

.cdoc-hero-glow {
    display: none;
}

.cdoc-hero-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 760px;
}

.cdoc-hero-kicker,
.cdoc-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 800;
}

.cdoc-hero-kicker {
    padding: 7px 12px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 999px;
    color: rgba(255,255,255,0.86);
    background: rgba(255,255,255,0.11);
    backdrop-filter: blur(10px);
}

.cdoc-hero-kicker-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    color: #7f1d1d;
    background: #fff;
}

.cdoc-hero h1 {
    margin: 22px 0 12px;
    max-width: 640px;
    color: #fff;
    font-size: clamp(2.05rem, 4.5vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 800;
}

.cdoc-hero p {
    margin: 0;
    max-width: 620px;
    color: rgba(255,255,255,0.8);
    font-size: clamp(0.96rem, 1.4vw, 1.08rem);
    line-height: 1.75;
}

.cdoc-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.cdoc-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    color: #7f1d1d;
    background: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 800;
    box-shadow: 0 16px 32px rgba(0,0,0,0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cdoc-primary-action:hover {
    transform: translateY(-2px);
    color: #7f1d1d;
    text-decoration: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.22);
}

.cdoc-primary-action svg { font-size: 1.1rem; }

.cdoc-hero-note {
    color: rgba(255,255,255,0.66);
    font-size: 0.82rem;
    font-weight: 600;
}

.cdoc-hero-panel {
    align-self: center;
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 24px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.13), 0 24px 42px rgba(0,0,0,0.16);
}

.cdoc-hero-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    color: rgba(255,255,255,0.72);
    font-size: 0.78rem;
    font-weight: 700;
}

.cdoc-hero-panel-top strong {
    color: #fff;
    font-size: 0.86rem;
}

.cdoc-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.cdoc-metric-card {
    min-height: 112px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 18px;
    background: rgba(255,255,255,0.12);
}

.cdoc-metric-card--success { background: rgba(22, 163, 74, 0.18); }
.cdoc-metric-card--muted { background: rgba(15, 23, 42, 0.14); }
.cdoc-metric-card--accent { background: rgba(255, 255, 255, 0.18); }

.cdoc-metric-number {
    display: block;
    color: #fff;
    font-size: 2.1rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.cdoc-metric-label {
    display: block;
    margin-top: 10px;
    color: rgba(255,255,255,0.72);
    font-size: 0.68rem;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
}

.cdoc-section {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 28px;
    background: rgba(255,255,255,0.88);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255,255,255,0.78);
    backdrop-filter: blur(12px);
}

.cdoc-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.cdoc-section-heading {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cdoc-section-eyebrow {
    color: #b91c1c;
}

.cdoc-section-heading h2,
.cdoc-section-header-left h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-weight: 800;
}

.cdoc-section-heading p,
.cdoc-section-header-left p {
    margin: 0;
    max-width: 620px;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.65;
}

.cdoc-live-count {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 16px;
    color: #7f1d1d;
    background: #fff7f7;
    border: 1px solid #fecaca;
    box-shadow: 0 10px 22px rgba(127, 29, 29, 0.07);
}

.cdoc-live-count strong {
    font-size: 1.2rem;
    font-weight: 800;
}

.cdoc-live-count span {
    color: #9f5555;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cdoc-toolbar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid #edf0f5;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fffafa 100%);
}

.cdoc-search {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    color: #94a3b8;
    background: #fff;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.cdoc-search:focus-within {
    border-color: rgba(185, 28, 28, 0.42);
    box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.08);
}

.cdoc-search svg { font-size: 1.2rem; }

.cdoc-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #111827;
    background: transparent;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
}

.cdoc-search input::placeholder {
    color: #9ca3af;
    font-weight: 500;
}

.cdoc-filter-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.cdoc-filter {
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    color: #64748b;
    background: transparent;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 800;
    transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.cdoc-filter:hover,
.cdoc-filter.is-active {
    color: #7f1d1d;
    background: #fff;
    box-shadow: 0 8px 16px rgba(15,23,42,0.08);
}

.cdoc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 20px;
}

.cdoc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cdoc-card:hover {
    transform: translateY(-5px);
    border-color: rgba(185, 28, 28, 0.24);
    box-shadow: 0 24px 52px rgba(91, 16, 16, 0.13);
}

.cdoc-card[hidden] { display: none; }

.cdoc-card--inactive {
    background: linear-gradient(180deg, #fff, #f8fafc);
}

.cdoc-card-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 20px 20px 14px;
}

.cdoc-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(145deg, #6b1111, #bd1f1f);
    box-shadow: 0 14px 26px rgba(127, 29, 29, 0.24);
    font-size: 1.2rem;
    font-weight: 800;
}

.cdoc-card--inactive .cdoc-avatar {
    background: linear-gradient(145deg, #64748b, #94a3b8);
    box-shadow: 0 14px 26px rgba(100, 116, 139, 0.18);
}

.cdoc-card-identity {
    min-width: 0;
}

.cdoc-card-label {
    display: block;
    margin-bottom: 4px;
    color: #9ca3af;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.cdoc-card-name {
    margin: 0;
    overflow: hidden;
    color: #111827;
    font-size: 1.05rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cdoc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.cdoc-status-badge--active { color: #15803d; background: #ecfdf3; border: 1px solid #bbf7d0; }
.cdoc-status-badge--inactive { color: #64748b; background: #f8fafc; border: 1px solid #e2e8f0; }

.cdoc-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.14);
}

.cdoc-status-badge--inactive .cdoc-status-dot {
    box-shadow: 0 0 0 3px rgba(100,116,139,0.12);
}

.cdoc-document-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 20px 16px;
    padding: 14px;
    border: 1px solid #fee2e2;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff7f7 0%, #ffffff 100%);
}

.cdoc-document-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #b91c1c;
    background: #fff;
    box-shadow: 0 10px 20px rgba(127, 29, 29, 0.09);
}

.cdoc-document-icon svg { font-size: 1.25rem; }

.cdoc-document-copy {
    min-width: 0;
}

.cdoc-document-copy strong,
.cdoc-document-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cdoc-document-copy strong {
    color: #1f2937;
    font-size: 0.86rem;
    font-weight: 800;
}

.cdoc-document-copy span {
    margin-top: 3px;
    color: #9f5555;
    font-size: 0.74rem;
    font-weight: 700;
}

.cdoc-card-body {
    display: grid;
    gap: 10px;
    padding: 0 20px 18px;
}

.cdoc-info-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.cdoc-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #94a3b8;
    background: #f8fafc;
}

.cdoc-info-icon svg { font-size: 1rem; }

.cdoc-info-row span:not(.cdoc-info-icon) {
    display: block;
    margin-bottom: 2px;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cdoc-info-row strong {
    display: -webkit-box;
    overflow: hidden;
    color: #334155;
    font-size: 0.84rem;
    line-height: 1.45;
    font-weight: 700;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.cdoc-card-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
    padding: 18px 20px 20px;
    border-top: 1px solid #eef2f7;
    background: #fbfcfe;
}

.cdoc-programs {
    display: grid;
    gap: 10px;
}

.cdoc-programs-head {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.cdoc-programs-head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    border-radius: 999px;
    color: #7f1d1d;
    background: #fff;
    border: 1px solid #fee2e2;
}

.cdoc-footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.cdoc-tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid #fecaca;
    border-radius: 999px;
    color: #991b1b;
    background: #fff7f7;
    font-size: 0.72rem;
    font-weight: 800;
}

.cdoc-tag--more {
    color: #475569;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.cdoc-tag--empty {
    color: #94a3b8;
    background: #fff;
    border-color: #e2e8f0;
    font-style: italic;
}

.cdoc-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #761313 0%, #b91c1c 62%, #dc2626 100%);
    box-shadow: 0 16px 28px rgba(127, 29, 29, 0.22), inset 0 1px 0 rgba(255,255,255,0.15);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.cdoc-open-btn:hover {
    color: #fff;
    text-decoration: none;
    filter: saturate(1.05);
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(127, 29, 29, 0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}

.cdoc-open-btn svg { font-size: 1.05rem; }

.cdoc-empty,
.cdoc-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 300px;
    padding: 48px 24px;
    text-align: center;
}

.cdoc-no-results[hidden] { display: none; }

.cdoc-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border: 1px solid #fecaca;
    border-radius: 24px;
    color: #b91c1c;
    background: linear-gradient(145deg, #fff, #fff1f1);
    box-shadow: 0 18px 32px rgba(127, 29, 29, 0.08);
}

.cdoc-empty-icon svg { font-size: 2rem; }

.cdoc-empty-title {
    margin: 0;
    color: #111827;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cdoc-empty-sub {
    margin: 0;
    max-width: 440px;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.65;
}

@media (max-width: 1180px) {
    .cdoc-hero {
        grid-template-columns: 1fr;
    }

    .cdoc-hero-panel {
        align-self: stretch;
    }
}

@media (max-width: 760px) {
    .cdoc-hero,
    .cdoc-section {
        border-radius: 22px;
    }

    .cdoc-metrics-grid,
    .cdoc-toolbar {
        grid-template-columns: 1fr;
    }

    .cdoc-section-header {
        flex-direction: column;
    }

    .cdoc-live-count {
        width: 100%;
        justify-content: center;
    }

    .cdoc-filter-group {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }

    .cdoc-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .cdoc-card-header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .cdoc-status-badge {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

/* ── Legacy alias: keep old coordinator-doc-page class from breaking if cached */
.coordinator-doc-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Partner Table */
/* Partner Table */
.partner-table-shell {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f4;
}

.partner-table-shell .section-head {
    margin-bottom: 14px;
}

/* Full-width sections (table view + accepted programs) */
.partner-full-card {
    gap: 20px;
}

.partner-programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}

.partner-programs-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 20px;
    row-gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(219, 228, 240, 0.8);
}

.partner-create-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--blue-500) 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.92rem;
    border: none;
    box-shadow: 0 10px 28px rgba(139, 26, 26, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.partner-create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(139, 26, 26, 0.34);
    filter: brightness(1.04);
}

.partner-upload-field {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 4px;
    justify-self: start;
    min-width: 0;
    width: max-content;
    max-width: 100%;
    color: #314155;
    font-weight: 700;
}

.partner-upload-title {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.partner-upload-field input[type="file"] {
    grid-column: 2;
    max-width: 100%;
    min-width: 320px;
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.84rem;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: border-color 0.18s ease, background 0.18s ease;
}

.partner-upload-field input[type="file"]:focus {
    outline: none;
    border-color: rgba(139, 26, 26, 0.35);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.08);
}

.partner-upload-field input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--navy-900), var(--blue-500));
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    transition: filter 0.18s ease;
}

.partner-upload-field input[type="file"]::file-selector-button:hover {
    filter: brightness(1.06);
}

.partner-upload-note {
    grid-column: 2;
    display: block;
    text-align: left;
    font-size: 0.78rem;
    white-space: nowrap;
    color: #64748b;
}

@media (max-width: 640px) {
    .partner-programs-footer {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .partner-upload-field {
        width: 100%;
        grid-template-columns: 1fr;
        justify-self: stretch;
        row-gap: 6px;
    }

    .partner-upload-field input[type="file"] {
        grid-column: 1;
        min-width: 100%;
    }

    .partner-upload-note {
        grid-column: 1;
        text-align: left;
        white-space: normal;
    }

    .partner-programs-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

.company-doc-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: -2px;
}

.company-doc-preview[hidden] {
    display: none;
}

/* Partner empty state */
.partner-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 48px 24px;
    text-align: center;
    flex: 1;
    justify-content: center;
}

.partner-empty-state--compact {
    padding: 32px 24px;
}

.partner-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    margin-bottom: 4px;
}

.partner-empty-state strong {
    font-size: 0.95rem;
    font-weight: 800;
    color: #334155;
    letter-spacing: -0.01em;
}

.partner-empty-state span {
    font-size: 0.84rem;
    color: #94a3b8;
    max-width: 36ch;
    line-height: 1.5;
}

.sidebar-collapsed .sidebar {
    padding-inline: 12px;
}

.sidebar-collapsed .brand,
.sidebar-collapsed .sidebar-user {
    justify-content: center;
}

.sidebar-collapsed .brand > div,
.sidebar-collapsed .nav-link span,
.sidebar-collapsed .sidebar-logout span,
.sidebar-collapsed .sidebar-user-info div {
    display: none;
}

.sidebar-collapsed .sidebar-logout {
    justify-content: center;
    padding: 0;
    gap: 0;
}

.sidebar-collapsed .nav-link {
    justify-content: center;
    padding-inline: 0;
}

.main {
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    transition: margin-left 0.25s ease, width 0.25s ease;
    overflow-x: hidden;
    position: relative;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 94px;
    padding: 18px 32px;
    background: #ffffff;
    backdrop-filter: none;
    border-bottom: 1px solid rgba(219, 228, 240, 0.92);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: left 0.25s ease, width 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}

@media (min-width: 921px) {
    .main {
        padding-top: 94px;
    }

    .topbar {
        position: fixed;
        left: var(--sidebar-width);
        right: auto;
        width: calc(100% - var(--sidebar-width));
    }
}

.topbar-copy h1 {
    margin-bottom: 4px;
    font-size: clamp(1.65rem, 2vw, 2.15rem);
    letter-spacing: -0.04em;
    color: #3a1212;
}

.topbar-copy span {
    color: var(--muted);
    font-weight: 600;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 100;
}

.notif-trigger {
    position: relative;
    z-index: 101;
    pointer-events: auto;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px 8px 8px;
    border: 1px solid rgba(198, 214, 233, 0.9);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 251, 255, 0.94));
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.user-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--navy-900), var(--blue-500));
    color: #fff;
    font-weight: 800;
}

.user-avatar-photo {
    overflow: hidden;
    padding: 0;
    background: #fff;
    border: 2px solid rgba(139, 26, 26, 0.12);
    box-shadow: 0 10px 18px rgba(139, 26, 26, 0.12);
}

.user-avatar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-chip strong,
.user-chip small {
    display: block;
}

.content {
    padding: 30px 32px 42px;
}

.account-settings-actions {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.account-settings-actions .btn {
    pointer-events: auto;
}

.toast-stack {
    position: fixed;
    right: 26px;
    top: 104px;
    z-index: 200;
    display: grid;
    gap: 12px;
}

.toast {
    min-width: 300px;
    max-width: 420px;
    padding: 16px 18px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
    font-weight: 700;
    transform: translateX(130%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    background: var(--green-bg);
    color: #166534;
}

.toast.danger {
    background: var(--red-bg);
    color: #991b1b;
}

.hero-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 30px;
    margin-bottom: 22px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(90, 16, 16, 0.98), rgba(192, 57, 43, 0.92)),
        var(--navy-900);
    color: #fff;
    box-shadow: var(--shadow);
}

.hero-banner h2 {
    margin-bottom: 10px;
    max-width: 760px;
    font-size: clamp(1.35rem, 2.1vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.hero-banner .muted {
    color: rgba(255, 255, 255, 0.82);
}

.hero-banner.compact {
    padding: 22px 26px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.96);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-self: flex-start;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-weight: 700;
}

.hero-pill.soft {
    background: linear-gradient(180deg, #fff4f4, #ffe9e9);
    color: var(--navy-900);
    border: 1px solid rgba(139, 26, 26, 0.12);
    box-shadow: 0 8px 18px rgba(139, 26, 26, 0.08);
}

.grid {
    display: grid;
    gap: 20px;
}

.cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 22px;
}

.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 22px;
}

.coordinators-layout {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    align-items: stretch;
}

.coordinator-stats-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.coordinator-create-card,
.coordinator-list-card {
    min-width: 0;
    box-sizing: border-box;
    align-self: stretch;
}

.coordinator-create-card {
    height: auto;
}

.coordinator-create-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.coordinator-create-form .partner-form-section {
    margin: 0;
}

.coordinator-create-btn {
    width: 100%;
    justify-content: center;
}

.coordinator-upload-field input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.84rem;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: border-color 0.18s ease, background 0.18s ease;
}

.coordinator-upload-field input[type="file"]:focus {
    outline: none;
    border-color: rgba(139, 26, 26, 0.35);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.08);
}

.coordinator-upload-field input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--navy-900), var(--blue-500));
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    transition: filter 0.18s ease;
}

.coordinator-upload-field input[type="file"]::file-selector-button:hover {
    filter: brightness(1.06);
}

.coordinator-upload-field .hint {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    line-height: 1.45;
}

.coordinator-list-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: min(78vh, 860px);
    overflow: hidden;
}

.coordinator-list-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 4px 6px 0;
    scrollbar-gutter: stable;
}

.coordinator-list-scroll::-webkit-scrollbar {
    width: 8px;
}

.coordinator-list-scroll::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 999px;
}

.coordinator-list-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.45);
    border-radius: 999px;
}

.coordinator-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-content: start;
}

.coordinator-card {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
    border: 1px solid rgba(219, 228, 240, 0.95);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
}

.coordinator-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--navy-900), var(--blue-400));
    opacity: 0;
    transition: opacity 0.22s ease;
}

.coordinator-card:hover {
    border-color: rgba(139, 26, 26, 0.16);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    transform: translateY(-2px);
}

.coordinator-card:hover::before {
    opacity: 1;
}

.coordinator-card-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
    gap: 12px;
}

.coordinator-card-brand {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-width: 0;
}

.coordinator-card-brand-copy {
    flex: 1;
    min-width: 0;
    padding-top: 1px;
}

.coordinator-card-avatar {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--blue-500) 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: -0.02em;
    box-shadow: 0 6px 16px rgba(139, 26, 26, 0.2);
}

.coordinator-card-name {
    margin: 0 0 2px;
    font-size: 0.92rem;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coordinator-card-brand-copy p {
    margin: 0;
    font-size: 0.76rem;
    color: #94a3b8;
    font-weight: 600;
}

.coordinator-card-status {
    align-self: flex-start;
    min-height: 28px;
    padding-inline: 11px;
    font-size: 0.72rem;
}

.coordinator-card-email {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    min-width: 0;
}

.coordinator-card-email svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--navy-800);
    opacity: 0.7;
}

.coordinator-card-email div {
    display: grid;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.coordinator-card-email span {
    font-size: 0.66rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.coordinator-card-email strong {
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.coordinator-card-footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-top: 2px;
}

.coordinator-card-footer--self {
    display: flex;
    justify-content: flex-start;
}

.coordinator-action-form {
    margin: 0;
    display: flex;
    min-width: 0;
}

.coordinator-card-footer .btn,
.coordinator-action-form .btn {
    width: 100%;
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.74rem;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}

.coordinator-secondary-btn {
    background: #fff;
    color: var(--navy-900);
    border: 1px solid #dbe4f0;
}

.coordinator-secondary-btn:hover {
    background: #fff8f8;
    border-color: #cbd5e1;
}

.coordinator-danger-btn {
    background: #fff;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.coordinator-danger-btn:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

.coordinator-self-note {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
}

.coordinator-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 220px;
    padding: 28px 20px;
    text-align: center;
    border: 1px dashed rgba(219, 228, 240, 0.95);
    border-radius: 16px;
    background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
    color: #94a3b8;
}

.coordinator-empty-state svg {
    color: #cbd5e1;
}

.coordinator-empty-state strong {
    color: #475569;
    font-size: 0.92rem;
}

.coordinator-empty-state span {
    max-width: 28ch;
    font-size: 0.82rem;
    line-height: 1.5;
}

.coordinator-edit-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.46);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.coordinator-edit-overlay.open {
    display: flex;
}

.coordinator-edit-modal {
    display: flex;
    flex-direction: column;
    width: min(540px, 100%);
    max-height: min(88vh, 820px);
    overflow: hidden;
    background: #fff;
    border-radius: 22px;
    border: 1px solid rgba(219, 228, 240, 0.95);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.16), 0 4px 16px rgba(139, 26, 26, 0.05);
}

.coordinator-edit-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid rgba(219, 228, 240, 0.85);
    background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
}

.coordinator-edit-modal-head-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.coordinator-edit-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(139, 26, 26, 0.2);
}

.coordinator-edit-modal-head h2 {
    margin: 0 0 4px;
    font-size: 1.06rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.coordinator-edit-modal-head p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--muted);
}

.coordinator-edit-modal-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(219, 228, 240, 0.95);
    border-radius: 11px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.coordinator-edit-modal-close:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}

.coordinator-edit-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.coordinator-edit-modal-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    scrollbar-gutter: stable;
}

.coordinator-edit-modal-body::-webkit-scrollbar {
    width: 6px;
}

.coordinator-edit-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.coordinator-edit-modal-body::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.45);
    border-radius: 999px;
}

.coordinator-edit-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.coordinator-edit-section-head {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
}

.coordinator-edit-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.coordinator-sig-panel {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px dashed rgba(148, 163, 184, 0.55);
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.coordinator-sig-panel-preview {
    flex-shrink: 0;
    width: 88px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.coordinator-sig-panel-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.coordinator-sig-panel-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.coordinator-sig-panel-copy strong {
    font-size: 0.84rem;
    color: #334155;
}

.coordinator-sig-panel-copy span {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.45;
}

.coordinator-upload-field--modal {
    gap: 8px;
}

.coordinator-edit-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 16px 24px 22px;
    border-top: 1px solid rgba(219, 228, 240, 0.85);
    background: #fff;
}

.coordinator-edit-cancel-btn {
    min-width: 108px;
    background: #fff;
    color: #475569;
    border: 1px solid #dbe4f0;
}

.coordinator-edit-cancel-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.coordinator-edit-save-btn {
    min-width: 148px;
}

.charts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 22px;
}

.card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(219, 228, 240, 0.92);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
}

.card:hover {
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
    transform: translateY(-1px);
}

.card:has(.custom-select.is-open) {
    overflow: visible;
    z-index: 25;
}

/* Freeze card lift when a date picker is open inside — prevents fixed positioning being offset */
.card.picker-open,
.card.picker-open:hover {
    transform: none !important;
    overflow: visible !important;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(139,26,26,0), rgba(139,26,26,0.3), rgba(139,26,26,0));
}

.card-head {
    margin-bottom: 18px;
}

.card-head h2,
.card-head p,
.section-head h2,
.section-head p {
    margin-bottom: 0;
}

.metric {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 116px;
}

.metric svg {
    width: 52px;
    height: 52px;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fde8e8, #fbd0d0 70%, #f9c0c0);
    color: var(--blue-500);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 10px 20px rgba(139, 26, 26, 0.14);
}

.metric strong {
    display: block;
    margin-bottom: 6px;
    font-size: clamp(1.9rem, 2.4vw, 2.45rem);
    color: var(--navy-900);
    letter-spacing: -0.05em;
}

.metric span {
    font-size: 0.92rem;
    color: var(--muted);
}

.chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 20px;
}

.chart-grid > * {
    min-width: 0;
}

.chart-card {
    display: flex;
    flex-direction: column;
}

.chart-card canvas {
    display: block;
    width: 100%;
    height: 320px;
    min-height: 320px;
    max-height: 320px;
}

/* Horizontal bar chart sizes itself dynamically */
#courseChart {
    height: auto;
    min-height: unset;
    max-height: unset;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.chart-title {
    margin: 0;
    font-size: clamp(1rem, 1.3vw, 1.25rem);
    white-space: nowrap;
}

.chart-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--gray-bg);
    border-radius: 999px;
    padding: 4px;
}

.chart-tab {
    padding: 7px 18px;
    border: none;
    border-radius: 999px;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.chart-tab.active {
    background: var(--navy-900);
    color: #fff;
    box-shadow: 0 2px 8px rgba(139,26,26,0.18);
}

.chart-tab:not(.active):hover {
    background: rgba(0,0,0,0.06);
    color: var(--text);
}

.chart-panel {
    display: none;
}

.chart-panel.active {
    display: block;
    overflow-y: auto;
    max-height: 520px;
}

.chart-panel[data-panel="course"].active {
    max-height: 640px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.page-section-head {
    margin: 36px 0 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.page-section-head h2 {
    font-size: clamp(1.1rem, 1.5vw, 1.45rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--navy-900);
    margin: 0 0 2px;
}

.page-section-head p {
    margin: 0;
    font-size: .85rem;
}

.section-head-split > div {
    min-width: 240px;
}

.section-head h2 {
    font-size: clamp(1.2rem, 1.6vw, 1.6rem);
    letter-spacing: -0.03em;
}

.table-search,
.table-search-wide,
.form input,
.form select,
.form textarea,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    color: var(--text);
    padding: 14px 16px;
    min-height: 54px;
    line-height: 1.35;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.table-search:focus,
.table-search-wide:focus,
.form input:focus,
.form select:focus,
.form textarea:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(139, 26, 26, 0.7);
    box-shadow: var(--ring), inset 0 1px 0 rgba(255,255,255,0.9);
    transform: translateY(-1px);
}

.table-search-wide {
    max-width: 420px;
}

.form {
    display: grid;
    gap: 16px;
}

.student-name-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form label,
.filter-bar label {
    display: grid;
    gap: 8px;
    color: #314155;
    font-weight: 700;
}

.form label {
    font-size: 0.94rem;
}

@media (max-width: 640px) {
    .student-name-row {
        grid-template-columns: 1fr;
    }
}

.form textarea {
    min-height: 116px;
    resize: vertical;
}

.form input:invalid.touched,
.form select:invalid.touched,
.form textarea:invalid.touched {
    border-color: rgba(220, 38, 38, 0.75);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.dtr-time-lock {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dtr-time-lock-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 26px;
}

.dtr-time-lock-label {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #64748b;
}

.dtr-time-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ecfdf5, #dcfce7);
    border: 1px solid rgba(22, 163, 74, 0.28);
    color: #15803d;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dtr-time-lock-badge svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.dtr-time-field-group {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 10px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.dtr-time-lock.has-time:not(.is-locked) .dtr-time-field-group {
    border-color: rgba(139, 26, 26, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 12px 28px rgba(139, 26, 26, 0.08);
}

.dtr-time-lock.is-locked .dtr-time-field-group {
    border-color: rgba(22, 163, 74, 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 12px 28px rgba(22, 163, 74, 0.1);
}

.dtr-time-lock.needs-time .dtr-time-field-group {
    border-color: rgba(220, 38, 38, 0.55);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.dtr-time-lock-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 52px;
    padding: 0 16px;
    border: 0;
    border-left: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0;
    background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
    color: #fff;
    font: inherit;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    white-space: nowrap;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.dtr-time-lock-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.dtr-time-lock-btn-icon svg {
    width: 16px;
    height: 16px;
}

.dtr-time-lock-btn-icon--undo {
    display: none;
}

.dtr-time-lock-btn.is-edit-mode .dtr-time-lock-btn-icon--save {
    display: none;
}

.dtr-time-lock-btn.is-edit-mode .dtr-time-lock-btn-icon--undo {
    display: inline-flex;
}

.dtr-time-picker-trigger {
    flex: 1 1 0;
    min-width: 0;
    min-height: 52px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.18s ease, color 0.18s ease;
}

.dtr-time-display {
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    color: #94a3b8;
}

.dtr-time-lock.has-time .dtr-time-display {
    color: var(--navy-900);
}

.dtr-time-picker-trigger:hover:not(:disabled),
.dtr-time-picker-trigger:focus-visible {
    background: rgba(139, 26, 26, 0.04);
    outline: none;
}

.dtr-time-picker-trigger:disabled,
.dtr-time-picker-trigger[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.55;
}

.dtr-time-lock-btn[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.42;
    background: linear-gradient(180deg, #f1f5f9, #e2e8f0);
    color: #94a3b8;
    box-shadow: none;
}

.dtr-time-lock-btn:hover:not([aria-disabled="true"]),
.dtr-time-lock-btn:focus-visible:not([aria-disabled="true"]) {
    background: linear-gradient(135deg, #7a1515, var(--navy-900));
    outline: none;
}

.dtr-time-lock.is-locked .dtr-time-picker-trigger {
    background:
        radial-gradient(circle at top left, rgba(22, 163, 74, 0.08), transparent 42%),
        linear-gradient(180deg, #f0fdf4, #ffffff);
    color: #14532d;
    cursor: default;
}

.dtr-time-lock.is-locked .dtr-time-display {
    color: #14532d;
}

.dtr-time-lock.is-locked .dtr-time-icon {
    background: #dcfce7;
    color: #15803d;
}

.dtr-time-lock.is-locked .dtr-time-lock-btn {
    background: linear-gradient(180deg, #fff7ed, #ffedd5);
    color: #9a3412;
    border-left-color: rgba(154, 52, 18, 0.12);
    box-shadow: none;
}

.dtr-time-lock.is-locked .dtr-time-lock-btn:hover:not([aria-disabled="true"]),
.dtr-time-lock.is-locked .dtr-time-lock-btn:focus-visible:not([aria-disabled="true"]) {
    background: linear-gradient(180deg, #ffedd5, #fed7aa);
    color: #7c2d12;
    box-shadow: none;
}

.dtr-time-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(180deg, #fff1f1, #ffe4e4);
    color: var(--navy-900);
    flex-shrink: 0;
    transition: background 0.18s ease, color 0.18s ease;
}

.dtr-time-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.dtr-time-lock.is-waiting {
    opacity: 0.72;
}

.dtr-time-lock.is-waiting .dtr-time-field-group {
    background: #f8fafc;
}

[data-dtr-lock-flow] [data-dtr-tasks]:disabled,
[data-dtr-lock-flow] [data-dtr-submit]:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.dtr-time-panel {
    position: fixed;
    z-index: 99999;
    width: 320px;
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    padding: 14px;
    border: 1px solid rgba(219, 228, 240, 0.9);
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(139, 26, 26, 0.12), transparent 32%),
        linear-gradient(180deg, #ffffff, #fff8f8);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 0.16s ease, visibility 0.16s ease, transform 0.16s ease;
}

.dtr-time-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dtr-time-panel[hidden] {
    display: block !important;
    pointer-events: none !important;
}

.dtr-time-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.dtr-time-panel-head strong {
    color: var(--navy-900);
    font-size: 0.92rem;
}

.dtr-time-panel-head button,
.dtr-time-periods button,
.dtr-time-chip {
    border: 1px solid rgba(139, 26, 26, 0.16);
    background: #fff;
    color: var(--navy-900);
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.dtr-time-panel-head button {
    padding: 8px 12px;
    font-size: 0.76rem;
}

.dtr-time-preview {
    margin-bottom: 12px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
    color: #fff;
    text-align: center;
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    box-shadow: 0 16px 34px rgba(139, 26, 26, 0.22);
}

.dtr-time-hours {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.dtr-time-chip {
    min-height: 38px;
}

.dtr-time-panel-head button:hover,
.dtr-time-periods button:hover,
.dtr-time-chip:hover,
.dtr-time-periods button.is-active,
.dtr-time-chip.is-active {
    background: var(--navy-900);
    color: #fff;
    border-color: var(--navy-900);
    transform: translateY(-1px);
}

.dtr-time-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 12px;
}

.dtr-time-bottom label {
    gap: 6px;
    color: #64748b;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dtr-time-bottom input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0 12px;
    font-weight: 900;
    color: var(--text);
}

.dtr-time-periods {
    display: grid;
    grid-template-columns: repeat(2, 54px);
    gap: 8px;
}

.dtr-time-periods button {
    min-height: 44px;
}

.dtr-time-set {
    width: 100%;
    border-radius: 16px;
}

/* ── DTR Form Card ──────────────────────────────── */
.dtr-form-card {
    overflow: hidden;
}

.dtr-form-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.dtr-form-head h2 {
    margin: 0 0 6px;
}

.dtr-form-head > div > .muted {
    margin: 0;
    max-width: 34rem;
    line-height: 1.55;
}

.dtr-form-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff7f7, #ffecec);
    border: 1px solid rgba(139, 26, 26, 0.14);
    color: var(--navy-900);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dtr-date-section {
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    background:
        radial-gradient(circle at top left, rgba(139, 26, 26, 0.05), transparent 38%),
        linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.dtr-date-section .filter-date-picker,
.dtr-date-section .filter-date-trigger {
    width: 100%;
}

.dtr-field-label {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: #374151;
    margin: 0 0 8px;
}

.dtr-sessions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.dtr-session {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.95), transparent 42%),
        linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 14px 30px rgba(15,23,42,0.04);
    min-width: 0;
}

.dtr-session--morning {
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.12), transparent 38%),
        linear-gradient(180deg, #fffdf8, #fff7ed);
}

.dtr-session--afternoon {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 38%),
        linear-gradient(180deg, #f8fbff, #eff6ff);
}

.dtr-session-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 68px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.dtr-session-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.dtr-session-title-wrap > div {
    min-width: 0;
}

.dtr-session-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #9a3412;
    box-shadow: 0 8px 18px rgba(15,23,42,0.05);
}

.dtr-session--afternoon .dtr-session-icon {
    color: #1d4ed8;
}

.dtr-session-icon svg {
    width: 22px;
    height: 22px;
}

.dtr-session-title {
    margin: 0 0 2px;
    font-size: .98rem;
    line-height: 1.2;
    color: var(--navy-900);
    white-space: nowrap;
}

.dtr-session-window {
    margin: 0;
    font-size: .78rem;
    color: #64748b;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.dtr-session-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    color: #475569;
    flex-shrink: 0;
}

.dtr-session-fields {
    display: grid;
    gap: 14px;
}

.dtr-session-fields .dtr-time-lock {
    padding: 0;
    height: 100%;
}

/* Separate picker + button blocks (no overlap) inside session cards */
.dtr-session-fields .dtr-time-field-group {
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.dtr-session-fields .dtr-time-picker-trigger {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 8px 18px rgba(15, 23, 42, 0.04);
}

.dtr-session-fields .dtr-time-lock-btn {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(139, 26, 26, 0.14);
}

.dtr-session-fields .dtr-time-lock.has-time:not(.is-locked) .dtr-time-picker-trigger {
    border-color: rgba(139, 26, 26, 0.22);
}

.dtr-session-fields .dtr-time-lock.is-locked .dtr-time-picker-trigger {
    border-color: rgba(22, 163, 74, 0.35);
}

.dtr-session-fields .dtr-time-lock.needs-time .dtr-time-picker-trigger {
    border-color: rgba(220, 38, 38, 0.55);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.dtr-session-fields .dtr-time-lock.is-locked .dtr-time-lock-btn {
    box-shadow: none;
}

/* Align Time In / Time Out rows across side-by-side session cards */
@supports (grid-template-rows: subgrid) {
    @media (min-width: 1101px) {
        .dtr-sessions {
            grid-template-rows: auto 1fr 1fr;
            row-gap: 14px;
            column-gap: 16px;
        }

        .dtr-session {
            display: grid;
            grid-template-rows: subgrid;
            grid-row: span 3;
        }

        .dtr-session-head {
            margin-bottom: 0;
        }

        .dtr-session-fields {
            display: grid;
            grid-template-rows: subgrid;
            grid-row: span 2;
            gap: 0;
        }
    }
}

/* Fallback row alignment when subgrid is unavailable */
@media (min-width: 1101px) {
    @supports not (grid-template-rows: subgrid) {
        .dtr-session-fields .dtr-time-lock {
            min-height: 118px;
        }
    }
}

.dtr-tasks-section {
    margin-bottom: 18px;
    padding-top: 4px;
}

.dtr-tasks-hint {
    margin: 0 0 10px;
    font-size: .85rem;
}

.dtr-textarea-wrap textarea {
    width: 100%;
    min-height: 132px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    font: inherit;
    resize: vertical;
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

.dtr-textarea-wrap textarea:focus {
    border-color: rgba(139, 26, 26, 0.52);
    outline: none;
    box-shadow: var(--ring), 0 14px 28px rgba(15,23,42,0.08);
}

.dtr-textarea-wrap .char-counter {
    display: block;
    margin-top: 8px;
    text-align: right;
    font-size: .78rem;
    color: #64748b;
}

.btn-dtr-submit {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 16px;
}

@media (max-width: 1100px) {
    .dtr-sessions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .dtr-form-head {
        flex-direction: column;
    }

    /* Full-width DTR card: horizontal picker + button in one row */
    .dtr-session-fields .dtr-time-field-group {
        flex-direction: row;
        gap: 0;
        min-height: 52px;
        border: 1px solid rgba(15, 23, 42, 0.1);
        border-radius: 16px;
        background: #fff;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 24px rgba(15, 23, 42, 0.05);
        overflow: hidden;
    }

    .dtr-session-fields .dtr-time-picker-trigger {
        width: auto;
        min-height: 52px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .dtr-session-fields .dtr-time-lock-btn {
        width: auto;
        flex: 0 0 auto;
        min-height: 52px;
        border-left: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 0;
        box-shadow: none;
    }

    .dtr-session-fields .dtr-time-lock.is-locked .dtr-time-lock-btn {
        border-left: 1px solid rgba(154, 52, 18, 0.12);
    }
}

@media (max-width: 640px) {
    .dtr-time-field-group {
        flex-direction: column;
        min-height: 0;
    }

    .dtr-time-picker-trigger,
    .dtr-time-lock-btn {
        width: 100%;
        min-height: 50px;
    }

    .dtr-time-lock-btn {
        border-left: 0;
        border-top: 0;
    }

    .dtr-time-picker-trigger {
        border-bottom: 1px solid rgba(15, 23, 42, 0.07);
    }
}

.floating-label {
    position: relative;
    padding-top: 10px;
}

.floating-label .label-text {
    position: absolute;
    top: calc(50% + 5px);
    left: 14px;
    padding: 0 6px;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.95rem;
    transition: all 0.18s ease;
    pointer-events: none;
    z-index: 1;
    transform: translateY(-50%);
}

.floating-label:focus-within .label-text,
.floating-label.has-value .label-text {
    top: 0;
    color: var(--navy-900);
    font-size: 0.75rem;
    transform: none;
}

.floating-label.floating-textarea .label-text {
    top: 23px;
    transform: none;
}

.char-counter {
    margin-top: 4px;
    text-align: right;
    color: var(--muted);
    font-size: 0.76rem;
}

.char-counter.warning {
    color: var(--red);
    font-weight: 800;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: -0.01em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
    color: #fff;
    box-shadow: 0 14px 34px rgba(139, 26, 26, 0.26);
}

.btn-primary:hover {
    box-shadow: 0 16px 34px rgba(139, 26, 26, 0.28);
}

.btn-ghost {
    background: linear-gradient(180deg, #fff1f1, #ffe7e7);
    color: var(--navy-900);
    border: 1px solid rgba(235, 201, 201, 0.8);
}

.btn-small {
    min-height: 38px;
    padding-inline: 14px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #ffffff, #fff8f8);
    color: var(--navy-900);
    font-size: 0.85rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.btn.loading .btn-text {
    opacity: 0.45;
}

.spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

.btn.loading .spinner {
    display: inline-block;
}

.app-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(23, 32, 51, 0.48);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.16s ease, visibility 0.16s ease;
}

.app-confirm-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.app-confirm-card {
    width: min(430px, calc(100vw - 32px));
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(139, 26, 26, 0.11), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 248, 0.97));
    box-shadow: 0 28px 80px rgba(17, 24, 39, 0.26);
    transform: translateY(10px) scale(0.97);
    transition: transform 0.18s ease;
}

.app-confirm-overlay.is-open .app-confirm-card {
    transform: translateY(0) scale(1);
}

.app-confirm-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff1f1, #ffe2e2);
    color: var(--navy-900);
    box-shadow: 0 14px 28px rgba(139, 26, 26, 0.12);
}

.app-confirm-icon svg {
    width: 27px;
    height: 27px;
    fill: currentColor;
}

.app-confirm-copy h2 {
    margin: 0 0 8px;
    color: #3a1212;
    font-size: 1.28rem;
    letter-spacing: -0.04em;
}

.app-confirm-copy p {
    margin: 0;
    color: #5f6b7a;
    font-size: 0.94rem;
    line-height: 1.6;
}

.app-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.app-confirm-actions .btn {
    min-height: 48px;
    border-radius: 16px;
}

@media (max-width: 520px) {
    .app-confirm-card {
        padding: 22px;
        border-radius: 24px;
    }

    .app-confirm-actions {
        grid-template-columns: 1fr;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.email-filter-bar {
    padding: 0 0 18px;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.email-filter-bare {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto;
    align-items: center;
}

.email-filter-bar .section-head {
    align-items: center;
}

.email-filter-bar .hero-pill {
    flex-shrink: 0;
}

.filter-control {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #374151;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding-left: 2px;
}

.filter-label::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 12px;
    border-radius: 2px;
    background: var(--navy-800);
    flex-shrink: 0;
}

.filter-select-wrap {
    position: relative;
    display: block;
}

.filter-select-wrap.is-enhanced::after {
    display: none;
}

.filter-select-wrap::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--navy-800);
    border-bottom: 2px solid var(--navy-800);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
    border-radius: 1px;
    opacity: 0.8;
    transition: transform 0.2s ease;
}

.email-filter-bare select,
.email-filter-bare input[type="date"] {
    width: 100%;
}

.filter-date-picker {
    position: relative;
    display: block;
}

/* Form-embedded date picker variant */
.form-date-picker .filter-date-trigger {
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: none;
    font-size: 0.9rem;
}

.form-date-picker .filter-date-trigger:hover {
    border-color: #c0c7d4;
    box-shadow: none;
}

.form-date-picker.is-open .filter-date-trigger,
.form-date-picker .filter-date-trigger:focus-visible {
    border-color: var(--navy-800);
    box-shadow: 0 0 0 3px rgba(139,26,26,0.1);
}

.form-date-picker.date-required-error .filter-date-trigger {
    border-color: #e03737;
    box-shadow: 0 0 0 3px rgba(224,55,55,0.12);
}

/* Global shared calendar panel — direct child of body, never clipped */
.global-cal-panel {
    position: fixed;
    z-index: 99999;
    width: 308px;
    padding: 10px 10px 8px;
    border: 1px solid #eef0f5;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.global-cal-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.global-cal-panel[hidden] {
    display: block !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-6px) scale(0.98) !important;
}

/* ── Global datetime panel (calendar + time picker) ── */
.global-datetime-panel {
    position: fixed;
    z-index: 99999;
    padding: 10px;
    border: 1px solid #eef0f5;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}
.global-datetime-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.global-datetime-panel[hidden] { display: block !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; transform: translateY(-6px) scale(0.98) !important; }

.datetime-panel-layout {
    display: flex;
    gap: 0;
}

.datetime-panel-layout .filter-date-calendar {
    border-right: 1px solid #eef0f5;
    padding-right: 10px;
}

.datetime-time-picker {
    display: flex;
    flex-direction: column;
    padding-left: 10px;
    min-width: 148px;
}

.datetime-time-header {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 0 10px;
}

.datetime-time-cols {
    display: flex;
    gap: 4px;
    flex: 1;
    min-height: 0;
}

.datetime-time-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    max-height: 232px;
    scrollbar-width: thin;
    scrollbar-color: #d5dae4 transparent;
    padding: 2px;
}
.datetime-time-col::-webkit-scrollbar { width: 4px; }
.datetime-time-col::-webkit-scrollbar-thumb { background: #d5dae4; border-radius: 4px; }

.datetime-time-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    flex-shrink: 0;
}
.datetime-time-item:hover { background: #f1f5f9; color: #1e293b; }
.datetime-time-item.is-selected {
    background: var(--navy-800, #8b1a1a);
    color: #fff;
    font-weight: 700;
}
.datetime-time-item.is-selected:hover { background: var(--navy-900, #6b1414); }

.datetime-time-period-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 2px;
    justify-content: flex-start;
}
.datetime-time-period-col .datetime-time-item {
    min-height: 40px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.datetime-confirm-row {
    display: flex;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid #eef0f5;
    margin-top: 8px;
}
.datetime-confirm-row .btn {
    flex: 1;
    min-height: 36px;
    font-size: 0.82rem;
    border-radius: 10px;
    justify-content: center;
}

@media (max-width: 520px) {
    .datetime-panel-layout { flex-direction: column; }
    .datetime-panel-layout .filter-date-calendar {
        border-right: 0;
        border-bottom: 1px solid #eef0f5;
        padding-right: 0;
        padding-bottom: 10px;
    }
    .datetime-time-picker {
        padding-left: 0;
        padding-top: 10px;
        min-width: 0;
    }
    .datetime-time-cols { max-height: 160px; }
}

.filter-date-trigger {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 46px;
    padding: 0 14px 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #d9dde7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    cursor: pointer;
    pointer-events: auto;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.filter-date-trigger:hover {
    border-color: #cfd6e2;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.filter-date-picker.is-open .filter-date-trigger,
.filter-date-trigger:focus-visible {
    outline: none;
    border-color: var(--navy-800);
    box-shadow: 0 0 0 3px rgba(139,26,26,0.12), 0 10px 26px rgba(15,23,42,0.07);
}

.filter-date-value {
    color: #4b5565;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-date-picker.is-placeholder .filter-date-value {
    color: #98a2b3;
}

.filter-date-trigger-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    flex-shrink: 0;
}

.filter-date-trigger-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.filter-date-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 35;
    width: 308px;
    max-width: min(308px, calc(100vw - 32px));
    padding: 10px 10px 8px;
    border: 1px solid #eef0f5;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.filter-date-picker.is-open .filter-date-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.filter-date-panel[hidden] {
    display: block !important;
}

.filter-date-calendar {
    display: grid;
    gap: 10px;
}

.filter-date-calendar-header {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 10px;
}

.filter-date-title-wrap {
    display: grid;
    justify-items: center;
    gap: 4px;
    min-width: 0;
}

.filter-date-nav {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: #f4f6fb;
    color: #4b5565;
    cursor: pointer;
}

.filter-date-nav:hover,
.filter-date-nav:focus-visible {
    outline: none;
    background: #ebeff6;
}

.filter-date-nav::before {
    content: '';
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(-135deg);
}

.filter-date-nav[data-date-nav="1"]::before {
    transform: rotate(45deg);
}

.filter-date-title {
    text-align: center;
    color: #1f2937;
    font-size: 0.95rem;
    font-weight: 800;
}

.filter-date-year-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.filter-date-year-wrap::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #6b7280;
    border-bottom: 2px solid #6b7280;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.filter-date-year-select {
    min-width: 94px;
    padding: 6px 28px 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #374151;
    font-size: 0.82rem;
    font-weight: 700;
    appearance: none;
    cursor: pointer;
}

.filter-date-year-select:focus {
    outline: none;
    border-color: rgba(139, 26, 26, 0.45);
    box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.08);
}

.filter-date-weekdays,
.filter-date-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.filter-date-weekdays span {
    padding: 4px 0;
    text-align: center;
    color: #98a2b3;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.filter-date-day {
    position: relative;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #344054;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
}

.filter-date-day:hover,
.filter-date-day:focus-visible {
    outline: none;
    background: #f4f6fb;
}

.filter-date-day.is-outside {
    color: #c2c8d3;
}

.filter-date-day.is-disabled,
.filter-date-day[disabled] {
    color: #d1d5db;
    background: none;
    cursor: not-allowed;
    opacity: 0.4;
    pointer-events: none;
}

.filter-date-day.is-today::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: var(--navy-900);
    transform: translateX(-50%);
}

.filter-date-day.is-selected {
    background: var(--navy-900);
    color: #fff;
    font-weight: 700;
}

.filter-date-day.is-selected.is-today::after {
    background: #fff;
}

.filter-date-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 6px 0;
}

.filter-date-action {
    border: 0;
    background: transparent;
    padding: 6px 2px;
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.filter-date-action:hover,
.filter-date-action:focus-visible {
    outline: none;
    color: #374151;
}

.filter-date-action[data-date-action="today"] {
    color: var(--navy-900);
}

.email-filter-bare .filter-select-wrap.is-enhanced select,
.select-enhanced-wrap > select[data-enhanced="1"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.email-filter-bare select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 44px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #d9dde7;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    font-size: 0.875rem;
    font-weight: 600;
    color: #98a2b3;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.email-filter-bare input[type="date"] {
    min-height: 46px;
    padding: 0 42px 0 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #d9dde7;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    font-size: 0.875rem;
    font-weight: 600;
    color: #98a2b3;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.email-filter-bare input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.65;
    cursor: pointer;
    filter: invert(43%) sepia(7%) saturate(885%) hue-rotate(183deg) brightness(92%) contrast(88%);
}

.email-filter-bare select:hover,
.email-filter-bare input[type="date"]:hover {
    border-color: #cfd6e2;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.email-filter-bare select:focus,
.email-filter-bare input[type="date"]:focus {
    border-color: var(--navy-800);
    box-shadow: 0 0 0 3px rgba(139,26,26,0.12), 0 10px 26px rgba(15,23,42,0.07);
    outline: none;
}

.custom-select {
    position: relative;
    width: 100%;
    min-width: 0;
}

.custom-select-trigger {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 0 16px 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 8px 24px rgba(15, 23, 42, 0.04);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.custom-select-trigger:hover {
    border-color: rgba(139, 26, 26, 0.42);
    background: #fff;
    box-shadow: 0 14px 30px rgba(139, 26, 26, 0.08);
    transform: translateY(-1px);
}

.custom-select.is-open .custom-select-trigger,
.custom-select-trigger:focus-visible {
    outline: none;
    border-color: var(--navy-800);
    box-shadow: 0 0 0 3px rgba(139,26,26,0.12), 0 10px 26px rgba(15,23,42,0.07);
}

.custom-select-copy {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.custom-select-value {
    display: block;
    color: #98a2b3;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-select:not(.is-placeholder) .custom-select-value {
    color: #4b5565;
}

.custom-select-caret {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.18s ease;
}

.custom-select-caret::before {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid #6b7280;
    border-bottom: 2px solid #6b7280;
    transform: translateY(-1px) rotate(45deg);
}

.custom-select.is-open .custom-select-caret {
    transform: rotate(180deg);
}

.custom-select-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 80;
    max-height: 280px;
    overflow: auto;
    padding: 8px;
    display: grid;
    gap: 4px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 20px;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18), 0 6px 18px rgba(139, 26, 26, 0.08);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.custom-select.is-open .custom-select-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.custom-select-option {
    width: 100%;
    min-height: 44px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: background 0.16s ease, color 0.16s ease;
}

.custom-select-option:hover,
.custom-select-option:focus-visible {
    outline: none;
    background: #fff5f5;
}

.custom-select-option.is-selected {
    background: linear-gradient(135deg, #8b1a1a, #b42323);
    box-shadow: 0 8px 18px rgba(139, 26, 26, 0.22);
}

.custom-select-option:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.custom-select-option-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #b6beca;
    flex-shrink: 0;
}

.custom-select-option-label {
    color: #4b5565;
    font-size: 0.875rem;
    font-weight: 600;
}

.custom-select-option.is-selected .custom-select-option-dot {
    background: rgba(255,255,255,0.92);
}

.custom-select-option.is-selected .custom-select-option-label {
    color: #fff;
}

.custom-select.is-disabled {
    opacity: 0.65;
}

.filter-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto;
    gap: 14px;
    align-items: end;
}

.email-filter-bare > .btn,
.email-filter-bare > a.btn {
    align-self: end;
}

.email-filter-bare > a.btn.btn-small {
    min-height: 46px;
    padding-inline: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.table-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.column-menu {
    position: relative;
}

.column-options {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    display: none;
    min-width: 220px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.column-options.open {
    display: grid;
    gap: 8px;
}

.column-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #324155;
}

.table-wrap {
    overflow: auto;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,248,248,0.75), rgba(255,255,255,0.95));
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table thead th {
    position: sticky;
    top: 0;
    padding: 14px 16px;
    background: linear-gradient(180deg, #fff5f5, #fdeaea);
    color: #4a2020;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 800;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    text-align: left;
}

.data-table thead th[data-sort] {
    cursor: pointer;
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
    background: rgba(255,255,255,0.94);
    line-height: 1.5;
    white-space: nowrap;
}

.user-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-avatar {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.muted-cell {
    color: #64748b;
    font-size: 0.9rem;
}

.center-cell {
    text-align: center;
}

.course-cell {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #374151;
    font-size: 0.9rem;
}

.role-badge {
    font-size: 0.72rem;
    padding: 0 10px;
    min-height: 24px;
    border-radius: 6px;
    text-transform: capitalize;
    font-weight: 700;
}

.role-badge.role-admin    { background: #ede9fe; color: #5b21b6; }
.role-badge.role-student  { background: #dbeafe; color: #1d4ed8; }
.role-badge.role-coordinator { background: #fef3c7; color: #92400e; }
.role-badge.role-partner  { background: #d1fae5; color: #065f46; }

.btn-danger-outline {
    background: transparent;
    border: 1.5px solid #f87171;
    color: #dc2626;
}
.btn-danger-outline:hover {
    background: #fee2e2;
}
.btn-success-outline {
    background: transparent;
    border: 1.5px solid #4ade80;
    color: #16a34a;
}
.btn-success-outline:hover {
    background: #dcfce7;
}

.data-table thead th:nth-child(4),
.data-table thead th:nth-child(5),
.data-table td:nth-child(4),
.data-table td:nth-child(5) {
    text-align: center;
}

.data-table tbody tr {
    transition: background 0.18s ease, transform 0.18s ease;
}

.data-table tbody tr:hover td {
    background: linear-gradient(180deg, #fffbfb, #fdf4f4);
}

.data-table tbody tr:hover {
    box-shadow: inset 0 0 0 999px rgba(139, 26, 26, 0.03);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-transform: capitalize;
}

.badge.active,
.badge.sent {
    background: var(--green-bg);
    color: #166534;
}

.badge.pending {
    background: var(--yellow-bg);
    color: #92400e;
}

.badge.completed {
    background: #e5e7eb;
    color: #374151;
}

.badge.enrolled {
    background: #dcfce7;
    color: #166534;
}

.badge.unenrolled {
    background: #fef3c7;
    color: #92400e;
}

.badge.inactive,
.badge.failed {
    background: var(--red-bg);
    color: #991b1b;
}

.badge.approved {
    background: var(--green-bg);
    color: #166534;
}

.inline {
    display: inline;
}

.pagination {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.pagination button {
    min-width: 40px;
    min-height: 40px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(180deg, #fff, #f7fbff);
    color: var(--navy-900);
    font-weight: 700;
}

.pagination button.active {
    background: var(--navy-900);
    color: #fff;
    border-color: var(--navy-900);
}

.toolbar-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.student-view-wrapper.cards-mode .student-cards-grid {
    display: grid;
}

.student-cards-grid {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.student-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff, #fff9f9);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.student-card:hover {
    transform: translateY(-2px);
    border-color: rgba(139,26,26,0.22);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.09);
}

.student-card h3 {
    margin-bottom: 6px;
    font-size: 1rem;
}

.student-card p {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.92rem;
}

.student-card small {
    grid-column: 1 / -1;
}

.mini-ring {
    --size: 60px;
    --track: #e5edf6;
    --fill: var(--blue-500);
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--fill) calc(var(--percent) * 1%), var(--track) 0);
}

.mini-ring span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--navy-900);
}

.student-view-wrapper.cards-mode .table-wrap,
.student-view-wrapper.cards-mode .pagination,
.student-view-wrapper.cards-mode .table-tools {
    display: none;
}

/* Coordinator — My Students table */
.student-list-card .section-head-split {
    align-items: flex-end;
    gap: 16px;
}

.student-list-card .toolbar-inline .table-search {
    min-width: 260px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
}

.coord-students-table-wrap {
    border: 1px solid var(--border);
    scrollbar-width: thin;
    scrollbar-color: #c9a0a0 #f8f0f0;
}

.coord-students-table-wrap::-webkit-scrollbar {
    height: 6px;
}

.coord-students-table-wrap::-webkit-scrollbar-track {
    background: #f8f0f0;
    border-radius: 999px;
}

.coord-students-table-wrap::-webkit-scrollbar-thumb {
    background: #c9a0a0;
    border-radius: 999px;
}

.coord-students-table {
    min-width: 880px;
}

.coord-students-table tbody td {
    vertical-align: top;
    padding: 18px 16px;
    text-align: left;
    white-space: normal;
}

.coord-students-table tbody tr:hover td {
    background: #fffafa;
}

.app-user-identity,
.coord-student-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.coord-student-identity {
    min-width: 220px;
}

.app-user-identity__avatar,
.coord-student-avatar {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--navy-900), var(--blue-500));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
}

.app-user-identity__avatar--photo,
.coord-student-avatar--photo {
    overflow: hidden;
    padding: 0;
    background: #fff;
    border: 2px solid rgba(139, 26, 26, 0.12);
    box-shadow: 0 8px 16px rgba(139, 26, 26, 0.12);
}

.app-user-identity__avatar--photo {
    position: relative;
}

.app-user-identity__avatar--photo img,
.coord-student-avatar--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-user-identity__avatar--photo .profile-inline-avatar-fallback {
    position: absolute;
    inset: 0;
}

.user-chip-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.user-chip-link:hover {
    border-color: rgba(139, 26, 26, 0.28);
    box-shadow: 0 12px 28px rgba(73, 19, 19, 0.1);
}

.sidebar-user-link {
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    transition: background 0.15s ease;
}

.sidebar-user-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

.app-user-identity__meta,
.coord-student-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.app-user-identity__meta strong,
.coord-student-meta strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy-900);
    line-height: 1.25;
}

.app-user-identity__meta small,
.coord-student-meta small {
    color: #6b7280;
    font-size: 0.8rem;
    word-break: break-word;
    line-height: 1.35;
}

.app-user-identity--sidebar .app-user-identity__meta strong {
    color: #fff;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-user-identity--sidebar .app-user-identity__meta small {
    color: rgba(235, 242, 255, 0.72);
    font-size: 0.76rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-user-identity--sidebar .app-user-identity__avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.18);
}

.app-user-identity--sidebar .app-user-identity__avatar--photo {
    background: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: none;
}

.app-user-identity--chip .app-user-identity__avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(139, 26, 26, 0.18);
}

.app-user-identity--chip .app-user-identity__avatar--photo {
    border-radius: 16px;
    border: 2px solid #fff;
}

.profile-account-identity {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff, #fafbfc);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.profile-inline-avatar-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-weight: 800;
}

.coord-student-id {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.02em;
}

.coord-status-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 150px;
}

.coord-status-pill {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: capitalize;
    line-height: 1.2;
}

.coord-status-pill.not_submitted {
    background: var(--gray-bg);
    color: #475569;
}

.coord-status-pill.submitted,
.coord-status-pill.orientation_scheduled,
.coord-status-pill.orientation_completed {
    background: #dbeafe;
    color: #1e40af;
}

.coord-status-pill.approved {
    background: #ecfdf5;
    color: #047857;
}

.coord-status-pill.rejected,
.coord-status-pill.needs_revision {
    background: var(--yellow-bg);
    color: #92400e;
}

.coord-inline-action {
    border: none;
    background: none;
    padding: 0;
    color: var(--navy-900);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.coord-inline-action:hover {
    color: var(--blue-500);
}

.coord-status-hint {
    font-size: 0.75rem;
    color: #059669;
    font-weight: 600;
}

.coord-final-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 260px;
    max-width: 320px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e8edf3;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.coord-final-row-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.78rem;
}

.coord-final-row-head span {
    color: #64748b;
    font-weight: 600;
}

.coord-final-row-head strong {
    color: var(--navy-900);
    font-size: 0.78rem;
}

.coord-progress-track {
    height: 6px;
    border-radius: 999px;
    background: #f1e4e4;
    overflow: hidden;
}

.coord-progress-track span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--navy-900), #d46060);
    border-radius: inherit;
    transition: width 0.2s ease;
}

.coord-eval-chips {
    display: flex;
    gap: 6px;
}

.coord-eval-chip {
    flex: 1;
    text-align: center;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
}

.coord-eval-chip.is-pending {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.coord-eval-chip.is-done {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.coord-open-final {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, var(--navy-900), #8b2e2e);
    transition: opacity 0.15s ease;
}

.coord-open-final:hover {
    opacity: 0.92;
    color: #fff;
}

.coord-actions-cell {
    vertical-align: middle !important;
    white-space: nowrap;
}

.student-list-card .pagination {
    padding: 12px 4px 4px;
}

.student-list-card .pagination button {
    min-width: 36px;
    min-height: 36px;
    border-radius: 10px;
    font-size: 0.85rem;
}

.row-progress {
    height: 8px;
    margin-bottom: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #f5e6e6;
}

.row-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--blue-500), #d46060);
    border-radius: inherit;
}

.wizard-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.wizard-steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 999px;
    background: #eef2f7;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.wizard-steps span.active {
    background: linear-gradient(135deg, var(--navy-900), var(--blue-500));
    color: #fff;
}

.wizard-step {
    display: none;
    gap: 16px;
}

.wizard-step.active {
    display: grid;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.confirm-box {
    padding: 28px 28px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}
.confirm-box h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.confirm-box h3 .confirm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--green-bg);
    color: var(--green);
    flex-shrink: 0;
}
.confirm-box h3 .confirm-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
.confirm-box .confirm-grid {
    display: grid;
    gap: 0;
}
.confirm-box .confirm-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}
.confirm-box .confirm-row:last-child {
    border-bottom: none;
}
.confirm-box .confirm-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.confirm-box .confirm-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    word-break: break-word;
}
.confirm-box .confirm-note {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--blue-100);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--navy-800);
    line-height: 1.5;
}
.confirm-box .confirm-note svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
    margin-top: 1px;
}
@media (max-width: 480px) {
    .confirm-box { padding: 20px 18px 18px; }
    .confirm-box .confirm-row {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 10px 0;
    }
}

.progress-card {
    margin-bottom: 22px;
}

.ring-progress-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 30px;
}

.progress-ring-wrap {
    position: relative;
    width: 162px;
    height: 162px;
}

.progress-ring {
    width: 162px;
    height: 162px;
    transform: rotate(-90deg);
}

.ring-bg,
.ring-value {
    fill: none;
    stroke-width: 10;
}

.ring-bg {
    stroke: #f5e7e7;
}

.ring-value {
    stroke: url(#ringGradient);
    stroke: var(--blue-500);
    stroke-linecap: round;
    stroke-dasharray: 314;
    transition: stroke-dashoffset 1s ease;
}

.ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: translateY(-5px);
    pointer-events: none;
}

.ring-label strong {
    margin: 0;
    font-size: 1.85rem;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--navy-900);
}

.ring-label span {
    margin-top: 4px;
    font-size: 0.68rem;
    line-height: 1.2;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800;
}

.timeline {
    position: relative;
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, rgba(139, 26, 26, 0.45), rgba(139, 26, 26, 0.15));
}

.timeline.is-empty::before {
    display: none;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 14px;
    cursor: pointer;
}

.timeline-dot {
    width: 22px;
    height: 22px;
    margin-top: 12px;
    border: 5px solid #ffeaea;
    border-radius: 50%;
    background: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.08);
}

.timeline-card {
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #fff9f9);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.timeline-card strong,
.timeline-card small {
    display: block;
}

.timeline-card p {
    margin: 10px 0 0;
    line-height: 1.6;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    margin-bottom: 8px;
}

.detail-row span {
    color: var(--navy-900);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    opacity: 0.6;
}

.detail-row strong {
    line-height: 1.55;
    color: #1a1a2e;
    font-size: 0.95rem;
    font-weight: 600;
    word-break: break-word;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.46);
    backdrop-filter: blur(10px);
    z-index: 400;
}

.modal.open {
    display: flex;
}

.modal-card {
    position: relative;
    width: min(560px, 100%);
    max-height: min(86vh, 900px);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable both-edges;
    padding: 32px 28px 28px;
    border: 1px solid rgba(219,228,240,0.6);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 64px rgba(15,23,42,0.14), 0 4px 16px rgba(139,26,26,0.06);
}

.modal-card::-webkit-scrollbar {
    width: 6px;
}

.modal-card::-webkit-scrollbar-track {
    background: transparent;
    margin: 12px;
}

.modal-card::-webkit-scrollbar-thumb {
    background: rgba(139,26,26,0.25);
    border-radius: 999px;
}

.modal-card::-webkit-scrollbar-thumb:hover {
    background: rgba(139,26,26,0.45);
}

#modal-body h2,
.modal-card h2 {
    margin: 0 0 20px;
    padding-right: 54px;
    font-size: 1.3rem;
    letter-spacing: -0.03em;
    color: #111827;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

#modal-body h2::before,
.modal-card h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    border-radius: 999px;
    background: var(--navy-900);
    flex-shrink: 0;
}

#modal-body p,
#modal-body small,
.modal-card p,
.modal-card small {
    line-height: 1.6;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.modal-close:hover {
    background: #fee2e2;
    color: var(--navy-900);
}

.sm-details-grid {
    display: grid;
    grid-template-columns: 130px 1fr;
    row-gap: 10px;
    column-gap: 12px;
    align-items: center;
}

.sm-label {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted, #64748b);
}

.student-panel-modal {
    max-width: 620px;
    width: min(620px, 94vw);
    padding: 0;
    border: none;
    border-radius: 28px;
    overflow: hidden;
    scrollbar-gutter: auto;
    display: flex;
    flex-direction: column;
    max-height: min(86vh, 900px);
    box-shadow: 0 32px 88px rgba(15, 23, 42, 0.22);
}

.student-panel-close {
    top: 14px;
    right: 14px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 8px 20px rgba(33, 5, 5, 0.12);
}

.student-panel-hero {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    margin: 0;
    padding: 24px 24px 22px;
    border-radius: 28px 28px 0 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
        radial-gradient(circle at 88% 82%, rgba(255, 255, 255, 0.1), transparent 32%),
        linear-gradient(145deg, #4b0d0d 0%, #861818 52%, #b52b22 100%);
}

.student-panel-hero-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 36px;
}

.student-panel-avatar {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.45rem;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 34px rgba(33, 5, 5, 0.28);
}

.student-panel-avatar.has-photo {
    background: #fff;
}

.student-panel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.student-panel-avatar-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.student-panel-kicker {
    display: inline-flex;
    margin-bottom: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.student-panel-modal .student-panel-name {
    margin: 0 0 4px;
    padding: 0;
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    display: block;
}

.student-panel-modal .student-panel-name::before {
    display: none !important;
}

.student-panel-email {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
    line-height: 1.4;
    word-break: break-word;
}

.student-panel-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.student-panel-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}

.student-panel-chip-status.is-active {
    background: rgba(220, 252, 231, 0.22);
    border-color: rgba(167, 243, 208, 0.45);
    color: #ecfdf5;
}

.student-panel-chip-status.is-pending {
    background: rgba(254, 243, 199, 0.2);
    border-color: rgba(253, 230, 138, 0.4);
    color: #fffbeb;
}

.student-panel-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px 22px 22px;
    background: linear-gradient(180deg, #fff, #fafbfc);
    scrollbar-gutter: stable;
}

.student-panel-progress-card {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid #e8edf3;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.student-panel-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.student-panel-progress-head strong {
    color: var(--navy-900);
    font-size: 0.88rem;
}

.student-panel-progress-track {
    height: 8px;
    border-radius: 999px;
    background: #f1e4e4;
    overflow: hidden;
}

.student-panel-progress-track span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--navy-900), #d46060);
    transition: width 0.25s ease;
}

.student-panel-section {
    margin-bottom: 16px;
}

.student-panel-section-title {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.student-panel-notes-box {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #e8edf3;
    background: #fff;
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.55;
    white-space: pre-wrap;
    min-height: 52px;
}

.student-panel-footer {
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px solid #e8edf3;
}

.student-panel-doc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.student-panel-reset-stack {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.student-panel-field-label {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #475569;
}

.student-panel-field-label input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font: inherit;
}

.student-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--navy-900), var(--blue-500));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    margin-bottom: 10px;
}

.student-card-avatar--photo {
    overflow: hidden;
    padding: 0;
    background: #fff;
    border: 2px solid rgba(139, 26, 26, 0.12);
    box-shadow: 0 8px 16px rgba(139, 26, 26, 0.1);
}

.student-card-avatar--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.student-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

.student-panel-item {
    display: grid;
    gap: 6px;
    padding: 14px 15px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e8edf3;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.student-panel-item strong,
.student-panel-item #sm-status {
    color: #1f2937;
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 700;
}

.student-panel-item-wide {
    grid-column: 1 / -1;
}

.student-panel-reset {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.student-panel-reset summary {
    cursor: pointer;
    color: var(--navy-900);
    font-size: 0.92rem;
    font-weight: 700;
}

.student-panel-reset-form {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}

@media (max-width: 640px) {
    .student-panel-hero-content {
        flex-direction: column;
        align-items: flex-start;
        padding-right: 0;
    }

    .student-panel-grid {
        grid-template-columns: 1fr;
    }

    .student-panel-item-wide {
        grid-column: auto;
    }

    .student-panel-doc-actions,
    .student-panel-reset-form {
        flex-direction: column;
        align-items: stretch;
    }

    .student-panel-doc-actions .btn {
        width: 100%;
    }
}

.password-gate {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
}

.gate-icon {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffe8e8, #fbd9d9);
    color: var(--navy-900);
}

.gate-icon svg {
    width: 40px;
    height: 40px;
}

.narrow-form {
    max-width: 420px;
    margin: 22px auto 0;
    text-align: left;
}

.login-page {
    background:
        radial-gradient(ellipse 80% 60% at 15% 20%, rgba(255, 255, 255, 0.08), transparent 55%),
        radial-gradient(ellipse 70% 55% at 85% 80%, rgba(0, 0, 0, 0.18), transparent 60%),
        linear-gradient(145deg, #6e1414 0%, #8B1A1A 42%, #a32020 100%);
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px),
        radial-gradient(circle at 70% 65%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px);
    background-size: 28px 28px, 36px 36px;
}

.login-split {
    display: grid;
    place-items: center;
    height: 100vh;
    padding: 12px 20px 20px;
    position: relative;
    z-index: 1;
}

/* ── Left image panel ── */
.login-image-panel {
    display: none;
}

.login-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 1;
}

.login-image-overlay {
    position: absolute;
    inset: 0;
    background: none;
    display: flex;
    align-items: flex-end;
    padding: 48px;
}

.login-image-text h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 12px;
    letter-spacing: -0.03em;
}

.login-image-text p {
    color: rgba(255,255,255,0.78);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* ── Right form panel ── */
.login-form-panel {
    width: 100%;
    display: grid;
    place-items: center;
    padding: 0;
    background: transparent;
}

.login-card {
    width: min(420px, 100%);
    padding: 0;
    background: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
}

.login-card .eyebrow {
    display: block;
    margin-bottom: 6px;
}

.login-brand {
    margin-top: 24px;
    margin-bottom: 14px;
    color: var(--navy-900);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    min-height: unset;
    overflow: visible;
}

.login-brand > div {
    overflow: visible;
    min-width: unset;
    white-space: nowrap;
}

.login-logo {
    width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 8px;
}

.login-brand strong {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.login-card .form {
    gap: 14px;
}

.login-card .form .btn {
    width: 50%;
    justify-self: center;
    margin: 10px 0 0;
    border-radius: 10px;
}

.portal-login-card {
    width: min(440px, 100%);
    padding: 28px 32px 32px;
    background: linear-gradient(180deg, #ffffff 0%, #fffbfb 100%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 24px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.75) inset,
        0 32px 64px rgba(15, 23, 42, 0.24),
        0 12px 28px rgba(90, 16, 16, 0.22);
    text-align: left;
    position: relative;
    overflow: hidden;
    animation: portal-card-in .45s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes portal-card-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.portal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px -4px;
    padding: 7px 12px 7px 6px;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 700;
    transition: color .2s, background .2s, transform .2s, box-shadow .2s;
}

.portal-back-link:hover {
    color: #8B1A1A;
    background: #fff3f3;
    box-shadow: 0 8px 18px rgba(139, 26, 26, 0.08);
}

.portal-back-link:active,
.portal-back-link.is-pressed {
    transform: translateX(-3px) scale(0.98);
    background: #fde8e8;
    color: #6e1414;
}

.portal-back-link-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #fff3f3;
    color: #8B1A1A;
    transition: transform .2s, background .2s;
}

.portal-back-link:hover .portal-back-link-icon {
    transform: translateX(-2px);
    background: #fde8e8;
}

.portal-back-link:active .portal-back-link-icon,
.portal-back-link.is-pressed .portal-back-link-icon {
    transform: translateX(-4px);
}

.portal-stage {
    position: relative;
    min-height: 280px;
}

.portal-stage.is-transitioning {
    min-height: var(--portal-stage-height, 280px);
}

.portal-view {
    opacity: 0;
    visibility: hidden;
    transform: translateX(18px);
    pointer-events: none;
    transition: opacity .24s ease, transform .24s ease, visibility .24s ease;
}

.portal-view:not(.is-active) {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.portal-view.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.portal-view.is-leaving {
    opacity: 0;
    transform: translateX(-18px);
}

.portal-view.is-leaving-back {
    opacity: 0;
    transform: translateX(18px);
}

.portal-view.is-entering {
    transform: translateX(18px);
}

.portal-view.is-entering-back {
    transform: translateX(-18px);
}

.portal-login-form {
    display: none;
}

.portal-login-form.is-active {
    display: grid;
}

.js-portal-open.is-opening {
    transform: translateY(-2px) scale(0.985);
    opacity: .88;
}

@media (prefers-reduced-motion: reduce) {
    .portal-view,
    .portal-back-link,
    .portal-back-link-icon,
    .portal-link {
        transition: none;
    }

    .portal-view.is-leaving,
    .portal-view.is-leaving-back,
    .portal-view.is-entering,
    .portal-view.is-entering-back {
        transform: none;
    }
}

.portal-back-link-icon svg {
    width: 14px;
    height: 14px;
    display: block;
}

.portal-login-card .login-brand {
    margin-top: 4px;
    margin-bottom: 20px;
}

.portal-login-card .login-logo {
    width: 148px;
    max-width: 72%;
    filter: drop-shadow(0 4px 10px rgba(139, 26, 26, 0.08));
}

.portal-login-card .login-brand strong {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    .portal-login-card {
        animation: none;
    }

    .portal-link,
    .portal-link-icon,
    .portal-link-arrow {
        transition: none;
    }
}

.portal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin: 0 0 16px;
    border-radius: 999px;
    background: #fff7f7;
    color: #8B1A1A;
    font-weight: 800;
    font-size: .82rem;
}

.portal-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #8B1A1A;
}

.portal-eyebrow {
    display: block;
    margin: 0 0 8px;
    color: #8B1A1A;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-align: center;
}

.portal-heading {
    margin: 0 0 8px;
    color: var(--navy-950);
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.2;
    text-align: center;
}

.portal-copy {
    margin-top: -4px;
    margin-bottom: 20px;
}

.portal-sub,
.portal-admin-note {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.55;
    margin: 0;
    text-align: center;
}

.portal-grid {
    display: grid;
    gap: 12px;
}

.portal-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}

.portal-link:hover {
    border-color: var(--portal-accent, #8B1A1A);
    background: var(--portal-bg, #fff7f7);
    box-shadow: 0 16px 28px var(--portal-shadow, rgba(139, 26, 26, 0.12));
    transform: translateY(-2px);
}

.portal-link:focus-visible {
    outline: none;
    border-color: var(--portal-accent, #8B1A1A);
    box-shadow: var(--ring), 0 16px 28px var(--portal-shadow, rgba(139, 26, 26, 0.12));
}

.portal-link--student {
    --portal-accent: #8B1A1A;
    --portal-bg: #fff7f7;
    --portal-shadow: rgba(139, 26, 26, 0.12);
    --portal-icon-bg: linear-gradient(145deg, #fff0f0, #fde8e8);
    --portal-icon-color: #8B1A1A;
}

.portal-link--coordinator {
    --portal-accent: #7a1a4a;
    --portal-bg: #fdf5f8;
    --portal-shadow: rgba(122, 26, 74, 0.12);
    --portal-icon-bg: linear-gradient(145deg, #fff0f5, #fde8f0);
    --portal-icon-color: #7a1a4a;
}

.portal-link--partner {
    --portal-accent: #9a5c10;
    --portal-bg: #fffaf2;
    --portal-shadow: rgba(154, 92, 16, 0.12);
    --portal-icon-bg: linear-gradient(145deg, #fff8eb, #fef0d8);
    --portal-icon-color: #9a5c10;
}

.portal-link--student .portal-link-title { color: #8B1A1A; }
.portal-link--coordinator .portal-link-title { color: #7a1a4a; }
.portal-link--partner .portal-link-title { color: #9a5c10; }

.portal-link-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--portal-icon-bg, linear-gradient(145deg, #fff0f0, #fde8e8));
    color: var(--portal-icon-color, #8B1A1A);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
    transition: transform .2s, box-shadow .2s;
}

.portal-link-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.portal-link:hover .portal-link-icon {
    transform: scale(1.04);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.portal-link-text {
    display: grid;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.portal-link-title {
    display: block;
    font-weight: 800;
    font-size: .95rem;
    line-height: 1.3;
}

.portal-link-desc {
    display: block;
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.35;
}

.portal-link-arrow {
    margin-left: auto;
    color: var(--portal-accent, #8B1A1A);
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    opacity: .9;
    transition: background .2s, transform .2s;
}

.portal-link:hover .portal-link-arrow {
    background: var(--portal-bg, #fff7f7);
    transform: translateX(3px);
}

.portal-link-arrow svg {
    width: 16px;
    height: 16px;
    display: block;
}

.portal-divider {
    margin: 22px 0 12px;
    color: var(--muted);
    font-weight: 800;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.portal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portal-tab {
    padding: 8px 11px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--muted);
    text-decoration: none;
    font-weight: 800;
    font-size: .8rem;
}

.portal-tab.active,
.portal-tab:hover {
    background: #8B1A1A;
    border-color: #8B1A1A;
    color: #fff;
}

.dashboard-alert {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
    border-color: rgba(139, 26, 26, .18);
    background: linear-gradient(135deg, #fff, #fff7f7);
}

.progress-list {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}

.progress-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--surface-muted);
}

.progress-list strong {
    color: var(--navy-950);
}

.progress-list span {
    color: var(--muted);
    font-weight: 700;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.bulk-requirement-uploader {
    display: grid;
    gap: 16px;
    margin: 18px 0 20px;
    padding: 20px;
    border: 1px solid rgba(139, 26, 26, 0.16);
    border-radius: 24px;
    background: linear-gradient(135deg, #fff, #fff7f7);
    box-shadow: 0 14px 34px rgba(139, 26, 26, 0.06);
}

.bulk-upload-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.bulk-upload-head h3 {
    margin: 0 0 4px;
    color: #172033;
    font-size: 1.05rem;
    letter-spacing: -0.035em;
}

.bulk-upload-head p {
    margin: 0;
}

.bulk-upload-eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    color: #991b1b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bulk-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.bulk-upload-item {
    display: grid;
    gap: 9px;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(219, 228, 240, 0.95);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
}

.bulk-upload-item span {
    color: #344054;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.35;
}

.bulk-upload-item input[type="file"] {
    width: 100%;
    color: #667085;
    font-size: 0.82rem;
}

.bulk-upload-item.is-locked {
    background: rgba(248, 250, 252, 0.82);
}

.bulk-upload-item em {
    color: #667085;
    font-style: normal;
    font-size: 0.82rem;
    font-weight: 700;
}

.requirement-template-link {
    display: table;
    margin-top: 7px;
    padding: 5px 9px;
    border: 1px solid rgba(139, 26, 26, 0.18);
    border-radius: 999px;
    background: #fff7f7;
    color: #991b1b;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
}

.requirement-template-link:hover {
    border-color: rgba(139, 26, 26, 0.36);
    background: #fee2e2;
}

.requirement-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    scrollbar-gutter: stable;
}

.requirement-table-wrap .data-table {
    min-width: 980px;
}

@media (max-width: 720px) {
    .bulk-upload-head {
        align-items: stretch;
        flex-direction: column;
    }

    .bulk-upload-head .btn {
        justify-content: center;
        width: 100%;
    }

    .requirement-table-wrap {
        margin-inline: -4px;
        padding-bottom: 8px;
        border-radius: 18px;
    }

    .requirement-table-wrap .data-table {
        min-width: 760px;
    }

    .requirement-table-wrap::after {
        content: 'Swipe left/right to view all columns';
        position: sticky;
        left: 10px;
        display: inline-flex;
        margin: 8px 0 0 10px;
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(139, 26, 26, 0.08);
        color: #8b1a1a;
        font-size: 0.7rem;
        font-weight: 800;
    }
}

/* ===== Documents / Pre-deployment requirements (redesigned) ===== */
.requirements-card {
    display: grid;
    gap: 18px;
}

.requirements-progress {
    display: grid;
    gap: 9px;
}

.requirements-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.requirements-progress-head strong {
    color: var(--text);
    font-weight: 800;
}

.requirements-progress-pct {
    color: var(--navy-900);
    font-weight: 800;
}

.requirements-progress-track {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
}

.requirements-progress-track span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    transition: width 0.4s ease;
}

.requirements-list {
    display: grid;
    gap: 14px;
}

.requirement-card {
    display: grid;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.requirement-card:hover {
    border-color: rgba(139, 26, 26, 0.18);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.requirement-card.status-approved {
    border-color: rgba(22, 163, 74, 0.28);
    background: linear-gradient(180deg, #ffffff, #f5fdf8);
}

.requirement-card.status-rejected {
    border-color: rgba(220, 38, 38, 0.3);
    background: linear-gradient(180deg, #ffffff, #fff6f6);
}

.requirement-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.requirement-card-head {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
}

.requirement-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: var(--gray-bg);
    color: var(--muted);
}

.requirement-status-icon svg {
    width: 21px;
    height: 21px;
}

.requirement-status-icon.icon-approved {
    background: var(--green-bg);
    color: #15803d;
}

.requirement-status-icon.icon-rejected {
    background: var(--red-bg);
    color: #dc2626;
}

.requirement-status-icon.icon-pending {
    background: var(--yellow-bg);
    color: #b45309;
}

.requirement-card-info {
    min-width: 0;
}

.requirement-card-info h4 {
    margin: 0;
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.requirement-card-notes {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.requirement-card .requirement-template-link {
    margin-top: 9px;
}

.requirement-review-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 13px;
    border-radius: 13px;
    background: var(--red-bg);
    color: #991b1b;
    font-size: 0.82rem;
    line-height: 1.45;
}

.requirement-review-note svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.requirement-review-note strong {
    font-weight: 800;
}

.requirement-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}

.requirement-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid rgba(139, 26, 26, 0.18);
    border-radius: 999px;
    background: #fff7f7;
    color: var(--navy-900);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.requirement-file-chip svg {
    width: 16px;
    height: 16px;
}

.requirement-file-chip:hover {
    border-color: rgba(139, 26, 26, 0.36);
    background: #fee2e2;
}

.requirement-empty-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px dashed var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.requirement-upload-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.requirement-upload-form input[type="file"] {
    max-width: 230px;
    color: var(--muted);
    font-size: 0.8rem;
}

.requirement-upload-form input[type="file"]::file-selector-button,
.bulk-upload-item input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--navy-900);
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.requirement-upload-form input[type="file"]::file-selector-button:hover,
.bulk-upload-item input[type="file"]::file-selector-button:hover {
    border-color: rgba(139, 26, 26, 0.3);
    background: #fff7f7;
}

.requirement-lock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.requirement-lock svg {
    width: 15px;
    height: 15px;
}

/* Missing badge variants used across documents/predeployment */
.badge.rejected {
    background: var(--red-bg);
    color: #991b1b;
}

.badge.needs_revision {
    background: var(--yellow-bg);
    color: #92400e;
}

.badge.submitted,
.badge.forwarded,
.badge.accepted,
.badge.orientation_scheduled,
.badge.orientation_completed {
    background: #dbeafe;
    color: #1e40af;
}

.badge.not_submitted {
    background: var(--gray-bg);
    color: #475569;
}

/* Status callout banners */
.status-callout {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 16px 18px;
    border: 1px solid transparent;
    border-radius: 16px;
}

.status-callout strong {
    font-size: 0.96rem;
    font-weight: 800;
}

.status-callout p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0.92;
}

.status-callout .btn {
    margin-top: 10px;
    align-self: flex-start;
}

.status-callout.info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.status-callout.success {
    background: var(--green-bg);
    border-color: #bbf7d0;
    color: #166534;
}

.status-callout.warning {
    background: var(--yellow-bg);
    border-color: #fde68a;
    color: #92400e;
}

/* My Documents collection */
.documents-collection-card .doc-collection {
    display: grid;
    gap: 22px;
    margin-top: 18px;
}

.doc-collection-title {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.doc-empty {
    margin: 0;
    padding: 14px 16px;
    border: 1px dashed var(--border);
    border-radius: 14px;
    background: var(--surface-muted);
    color: var(--muted);
    font-size: 0.85rem;
}

.weekly-report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.weekly-report-chip {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.weekly-report-chip:hover {
    border-color: rgba(139, 26, 26, 0.18);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.weekly-report-week {
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 800;
}

.weekly-report-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--navy-900);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.weekly-report-link svg {
    width: 15px;
    height: 15px;
}

.weekly-report-link:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .requirement-card-top {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 10px;
    }

    .requirement-upload-form,
    .requirement-lock {
        margin-left: 0;
        width: 100%;
    }

    .requirement-upload-form input[type="file"] {
        max-width: 100%;
        flex: 1;
    }
}

.student-dashboard-page {
    display: grid;
    gap: 22px;
}

.student-dashboard-hero,
.student-next-card,
.student-progress-card,
.student-requirement-card,
.student-mini-card,
.student-activity-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(219, 228, 240, 0.9);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,250,250,0.96));
    box-shadow: 0 18px 44px rgba(73, 19, 19, 0.08);
}

.student-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 360px);
    gap: 28px;
    align-items: stretch;
    padding: clamp(28px, 4vw, 38px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.14), transparent 24%),
        radial-gradient(circle at 88% 82%, rgba(255, 196, 196, 0.16), transparent 28%),
        linear-gradient(135deg, #5a0f0f 0%, #8B1A1A 38%, #b42318 72%, #c2410c 100%);
    box-shadow:
        0 28px 60px rgba(90, 16, 16, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.student-dashboard-hero::before {
    content: '';
    position: absolute;
    inset: auto -90px -120px auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.student-hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(8px);
}

.student-hero-glow--one {
    top: -40px;
    right: 18%;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.08);
}

.student-hero-glow--two {
    bottom: -60px;
    left: 8%;
    width: 220px;
    height: 220px;
    background: rgba(255, 214, 170, 0.1);
}

.student-hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px),
        radial-gradient(circle at 70% 65%, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px);
    background-size: 28px 28px, 36px 36px;
    pointer-events: none;
}

.student-hero-copy,
.student-hero-panel {
    position: relative;
    z-index: 1;
}

.student-hero-kicker {
    margin-bottom: 18px;
    padding: 8px 14px 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.student-hero-kicker .dashboard-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.student-hero-copy h2 {
    max-width: 720px;
    margin: 0 0 12px;
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.065em;
}

.student-hero-greeting {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.student-hero-name {
    display: block;
    background: linear-gradient(90deg, #ffffff 0%, #ffe8e8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}

.student-hero-copy p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.02rem;
    line-height: 1.7;
}

.student-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.student-dashboard-hero .student-hero-btn-primary {
    min-height: 46px;
    padding-inline: 22px;
    border: none;
    color: #8B1A1A;
    background: linear-gradient(180deg, #ffffff 0%, #fff5f5 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.student-dashboard-hero .student-hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.22);
}

.student-ghost-btn {
    min-height: 46px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.student-ghost-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.42);
    transform: translateY(-1px);
}

.student-hero-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 220px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(14px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 18px 36px rgba(45, 10, 10, 0.16);
}

.student-hero-panel-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.student-hero-panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.student-panel-label {
    color: rgba(255, 255, 255, 0.78);
}

.student-hero-panel strong {
    display: block;
    margin: 0;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    word-break: break-word;
}

.student-panel-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.student-panel-pill {
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: capitalize;
}

.student-panel-pill--status {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.student-panel-pill--hours {
    border: 1px solid rgba(254, 215, 170, 0.35);
    background: rgba(251, 191, 36, 0.16);
    color: #fff7ed;
}

.student-panel-pill--complete {
    border: 1px solid rgba(134, 239, 172, 0.45);
    background: rgba(22, 163, 74, 0.22);
    color: #ecfdf5;
}

.student-hero-panel-progress {
    margin-top: auto;
    padding-top: 6px;
}

.student-hero-panel-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 700;
}

.student-hero-panel-progress-head strong {
    color: #fff;
    font-size: 0.92rem;
}

.student-hero-panel-progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.student-hero-panel-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffffff, #fecaca);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

.student-hero-kicker,
.student-section-label,
.student-panel-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.student-next-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
    border-color: rgba(139,26,26,0.16);
}

.student-next-icon,
.student-stat-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    color: #991b1b;
    background: linear-gradient(135deg, #fee2e2, #fff1f2);
}

.student-next-icon svg,
.student-stat-icon svg {
    width: 24px;
    height: 24px;
}

.student-section-label {
    margin-bottom: 6px;
    color: #9f1239;
}

.student-next-card h3,
.student-progress-copy h3,
.student-card-head h3 {
    margin: 0;
    color: #172033;
    letter-spacing: -0.04em;
}

.student-next-card p,
.student-progress-copy p,
.student-mini-card p {
    margin: 6px 0 0;
    color: #667085;
    line-height: 1.55;
}

.student-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.student-stat-card,
.student-status-card {
    display: flex;
    gap: 14px;
    align-items: center;
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(219, 228, 240, 0.9);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15,23,42,0.055);
}

.student-stat-card div {
    min-width: 0;
}

.student-stat-card span:not(.student-stat-icon),
.student-status-card .student-status-label {
    display: block;
    margin-bottom: 5px;
    color: #667085;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.student-stat-card strong,
.student-status-copy strong {
    display: block;
    color: #172033;
    font-size: 1.02rem;
    line-height: 1.25;
}

.student-dashboard-main {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 18px;
}

.student-progress-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    padding: 26px;
}

.student-progress-card .ring-bg {
    stroke: var(--green-bg);
}

.student-progress-card .ring-value {
    stroke: var(--green);
}

.student-progress-card .ring-label strong {
    color: var(--green);
}

.student-progress-bar {
    height: 12px;
    margin: 18px 0 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #f1e4e4;
}

.student-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8b1a1a, #ef4444);
}

.student-requirement-card,
.student-mini-card,
.student-activity-card {
    padding: 24px;
}

.student-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.student-card-head .badge {
    flex-shrink: 0;
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
    padding: 6px 14px;
    white-space: nowrap;
}

.student-check-list {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.student-check-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 16px;
    background: #f8fafc;
}

.student-check-list span {
    color: #667085;
    font-weight: 800;
}

.student-check-list strong {
    color: #172033;
}

.student-status-grid,
.student-info-grid {
    display: grid;
    gap: 16px;
}

.student-status-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}

.student-status-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 18px 16px;
    border: 1px solid rgba(219, 228, 240, 0.92);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.student-status-card:hover {
    border-color: #d7e0ec;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.student-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.dashboard-icon,
.student-status-icon svg,
.student-mini-card-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.student-status-icon--profile {
    background: #fff8f8;
    border-color: #fecdd3;
    color: #be123c;
}

.student-status-icon--docs {
    background: #f0fdf8;
    border-color: #bbf7d0;
    color: #047857;
}

.student-status-icon--deployment {
    background: #f8fbff;
    border-color: #dbeafe;
    color: #1d4ed8;
}

.student-status-icon--reports {
    background: #fff8ef;
    border-color: #fde68a;
    color: #b45309;
}

.student-status-copy {
    min-width: 0;
    flex: 1;
}

.student-status-label {
    display: block;
    margin-bottom: 4px;
    color: #667085;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
}

.student-status-copy strong {
    display: block;
    color: #172033;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.student-status-copy strong.is-positive {
    color: #166534;
}

.student-status-copy strong.is-warning {
    color: #92400e;
}

.student-info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.student-mini-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px;
    border: 1px solid rgba(219, 228, 240, 0.92);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
}

.student-mini-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.student-mini-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    padding: 9px;
    border: 1px solid transparent;
    border-radius: 13px;
}

.student-mini-card-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.student-mini-card-icon--dtr {
    background: #fff8ef;
    border-color: #fde68a;
    color: #b45309;
}

.student-mini-card-icon--report {
    background: #f8fbff;
    border-color: #dbeafe;
    color: #1d4ed8;
}

.student-mini-card-icon--actions {
    background: #fff8f8;
    border-color: #fecdd3;
    color: #be123c;
}

.student-mini-card-head-copy {
    flex: 1;
    min-width: 0;
}

.student-mini-card-head-copy h3 {
    margin: 0;
    color: #172033;
    font-size: 1rem;
    letter-spacing: -0.03em;
    font-weight: 800;
    line-height: 1.25;
}

.student-mini-card-meta {
    display: block;
    margin-top: 2px;
    color: #667085;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.student-mini-badge {
    flex-shrink: 0;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.student-mini-badge--success {
    background: #dcfce7;
    color: #166534;
}

.student-mini-badge--pending {
    background: #fef3c7;
    color: #92400e;
}

.student-mini-badge--pdf {
    background: #eff6ff;
    color: #1d4ed8;
}

.student-mini-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.student-mini-highlight {
    color: #172033;
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.student-mini-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: #667085;
    font-size: 0.88rem;
    line-height: 1.45;
}

.student-mini-stats strong {
    color: #8B1A1A;
    font-weight: 800;
}

.student-mini-divider {
    color: #cbd5e1;
}

.student-mini-note {
    margin: 0;
    color: #667085;
    font-size: 0.88rem;
    line-height: 1.45;
}

.student-mini-empty {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    color: #667085;
    font-size: 0.86rem;
    line-height: 1.5;
}

.student-mini-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-top: 4px;
    padding: 8px 14px;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    background: #fff;
    color: #8B1A1A;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.student-mini-link:hover {
    border-color: #8B1A1A;
    background: #fff7f7;
    transform: translateY(-1px);
}

.student-mini-card-body--actions {
    gap: 10px;
}

.student-mini-action {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid #e8edf4;
    border-radius: 14px;
    background: #fff;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.student-mini-action:hover {
    border-color: #8B1A1A;
    background: #fff7f7;
    color: #8B1A1A;
    transform: translateY(-1px);
}

.student-mini-card strong {
    display: block;
    color: #172033;
    font-size: 1.08rem;
}

.student-actions-card {
    display: flex;
    flex-direction: column;
}

.student-actions-card .student-card-head {
    margin-bottom: 8px;
}

.student-actions-card .btn {
    justify-content: center;
}

.student-activity-card .timeline {
    margin-top: 0;
}

.role-student .content > .card + .card {
    margin-top: 26px;
}

.student-profile-card {
    padding: clamp(22px, 3vw, 34px);
    border-color: rgba(139, 26, 26, 0.12);
    background:
        radial-gradient(circle at 8% 0%, rgba(139, 26, 26, 0.12), transparent 26%),
        radial-gradient(circle at 100% 10%, rgba(212, 96, 96, 0.13), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,0.99), rgba(255,251,251,0.97));
    box-shadow: 0 24px 55px rgba(73, 19, 19, 0.09);
}

.student-profile-card::after {
    content: '';
    position: absolute;
    right: -110px;
    bottom: -150px;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: rgba(139, 26, 26, 0.055);
    pointer-events: none;
}

.student-profile-card > * {
    position: relative;
    z-index: 1;
}

.student-profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    align-items: stretch;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(219, 228, 240, 0.86);
}

.student-profile-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.profile-eyebrow {
    width: fit-content;
    margin-bottom: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(139, 26, 26, 0.09);
    color: var(--navy-900);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.student-profile-title h2 {
    margin: 0 0 8px;
    color: #251334;
    font-size: clamp(1.6rem, 2.3vw, 2.25rem);
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.student-profile-title p {
    max-width: 680px;
    margin: 0;
    line-height: 1.55;
}

.profile-photo-panel {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(219, 228, 240, 0.95);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 18px 34px rgba(73, 19, 19, 0.07);
}

.profile-photo-frame {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    overflow: hidden;
    border: 4px solid #fff;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--navy-900), var(--blue-500));
    color: #fff;
    font-size: 2.15rem;
    font-weight: 900;
    box-shadow: 0 18px 34px rgba(139, 26, 26, 0.22);
}

.profile-photo-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-panel strong,
.profile-photo-panel small {
    display: block;
}

.profile-photo-panel strong {
    margin-bottom: 6px;
    color: #251334;
    font-size: 0.96rem;
}

.profile-photo-panel small,
.profile-photo-input small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.45;
}

.student-profile-form {
    gap: 20px;
}

.student-profile-grid.two {
    gap: 20px 18px;
    margin-bottom: 0;
}

.student-profile-form label {
    color: #26344d;
}

.student-profile-form input,
.student-profile-form textarea {
    border-color: rgba(198, 214, 233, 0.96);
    background: rgba(255, 255, 255, 0.88);
}

.student-profile-form input[disabled] {
    color: #1f2937;
    background: linear-gradient(180deg, #f8fafc, #f3f6fb);
    cursor: not-allowed;
}

.profile-photo-input input[type="file"] {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
}

.profile-photo-input input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 9px 13px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--navy-900), var(--blue-500));
    color: #fff;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(139, 26, 26, 0.16);
}

.student-profile-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}

.student-profile-actions .btn {
    min-width: 230px;
    justify-content: center;
    box-shadow: 0 18px 34px rgba(139, 26, 26, 0.20);
}

@media (max-width: 1180px) {
    .student-stat-grid,
    .student-status-grid,
    .student-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-dashboard-main,
    .student-dashboard-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .student-profile-hero,
    .student-profile-grid.two {
        grid-template-columns: 1fr;
    }

    .profile-photo-panel {
        align-items: flex-start;
    }

    .profile-photo-frame {
        width: 88px;
        height: 88px;
        border-radius: 24px;
    }

    .student-profile-actions,
    .student-profile-actions .btn {
        width: 100%;
    }

    .student-dashboard-hero,
    .student-next-card,
    .student-progress-card {
        grid-template-columns: 1fr;
    }

    .student-stat-grid,
    .student-status-grid,
    .student-info-grid {
        grid-template-columns: 1fr;
    }

    .student-next-card > .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 720px) {
    html {
        overflow-x: hidden;
    }

    body.role-student {
        --sidebar-width: 0px;
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        overscroll-behavior-x: none;
    }

    .role-student .app-shell {
        display: block;
        min-height: 100svh;
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    .role-student .main,
    .role-student.sidebar-collapsed .main {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        overflow-x: hidden;
        padding-top: calc(72px + env(safe-area-inset-top));
        padding-bottom: 106px;
    }

    .role-student .topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 80;
        flex-direction: row;
        align-items: center;
        min-height: 72px;
        padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
        gap: 12px;
    }

    .role-student .topbar-copy {
        min-width: 0;
    }

    .role-student .topbar-copy h1 {
        margin: 0 0 2px;
        font-size: clamp(1.25rem, 6vw, 1.55rem);
        line-height: 1.05;
    }

    .role-student .topbar-copy span {
        font-size: 0.8rem;
    }

    .role-student .top-actions {
        width: auto;
        flex: 0 0 auto;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .role-student .notif-trigger {
        width: 40px;
        height: 40px;
        box-shadow: 0 10px 24px rgba(73, 19, 19, 0.08);
    }

    .role-student .notif-panel {
        width: min(286px, calc(100vw - 36px)) !important;
        max-width: calc(100vw - 36px);
        max-height: min(340px, calc(100svh - 178px));
        border-radius: 22px;
        box-shadow: 0 22px 45px rgba(73, 19, 19, 0.22), 0 4px 14px rgba(73, 19, 19, 0.08);
    }

    .role-student .notif-panel-header {
        padding: 15px 17px 13px;
    }

    .role-student .notif-panel-title {
        font-size: 0.94rem;
    }

    .role-student .notif-list {
        max-height: min(242px, calc(100svh - 268px));
    }

    .role-student .notif-item {
        gap: 11px;
        padding: 11px 14px;
    }

    .role-student .notif-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .role-student .notif-title {
        font-size: 0.78rem;
    }

    .role-student .notif-msg {
        font-size: 0.74rem;
        line-height: 1.32;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    .role-student .notif-time {
        font-size: 0.68rem;
        margin-top: 2px;
    }

    .role-student .notif-footer {
        padding: 10px 14px 12px;
    }

    .role-student .notif-mark-all {
        font-size: 0.82rem;
    }

    .role-student .user-chip {
        width: auto;
        padding: 4px;
        border-radius: 16px;
    }

    .role-student .user-chip .app-user-identity__meta {
        display: none;
    }

    .role-student .user-avatar {
        width: 38px;
        height: 38px;
        border-radius: 13px;
    }

    .role-student .app-shell,
    .role-student .main,
    .role-student .content {
        min-width: 0;
    }

    .role-student .content {
        padding: 18px 14px 0;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }

    .role-student .table-wrap {
        max-width: 100%;
        overscroll-behavior-x: contain;
    }

    .student-bottom-nav-root {
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(10px + env(safe-area-inset-bottom));
        z-index: 1200;
        box-sizing: border-box;
        width: 100vw;
        max-width: 100vw;
        padding: 0 12px;
        pointer-events: none;
    }

    .student-bottom-nav-root .sidebar,
    body.role-student > .sidebar,
    .role-student .sidebar,
    .role-student.sidebar-collapsed .sidebar {
        position: relative;
        inset: auto;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        margin: 0;
        transform: none;
        z-index: 1;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 66px;
        align-items: center;
        gap: 6px;
        max-height: 82px;
        padding: 8px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 24px;
        background: linear-gradient(135deg, rgba(111,17,17,0.98), rgba(162,29,29,0.98));
        box-shadow: 0 18px 45px rgba(73, 19, 19, 0.28);
        backdrop-filter: blur(18px);
        overflow: visible;
        pointer-events: auto;
    }

    .role-student .app-shell > .sidebar {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        top: auto;
        width: auto;
    }

    .role-student .account-settings-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .role-student .account-settings-actions .btn {
        width: 100%;
        min-height: 46px;
    }

    .student-nav-sheet-backdrop,
    .role-student .nav-group--student-docs .nav-group-items {
        will-change: auto;
    }

    .role-student .sidebar::before,
    .role-student .sidebar::after,
    .role-student .sidebar-toggle,
    .role-student .brand,
    .role-student .sidebar-user-info {
        display: none;
    }

    .role-student .nav {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        gap: 4px;
        min-height: 0;
        overflow: visible;
        overflow-x: visible;
        overflow-y: visible;
        padding-bottom: 1px;
        pointer-events: auto;
    }

    .role-student .nav > .nav-link.nav-mobile-hide {
        display: none;
    }

    .role-student .nav-link,
    .role-student.sidebar-collapsed .nav-link,
    .role-student.sidebar-collapsed .sidebar-logout {
        scroll-snap-align: center;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        min-height: 62px;
        padding: 8px 7px;
        border-radius: 18px;
        color: rgba(255, 255, 255, 0.82);
        text-align: center;
        pointer-events: auto;
        touch-action: manipulation;
    }

    .role-student .sidebar-user,
    .role-student.sidebar-collapsed .sidebar-user {
        display: block;
        padding: 0;
        border-top: 0;
        min-width: 0;
    }

    .role-student .sidebar-logout,
    .role-student.sidebar-collapsed .sidebar-logout {
        width: 100%;
        padding: 8px 7px;
        border-radius: 18px;
        color: rgba(255, 255, 255, 0.82);
        background: rgba(255, 255, 255, 0.08);
    }

    .role-student .sidebar-logout:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.16);
    }

    .role-student .sidebar-logout span,
    .role-student.sidebar-collapsed .sidebar-logout span {
        display: block;
        font-size: 0.68rem;
        line-height: 1.1;
    }

    .role-student .nav-link.active {
        background: rgba(255, 255, 255, 0.18);
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), 0 10px 24px rgba(0,0,0,0.12);
    }

    .role-student .nav-link svg,
    .role-student .sidebar-logout svg {
        width: 21px;
        height: 21px;
        opacity: 0.95;
    }

    .role-student .nav-link span,
    .role-student .nav-link .nav-link-label,
    .role-student.sidebar-collapsed .nav-link span,
    .role-student.sidebar-collapsed .nav-link .nav-link-label {
        display: -webkit-box;
        white-space: normal;
        overflow: hidden;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        -webkit-box-orient: vertical;
        font-size: 0.68rem;
        line-height: 1.1;
    }

    .role-student .nav-link .nav-link-label--full {
        display: none;
    }

    .role-student .nav-link .nav-link-label--short {
        display: -webkit-box;
    }

    .role-student .nav-group {
        display: block;
        min-width: 0;
    }

    .role-student .nav-group-toggle {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        width: 100%;
        min-height: 62px;
        padding: 8px 7px;
        border-radius: 18px;
        color: rgba(255, 255, 255, 0.82);
        font-size: inherit;
        font-weight: inherit;
        letter-spacing: 0;
        text-align: center;
        touch-action: manipulation;
    }

    .role-student .nav-group-toggle .chevron {
        display: none;
    }

    .role-student .nav-group-toggle .nav-link-label {
        flex: none;
        display: -webkit-box;
        white-space: normal;
        overflow: hidden;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        -webkit-box-orient: vertical;
        font-size: 0.68rem;
        line-height: 1.1;
    }

    .role-student .nav-group-toggle .nav-link-label--full {
        display: none;
    }

    .role-student .nav-group-toggle .nav-link-label--short {
        display: -webkit-box;
    }

    .role-student .nav-group-toggle svg:first-of-type {
        width: 21px;
        height: 21px;
        opacity: 0.95;
    }

    .role-student .nav-group.open > .nav-group-toggle,
    .role-student .nav-group--student-docs.nav-group--active > .nav-group-toggle {
        background: rgba(255, 255, 255, 0.18);
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), 0 10px 24px rgba(0,0,0,0.12);
        color: #fff;
    }

    .role-student .nav-group--student-docs.nav-group--active:not(.open) .nav-group-items {
        display: none;
    }

    .role-student .nav-group-items {
        position: fixed;
        left: 12px;
        right: 78px;
        bottom: calc(96px + env(safe-area-inset-bottom));
        z-index: 1210;
        display: none;
        flex-direction: column;
        gap: 6px;
        padding: 10px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 20px;
        background: linear-gradient(135deg, rgba(111,17,17,0.98), rgba(162,29,29,0.98));
        box-shadow: 0 18px 45px rgba(73, 19, 19, 0.32);
        backdrop-filter: blur(18px);
    }

    .role-student .nav-group.open .nav-group-items {
        display: flex;
    }

    .role-student .nav-group-items .nav-link {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        min-height: 44px;
        padding: 10px 12px;
        border-radius: 14px;
        text-align: left;
    }

    .role-student .nav-group-items .nav-link span {
        -webkit-line-clamp: 2;
        line-clamp: 2;
        font-size: 0.76rem;
    }

    .role-student .nav-group-items .nav-link svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    .role-student .student-nav-sheet-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1190;
        background: rgba(17, 17, 17, 0.32);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .role-student .student-nav-sheet-backdrop.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

    .student-bottom-nav-root .sidebar .nav {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        grid-auto-flow: unset;
        grid-auto-columns: unset;
        gap: 4px;
        min-width: 0;
        min-height: 0;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        touch-action: pan-x;
    }

    .student-bottom-nav-root .sidebar .nav::-webkit-scrollbar {
        display: none;
    }

    .student-bottom-nav-root .sidebar .nav-link,
    .student-bottom-nav-root .sidebar .nav-group {
        flex: 0 0 auto;
        min-width: 62px;
        scroll-snap-align: center;
        touch-action: pan-x;
    }

    .student-bottom-nav-root .sidebar .nav-group-toggle {
        touch-action: pan-x;
    }

    .role-student .student-dashboard-page {
        gap: 16px;
    }

    .role-student .student-dashboard-hero,
    .role-student .student-next-card,
    .role-student .student-progress-card,
    .role-student .student-requirement-card,
    .role-student .student-mini-card,
    .role-student .student-activity-card,
    .role-student .student-stat-card,
    .role-student .student-status-card {
        border-radius: 22px;
    }

    .role-student .student-dashboard-hero {
        gap: 18px;
        padding: 22px 18px;
        background:
            radial-gradient(circle at 88% 0%, rgba(255,255,255,0.2), transparent 30%),
            linear-gradient(150deg, #6f1111 0%, #a11d1d 58%, #d94a3f 100%);
    }

    .role-student .student-hero-kicker {
        margin-bottom: 14px;
        padding: 7px 11px;
        font-size: 0.67rem;
    }

    .role-student .student-hero-copy h2 {
        max-width: 12ch;
        font-size: clamp(2rem, 12vw, 2.75rem);
        letter-spacing: -0.07em;
    }

    .role-student .student-hero-copy p {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .role-student .student-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 18px;
    }

    .role-student .student-hero-actions .btn,
    .role-student .student-actions-card .btn {
        width: 100%;
    }

    .role-student .student-hero-panel {
        min-height: 150px;
        padding: 18px;
        border-radius: 22px;
    }

    .role-student .student-hero-panel strong {
        margin: 14px 0;
        font-size: 1.35rem;
    }

    .role-student .student-next-card,
    .role-student .student-progress-card,
    .role-student .student-requirement-card,
    .role-student .student-mini-card,
    .role-student .student-activity-card {
        padding: 18px;
    }

    .role-student .student-next-card {
        gap: 14px;
    }

    .role-student .student-next-icon,
    .role-student .student-stat-icon {
        width: 46px;
        height: 46px;
        border-radius: 16px;
    }

    .role-student .student-stat-card {
        padding: 15px;
    }

    .role-student .student-progress-card {
        justify-items: center;
        text-align: center;
    }

    .role-student .student-progress-copy {
        width: 100%;
    }

    .role-student .student-progress-copy .badge {
        margin-inline: auto;
    }

    .role-student .student-card-head {
        gap: 10px;
        margin-bottom: 14px;
    }

    .role-student .student-card-head h3,
    .role-student .student-next-card h3,
    .role-student .student-progress-copy h3 {
        font-size: 1rem;
    }

    .role-student .student-card-head .badge {
        font-size: 0.72rem;
        padding: 5px 12px;
    }

    .role-student .student-panel-meta span,
    .role-student .badge {
        font-size: 0.72rem;
    }

    .role-student .timeline-item {
        grid-template-columns: 22px 1fr;
        gap: 10px;
    }

    .role-student .timeline::before {
        left: 8px;
    }

    .role-student .timeline-dot {
        width: 18px;
        height: 18px;
        border-width: 4px;
    }

    .role-student .timeline-card {
        padding: 14px;
        border-radius: 18px;
    }
}

@media (max-width: 420px) {
    .role-student .content {
        padding-inline: 10px;
    }

    .role-student .topbar {
        padding-inline: 12px;
    }

    .role-student .student-dashboard-hero,
    .role-student .student-next-card,
    .role-student .student-progress-card,
    .role-student .student-requirement-card,
    .role-student .student-mini-card,
    .role-student .student-activity-card {
        padding: 16px;
    }

    .role-student .nav-link,
    .role-student.sidebar-collapsed .nav-link,
    .role-student .nav-group-toggle {
        min-height: 58px;
    }
}

.notif-mark-form {
    margin: 0;
}

@media (max-width: 720px) {
    .role-student .main,
    .role-student.sidebar-collapsed .main,
    .role-student .content {
        position: relative;
        z-index: 10;
        pointer-events: auto;
    }

    .role-student .topbar {
        z-index: 900;
    }

    body.role-student > .sidebar,
    .role-student .sidebar,
    .role-student.sidebar-collapsed .sidebar {
        z-index: 1200;
        pointer-events: auto !important;
    }
}

.notif-mark-all {
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.login-note {
    margin-top: 18px;
    line-height: 1.6;
}

.alert {
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 16px;
    font-weight: 700;
}

.alert.success {
    background: var(--green-bg);
    color: #166534;
}

.alert.danger {
    background: var(--red-bg);
    color: #991b1b;
}

@media (max-width: 1320px) {
    .partner-admin-layout,
    .coordinators-layout {
        grid-template-columns: 1fr;
    }

    .partner-form-card,
    .partner-directory-card,
    .coordinator-list-card {
        max-height: none;
        height: auto;
        overflow: visible;
    }

    .partner-directory-scroll,
    .coordinator-list-scroll {
        flex: none;
        overflow: visible;
        min-height: 0;
    }

    .partner-form-card {
        height: auto;
    }

    .partner-form-card {
        position: static;
    }

    .partner-form-fields,
    .coordinator-edit-fields {
        grid-template-columns: 1fr;
    }
    .partner-company-meta {
        grid-template-columns: 1fr;
    }

    .partner-company-grid {
        overflow-y: visible;
        padding-right: 0;
    }

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

@media (max-width: 768px) {
    .login-split {
        height: 100vh;
        padding: 10px 16px 16px;
    }
    .login-image-panel {
        display: none;
    }
    .login-form-panel {
        min-height: auto;
        padding: 0;
    }
    .portal-login-card {
        padding: 24px 20px 26px;
        border-radius: 20px;
    }

    .portal-heading {
        font-size: 1.45rem;
    }

    .portal-link {
        padding: 14px;
        gap: 12px;
    }

    .portal-link-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
}

@media (max-width: 1180px) {
    .programs-stats-strip,
    .partner-stats-strip,
    .coordinator-stats-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .programs-top-row {
        grid-template-columns: 1fr;
    }

    .programs-table-head,
    .program-row-inline {
        grid-template-columns: 88px minmax(120px, 1fr) minmax(140px, 1fr) 88px 108px 120px;
    }

    .programs-stat-card {
        flex: 1;
    }

    .two,
    .charts,
    .ring-progress-card {
        grid-template-columns: 1fr;
    }

    .hero-banner,
    .section-head,
    .section-head-split,
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-search-wide {
        max-width: 100%;
    }

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

@media (max-width: 920px) {
    .programs-stats-strip {
        grid-template-columns: 1fr;
    }

    .programs-top-row {
        grid-template-columns: 1fr;
    }

    .programs-form-row {
        grid-template-columns: 1fr;
    }

    .programs-page-intro {
        padding: 16px 18px;
    }

    .programs-panel {
        padding: 22px 20px;
    }

    .programs-table-head {
        display: none;
    }

    .program-row-inline {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 16px;
    }

    .pf-name,
    .pf-term {
        grid-column: 1 / -1;
    }

    .program-row-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .program-row-actions .btn,
    .program-row-actions form,
    .programs-save-btn,
    .programs-delete-btn {
        width: auto;
        justify-content: center;
    }

    body:not(.sidebar-collapsed) {
        --sidebar-width: 100%;
    }

    .app-shell {
        display: block;
    }

    .sidebar {
        position: static;
        width: 100%;
        box-shadow: none;
    }

    .main,
    .sidebar-collapsed .main {
        width: 100%;
        margin-left: 0;
    }

    .sidebar-collapsed .brand > div,
    .sidebar-collapsed .nav-link span,
    .sidebar-collapsed .sidebar-user-info div {
        display: block;
    }

    .sidebar-collapsed .sidebar-logout span {
        display: inline;
    }

    .sidebar-collapsed .sidebar-logout {
        justify-content: flex-start;
        padding: 0 14px;
        gap: 12px;
    }

    .sidebar-collapsed .nav-link {
        justify-content: flex-start;
        padding-inline: 14px;
    }

    .sidebar-collapsed .sidebar {
        width: 100%;
        padding: 22px 18px;
    }

    .partner-panel-head,
    .partner-panel-head-main {
        flex-direction: column;
        align-items: stretch;
    }

    .partner-company-top {
        grid-template-columns: 1fr;
    }

    .partner-company-grid {
        grid-template-columns: 1fr;
    }

    .partner-program-option {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .partner-program-option em {
        grid-column: 2;
    }

    .cards,
    .two,
    .charts,
    .filter-bar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .programs-page-intro,
    .partner-page-intro,
    .coordinator-page .partner-page-intro,
    .programs-panel,
    .partner-panel,
    .program-row-card {
        border-radius: 18px;
    }

    .program-row-inline {
        grid-template-columns: 1fr;
    }

    .pf-code,
    .pf-name,
    .pf-term,
    .pf-hours-wrap,
    .pf-status,
    .program-row-actions {
        grid-column: 1 / -1;
    }

    .program-row-actions {
        flex-direction: row;
        width: 100%;
    }

    .programs-save-btn {
        flex: 1;
    }

    .partner-form-section,
    .partner-company-card {
        padding: 16px;
        border-radius: 16px;
    }

    .partner-company-footer,
    .coordinator-card-footer {
        grid-template-columns: 1fr;
    }

    .partner-stats-strip,
    .coordinator-stats-strip {
        grid-template-columns: 1fr;
    }

    .partner-credential-strip {
        padding: 14px 16px;
    }

    .partner-program-tags span {
        min-height: 30px;
        font-size: 0.75rem;
    }

    .content,
    .topbar {
        padding-inline: 18px;
    }

    .card,
    .hero-banner,
    .login-card {
        padding: 20px;
        border-radius: 22px;
    }

    .modal {
        padding: 14px;
    }

    .modal-card {
        width: 100%;
        padding: 22px 18px;
        border-radius: 22px;
    }

    .top-actions,
    .toolbar-inline,
    .wizard-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .toast-stack {
        left: 16px;
        right: 16px;
        top: 88px;
        bottom: auto;
        justify-items: end;
        align-items: start;
        pointer-events: none;
    }

    .toast {
        min-width: 0;
        width: min(100%, 360px);
        max-width: 100%;
        padding: 12px 14px;
        border-radius: 14px;
        font-size: 0.84rem;
        line-height: 1.35;
        box-shadow: 0 16px 34px rgba(73, 19, 19, 0.18);
        pointer-events: auto;
    }

    body.role-student .toast-stack {
        top: calc(82px + env(safe-area-inset-top));
        bottom: auto;
    }

    .user-chip {
        width: 100%;
    }

    .metric {
        min-height: 0;
    }

    .section-head-split > div {
        min-width: 0;
    }
}
/* ─── Course chart tooltip ─────────────────────────────────────────────────── */
.course-chart-tip {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    background: #1a1a2e;
    color: #f1f5f9;
    border-radius: 14px;
    padding: 12px 14px;
    min-width: 190px;
    max-width: 260px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.28);
    font-size: 0.82rem;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.15s, transform 0.15s;
}
.course-chart-tip.visible {
    opacity: 1;
    transform: translateY(0);
}
.course-chart-tip strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 6px;
}
.course-chart-tip span {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    gap: 8px;
    font-size: 0.83rem;
}
.course-chart-tip span em {
    font-style: normal;
    font-weight: 700;
    color: #fca5a5;
    flex-shrink: 0;
}
.course-chart-tip .tip-more {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    padding-top: 4px;
}
.course-chart-tip small {
    display: block;
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: #94a3b8;
    font-size: 0.73rem;
    text-align: center;
}

/* ─── Course student progress modal ───────────────────────────────────────── */
.cprogress-meta {
    font-size: 0.83rem;
    color: #64748b;
    margin: -10px 0 18px;
}
.cprogress-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.cprogress-row {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    padding: 14px 16px;
}
.cprogress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.cprogress-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1a1a2e;
    display: block;
}
.cprogress-id {
    font-size: 0.72rem;
    font-weight: 600;
    color: #8B1A1A;
    letter-spacing: 0.04em;
    background: #fee2e2;
    padding: 1px 7px;
    border-radius: 999px;
    display: inline-block;
    margin-top: 3px;
}
.cprogress-pct {
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.cprogress-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 6px;
}
.cprogress-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.4s ease;
}
.cprogress-sub {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ─── Industry Partner dashboard / portal polish ─────────────────────────── */
.industry-dashboard,
.industry-portal {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.ip-dashboard-hero,
.ip-hero-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    padding: 28px;
    overflow: hidden;
    position: relative;
}

.ip-dashboard-hero::after,
.ip-hero-card::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    right: -80px;
    top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139,26,26,0.12), transparent 68%);
    pointer-events: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--navy-900);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ip-dashboard-hero h2,
.ip-hero-card h2,
.ip-workspace-head h2 {
    margin-bottom: 6px;
    letter-spacing: -0.045em;
}

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

.ip-kpi-card {
    padding: 22px;
}

.ip-kpi-card span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.ip-kpi-card strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.06em;
    color: var(--text);
    margin-bottom: 8px;
}

.ip-dashboard-grid {
    align-items: start;
}

.ip-detail-grid {
    align-items: stretch;
}

.ip-detail-grid > .ip-sub-card,
.ip-detail-grid > .ip-right-stack > .ip-sub-card {
    display: flex;
    flex-direction: column;
}

.ip-detail-grid > .ip-sub-card > .table-wrap {
    flex: 1;
}

.ip-right-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ip-student-list,
.ip-workflow-list,
.ip-form-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ip-student-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text);
    background: linear-gradient(180deg, #fff, #fff9f9);
}

.ip-student-row strong,
.ip-student-row small {
    display: block;
}

.ip-student-row:hover {
    border-color: rgba(139,26,26,0.35);
    box-shadow: var(--shadow-soft);
}

.ip-workflow-list {
    margin: 0;
    padding-left: 22px;
}

.ip-workflow-list li {
    padding-left: 6px;
}

.ip-workflow-list strong,
.ip-workflow-list span {
    display: block;
}

.ip-workflow-list span {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 3px;
}

.ip-hero-copy,
.ip-hero-actions {
    position: relative;
    z-index: 1;
}

.ip-table-card .table-wrap,
.industry-portal .table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.ip-workspace {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ip-workspace-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 4px 4px 0;
}

.ip-sub-card {
    min-width: 0;
}

.ip-docs-card {
    display: flex;
    flex-direction: column;
}

.ip-endorsement-block {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fefce8 0%, #fff7ed 100%);
    border: 1px solid #fde68a;
    margin-bottom: 20px;
}

.ip-endorsement-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #fde68a;
    color: #b45309;
}

.ip-endorsement-block strong {
    display: block;
    font-size: 0.9rem;
    color: #1e293b;
    margin-bottom: 1px;
}

.ip-endorsement-block small {
    font-size: 0.78rem;
}

.ip-endorsement-block .btn {
    margin-left: auto;
    flex-shrink: 0;
}

.ip-docs-list {
    flex: 1;
    border: 1px solid rgba(219, 228, 240, 0.85);
    border-radius: 18px;
    overflow: hidden;
}

.ip-docs-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid rgba(219, 228, 240, 0.85);
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ip-docs-list-header .badge {
    font-size: 0.7rem;
    text-transform: capitalize;
}

.ip-docs-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    transition: background 0.12s;
}

.ip-docs-list-row:last-child {
    border-bottom: none;
}

.ip-docs-list-row:hover {
    background: #f8fafc;
}

.ip-docs-list-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #334155;
}

.ip-docs-list-name svg {
    flex-shrink: 0;
}

.ip-inline-file {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.compact-table th,
.compact-table td {
    padding: 12px 16px;
}

.ip-form-panel {
    padding: 16px;
    border: 1px solid rgba(219,228,240,0.9);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fffafa 100%);
}

.orientation-card {
    padding: 28px;
}

.orientation-card .orientation-head {
    display: block;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(219, 228, 240, 0.85);
}

.orientation-card .orientation-head h2 {
    margin-bottom: 8px;
}

.orientation-card .orientation-head p {
    max-width: 560px;
    margin: 0;
    line-height: 1.55;
}

.orientation-card .ip-form-stack {
    gap: 18px;
}

.orientation-card .orientation-action-card {
    padding: 0 0 18px;
    border: 0;
    border-bottom: 1px solid rgba(219, 228, 240, 0.75);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.orientation-card .orientation-action-card:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.orientation-card .orientation-action-card-primary {
    padding-top: 2px;
}

.orientation-field {
    display: grid;
    gap: 10px;
    color: #26364d;
    font-size: 0.94rem;
    font-weight: 800;
}

.orientation-field .field-title {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.25;
}

.orientation-card .form input,
.orientation-card .form textarea,
.orientation-card .filter-date-trigger {
    border-radius: 18px;
    background: #fff;
    border-color: #d9e3f1;
}

.orientation-card .form-datetime-picker .filter-date-trigger {
    min-height: 58px;
}
.orientation-card .form-datetime-picker .filter-date-value {
    color: #1f2a44;
    font-weight: 700;
}

.orientation-card .form textarea {
    min-height: 126px;
    line-height: 1.5;
}

.orientation-card .btn {
    min-height: 44px;
    justify-content: center;
}

.orientation-locked {
    position: relative;
    background: linear-gradient(180deg, #f0fdf4 0%, #f7fef9 100%) !important;
    border-color: #bbf7d0 !important;
}

.orientation-locked-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: #dcfce7;
    color: #166534;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
    width: fit-content;
}

.orientation-locked .orientation-field {
    gap: 6px;
}

.orientation-locked-value {
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e2e8f0;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.orientation-locked-details-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 520px) {
    .orientation-locked-details-row {
        grid-template-columns: 1fr;
    }
}

/* ── OJT Active / Completed Block ── */
.ojt-completed-block {
    padding: 22px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0f9ff 100%);
    border: 1px solid #bbf7d0;
}

.ojt-completed-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(187, 247, 208, 0.7);
}

.ojt-completed-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    border: 2px solid #bbf7d0;
}

.ojt-completed-header strong {
    display: block;
    font-size: 1rem;
    color: #14532d;
    margin-bottom: 2px;
}

.ojt-completed-header small {
    font-size: 0.8rem;
    color: #4ade80;
    font-weight: 600;
}

.ojt-completed-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 18px;
}

.ojt-timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    padding-bottom: 18px;
    padding-left: 16px;
}

.ojt-timeline-step:last-child {
    padding-bottom: 0;
}

.ojt-timeline-step::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 8px;
    bottom: -10px;
    width: 2px;
    background: #bbf7d0;
}

.ojt-timeline-step:last-child::before {
    display: none;
}

.ojt-timeline-dot {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2.5px solid #86efac;
    background: #fff;
    flex-shrink: 0;
    z-index: 1;
}

.ojt-timeline-step.is-done .ojt-timeline-dot {
    background: #22c55e;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.ojt-timeline-step.is-future .ojt-timeline-dot {
    background: #fff;
    border-color: #94a3b8;
    border-style: dashed;
}

.ojt-timeline-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ojt-timeline-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.ojt-timeline-step.is-done .ojt-timeline-label {
    color: #16a34a;
}

.ojt-timeline-content strong {
    font-size: 0.92rem;
    color: #1e293b;
}

.ojt-timeline-content small {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.ojt-timeline-step.is-future .ojt-timeline-content strong {
    color: #94a3b8;
}

.ojt-start-card .form {
    display: grid;
    gap: 16px;
}

.required-label .req,
.field-required {
    color: var(--red);
    font-weight: 900;
}

.data-table tr.is-selected-row td {
    background: #fff7ed;
    box-shadow: inset 3px 0 0 var(--navy-900);
}

.enrollment-directory-card {
    margin-top: 22px;
}

.enrollment-directory-toolbar {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.enrollment-directory-toolbar .table-search {
    max-width: 360px;
}

.enrollment-directory-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.enrollment-directory-stat {
    position: relative;
    overflow: hidden;
    min-height: 86px;
    padding: 18px 18px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: linear-gradient(135deg, #ffffff, #fff7f7);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.enrollment-directory-stat::after {
    content: '';
    position: absolute;
    right: -22px;
    top: -22px;
    width: 78px;
    height: 78px;
    border-radius: 999px;
    background: rgba(139, 26, 26, 0.08);
}

.enrollment-directory-stat span {
    display: block;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.enrollment-directory-stat strong {
    display: block;
    margin-top: 8px;
    color: #1f2937;
    font-size: clamp(1.7rem, 2.4vw, 2.25rem);
    line-height: 1;
}

.enrollment-directory-stat.enrolled {
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

.enrollment-directory-stat.enrolled::after {
    background: rgba(22, 101, 52, 0.1);
}

.enrollment-directory-stat.unenrolled {
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.enrollment-directory-stat.unenrolled::after {
    background: rgba(154, 52, 18, 0.12);
}

.enrollment-directory-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.enrollment-directory-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: linear-gradient(180deg, #ffffff, #fff7f7);
    color: #4a2020;
    font-size: 0.86rem;
    font-weight: 700;
}

.enrollment-directory-pill strong {
    font-size: 0.95rem;
}

.enrollment-directory-pill.enrolled {
    background: #ecfdf3;
    color: #166534;
    border-color: #bbf7d0;
}

.enrollment-directory-pill.unenrolled {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

.enrollment-directory-row {
    cursor: pointer;
}

.enrollment-directory-row td:first-child small {
    color: #64748b;
    font-size: 0.85rem;
}

@media (max-width: 860px) {
    .enrollment-directory-toolbar {
        justify-content: flex-start;
    }

    .enrollment-directory-toolbar .table-search,
    .enrollment-directory-pills {
        max-width: none;
        width: 100%;
    }

    .enrollment-directory-stats {
        grid-template-columns: 1fr;
    }
}

.ip-empty-state {
    text-align: center;
    padding: 34px;
}

.student-panel-item-wide #sm-orientation-notes {
    white-space: pre-wrap;
    line-height: 1.55;
}

@media (max-width: 1180px) {
    .ip-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .ip-dashboard-hero,
    .ip-hero-card,
    .ip-workspace-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .ip-kpi-grid {
        grid-template-columns: 1fr;
    }

    .ip-student-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .ip-student-row .badge {
        grid-column: 1 / -1;
        width: fit-content;
    }
}

/* Premium student profile editor (spf-v2) */
body.role-student .content:has(.spf-v2) {
    max-width: 1240px;
    margin-inline: auto;
}

.spf-v2 {
    display: grid;
    gap: 22px;
}

.spf-page-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px 24px;
    padding: 4px 2px 0;
}

.spf-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8b1a1a;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.18s ease, transform 0.18s ease;
}

.spf-back-link svg {
    width: 18px;
    height: 18px;
}

.spf-back-link:hover {
    color: #c2410c;
    transform: translateX(-2px);
}

.spf-page-head-copy {
    min-width: 0;
}

.spf-eyebrow,
.spf-v2 .profile-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(139, 26, 26, 0.08);
    color: #8b1a1a;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.spf-page-head-copy h1 {
    margin: 0 0 6px;
    color: #172033;
    font-size: clamp(1.65rem, 2.4vw, 2.15rem);
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.spf-page-head-copy p {
    margin: 0;
    color: #667085;
    font-size: 0.94rem;
    line-height: 1.55;
}

.spf-status-badge {
    flex-shrink: 0;
    align-self: flex-start;
    white-space: nowrap;
}

body.role-student .spf-v2 .student-profile-card {
    overflow: hidden !important;
    margin: 0;
    padding: 0 !important;
    border: 1px solid rgba(219, 228, 240, 0.95) !important;
    border-radius: 28px !important;
    background: #fff !important;
    box-shadow: 0 24px 60px rgba(73, 19, 19, 0.08), 0 8px 24px rgba(15, 23, 42, 0.04) !important;
}

body.role-student .spf-v2 .student-profile-card:hover {
    transform: none;
}

body.role-student .spf-v2 .student-profile-card::before,
body.role-student .spf-v2 .student-profile-card::after {
    display: none;
}

body.role-student .spf-v2 .spf-shell {
    display: grid !important;
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    padding: 0;
}

body.role-student .spf-v2 .spf-aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    padding: 32px 28px;
    border-right: 1px solid rgba(219, 228, 240, 0.9);
    background:
        radial-gradient(circle at 0% 0%, rgba(139, 26, 26, 0.08), transparent 42%),
        linear-gradient(180deg, #fff7f7 0%, #fff 38%, #fafbff 100%);
}

body.role-student .spf-v2 .spf-aside::before {
    display: none;
}

.spf-photo-stack {
    display: grid;
    gap: 14px;
}

body.role-student .spf-v2 .spf-photo-frame {
    width: 148px !important;
    height: 148px !important;
    margin: 0 auto;
    border: 4px solid #fff !important;
    border-radius: 36px !important;
    background: linear-gradient(145deg, #8b1a1a, #dc2626) !important;
    box-shadow: 0 20px 40px rgba(139, 26, 26, 0.22), 0 0 0 1px rgba(139, 26, 26, 0.08) !important;
}

body.role-student .spf-v2 .profile-photo-frame img,
body.role-student .spf-v2 .profile-photo-frame .profile-photo-fallback {
    width: 100%;
    height: 100%;
}

body.role-student .spf-v2 .profile-photo-frame img {
    display: block;
    object-fit: cover;
}

body.role-student .spf-v2 .profile-photo-frame .profile-photo-fallback {
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 3.6rem;
    font-weight: 900;
}

.spf-photo-upload {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px dashed rgba(139, 26, 26, 0.28);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.spf-photo-upload:hover {
    border-color: rgba(139, 26, 26, 0.5);
    background: #fff;
    box-shadow: 0 10px 24px rgba(139, 26, 26, 0.08);
}

.spf-photo-upload input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.spf-photo-upload-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #8b1a1a, #dc2626);
    color: #fff;
    box-shadow: 0 10px 20px rgba(139, 26, 26, 0.2);
}

.spf-photo-upload-icon svg {
    width: 20px;
    height: 20px;
}

.spf-photo-upload-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.spf-photo-upload-copy strong {
    color: #172033;
    font-size: 0.88rem;
}

.spf-photo-upload-copy small {
    color: #667085;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.4;
}

body.role-student .spf-v2 .spf-identity {
    text-align: center;
}

body.role-student .spf-v2 .spf-identity h2 {
    margin: 0 0 6px;
    color: #172033;
    font-size: clamp(1.2rem, 1.8vw, 1.45rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

body.role-student .spf-v2 .profile-identity-email {
    margin: 0 0 10px;
    color: #667085;
    font-size: 0.86rem;
    line-height: 1.45;
    word-break: break-word;
}

.spf-course-tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(139, 26, 26, 0.08);
    color: #8b1a1a;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.35;
}

.spf-meta-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.spf-meta-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid rgba(219, 228, 240, 0.95);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
}

.spf-meta-item dt {
    margin: 0;
    color: #667085;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.spf-meta-item dd {
    margin: 0;
    color: #172033;
    font-size: 0.92rem;
    font-weight: 800;
    text-align: right;
}

body.role-student .spf-v2 .spf-aside-note {
    margin: auto 0 0;
    padding: 14px 15px;
    border-radius: 16px;
    background: rgba(139, 26, 26, 0.06);
    color: #667085;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.55;
}

body.role-student .spf-v2 .spf-main {
    min-width: 0;
    display: grid;
    gap: 18px;
    padding: clamp(28px, 3vw, 38px);
    border: 0;
    border-radius: 0;
    background: #fff;
}

body.role-student .spf-v2 .spf-form {
    display: block;
}

body.role-student .spf-v2 .spf-section {
    padding: 22px;
    border: 1px solid rgba(219, 228, 240, 0.95);
    border-radius: 22px;
    background: linear-gradient(180deg, #fff 0%, #fcfdff 100%);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.035);
}

body.role-student .spf-v2 .spf-section-head {
    margin-bottom: 18px;
}

body.role-student .spf-v2 .spf-section-num {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(139, 26, 26, 0.12), rgba(220, 38, 38, 0.08));
    color: #8b1a1a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.role-student .spf-v2 .spf-section-num svg {
    width: 20px;
    height: 20px;
}

body.role-student .spf-v2 .profile-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

body.role-student .spf-v2 .profile-section-title strong,
body.role-student .spf-v2 .profile-section-title small {
    display: block;
}

body.role-student .spf-v2 .profile-section-title strong {
    color: #172033;
    font-size: 1rem;
}

body.role-student .spf-v2 .profile-section-title small {
    color: #667085;
    font-size: 0.82rem;
    font-weight: 600;
}

body.role-student .spf-v2 .spf-field-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin: 0 !important;
}

.spf-field {
    display: grid;
    gap: 8px;
}

.spf-field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475467;
    font-size: 0.8rem;
    font-weight: 800;
}

.spf-field-tag {
    padding: 3px 8px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #166534;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.role-student .spf-v2 .spf-form label {
    gap: 8px !important;
}

body.role-student .spf-v2 .spf-form input,
body.role-student .spf-v2 .spf-form textarea {
    min-height: 52px !important;
    padding-inline: 16px !important;
    border: 1px solid #dbe4f0 !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: #172033 !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03) !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body.role-student .spf-v2 .spf-form input::placeholder,
body.role-student .spf-v2 .spf-form textarea::placeholder {
    color: #98a2b3;
    font-weight: 600;
}

body.role-student .spf-v2 .spf-form input:focus,
body.role-student .spf-v2 .spf-form textarea:focus {
    border-color: rgba(139, 26, 26, 0.45) !important;
    box-shadow: 0 0 0 4px rgba(139, 26, 26, 0.08) !important;
    outline: none;
}

body.role-student .spf-v2 .spf-field--readonly input[disabled] {
    background: #f8fafc !important;
    color: #475467 !important;
    -webkit-text-fill-color: #475467;
    border-style: dashed !important;
    cursor: not-allowed;
}

body.role-student .spf-v2 .spf-field--full textarea {
    min-height: 120px !important;
    padding-block: 14px !important;
    line-height: 1.55;
    resize: vertical;
}

body.role-student .spf-v2 .spf-actions {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    padding: 18px 22px;
    border: 1px solid rgba(219, 228, 240, 0.95);
    border-radius: 18px;
    background: linear-gradient(180deg, #fafbff, #fff);
}

.spf-cancel-btn {
    min-height: 48px;
    padding-inline: 18px;
    border-color: rgba(219, 228, 240, 0.95);
    background: #fff;
    color: #475467;
    font-weight: 800;
}

body.role-student .spf-v2 .spf-actions .btn-primary {
    min-height: 48px;
    min-width: 220px;
    justify-content: center;
    border-radius: 14px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(139, 26, 26, 0.22) !important;
}

@media (max-width: 1080px) {
    .spf-page-head {
        grid-template-columns: 1fr;
    }

    .spf-status-badge {
        justify-self: start;
    }

    body.role-student .spf-v2 .spf-shell {
        grid-template-columns: 1fr !important;
    }

    body.role-student .spf-v2 .spf-aside {
        border-right: 0;
        border-bottom: 1px solid rgba(219, 228, 240, 0.9);
    }
}

@media (max-width: 720px) {
    .spf-page-head-copy h1 {
        font-size: 1.55rem;
    }

    body.role-student .spf-v2 .student-profile-card {
        border-radius: 22px !important;
    }

    body.role-student .spf-v2 .spf-aside,
    body.role-student .spf-v2 .spf-main {
        padding: 22px 18px;
    }

    body.role-student .spf-v2 .spf-field-grid {
        grid-template-columns: 1fr !important;
    }

    body.role-student .spf-v2 .spf-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    body.role-student .spf-v2 .spf-actions .btn,
    body.role-student .spf-v2 .spf-actions .btn-primary {
        width: 100%;
        min-width: 0;
    }
}

.pf-native-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 34px;
    background-color: #fff;
    background-image:
        linear-gradient(45deg, transparent 50%, #64748b 50%),
        linear-gradient(135deg, #64748b 50%, transparent 50%),
        linear-gradient(180deg, #ffffff, #f8fafc);
    background-position:
        calc(100% - 18px) 13px,
        calc(100% - 12px) 13px,
        0 0;
    background-size: 6px 6px, 6px 6px, 100% 100%;
    background-repeat: no-repeat;
    cursor: pointer;
}

.pf-native-select:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.pf-native-select:focus {
    border-color: var(--navy-800);
    box-shadow: 0 0 0 2px rgba(139,26,26,0.1);
}

.pf-term {
    min-width: 140px;
}

.pf-status {
    min-width: 120px;
}

/* ── Records Page ───────────────────────────────── */
.records-page {
    gap: 24px;
    align-items: start;
}

.records-page > .card {
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

/* ── Weekly Report Card ─────────────────────────── */
.weekly-report-card h2 {
    margin: 0 0 4px;
}

.wr-form-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.wr-form-head h2 {
    margin: 0 0 6px;
}

.wr-form-head > div > .muted {
    margin: 0;
    max-width: 30rem;
    line-height: 1.55;
}

.wr-form-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff7f7, #ffecec);
    border: 1px solid rgba(139, 26, 26, 0.14);
    color: var(--navy-900);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.wr-section {
    margin: 0 0 22px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.95), transparent 42%),
        linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.wr-section-title {
    font-size: .92rem;
    font-weight: 800;
    color: var(--navy-900);
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.wr-section > .muted {
    display: block;
    margin: 0 0 12px;
    font-size: .85rem;
    color: #64748b;
    line-height: 1.5;
}

.wr-field-label {
    display: block;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 8px;
}

.wr-week-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wr-week-row > label {
    display: block;
    margin: 0;
}

.wr-week-row select,
.wr-date-range input[type="date"] {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    font-size: .92rem;
    font-weight: 600;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    color: var(--text);
    font-family: inherit;
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.wr-week-row select:focus,
.wr-date-range input[type="date"]:focus,
.wr-textarea-wrap textarea:focus {
    border-color: rgba(139, 26, 26, 0.52);
    outline: none;
    box-shadow: var(--ring), 0 12px 24px rgba(15, 23, 42, 0.06);
}

.wr-date-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wr-date-range input[type="date"] {
    min-width: 0;
    flex: 1 1 0;
}

.wr-date-sep {
    color: #94a3b8;
    font-weight: 800;
    flex-shrink: 0;
}

.wr-textarea-wrap {
    position: relative;
}

.wr-textarea-wrap textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px 16px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    font-size: .92rem;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.wr-char-count {
    display: block;
    text-align: right;
    font-size: .78rem;
    color: #94a3b8;
    margin-top: 8px;
    font-weight: 600;
}

/* Dropzone */
.wr-dropzone {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(139, 26, 26, 0.18);
    border-radius: 16px;
    padding: 32px 20px;
    background:
        radial-gradient(circle at center, rgba(139, 26, 26, 0.04), transparent 55%),
        linear-gradient(180deg, #fffbfb, #fff5f5);
    text-align: center;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
    min-height: 160px;
}

.wr-dropzone:hover {
    border-color: rgba(139, 26, 26, 0.42);
    background:
        radial-gradient(circle at center, rgba(139, 26, 26, 0.07), transparent 55%),
        linear-gradient(180deg, #fff7f7, #ffecec);
    box-shadow: 0 12px 28px rgba(139, 26, 26, 0.08);
}

.wr-dropzone.is-dragover {
    border-color: var(--navy-900);
    background: linear-gradient(180deg, #fff1f1, #ffe4e4);
    box-shadow: var(--ring);
    transform: scale(1.005);
}
.wr-dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    pointer-events: none;
}
.wr-dropzone-inner p {
    margin: 2px 0;
    line-height: 1.5;
    color: #6b7280;
    font-size: .9rem;
}
.wr-dropzone-inner p strong {
    font-size: 1rem;
    color: #111;
    font-weight: 700;
}
.wr-dropzone-inner .small {
    font-size: .78rem;
    color: #9ca3af;
}
.wr-dropzone-icon {
    color: var(--primary, #7a1b1b);
    margin-bottom: 6px;
}
.wr-dropzone .wr-browse-btn {
    pointer-events: auto;
}
.wr-browse-btn {
    background: none;
    border: none;
    color: var(--primary, #7a1b1b);
    font-weight: 600;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
    text-decoration: underline;
}
.wr-browse-btn:hover {
    color: #5a1414;
}

/* Preview row */
.wr-preview-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.wr-preview-row:empty {
    display: none;
}
.wr-preview-item {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wr-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wr-preview-item .wr-file-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: .72rem;
    color: #666;
    padding: 6px;
    text-align: center;
    word-break: break-all;
}
.wr-preview-item .wr-file-icon svg {
    width: 28px;
    height: 28px;
    color: #b71c1c;
}
.wr-preview-remove {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #d32f2f;
    color: #fff;
    border: 2px solid #fff;
    font-size: .7rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    z-index: 2;
}
.wr-preview-remove:hover {
    background: #b71c1c;
}

.wr-file-limits {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: .78rem;
    color: #9ca3af;
}

.btn-weekly-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    font-size: .98rem;
    margin-top: 4px;
    border-radius: 16px;
}
.btn-weekly-submit svg {
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .records-page {
        grid-template-columns: 1fr;
    }

    .wr-form-head {
        flex-direction: column;
    }
}

@media (max-width: 540px) {
    .wr-date-range {
        flex-direction: column;
        align-items: stretch;
    }
    .wr-date-sep {
        display: none;
    }
}

/* Bell button hard guarantee: never blocked */
.topbar .top-actions,
.topbar .notif-trigger,
.topbar .user-chip {
    pointer-events: auto !important;
}
.topbar .notif-trigger {
    cursor: pointer;
}

/* ── Partner Submissions Hub ─────────────────────── */
.ps-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.ps-hero-card {
    padding: 24px 28px;
}
.ps-hero-card h2 {
    margin: 4px 0 6px;
}

.ps-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
    align-items: start;
}

.ps-student-list {
    padding: 16px 18px 14px;
}
.ps-student-list .section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}
.ps-student-list .section-head h2 {
    font-size: 1.05rem;
    margin: 0;
}
.ps-empty {
    padding: 14px 4px;
    font-size: .9rem;
}
.ps-student-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ps-student-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #ececec;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: border-color .15s, background .15s, transform .1s;
}
.ps-student-card:hover {
    border-color: var(--primary, #7a1b1b);
    background: #fff7f7;
}
.ps-student-card.is-selected {
    border-color: var(--primary, #7a1b1b);
    background: #fff1f1;
    box-shadow: 0 1px 3px rgba(122, 27, 27, .08);
}
.ps-student-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary, #7a1b1b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .92rem;
    flex-shrink: 0;
}
.ps-student-info {
    flex: 1;
    min-width: 0;
}
.ps-student-info strong {
    display: block;
    font-size: .92rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ps-student-info small {
    display: block;
    font-size: .76rem;
    color: #6b7280;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ps-pending-pill {
    flex-shrink: 0;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 11px;
    background: #d32f2f;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps-detail {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.ps-placeholder {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ps-placeholder-inner {
    text-align: center;
    color: #6b7280;
}
.ps-placeholder-inner svg {
    color: #cbd5e1;
    margin-bottom: 6px;
}
.ps-placeholder-inner h3 {
    margin: 6px 0;
    color: #111;
}

.ps-student-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
}
.ps-student-header h2 {
    margin: 4px 0 4px;
}
.ps-quick-stats {
    display: flex;
    gap: 10px;
}
.ps-stat {
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 8px 14px;
    text-align: center;
    min-width: 80px;
}
.ps-stat strong {
    display: block;
    font-size: 1.4rem;
    color: var(--primary, #7a1b1b);
    line-height: 1.1;
}
.ps-stat .muted {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.ps-tabs-card {
    padding: 0;
    overflow: hidden;
}
.ps-tabs {
    display: flex;
    border-bottom: 1px solid #ececec;
    background: #fafafa;
}
.ps-tab {
    flex: 1;
    padding: 14px 18px;
    font-weight: 600;
    text-decoration: none;
    color: #6b7280;
    border-bottom: 3px solid transparent;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: color .15s, border-color .15s, background .15s;
}
.ps-tab:hover {
    color: #111;
    background: #fff;
}
.ps-tab.is-active {
    color: var(--primary, #7a1b1b);
    border-bottom-color: var(--primary, #7a1b1b);
    background: #fff;
}
.ps-tab-count {
    background: #e5e7eb;
    color: #374151;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: .75rem;
}
.ps-tab.is-active .ps-tab-count {
    background: var(--primary, #7a1b1b);
    color: #fff;
}

.ps-record-list {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ps-record-item {
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 14px 16px;
    background: #fff;
}
.ps-record-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}
.ps-record-head strong {
    display: block;
    font-size: 1rem;
}
.ps-record-head small {
    display: block;
    font-size: .8rem;
    margin-top: 2px;
}
.ps-record-tasks {
    margin: 6px 0;
    font-size: .9rem;
    color: #374151;
    line-height: 1.5;
}
.ps-record-notes {
    margin: 6px 0 0;
    font-size: .82rem;
    padding: 6px 10px;
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    border-radius: 4px;
}
.ps-record-pdf {
    margin: 8px 0 0;
}
.ps-proof-files {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0;
}
.ps-proof-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f3f4f6;
    color: #374151;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: .78rem;
    text-decoration: none;
    border: 1px solid #e5e7eb;
}
.ps-proof-chip:hover {
    background: #e5e7eb;
    color: #111;
}

.ps-review-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ececec;
}
.ps-review-form input[type="text"] {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: .85rem;
    font-family: inherit;
    min-width: 0;
}
.btn-approve {
    background: #16a34a !important;
    border-color: #16a34a !important;
    color: #fff !important;
}
.btn-approve:hover {
    background: #15803d !important;
    border-color: #15803d !important;
}
.btn-reject {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #fff !important;
}
.btn-reject:hover {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
}

.ps-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 12px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    flex-shrink: 0;
    white-space: nowrap;
    line-height: 1.2;
    min-width: 70px;
    text-align: center;
}
.badge-success {
    background: #d1fae5;
    color: #065f46;
}
.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}
.badge-warn {
    background: #fef3c7;
    color: #92400e;
}

@media (max-width: 900px) {
    .ps-layout {
        grid-template-columns: 1fr;
    }
    .ps-review-form {
        flex-wrap: wrap;
    }
    .ps-review-form input[type="text"] {
        flex-basis: 100%;
    }
}

/* ── Student record status badges (DTR / Weekly tables) ─── */
.rec-status-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 12px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
    line-height: 1.2;
    min-width: 70px;
    text-align: center;
}
.rec-badge-success {
    background: #d1fae5;
    color: #065f46;
}
.rec-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}
.rec-badge-warn {
    background: #fef3c7;
    color: #92400e;
}
.rec-reject-reason {
    margin-top: 6px;
    padding: 6px 10px;
    background: #fff1f1;
    border-left: 3px solid #dc2626;
    border-radius: 4px;
    font-size: .8rem;
    color: #7f1d1d;
    max-width: 280px;
    line-height: 1.4;
}
.rec-reject-reason strong {
    color: #991b1b;
}

/* Final Requirements page */
.final-req-stage {
    position: relative;
    min-height: 320px;
}

.final-req-stage.is-transitioning {
    min-height: var(--final-req-stage-height, 320px);
}

.final-req-view {
    opacity: 0;
    visibility: hidden;
    transform: translateX(18px);
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
}

.final-req-view:not(.is-active) {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.final-req-view.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.final-req-view.is-leaving {
    opacity: 0;
    transform: translateX(-18px);
}

.final-req-view.is-leaving-back {
    opacity: 0;
    transform: translateX(18px);
}

.final-req-view.is-entering {
    transform: translateX(18px);
}

.final-req-view.is-entering-back {
    transform: translateX(-18px);
}

.final-req-panels {
    display: grid;
}

.final-req-panel {
    display: none;
}

.final-req-panel.is-active {
    display: block;
}

.js-final-req-open.is-opening {
    transform: translateY(-1px) scale(0.985);
    opacity: 0.88;
}

@media (prefers-reduced-motion: reduce) {
    .final-req-view,
    .final-form-back,
    .final-form-back-icon,
    .js-final-req-open {
        transition: none;
    }

    .final-req-view.is-leaving,
    .final-req-view.is-leaving-back,
    .final-req-view.is-entering,
    .final-req-view.is-entering-back {
        transform: none;
    }
}

.final-req-page {
    display: grid;
    gap: 22px;
}

.final-req-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: -6px 0 2px;
    color: #94a3b8;
    font-size: 0.86rem;
    font-weight: 600;
}

.final-req-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.16s ease;
}

.final-req-breadcrumb a:hover {
    color: var(--navy-900);
}

.final-req-breadcrumb-sep {
    color: #cbd5e1;
    font-weight: 700;
}

.final-req-breadcrumb [aria-current="page"] {
    color: var(--navy-900);
    font-weight: 800;
}

.final-req-section,
.final-req-summary {
    padding: clamp(22px, 3vw, 30px);
    border: 1px solid rgba(219, 228, 240, 0.9);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.final-req-section-head,
.final-req-summary-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.final-req-section-head {
    align-items: flex-start;
}

.final-req-section-icon {
    margin-top: 1px;
}

.final-req-section-copy {
    min-width: 0;
    flex: 1;
}

.final-req-icon {
    display: block;
    width: 100%;
    height: 100%;
}

.final-req-section-icon,
.final-req-summary-icon,
.final-req-row-icon,
.final-req-summary-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.final-req-section-icon,
.final-req-summary-icon {
    width: 46px;
    height: 46px;
    padding: 11px;
    border-radius: 14px;
}

.final-req-section-icon--docs {
    background: #f8fbff;
    border-color: #dbeafe;
    color: #1d4ed8;
}

.final-req-section-icon--eval,
.final-req-summary-icon {
    background: #fff8f8;
    border-color: #fecdd3;
    color: #be123c;
}

.final-req-section-step {
    color: #b91c1c;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.final-req-section-head h2,
.final-req-summary-head h2 {
    margin: 0 0 4px;
    color: #111827;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    letter-spacing: -0.03em;
    font-weight: 800;
    line-height: 1.25;
}

.final-req-section-head p {
    margin: 0;
    max-width: 640px;
    line-height: 1.55;
}

.final-req-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.final-req-banner:last-child {
    margin-top: 18px;
    margin-bottom: 0;
}

.final-req-banner.info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.final-req-banner.success {
    background: var(--green-bg);
    border-color: #bbf7d0;
    color: #166534;
}

.final-req-banner strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.94rem;
    font-weight: 800;
}

.final-req-banner p {
    margin: 0;
}

.final-req-banner-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    margin-top: 1px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
}

.final-req-banner.success .final-req-banner-icon {
    background: rgba(255, 255, 255, 0.65);
}

.final-req-list {
    display: grid;
    gap: 12px;
}

.final-req-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid #e8edf4;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.final-req-row:hover {
    border-color: #d7e0ec;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transform: translateY(-1px);
}

.final-req-row-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.final-req-row-icon {
    width: 40px;
    height: 40px;
    padding: 9px;
    border-radius: 12px;
}

.final-req-row-icon--job {
    background: #fff8ef;
    border-color: #fde68a;
    color: #b45309;
}

.final-req-row-icon--company {
    background: #f8fbff;
    border-color: #dbeafe;
    color: #1d4ed8;
}

.final-req-row-icon--observation {
    background: #f0fdf8;
    border-color: #bbf7d0;
    color: #047857;
}

.final-req-row-icon--eval {
    background: #fff8f8;
    border-color: #fecdd3;
    color: #be123c;
}

.final-req-row-icon--partner {
    background: #faf8ff;
    border-color: #ddd6fe;
    color: #6d28d9;
}

.final-req-row-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.final-req-row-copy strong {
    color: #111827;
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.3;
}

.final-req-row-copy span {
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.45;
}

.final-req-row-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.final-req-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 9px 16px;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.final-req-action--primary {
    background: linear-gradient(180deg, #9f2323 0%, #8B1A1A 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(139, 26, 26, 0.18);
}

.final-req-action--primary:hover {
    background: linear-gradient(180deg, #a92828 0%, #7a1717 100%);
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(139, 26, 26, 0.22);
}

.final-req-action--edit {
    border: 1px solid #d7e0ec;
    background: #fff;
    color: #334155;
}

.final-req-action--edit:hover {
    border-color: #8B1A1A;
    color: #8B1A1A;
    background: #fff7f7;
}

.final-req-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.final-req-summary-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e8edf4;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.final-req-summary-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.final-req-summary-card-icon {
    width: 38px;
    height: 38px;
    padding: 8px;
    border-radius: 11px;
}

.final-req-summary-card-icon--docs {
    background: #f8fbff;
    border-color: #dbeafe;
    color: #1d4ed8;
}

.final-req-summary-card-icon--eval {
    background: #fff8f8;
    border-color: #fecdd3;
    color: #be123c;
}

.final-req-summary-card-icon--partner {
    background: #faf8ff;
    border-color: #ddd6fe;
    color: #6d28d9;
}

.final-req-summary-label {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
}

.final-req-summary-value {
    display: block;
    margin-top: 2px;
    color: #111827;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.final-req-summary-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.final-req-summary-progress-track {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
}

.final-req-summary-progress-track span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #8B1A1A, #c0392b);
    transition: width 0.35s ease;
}

.final-req-summary-progress > span {
    color: var(--navy-900);
    font-size: 0.8rem;
    font-weight: 800;
}

.final-req-summary-note {
    margin: 0;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
}

@media (max-width: 960px) {
    .final-req-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .final-req-row {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .final-req-row-meta {
        justify-content: space-between;
        padding-top: 4px;
        border-top: 1px solid #eef2f7;
    }

    .final-req-action {
        min-width: 88px;
    }
}

.final-req-step-icon,
.final-form-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    padding: 11px;
    border: 1px solid transparent;
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.final-form-icon--job {
    background: #fff8ef;
    border-color: #fde68a;
    color: #b45309;
}

.final-form-icon--company {
    background: #f8fbff;
    border-color: #dbeafe;
    color: #1d4ed8;
}

.final-form-icon--observation {
    background: #f0fdf8;
    border-color: #bbf7d0;
    color: #047857;
}

.final-form-icon--eval {
    background: #fff8f8;
    border-color: #fecdd3;
    color: #be123c;
}

.final-form-icon--partner {
    background: #faf8ff;
    border-color: #ddd6fe;
    color: #6d28d9;
}

.final-form-page {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.final-form-page--wide {
    max-width: 920px;
}

.final-form-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 12px 7px 6px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.final-form-back:hover {
    color: #8B1A1A;
    background: #fff3f3;
    box-shadow: 0 8px 18px rgba(139, 26, 26, 0.08);
}

.final-form-back:active,
.final-form-back.is-pressed {
    transform: translateX(-3px) scale(0.98);
    background: #fde8e8;
    color: #6e1414;
}

.final-form-back:active .final-form-back-icon,
.final-form-back.is-pressed .final-form-back-icon {
    transform: translateX(-3px);
    background: #fde8e8;
}

.final-form-back-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #fff3f3;
    color: #8B1A1A;
    transition: transform 0.2s, background 0.2s;
}

.final-form-back-icon svg {
    width: 14px;
    height: 14px;
    display: block;
}

.final-form-back:hover .final-form-back-icon {
    transform: translateX(-2px);
    background: #fde8e8;
}

.final-form-page .final-form-card {
    max-width: none;
    margin: 0;
    padding: clamp(22px, 3vw, 30px);
}

.final-form-page .final-form-card:hover {
    transform: none;
}

.final-form-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef2f7;
}

.final-form-head-copy {
    min-width: 0;
    flex: 1;
}

.final-form-head h2 {
    margin: 0 0 4px;
    color: #111827;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    letter-spacing: -0.03em;
    font-weight: 800;
    line-height: 1.25;
}

.final-form-head p {
    margin: 0;
    line-height: 1.55;
}

.final-form .final-form-field {
    margin-bottom: 20px;
}

.final-form-label {
    font-weight: 800;
    color: #1f2937;
}

.req-star {
    color: #dc2626;
}

.final-form-hint {
    font-weight: 500;
    font-size: 0.84rem;
    color: #6b7280;
    margin-top: -2px;
}

.final-form-page .final-form input[type="text"],
.final-form-page .final-form textarea {
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.final-form-page .final-form input[type="text"]:focus,
.final-form-page .final-form textarea:focus {
    border-color: rgba(139, 26, 26, 0.45);
    box-shadow: 0 0 0 4px rgba(139, 26, 26, 0.08);
    outline: none;
}

.final-form-submit {
    width: 100%;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    border-radius: 14px;
    min-height: 48px;
    box-shadow: 0 10px 22px rgba(139, 26, 26, 0.18);
}

.po-card {
    max-width: none;
}

.po-field-list {
    display: grid;
    gap: 14px;
    margin-bottom: 8px;
}

.po-field {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e8edf4;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.po-field-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.po-field-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    padding: 8px;
    border: 1px solid #fecdd3;
    border-radius: 12px;
    background: #fff8f8;
    color: #be123c;
}

.po-field-label {
    display: block;
    font-weight: 800;
    color: #1f2937;
}

.po-field-desc {
    display: block;
    margin-top: 3px;
    font-weight: 500;
    font-size: 0.83rem;
    color: #6b7280;
    line-height: 1.4;
}

.po-field-input {
    display: flex;
    flex-direction: column;
}

.po-field-input textarea {
    min-height: 110px;
}

.final-readonly-card .final-readonly-field {
    margin-bottom: 22px;
}
.final-readonly-label {
    display: block;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 6px;
}
.final-readonly-value {
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fafafa;
    color: #1f2937;
    line-height: 1.55;
}
.final-readonly-text {
    white-space: pre-wrap;
    word-break: break-word;
}
.final-req-head .badge {
    margin-left: auto;
    flex-shrink: 0;
}

/* Evaluation forms */
.final-eval-icon {
    background: #eff6ff !important;
    color: #2563eb !important;
}

.eval-form-card {
    max-width: none;
}

.eval-section {
    margin-top: 18px;
    border: 1px solid #e8edf4;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}

.eval-section-head {
    display: grid;
    grid-template-columns: 1fr 88px 188px;
    align-items: center;
    gap: 12px;
    background: linear-gradient(180deg, #fff7f7 0%, #fdeaea 100%);
    border-bottom: 1px solid #f5d0d0;
    padding: 12px 16px;
    font-weight: 800;
    color: #991b1b;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.eval-section-title {
    min-width: 0;
}

.eval-col-weight,
.eval-col-rating {
    text-align: center;
}

.eval-row {
    display: grid;
    grid-template-columns: 1fr 88px 188px;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
}

.eval-row:last-child {
    border-bottom: none;
}

.eval-row-num {
    color: #b91c1c;
    font-weight: 800;
    margin-right: 0.35em;
}

.eval-row-label {
    min-width: 0;
    padding-right: 8px;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #1f2937;
}

.eval-row-weight {
    text-align: center;
    color: #64748b;
    font-weight: 700;
    font-size: 0.86rem;
}

.eval-row-rating {
    display: flex;
    justify-content: center;
}

/* Star rating system */
.eval-form .star-rating,
.eval-form-card .star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 2px;
    position: relative;
}

.eval-form .star-rating input,
.eval-form-card .star-rating input {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    margin: 0;
}

.eval-form .star-rating label,
.eval-form-card .star-rating label {
    color: #d8d8d8;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    transition: color .12s;
}

.eval-form .star-rating label:hover,
.eval-form .star-rating label:hover ~ label,
.eval-form-card .star-rating label:hover,
.eval-form-card .star-rating label:hover ~ label {
    color: #f5b301;
}

.eval-form .star-rating input:checked ~ label,
.eval-form-card .star-rating input:checked ~ label {
    color: #f5b301;
}

/* Evaluation display (coordinator view) */
.eval-static-stars {
    color: #f5b301;
    letter-spacing: 1px;
}

.eval-result-grade {
    text-align: center;
    background: #fdeaea;
    border-radius: 12px;
    padding: 14px 26px;
    flex-shrink: 0;
}

.eval-result-grade-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #b91c1c;
    line-height: 1;
}

.eval-result-grade-label {
    font-size: .8rem;
    color: #b91c1c;
    font-weight: 600;
}

.eval-total-row {
    display: flex;
    align-items: center;
    background: #fdeaea;
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 14px;
    font-weight: 800;
    color: #b91c1c;
}

.eval-total-label {
    flex: 1;
}

.eval-total-weight {
    width: 80px;
    text-align: center;
}

.eval-total-value {
    width: 180px;
    text-align: center;
}

@media (max-width: 900px) {
    .eval-section-head,
    .eval-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .eval-col-weight,
    .eval-col-rating,
    .eval-row-weight,
    .eval-row-rating {
        justify-self: start;
        text-align: left;
    }

    .eval-row-rating {
        justify-content: flex-start;
    }

    .final-form-head {
        align-items: flex-start;
    }

    .eval-result-grade {
        align-self: flex-start;
    }
}

@media (max-width: 720px) {
    .final-form-page,
    .final-form-page--wide {
        max-width: 100%;
    }
}

/* ── Student Dashboard v2 ─────────────────────────────────────────── */
.role-student .content:has(.student-dash-v2) {
    background:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(139, 26, 26, 0.06), transparent 50%),
        radial-gradient(ellipse 60% 40% at 95% 5%, rgba(249, 115, 22, 0.05), transparent 45%),
        linear-gradient(180deg, #f8f9fc 0%, #f3f5f9 100%);
}

.student-dash-v2 {
    --sd-radius: 28px;
    --sd-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
    --sd-shadow-hover: 0 28px 60px rgba(15, 23, 42, 0.1);
    display: grid;
    gap: 24px;
    animation: sdFadeIn 0.5s ease both;
}

@keyframes sdFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.student-dash-v2 > * {
    animation: sdSlideUp 0.55s ease both;
}

.student-dash-v2 > *:nth-child(1) { animation-delay: 0.04s; }
.student-dash-v2 > *:nth-child(2) { animation-delay: 0.08s; }
.student-dash-v2 > *:nth-child(3) { animation-delay: 0.12s; }
.student-dash-v2 > *:nth-child(4) { animation-delay: 0.16s; }
.student-dash-v2 > *:nth-child(5) { animation-delay: 0.20s; }
.student-dash-v2 > *:nth-child(6) { animation-delay: 0.24s; }
.student-dash-v2 > *:nth-child(7) { animation-delay: 0.28s; }

@keyframes sdSlideUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero */
.student-dash-v2 .sd-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 380px);
    padding: clamp(32px, 4.5vw, 44px);
    border-radius: calc(var(--sd-radius) + 4px);
    background:
        radial-gradient(circle at 8% 20%, rgba(255, 255, 255, 0.18), transparent 32%),
        radial-gradient(circle at 92% 78%, rgba(255, 180, 120, 0.14), transparent 34%),
        linear-gradient(128deg, #4a0e0e 0%, #7f1d1d 32%, #991b1b 58%, #c2410c 88%, #ea580c 100%);
    box-shadow:
        0 32px 70px rgba(74, 14, 14, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    overflow: hidden;
}

.student-dash-v2 .sd-hero-mesh {
    position: absolute;
    inset: 0;
    opacity: 0.45;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 20%, transparent 75%);
    pointer-events: none;
}

.student-dash-v2 .sd-hero-glow--three {
    top: 50%;
    right: 35%;
    width: 260px;
    height: 260px;
    background: rgba(255, 140, 80, 0.12);
    animation: sdPulse 6s ease-in-out infinite;
}

@keyframes sdPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.08); opacity: 1; }
}

.student-dash-v2 .sd-hero-date {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.student-dash-v2 .sd-hero-sub {
    max-width: 540px;
    margin-top: 4px;
}

.student-dash-v2 .sd-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding-inline: 24px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.student-dash-v2 .sd-hero-cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.student-dash-v2 .sd-hero-cta:hover svg {
    transform: translateX(3px);
}

.student-dash-v2 .sd-hero-panel {
    gap: 16px;
    padding: 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(20px) saturate(1.4);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 24px 48px rgba(30, 8, 8, 0.2);
}

.student-dash-v2 .sd-hero-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.student-dash-v2 .sd-hero-panel-brand {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.student-dash-v2 .sd-hero-panel-brand strong {
    display: block;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    margin-top: 4px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    word-break: break-word;
}

.student-dash-v2 .sd-hero-ring {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.student-dash-v2 .sd-hero-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.student-dash-v2 .sd-ring-bg,
.student-dash-v2 .sd-ring-value {
    fill: none;
    stroke-width: 6;
}

.student-dash-v2 .sd-ring-bg {
    stroke: rgba(255, 255, 255, 0.18);
}

.student-dash-v2 .sd-ring-value {
    stroke: #fff;
    stroke-linecap: round;
    stroke-dasharray: 226;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

.student-dash-v2 .sd-hero-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    color: #fff;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
}

.student-dash-v2 .sd-hero-ring-value,
.student-dash-v2 .sd-hero-ring-unit {
    display: inline;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

.student-dash-v2 .sd-hero-ring-unit {
    font-size: 0.62rem;
    font-weight: 700;
    opacity: 0.92;
}

.student-dash-v2 .sd-progress-track span {
    background: linear-gradient(90deg, #fff 0%, #fecaca 60%, #fed7aa 100%);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
}

.student-dash-v2 .sd-status-pill--active {
    background: rgba(34, 197, 94, 0.22);
    border-color: rgba(134, 239, 172, 0.45);
}

/* Journey stepper */
.student-dash-v2 .sd-journey {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 20px 24px;
    border: 1px solid rgba(219, 228, 240, 0.95);
    border-radius: var(--sd-radius);
    background: #fff;
    box-shadow: var(--sd-shadow);
    overflow-x: auto;
    scrollbar-width: none;
}

.student-dash-v2 .sd-journey::-webkit-scrollbar {
    display: none;
}

.student-dash-v2 .sd-journey-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 72px;
    flex-shrink: 0;
}

.student-dash-v2 .sd-journey-dot {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    background: #f8fafc;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 800;
    transition: all 0.25s ease;
}

.student-dash-v2 .sd-journey-dot svg {
    width: 14px;
    height: 14px;
}

.student-dash-v2 .sd-journey-step.is-done .sd-journey-dot {
    border-color: #86efac;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
}

.student-dash-v2 .sd-journey-step.is-current .sd-journey-dot {
    border-color: #8B1A1A;
    background: linear-gradient(135deg, #8B1A1A, #c2410c);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(139, 26, 26, 0.15), 0 8px 20px rgba(139, 26, 26, 0.25);
}

.student-dash-v2 .sd-journey-label {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
}

.student-dash-v2 .sd-journey-step.is-current .sd-journey-label {
    color: #8B1A1A;
}

.student-dash-v2 .sd-journey-step.is-done .sd-journey-label {
    color: #166534;
}

.student-dash-v2 .sd-journey-line {
    flex: 1;
    min-width: 24px;
    height: 3px;
    margin-bottom: 24px;
    border-radius: 999px;
    background: #e2e8f0;
}

.student-dash-v2 .sd-journey-line.is-done {
    background: linear-gradient(90deg, #86efac, #4ade80);
}

/* Next step card */
.student-dash-v2 .sd-next-card {
    position: relative;
    padding: 24px 28px;
    border: 1px solid rgba(219, 228, 240, 0.95);
    border-radius: var(--sd-radius);
    background: #fff;
    box-shadow: var(--sd-shadow);
    overflow: hidden;
}

.student-dash-v2 .sd-next-glow {
    position: absolute;
    right: -40px;
    top: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 26, 26, 0.08), transparent 70%);
    pointer-events: none;
}

.student-dash-v2 .sd-next-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, #8B1A1A, #dc2626);
    color: #fff;
    box-shadow: 0 12px 28px rgba(139, 26, 26, 0.28);
}

.student-dash-v2 .sd-next-icon svg {
    width: 26px;
    height: 26px;
}

.student-dash-v2 .sd-next-btn {
    border-radius: 14px;
    min-height: 46px;
    padding-inline: 22px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(139, 26, 26, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.student-dash-v2 .sd-next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(139, 26, 26, 0.28);
}

/* Stat cards */
.student-dash-v2 .sd-stat-card {
    position: relative;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #fff;
    box-shadow: var(--sd-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.student-dash-v2 .sd-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sd-shadow-hover);
    border-color: rgba(203, 213, 225, 0.9);
}

.student-dash-v2 .sd-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
}

.student-dash-v2 .sd-stat-card--company .sd-stat-icon { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #1d4ed8; }
.student-dash-v2 .sd-stat-card--schedule .sd-stat-icon { background: linear-gradient(135deg, #f5f3ff, #ede9fe); color: #7c3aed; }
.student-dash-v2 .sd-stat-card--hours .sd-stat-icon { background: linear-gradient(135deg, #fffbeb, #fef3c7); color: #b45309; }
.student-dash-v2 .sd-stat-card--records .sd-stat-icon { background: linear-gradient(135deg, #fff1f2, #ffe4e6); color: #be123c; }

.student-dash-v2 .sd-stat-icon svg {
    width: 22px;
    height: 22px;
}

.student-dash-v2 .sd-stat-value-sm {
    font-size: 0.88rem !important;
    line-height: 1.35 !important;
}

.student-dash-v2 .sd-stat-card strong.is-positive {
    color: #166534;
}

/* Bento grid */
.student-dash-v2 .sd-bento {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    grid-template-rows: auto auto;
    gap: 18px;
}

.student-dash-v2 .sd-progress-card {
    grid-row: span 2;
    padding: 28px;
    border-radius: var(--sd-radius);
    border: 1px solid rgba(219, 228, 240, 0.95);
    background: linear-gradient(160deg, #fff 0%, #fafbff 100%);
    box-shadow: var(--sd-shadow);
}

.student-dash-v2 .sd-ring-wrap {
    width: 180px;
    height: 180px;
}

.student-dash-v2 .sd-ring-wrap .progress-ring {
    width: 180px;
    height: 180px;
}

.student-dash-v2 .sd-ring-wrap .sd-progress-ring-value {
    stroke: url(#sdRingGrad);
    stroke-width: 11;
    stroke-linecap: round;
    stroke-dasharray: 314.159;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.student-dash-v2 .sd-ring-value {
    stroke: url(#sdRingGrad);
    stroke-width: 11;
}

.student-dash-v2 .sd-ring-wrap .ring-label strong {
    font-size: 2rem;
    background: linear-gradient(135deg, #8B1A1A, #ea580c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.student-dash-v2 .sd-progress-bar span {
    background: linear-gradient(90deg, #8B1A1A 0%, #dc2626 50%, #f97316 100%);
    box-shadow: 0 2px 8px rgba(139, 26, 26, 0.25);
}

.student-dash-v2 .sd-requirement-card {
    padding: 24px;
    border-radius: var(--sd-radius);
    border: 1px solid rgba(219, 228, 240, 0.95);
    background: #fff;
    box-shadow: var(--sd-shadow);
}

.student-dash-v2 .sd-check-list {
    gap: 10px;
}

.student-dash-v2 .sd-check-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: background 0.18s ease;
}

.student-dash-v2 .sd-check-item:hover {
    background: linear-gradient(135deg, #fff7f7, #fef2f2);
}

.student-dash-v2 .sd-manage-btn {
    width: 100%;
    justify-content: center;
    min-height: 42px;
    border-radius: 12px;
    margin-top: 4px;
}

.student-dash-v2 .sd-status-grid {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.student-dash-v2 .sd-status-card {
    border-radius: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.student-dash-v2 .sd-status-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sd-shadow-hover);
}

/* Mini cards */
.student-dash-v2 .sd-mini-card {
    border-radius: var(--sd-radius);
    border: 1px solid rgba(219, 228, 240, 0.95);
    background: #fff;
    box-shadow: var(--sd-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.student-dash-v2 .sd-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sd-shadow-hover);
}

.student-dash-v2 .sd-quick-actions .student-mini-action {
    justify-content: space-between;
    border-radius: 12px;
}

.student-dash-v2 .sd-quick-actions .student-mini-action svg {
    width: 16px;
    height: 16px;
    opacity: 0.4;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.student-dash-v2 .sd-quick-actions .student-mini-action:hover svg {
    opacity: 1;
    transform: translateX(2px);
}

/* Activity */
.student-dash-v2 .sd-activity-card {
    padding: 28px;
    border-radius: var(--sd-radius);
    border: 1px solid rgba(219, 228, 240, 0.95);
    background: #fff;
    box-shadow: var(--sd-shadow);
}

.student-dash-v2 .sd-activity-head {
    margin-bottom: 20px;
}

.student-dash-v2 .sd-activity-link {
    color: #8B1A1A;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.18s ease;
}

.student-dash-v2 .sd-activity-link:hover {
    color: #c2410c;
}

.student-dash-v2 .sd-timeline {
    gap: 16px;
}

.student-dash-v2 .sd-timeline::before {
    left: 11px;
    background: linear-gradient(180deg, #8B1A1A, #fecaca);
    width: 2px;
}

.student-dash-v2 .sd-timeline-dot {
    width: 22px;
    height: 22px;
    border: 3px solid #fff;
    background: linear-gradient(135deg, #8B1A1A, #dc2626);
    box-shadow: 0 0 0 2px rgba(139, 26, 26, 0.2);
}

.student-dash-v2 .sd-timeline-card {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #eef2f6;
    background: linear-gradient(135deg, #fafbfc, #fff);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.student-dash-v2 .sd-timeline-card:hover {
    border-color: rgba(139, 26, 26, 0.15);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.student-dash-v2 .sd-timeline-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 2px;
}

.student-dash-v2 .sd-timeline-hours {
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff1f2;
    color: #be123c;
    font-size: 0.72rem;
    font-weight: 800;
}

.student-dash-v2 .sd-timeline-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 20px;
    border-radius: 16px;
    background: #f8fafc;
    text-align: center;
}

.student-dash-v2 .sd-timeline-empty svg {
    width: 40px;
    height: 40px;
    color: #cbd5e1;
}

.student-dash-v2 .sd-timeline-empty p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

@media (max-width: 1180px) {
    .student-dash-v2 .sd-bento {
        grid-template-columns: 1fr;
    }

    .student-dash-v2 .sd-progress-card {
        grid-row: auto;
    }
}

@media (max-width: 720px) {
    .student-dash-v2 {
        gap: 16px;
    }

    .student-dash-v2 .sd-hero {
        padding: 22px 18px;
    }

    .student-dash-v2 .sd-journey {
        padding: 16px 18px;
        border-radius: 22px;
    }

    .student-dash-v2 .sd-journey-step {
        min-width: 58px;
    }

    .student-dash-v2 .sd-journey-dot {
        width: 32px;
        height: 32px;
        font-size: 0.72rem;
    }

    .student-dash-v2 .sd-next-card {
        grid-template-columns: auto 1fr;
        padding: 18px;
    }

    .student-dash-v2 .sd-next-card > .btn {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
    }

    .student-dash-v2 .sd-hero-panel-head {
        flex-direction: column;
    }

    .student-dash-v2 .sd-hero-ring {
        align-self: flex-end;
    }

    .student-dash-v2 .sd-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-dash-v2 .sd-progress-card {
        justify-items: center;
        text-align: center;
        padding: 20px;
    }

    .student-dash-v2 .sd-ring-wrap {
        width: 150px;
        height: 150px;
    }

    .student-dash-v2 .sd-ring-wrap .progress-ring {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 420px) {
    .student-dash-v2 .sd-status-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Live Chat (bundled for shared hosting) ===== */.chat-app {
    display: grid;
    gap: 18px;
}

.chat-app__hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    border: 1px solid rgba(219, 228, 240, 0.95);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(139, 26, 26, 0.08), transparent 38%),
        linear-gradient(180deg, #fff 0%, #fffafa 100%);
    box-shadow: 0 18px 44px rgba(73, 19, 19, 0.08);
}

.chat-app__eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(139, 26, 26, 0.08);
    color: var(--navy-900, #8b1a1a);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chat-app__hero h2 {
    margin: 0 0 6px;
    color: var(--text, #172033);
    font-size: clamp(1.5rem, 2vw, 1.85rem);
    letter-spacing: -0.03em;
}

.chat-app__hero p {
    margin: 0;
    color: var(--muted, #667085);
    font-size: 0.94rem;
    line-height: 1.55;
}

.chat-app__hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(219, 228, 240, 0.95);
    border-radius: 999px;
    background: #fff;
    color: var(--muted, #667085);
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: var(--shadow-soft, 0 10px 28px rgba(15, 23, 42, 0.05));
}

.chat-app__status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green, #16a34a);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.16);
}

.chat-shell {
    display: grid;
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    gap: 18px;
    min-height: 620px;
}

.card-panel {
    border: 1px solid rgba(219, 228, 240, 0.95);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(73, 19, 19, 0.07);
    overflow: hidden;
}

.chat-sidebar {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
}

.chat-sidebar__head,
.chat-window__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(219, 228, 240, 0.95);
    background: rgba(255, 255, 255, 0.92);
}

.chat-sidebar__head h3,
.chat-window__head strong {
    margin: 0;
    color: var(--text, #172033);
    font-size: 1rem;
}

.chat-sidebar__count,
.chat-window__head small {
    color: var(--muted, #667085);
    font-size: 0.82rem;
}

.chat-sidebar__search {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(219, 228, 240, 0.95);
    background: #fff;
}

.chat-sidebar__search input {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border, #dbe4f0);
    border-radius: 14px;
    background: #fff;
    color: var(--text, #172033);
    font: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.chat-sidebar__search input::placeholder {
    color: #98a2b3;
}

.chat-sidebar__search input:focus {
    outline: none;
    border-color: rgba(139, 26, 26, 0.45);
    box-shadow: var(--ring, 0 0 0 4px rgba(139, 26, 26, 0.12));
}

.chat-sidebar__list {
    flex: 1;
    overflow: auto;
    padding: 12px;
}

.chat-group + .chat-group {
    margin-top: 14px;
}

.chat-group h4 {
    margin: 0 0 8px;
    padding: 0 8px;
    color: var(--navy-900, #8b1a1a);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chat-partner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 8px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.chat-partner:hover {
    border-color: rgba(139, 26, 26, 0.16);
    background: #fff7f7;
    box-shadow: 0 8px 20px rgba(139, 26, 26, 0.06);
    transform: translateY(-1px);
}

.chat-partner.is-active {
    border-color: rgba(139, 26, 26, 0.28);
    background: linear-gradient(135deg, #fff7f7, #fff);
    box-shadow: 0 10px 24px rgba(139, 26, 26, 0.08);
}

.chat-partner__avatar,
.chat-window__avatar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--navy-900, #8b1a1a), var(--blue-500, #c0392b));
    color: #fff;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(139, 26, 26, 0.18);
}

.chat-partner__copy {
    min-width: 0;
    flex: 1;
}

.chat-partner__copy strong,
.chat-window__partner strong {
    display: block;
    color: var(--text, #172033);
    font-size: 0.92rem;
}

.chat-partner__copy small {
    display: block;
    overflow: hidden;
    color: var(--muted, #667085);
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-partner__badge {
    min-width: 22px;
    padding: 4px 7px;
    border-radius: 999px;
    background: var(--navy-900, #8b1a1a);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    text-align: center;
}

.chat-window {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat-window__partner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.chat-window__tag {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(139, 26, 26, 0.08);
    color: var(--navy-900, #8b1a1a);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.chat-window__messages {
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 20px;
    background:
        radial-gradient(circle at 0% 0%, rgba(139, 26, 26, 0.04), transparent 32%),
        linear-gradient(180deg, #fafbff 0%, #fff 100%);
}

.chat-message {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: min(78%, 560px);
}

.chat-message.is-mine {
    align-self: flex-end;
    align-items: flex-end;
}

.chat-message.is-theirs {
    align-self: flex-start;
    align-items: flex-start;
}

.chat-message__bubble {
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(219, 228, 240, 0.95);
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.chat-message.is-mine .chat-message__bubble {
    border-color: rgba(139, 26, 26, 0.14);
    background: linear-gradient(135deg, #8b1a1a, #c0392b);
    box-shadow: 0 10px 22px rgba(139, 26, 26, 0.18);
}

.chat-message__bubble p {
    margin: 0;
    color: var(--text, #172033);
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-message.is-mine .chat-message__bubble p {
    color: #fff;
}

.chat-message time {
    color: var(--muted, #667085);
    font-size: 0.72rem;
}

.chat-typing-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 8px 20px;
    border-top: 1px solid rgba(219, 228, 240, 0.95);
    background: #fff7f7;
    color: var(--muted, #667085);
    font-size: 0.82rem;
    font-weight: 700;
}

.chat-typing-indicator[hidden] {
    display: none !important;
}

.chat-typing-indicator__dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.chat-typing-indicator__dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--navy-900, #8b1a1a);
    animation: chatTypingBounce 1.2s infinite ease-in-out;
}

.chat-typing-indicator__dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.chat-typing-indicator__dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes chatTypingBounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.45;
    }
    40% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

#chatTypingLabel {
    color: #475467;
}

.chat-window__composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 16px 18px;
    border-top: 1px solid rgba(219, 228, 240, 0.95);
    background: #fff;
}

.chat-window__composer textarea {
    min-height: 52px;
    max-height: 140px;
    padding: 14px 16px;
    border: 1px solid var(--border, #dbe4f0);
    border-radius: 14px;
    background: #fff;
    color: var(--text, #172033);
    resize: vertical;
    font: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.chat-window__composer textarea::placeholder {
    color: #98a2b3;
}

.chat-window__composer textarea:focus {
    outline: none;
    border-color: rgba(139, 26, 26, 0.45);
    box-shadow: var(--ring, 0 0 0 4px rgba(139, 26, 26, 0.12));
}

.chat-send-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--navy-900, #8b1a1a), var(--blue-500, #c0392b));
    color: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(139, 26, 26, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.chat-send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(139, 26, 26, 0.26);
}

.chat-send-btn svg {
    width: 18px;
    height: 18px;
}

.chat-send-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.chat-empty-state {
    padding: 28px 18px;
    color: var(--muted, #667085);
    text-align: center;
}

.chat-empty-state--window {
    margin: auto;
    max-width: 360px;
}

.chat-empty-state--window h3 {
    margin: 0 0 8px;
    color: var(--text, #172033);
}

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

@media (max-width: 980px) {
    .chat-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .chat-sidebar__list {
        max-height: 280px;
    }

    .chat-window {
        min-height: 520px;
    }
}

@media (max-width: 720px) {
    .chat-app__hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .chat-window__composer {
        grid-template-columns: 1fr;
    }

    .chat-send-btn {
        width: 100%;
        justify-content: center;
    }
}
