:root {
    --csu-green: #12633a;
    --csu-green-dark: #0b4729;
    --portal-background: #f7f8fb;
    --portal-foreground: #0f172a;
    --portal-muted: #f1f5f9;
    --portal-muted-foreground: #64748b;
    --portal-accent: #0052ff;
    --portal-accent-secondary: #4d7cff;
    --portal-border: #e2e8f0;
    --portal-card: #ffffff;
    --portal-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
    --portal-shadow-soft: 0 4px 18px rgba(15, 23, 42, 0.055);
}

.text-csu {
    color: var(--csu-green) !important;
}

.worksite-map {
    height: 320px;
}

.btn-success {
    --bs-btn-bg: var(--csu-green);
    --bs-btn-border-color: var(--csu-green);
    --bs-btn-hover-bg: var(--csu-green-dark);
    --bs-btn-hover-border-color: var(--csu-green-dark);
}

:focus-visible {
    outline: 3px solid #f2b705;
    outline-offset: 2px;
}

body:not(.student-portal-body) {
    background:
        radial-gradient(circle at 75% -10%, rgba(77, 124, 255, 0.1), transparent 34rem),
        var(--portal-background) !important;
    color: var(--portal-foreground);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body:not(.student-portal-body) > header,
body:not(.student-portal-body) > footer {
    border-color: var(--portal-border) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(16px);
}

body:not(.student-portal-body) .navbar {
    min-height: 70px;
}

body:not(.student-portal-body) .navbar-brand,
body:not(.student-portal-body) .text-csu {
    color: var(--portal-foreground) !important;
    letter-spacing: -0.025em;
}

body:not(.student-portal-body) main .card {
    border: 1px solid var(--portal-border) !important;
    border-radius: 20px;
    box-shadow: var(--portal-shadow-soft) !important;
}

body:not(.student-portal-body) .btn-success {
    border-color: transparent;
    background: linear-gradient(135deg, var(--portal-accent), var(--portal-accent-secondary));
    box-shadow: 0 7px 18px rgba(0, 82, 255, 0.18);
}

body:not(.student-portal-body) .btn-outline-success {
    border-color: rgba(0, 82, 255, 0.28);
    color: var(--portal-accent);
}

body:not(.student-portal-body) .btn-outline-success:hover {
    border-color: var(--portal-accent);
    background: var(--portal-accent);
    color: #fff;
}

/* Student portal ---------------------------------------------------------- */

.student-portal-body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 62% -20%, rgba(77, 124, 255, 0.1), transparent 35rem),
        var(--portal-background);
    color: var(--portal-foreground);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.student-portal-body :focus-visible {
    outline: 3px solid rgba(0, 82, 255, 0.38);
    outline-offset: 3px;
}

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

.student-sidebar {
    --bs-offcanvas-width: 272px;
    display: flex;
    flex-direction: column;
    padding: 1.4rem 1.15rem 1.15rem;
    border-right: 1px solid var(--portal-border);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
}

.student-sidebar-head,
.student-mobile-header,
.student-desktop-tools,
.student-profile-card,
.student-status-heading,
.progress-status-card,
.student-privacy-note,
.student-page-intro,
.attendance-topline,
.attendance-actions,
.section-heading-row,
.task-meta,
.accomplishment-row {
    display: flex;
    align-items: center;
}

.student-sidebar-head {
    justify-content: space-between;
    min-height: 48px;
    padding: 0 0.55rem;
}

.student-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--portal-foreground);
    text-decoration: none;
}

.student-brand:hover {
    color: var(--portal-foreground);
}

.student-brand-mark {
    display: inline-grid;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 13px 13px 13px 4px;
    background: linear-gradient(135deg, var(--portal-accent), var(--portal-accent-secondary));
    box-shadow: 0 8px 20px rgba(0, 82, 255, 0.25);
    color: #fff;
    font-family: "Calistoga", Georgia, serif;
    font-size: 1.4rem;
}

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

.student-brand strong {
    font-size: 0.95rem;
    letter-spacing: -0.02em;
}

.student-brand small {
    margin-top: 0.06rem;
    color: var(--portal-muted-foreground);
    font-size: var(--ui-text-small, 0.875rem);
}
.student-nav-label {
    margin: 2.15rem 0.8rem 0.65rem;
    color: #94a3b8;
    font-size: var(--ui-text-small, 0.875rem);
}

.student-nav {
    display: grid;
    gap: 0.3rem;
}

.student-nav-link {
    position: relative;
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 0.8rem;
    overflow: hidden;
    border-radius: 12px;
    color: var(--portal-muted-foreground);
    font-size: var(--ui-text-small, 0.875rem);
    font-weight: 500;
    text-decoration: none;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.student-nav-link::before {
    position: absolute;
    inset: 8px auto 8px 0;
    width: 3px;
    border-radius: 999px;
    background: var(--portal-accent);
    content: "";
    opacity: 0;
    transform: translateX(-5px);
    transition: inherit;
}

.student-nav-link:hover {
    background: #f8fafc;
    color: var(--portal-foreground);
    transform: translateX(2px);
}

.student-nav-link.is-active {
    background: linear-gradient(90deg, rgba(0, 82, 255, 0.1), rgba(77, 124, 255, 0.04));
    color: var(--portal-accent);
    font-weight: 650;
}

.student-nav-link.is-active::before {
    opacity: 1;
    transform: none;
}

.student-nav-link svg,
.student-icon-button svg,
.placement-card-icon svg,
.student-privacy-note svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.student-nav-link small {
    margin-left: auto;
    padding: 0.18rem 0.42rem;
    border-radius: 999px;
    background: rgba(0, 82, 255, 0.1);
    color: var(--portal-accent);
    font-size: var(--ui-text-small, 0.875rem);
    font-weight: 700;
    letter-spacing: normal;
    text-transform: none;
}

.student-nav-group {
    display: grid;
}

.student-nav-group > summary {
    cursor: pointer;
    list-style: none;
}

.student-nav-group > summary::-webkit-details-marker {
    display: none;
}

.student-nav-group > summary i {
    margin-left: auto;
    color: #94a3b8;
    font-size: var(--ui-text-small, 0.875rem);
    font-style: normal;
    transition: transform 180ms ease;
}

.student-nav-group[open] > summary i {
    transform: rotate(180deg);
}

.student-nav-group > summary.is-active {
    background: #f8fafc;
    color: var(--portal-foreground);
}

.student-nav-group > summary.is-active::before {
    opacity: 0;
}

.student-nav-submenu {
    display: grid;
    gap: 0.12rem;
    margin: 0.12rem 0 0.35rem 1.85rem;
    padding-left: 0.85rem;
    border-left: 1px solid #dce4ee;
}

.student-nav-sublink {
    padding: 0.48rem 0.62rem;
    border-radius: 9px;
    color: var(--portal-muted-foreground);
    font-size: var(--ui-text-small, 0.875rem);
    font-weight: 550;
    text-decoration: none;
}

.student-nav-sublink:hover {
    background: #f8fafc;
    color: var(--portal-foreground);
}

.student-nav-sublink.is-active {
    background: rgba(0, 82, 255, 0.08);
    color: var(--portal-accent);
    font-weight: 700;
}

.student-sidebar-spacer {
    flex: 1;
    min-height: 2rem;
}

.student-profile-card {
    gap: 0.65rem;
    padding: 0.8rem 0.65rem;
    border-top: 1px solid var(--portal-border);
}

.student-avatar {
    display: grid;
    flex: 0 0 auto;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 50%;
    background: #e8efff;
    color: var(--portal-accent);
    font-size: var(--ui-text-small, 0.875rem);
    font-weight: 700;
}

.student-profile-copy {
    min-width: 0;
}

.student-profile-copy strong,
.student-profile-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-profile-copy strong {
    font-size: var(--ui-text-small, 0.875rem);
}

.student-profile-copy small {
    margin-top: 0.12rem;
    color: var(--portal-muted-foreground);
    font-size: var(--ui-text-small, 0.875rem);
}

.student-profile-more {
    margin-left: auto;
    color: #94a3b8;
    text-decoration: none;
}

.student-signout-form {
    margin: 0 0.65rem;
}

.student-signout {
    width: 100%;
    padding: 0.42rem;
    border: 0;
    background: transparent;
    color: var(--portal-muted-foreground);
    font-size: var(--ui-text-small, 0.875rem);
    text-align: left;
}

.student-signout:hover {
    color: #dc2626;
}

.student-workspace {
    min-width: 0;
}

.student-mobile-header {
    position: sticky;
    z-index: 1020;
    top: 0;
    justify-content: space-between;
    min-height: 68px;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--portal-border);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
}

.student-mobile-header .student-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px 11px 11px 4px;
    font-size: 1.05rem;
}

.student-icon-button {
    position: relative;
    display: inline-grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--portal-border);
    border-radius: 50%;
    background: var(--portal-card);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
    color: var(--portal-foreground);
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

button.student-icon-button {
    padding: 0;
}

.student-icon-button:hover {
    border-color: rgba(0, 82, 255, 0.28);
    box-shadow: 0 6px 18px rgba(0, 82, 255, 0.11);
    color: var(--portal-accent);
    transform: translateY(-1px);
}

.notification-button > span {
    position: absolute;
    top: -3px;
    right: -3px;
    display: grid;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    place-items: center;
    border: 2px solid white;
    border-radius: 99px;
    background: #ef4444;
    color: #fff;
    font-size: var(--ui-text-small, 0.875rem);
    font-weight: 700;
}

.student-stage {
    width: 100%;
    max-width: 1540px;
    margin: 0 auto;
    padding: 1.25rem;
}

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

.student-stage:not(.has-status) .student-main {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
}

/* Shared authenticated-page surface */

.student-main > h1,
.student-main > .d-flex:first-child h1 {
    margin-bottom: 1.5rem !important;
    font-family: "Calistoga", Georgia, serif;
    font-size: clamp(1.85rem, 3vw, 2.65rem) !important;
    font-weight: 400;
    letter-spacing: -0.035em;
}

.student-main .card {
    border: 1px solid var(--portal-border) !important;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--portal-shadow-soft) !important;
}

.student-main .card-body {
    padding: clamp(1.15rem, 2.5vw, 1.6rem);
}

.student-main .card h2,
.student-main .card .h5 {
    margin-bottom: 1rem;
    color: var(--portal-foreground);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.student-main .form-control,
.student-main .form-select {
    min-height: 45px;
    border-color: var(--portal-border);
    border-radius: 11px;
    background-color: #fff;
    color: var(--portal-foreground);
    font-size: var(--ui-text-small, 0.875rem);
}

.student-main .form-control:focus,
.student-main .form-select:focus {
    border-color: rgba(0, 82, 255, 0.55);
    box-shadow: 0 0 0 0.22rem rgba(0, 82, 255, 0.11);
}

.student-main .btn {
    min-height: 42px;
    border-radius: 11px;
    font-size: var(--ui-text-small, 0.875rem);
    font-weight: 650;
}

.student-main .btn-sm {
    min-height: 36px;
}

.student-main .btn-primary,
.student-main .btn-success {
    border-color: transparent;
    background: linear-gradient(135deg, var(--portal-accent), var(--portal-accent-secondary));
    box-shadow: 0 6px 16px rgba(0, 82, 255, 0.17);
}

.student-main .btn-primary:hover,
.student-main .btn-success:hover {
    border-color: transparent;
    background: linear-gradient(135deg, #0049e6, #426ff0);
    box-shadow: 0 9px 22px rgba(0, 82, 255, 0.24);
    transform: translateY(-1px);
}

.student-main .table-responsive {
    overflow: hidden;
    border: 1px solid var(--portal-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--portal-shadow-soft);
}

.student-main .table-responsive .table {
    margin-bottom: 0;
}

.student-main .table > :not(caption) > * > * {
    padding: 0.85rem 1rem;
    border-bottom-color: #edf1f6;
    vertical-align: middle;
    font-size: var(--ui-text-small, 0.875rem);
}

.student-main .table thead th {
    background: #f8fafc;
    color: var(--portal-muted-foreground);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: var(--ui-text-small, 0.875rem);
    font-weight: 500;
    letter-spacing: normal;
    text-transform: none;
}

.student-main .alert {
    border: 0;
    border-radius: 14px;
}

.student-main .badge {
    padding: 0.38rem 0.6rem;
    border-radius: 999px;
    font-size: var(--ui-text-small, 0.875rem);
}

.student-desktop-tools {
    display: none;
    justify-content: space-between;
    min-height: 48px;
    margin-bottom: 2rem;
}

.student-context {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--portal-muted-foreground);
    font-size: var(--ui-text-small, 0.875rem);
}

.student-context span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--portal-accent);
    box-shadow: 0 0 0 5px rgba(0, 82, 255, 0.08);
}

.student-alert {
    border: 0;
    border-radius: 14px;
    box-shadow: var(--portal-shadow-soft);
}

.student-status-rail {
    display: grid;
    align-content: start;
    gap: 1rem;
    margin-top: 2rem;
}

.student-status-heading {
    justify-content: space-between;
    min-height: 38px;
}

.student-status-heading > span:first-child {
    font-size: var(--ui-text-small, 0.875rem);
    font-weight: 700;
}

.student-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.34rem 0.62rem;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: var(--ui-text-small, 0.875rem);
    font-weight: 650;
}

.student-live-pill i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    animation: portal-pulse 2.2s ease-in-out infinite;
}

.student-status-card {
    border: 1px solid var(--portal-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--portal-shadow-soft);
}

.placement-status-card {
    position: relative;
    overflow: hidden;
    padding: 1.35rem;
}

.placement-status-card::after {
    position: absolute;
    top: -4rem;
    right: -4rem;
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    background: rgba(0, 82, 255, 0.055);
    content: "";
}

.fic-status-card {
    overflow: hidden;
    padding: 1.05rem;
    border-color: rgba(43, 88, 118, 0.18);
    background: linear-gradient(145deg, #fff 0%, #f4f9fc 100%);
}

.fic-card-heading {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
}
.placement-card-icon.fic-card-icon {
    width: 38px;
    height: 38px;
    margin: 0;
    background: #e8f2f8;
    box-shadow: none;
    color: #245d7a;
}

.fic-program-badge {
    display: inline-flex;
    margin-top: 0.85rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: #e8f2f8;
    color: #245d7a;
    font-size: var(--ui-text-small, 0.875rem);
    font-weight: 700;
}

.fic-contact-list {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.fic-contact-list > * {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.5rem;
    min-width: 0;
    padding: 0.6rem 0.65rem;
    border: 1px solid rgba(43, 88, 118, 0.11);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
    color: inherit;
    font-size: var(--ui-text-small, 0.875rem);
    line-height: 1.35;
    text-decoration: none;
}

.fic-contact-list span {
    color: var(--portal-muted-foreground);
    font-weight: 500;
}

.fic-contact-list strong {
    min-width: 0;
    color: #334155;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.fic-contact-list a:hover {
    border-color: rgba(36, 93, 122, 0.28);
    color: inherit;
}

.placement-card-icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 1.4rem;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--portal-accent), var(--portal-accent-secondary));
    box-shadow: 0 8px 20px rgba(0, 82, 255, 0.2);
    color: #fff;
}

.placement-card-icon.is-muted {
    background: var(--portal-muted);
    box-shadow: none;
    color: var(--portal-muted-foreground);
}
.student-status-card h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.35;
}

.student-status-list {
    display: grid;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.student-status-list div {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #edf1f6;
}

.student-status-list dt,
.student-status-list dd {
    margin: 0;
    font-size: var(--ui-text-small, 0.875rem);
}

.student-status-list dt {
    color: var(--portal-muted-foreground);
    font-weight: 500;
}

.student-status-list dd {
    color: #334155;
    font-weight: 600;
    line-height: 1.5;
}

.status-card-link {
    position: relative;
    z-index: 1;
    color: var(--portal-accent);
    font-size: var(--ui-text-small, 0.875rem);
    font-weight: 650;
    text-decoration: none;
}

.status-card-link span {
    display: inline-block;
    margin-left: 0.25rem;
    transition: transform 180ms ease;
}

.status-card-link:hover span {
    transform: translateX(3px);
}

.status-empty-copy {
    margin: 0.8rem 0 1.2rem;
    color: var(--portal-muted-foreground);
    font-size: var(--ui-text-small, 0.875rem);
    line-height: 1.65;
}

.progress-status-card {
    gap: 1rem;
    padding: 1.2rem;
}

.progress-ring {
    display: grid;
    width: 84px;
    height: 84px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--portal-accent) calc(var(--progress) * 1%), #e9eef6 0);
}

.progress-ring::before {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #fff;
    content: "";
}

.progress-ring > div {
    position: absolute;
    text-align: center;
}

.progress-ring strong,
.progress-ring span {
    display: block;
}

.progress-ring strong {
    font-size: 0.95rem;
}

.progress-ring span {
    margin-top: -0.05rem;
    color: var(--portal-muted-foreground);
    font-size: var(--ui-text-small, 0.875rem);
}

.progress-status-copy h2 small {
    color: var(--portal-muted-foreground);
    font-size: var(--ui-text-small, 0.875rem);
    font-weight: 500;
}

.progress-status-copy > p:last-child {
    margin: 0.25rem 0 0;
    color: var(--portal-muted-foreground);
    font-size: var(--ui-text-small, 0.875rem);
}

.student-privacy-note {
    align-items: flex-start;
    gap: 0.7rem;
    padding: 1rem;
    color: var(--portal-muted-foreground);
}

.student-privacy-note svg {
    width: 19px;
    flex: 0 0 auto;
    color: #0f9f6e;
}

.student-privacy-note p,
.student-privacy-note strong,
.student-privacy-note span {
    display: block;
    margin: 0;
}

.student-privacy-note strong {
    color: #334155;
    font-size: var(--ui-text-small, 0.875rem);
}

.student-privacy-note span {
    margin-top: 0.2rem;
    font-size: var(--ui-text-small, 0.875rem);
    line-height: 1.5;
}

/* Student attendance page */

.student-page-intro {
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.student-page-intro h1 {
    max-width: 620px;
    margin: 0;
    font-family: "Calistoga", Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.45rem);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.student-page-intro h1 span {
    background: linear-gradient(90deg, var(--portal-accent), var(--portal-accent-secondary));
    background-clip: text;
    color: transparent;
    -webkit-background-clip: text;
}

.student-page-intro > p {
    max-width: 245px;
    margin: 0 0 0.2rem;
    color: var(--portal-muted-foreground);
    font-size: var(--ui-text-small, 0.875rem);
    line-height: 1.65;
}

.attendance-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(1.35rem, 4vw, 2.25rem);
    border-radius: 24px;
    background:
        radial-gradient(circle at 82% 18%, rgba(77, 124, 255, 0.32), transparent 15rem),
        #0f172a;
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.2);
    color: #fff;
}

.attendance-card::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
    background-size: 25px 25px;
    content: "";
    mask-image: linear-gradient(90deg, transparent 15%, #000 100%);
    opacity: 0.35;
}

.attendance-card::after {
    position: absolute;
    z-index: -1;
    right: -4rem;
    bottom: -7rem;
    width: 18rem;
    height: 18rem;
    border: 1px dashed rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    content: "";
    animation: portal-rotate 65s linear infinite;
}

.attendance-topline {
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: clamp(2.25rem, 6vw, 4rem);
}

.attendance-state {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.78);
    font-size: var(--ui-text-small, 0.875rem);
    font-weight: 600;
}

.attendance-state i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #60a5fa;
    box-shadow: 0 0 0 5px rgba(96, 165, 250, 0.1);
}

.attendance-state.is-active i {
    background: #34d399;
    box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.1);
    animation: portal-pulse 2s ease-in-out infinite;
}

.attendance-date {
    color: rgba(255, 255, 255, 0.56);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: var(--ui-text-small, 0.875rem);
    letter-spacing: normal;
    text-transform: none;
}

.attendance-clock {
    margin-bottom: 0.45rem;
    font-family: "Calistoga", Georgia, serif;
    font-size: clamp(3rem, 8vw, 5.8rem);
    letter-spacing: -0.045em;
    line-height: 0.95;
}

.attendance-clock small {
    margin-left: 0.25rem;
    color: rgba(255, 255, 255, 0.42);
    font-family: "Inter", sans-serif;
    font-size: 0.18em;
    font-weight: 600;
    letter-spacing: normal;
}

.attendance-prompt {
    max-width: 30rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: var(--ui-text-small, 0.875rem);
    line-height: 1.65;
}

.attendance-actions {
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-top: 2rem;
}

.attendance-consent {
    max-width: 25rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--ui-text-small, 0.875rem);
    line-height: 1.5;
}

.attendance-consent .form-check-input {
    margin-top: 0.15rem;
    border-color: rgba(255, 255, 255, 0.45);
    background-color: rgba(255, 255, 255, 0.06);
}

.attendance-consent .form-check-input:checked {
    border-color: var(--portal-accent);
    background-color: var(--portal-accent);
}

.portal-primary-button,
.portal-danger-button,
.portal-secondary-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.8rem 1.2rem;
    border-radius: 13px;
    font-size: var(--ui-text-small, 0.875rem);
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.portal-primary-button {
    border: 0;
    background: linear-gradient(135deg, var(--portal-accent), var(--portal-accent-secondary));
    box-shadow: 0 9px 24px rgba(0, 82, 255, 0.32);
    color: #fff;
}

.portal-primary-button:hover {
    box-shadow: 0 13px 30px rgba(0, 82, 255, 0.4);
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.portal-danger-button {
    border: 1px solid rgba(248, 113, 113, 0.35);
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
}

.portal-danger-button:hover {
    background: #dc2626;
    color: #fff;
}

.portal-secondary-button {
    border: 1px solid var(--portal-border);
    background: #fff;
    color: var(--portal-foreground);
}

.portal-secondary-button:hover {
    border-color: rgba(0, 82, 255, 0.25);
    box-shadow: 0 8px 22px rgba(0, 82, 255, 0.1);
    color: var(--portal-accent);
    transform: translateY(-1px);
}

.clockout-form {
    display: grid;
    width: min(100%, 27rem);
    gap: 0.75rem;
}

.clockout-form textarea {
    min-height: 76px;
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: var(--ui-text-small, 0.875rem);
    resize: vertical;
}

.clockout-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.clockout-form textarea:focus {
    border-color: rgba(96, 165, 250, 0.8);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 0.2rem rgba(0, 82, 255, 0.22);
    color: #fff;
}

.active-session-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.active-session-meta div {
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.active-session-meta span,
.active-session-meta strong {
    display: block;
}

.active-session-meta span {
    color: rgba(255, 255, 255, 0.45);
    font-size: var(--ui-text-small, 0.875rem);
    text-transform: none;
}

.active-session-meta strong {
    margin-top: 0.2rem;
    font-size: var(--ui-text-small, 0.875rem);
}

.student-content-section {
    margin-top: 1.25rem;
    padding: 1.3rem;
    border: 1px solid var(--portal-border);
    border-radius: 18px;
    background: var(--portal-card);
    box-shadow: var(--portal-shadow-soft);
}

.portal-page-heading {
    max-width: 760px;
    margin-bottom: 1.75rem;
}

.portal-page-heading h1 {
    margin: 0;
    font-family: "Calistoga", Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.06;
}

.portal-page-heading > p:last-child {
    max-width: 650px;
    margin: 0.8rem 0 0;
    color: var(--portal-muted-foreground);
    font-size: var(--ui-text-small, 0.875rem);
    line-height: 1.7;
}

.portal-page-heading-actions {
    display: flex;
    max-width: none;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.portal-page-heading-actions > div:first-child {
    max-width: 760px;
}

.portal-header-actions {
    display: flex;
    gap: 0.6rem;
}

.portal-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.9rem;
}

.portal-metric-card {
    position: relative;
    isolation: isolate;
    min-height: 132px;
    overflow: hidden;
    padding: 1.2rem;
    border: 1px solid var(--portal-border);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--portal-shadow-soft);
}

.portal-metric-card span,
.portal-metric-card strong {
    display: block;
}

.portal-metric-card span {
    color: var(--portal-muted-foreground);
    font-size: var(--ui-text-small, 0.875rem);
}

.portal-metric-card strong {
    margin-top: 1.35rem;
    font-family: "Calistoga", Georgia, serif;
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: -0.035em;
}

.portal-metric-card i {
    position: absolute;
    z-index: -1;
    top: -2.5rem;
    right: -2.5rem;
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 82, 255, 0.12), rgba(0, 82, 255, 0));
}

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

.fic-dashboard-card {
    min-height: 245px;
    padding: 1.5rem;
    border: 1px solid #cbdaf8;
    border-radius: 22px;
    background: linear-gradient(145deg, #f8fbff, #edf4ff);
    color: var(--portal-foreground);
    text-decoration: none;
    box-shadow: var(--portal-shadow-soft);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.fic-dashboard-card.is-hosts { background: linear-gradient(145deg, #fbfffd, #edf9f3); border-color: #c9e8d6; }
.fic-dashboard-card:hover { color: var(--portal-foreground); transform: translateY(-3px); box-shadow: 0 18px 35px rgba(15, 23, 42, 0.1); }
.fic-dashboard-card > span { color: var(--portal-muted-foreground); font-size: var(--ui-text-small, 0.875rem); font-weight: 700; text-transform: none; letter-spacing: normal; }
.fic-dashboard-card > strong { display: block; margin: 1rem 0 0.4rem; font-family: "Calistoga", Georgia, serif; font-size: 3rem; font-weight: 400; }
.fic-dashboard-card p { max-width: 480px; color: var(--portal-muted-foreground); font-size: var(--ui-text-small, 0.875rem); line-height: 1.65; }
.fic-dashboard-card b { display: block; margin-top: 1.4rem; color: var(--portal-accent); font-size: var(--ui-text-small, 0.875rem); }

.fic-secondary-action { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--portal-border); border-radius: 16px; background: #fff; color: var(--portal-foreground); text-decoration: none; box-shadow: var(--portal-shadow-soft); }
.fic-secondary-action:hover { color: var(--portal-accent); }
.fic-secondary-action small, .fic-secondary-action strong { display: block; }
.fic-secondary-action small { color: var(--portal-muted-foreground); font-size: var(--ui-text-small, 0.875rem); }
.fic-secondary-action strong { margin-top: 0.15rem; font-size: var(--ui-text-small, 0.875rem); }

.assigned-student-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.student-roster-filter { display: grid; grid-template-columns: minmax(260px, 1.5fr) minmax(150px, 0.6fr) minmax(160px, 0.6fr) auto auto; align-items: end; gap: 0.7rem; margin-bottom: 1rem; padding: 0.9rem; border: 1px solid var(--portal-border); border-radius: 16px; background: #fff; box-shadow: var(--portal-shadow-soft); }
.student-roster-filter label > span { display: block; margin-bottom: 0.35rem; color: var(--portal-muted-foreground); font-size: var(--ui-text-small, 0.875rem); font-weight: 650; }
.student-roster-filter .portal-secondary-button { white-space: nowrap; }
.roster-result-count { align-self: center; min-width: 62px; margin: 0; color: var(--portal-muted-foreground); font-size: var(--ui-text-small, 0.875rem); text-align: right; }
.roster-result-count strong { color: var(--portal-foreground); font-size: var(--ui-text-small, 0.875rem); }
.assigned-student-card { display: block; position: relative; padding: 1.2rem; overflow: hidden; border: 1px solid #dbe3ec; border-top: 4px solid #94a3b8; border-radius: 18px; background: #fff; color: var(--portal-foreground); text-decoration: none; box-shadow: var(--portal-shadow-soft); }
[data-student-card][hidden], [data-student-program-group][hidden] { display: none !important; }
.assigned-student-card.is-active { border-color: #b7e4c9; border-top-color: #16a34a; background: linear-gradient(180deg, #f4fff8, #fff 38%); }
.assigned-student-card.has-alert { border-top-color: #dc2626; background: linear-gradient(180deg, #fff5f5, #fff 38%); }
.assigned-student-card:hover { color: var(--portal-foreground); transform: translateY(-2px); }
.assigned-student-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.assigned-avatar { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: #e8efff; color: var(--portal-accent); font-size: var(--ui-text-small, 0.875rem); font-weight: 750; }
.assigned-student-card h2 { margin: 1rem 0 0.2rem; font-size: 1rem; }
.assigned-student-card > p { color: var(--portal-muted-foreground); font-size: var(--ui-text-small, 0.875rem); }
.assigned-student-card dl { display: grid; gap: 0.5rem; margin: 1rem 0; }
.assigned-student-card dl div { display: flex; justify-content: space-between; gap: 0.7rem; font-size: var(--ui-text-small, 0.875rem); }
.assigned-student-card dt { color: var(--portal-muted-foreground); font-weight: 500; }
.assigned-student-card dd { margin: 0; font-weight: 650; text-align: right; }
.assigned-student-card > b { display: block; margin-top: 1rem; color: var(--portal-accent); font-size: var(--ui-text-small, 0.875rem); }
.student-card-alert { display: block; margin-top: 0.45rem; padding: 0.4rem 0.55rem; border-radius: 8px; background: #fee2e2; color: #991b1b; font-size: var(--ui-text-small, 0.875rem); font-weight: 700; }

.placement-host-list { display: grid; gap: 1.1rem; }
.placement-summary-row { display: grid; grid-template-columns: minmax(210px, 0.45fr) minmax(0, 1fr); gap: 0.9rem; margin-bottom: 1rem; }
.placement-count-card, .placement-subtle-alert { padding: 1rem 1.1rem; border: 1px solid #f0dfb6; border-radius: 16px; background: #fffaf0; }
.placement-count-card span, .placement-count-card strong, .placement-count-card small { display: block; }
.placement-count-card span { color: #785d22; font-size: var(--ui-text-small, 0.875rem); font-weight: 700; text-transform: none; }
.placement-count-card strong { margin: 0.3rem 0; color: #92400e; font-family: "Calistoga", Georgia, serif; font-size: 2.2rem; font-weight: 400; }
.placement-count-card small { color: #8a6d35; font-size: var(--ui-text-small, 0.875rem); }
.placement-subtle-alert strong { color: #7c5d1d; font-size: var(--ui-text-small, 0.875rem); }
.placement-subtle-alert p { margin: 0.25rem 0 0.6rem; color: #8a6d35; font-size: var(--ui-text-small, 0.875rem); }
.placement-subtle-alert div { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.placement-subtle-alert a { padding: 0.28rem 0.48rem; border-radius: 999px; background: rgba(146, 64, 14, 0.08); color: #7c2d12; font-size: var(--ui-text-small, 0.875rem); text-decoration: none; }
.placement-subtle-alert.is-clear { border-color: #cbe9d7; background: #f3fbf6; }
.placement-subtle-alert.is-clear strong { color: #166534; }
.placement-subtle-alert.is-clear p { color: #47745a; }
.placement-host-card { padding: 1.3rem; border: 1px solid var(--portal-border); border-radius: 20px; background: #fff; box-shadow: var(--portal-shadow-soft); }
.placement-host-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.placement-host-heading h2 { margin: 0.15rem 0; font-size: 1.05rem; }
.placement-host-heading > div > p:last-child { margin: 0; color: var(--portal-muted-foreground); font-size: var(--ui-text-small, 0.875rem); }
.host-student-count { padding: 0.45rem 0.7rem; border-radius: 999px; background: #eaf8f0; color: #166534; font-size: var(--ui-text-small, 0.875rem); font-weight: 700; white-space: nowrap; }
.host-detail-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0.7rem; margin: 1.1rem 0; }
.host-detail-grid > div { padding: 0.8rem; border-radius: 12px; background: #f8fafc; }
.host-detail-grid span, .host-detail-grid strong, .host-detail-grid small, .host-detail-grid a { display: block; }
.host-detail-grid span { color: var(--portal-muted-foreground); font-size: var(--ui-text-small, 0.875rem); text-transform: none; }
.host-detail-grid strong { margin-top: 0.3rem; font-size: var(--ui-text-small, 0.875rem); line-height: 1.5; }
.host-detail-grid small, .host-detail-grid a { margin-top: 0.25rem; font-size: var(--ui-text-small, 0.875rem); }
.host-student-list { border-top: 1px solid var(--portal-border); }
.host-student-list > a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid #eef2f6; color: var(--portal-foreground); text-decoration: none; }
.host-student-list strong, .host-student-list small { display: block; }
.host-student-list strong { font-size: var(--ui-text-small, 0.875rem); }
.host-student-list small { margin-top: 0.18rem; color: var(--portal-muted-foreground); font-size: var(--ui-text-small, 0.875rem); }

.student-profile-hero { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.25rem; padding: 1.25rem; border: 1px solid var(--portal-border); border-radius: 20px; background: linear-gradient(135deg, #f8fbff, #fff); box-shadow: var(--portal-shadow-soft); }
.student-profile-hero h1 { margin: 0; font-family: "Calistoga", Georgia, serif; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 400; }
.student-profile-hero > div:last-child > p { margin: 0.35rem 0 0; color: #475569; font-size: var(--ui-text-small, 0.875rem); }
.student-photo-placeholder { display: grid; flex: 0 0 auto; width: 128px; height: 148px; place-items: center; align-content: center; gap: 0.55rem; border: 1px dashed #9fb3cf; border-radius: 16px; background: #edf3fb; color: #36567e; }
.student-photo-placeholder span { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 50%; background: #dce8f8; font-size: 1.2rem; font-weight: 750; }
.student-photo-placeholder small { font-size: var(--ui-text-small, 0.875rem); }
.profile-hero-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
.profile-hero-badges span { padding: 0.32rem 0.5rem; border-radius: 999px; background: #e8efff; color: #214c85; font-size: var(--ui-text-small, 0.875rem); font-weight: 700; }
.profile-hours-card { display: grid; grid-template-columns: minmax(200px, 0.4fr) minmax(0, 1fr); align-items: center; gap: 1.2rem; padding: 1.15rem 1.25rem; border: 1px solid #cce4d5; border-radius: 17px; background: #f5fcf7; }
.profile-hours-card > div:first-child > span { color: #3f6f52; font-size: var(--ui-text-small, 0.875rem); font-weight: 700; text-transform: none; }
.profile-hours-card h2 { margin: 0.2rem 0; color: #163d25; font-size: 1.45rem; }
.profile-hours-card h2 small { color: #5d7866; font-size: var(--ui-text-small, 0.875rem); font-weight: 500; }
.profile-hours-card p { margin: 0; color: #52705c; font-size: var(--ui-text-small, 0.875rem); }
.profile-hours-progress { height: 14px; overflow: hidden; border-radius: 999px; background: #dcebe1; box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08); }
.profile-hours-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #16a34a, #4ade80); }
.student-profile-view .placement-detail-grid > div { border-color: #e2e8f0; background: #f8fafc; color: #172033; }
.student-profile-view .placement-detail-grid dt { color: #526176; font-weight: 700; }
.student-profile-view .placement-detail-grid dd { color: #111827; }
.student-profile-view .active-session-meta div { border-color: #dbe5f0; background: #f5f8fc; }
.student-profile-view .active-session-meta span { color: #526176; font-weight: 700; }
.student-profile-view .active-session-meta strong { color: #111827; }
.student-profile-view .section-heading-row h2 { color: #111827; }
.student-profile-view .section-heading-row p { color: #5b6879; }
.student-profile-view table th { color: #455468; }
.student-profile-view table td { color: #172033; }
.profile-overview-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.7fr); gap: 1rem; align-items: start; }
.profile-overview-grid > .student-content-section { margin: 0; }
.profile-status-column { display: grid; gap: 1rem; }
.profile-assignment-card { padding: 1.1rem; border: 1px solid #dbe5f0; border-radius: 18px; background: #fff; box-shadow: var(--portal-shadow-soft); }
.profile-assignment-card.is-fic { border-color: #cce4d5; background: linear-gradient(145deg, #f4fbf6, #fff); }
.profile-assignment-card h2 { margin: 0.25rem 0 0.9rem; color: #172033; font-size: 1.05rem; }
.profile-assignment-card dl { display: grid; gap: 0.7rem; margin: 0; }
.profile-assignment-card dl div { display: grid; gap: 0.15rem; }
.profile-assignment-card dt { color: #64748b; font-size: var(--ui-text-small, 0.875rem); font-weight: 700; text-transform: none; letter-spacing: normal; }
.profile-assignment-card dd { margin: 0; color: #172033; font-size: var(--ui-text-small, 0.875rem); font-weight: 600; }

.task-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 0.85rem; }
.task-summary-grid button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 0.8rem; padding: 0.95rem 1rem; border: 1px solid var(--portal-border); border-radius: 15px; background: #fff; color: var(--portal-foreground); text-align: left; box-shadow: var(--portal-shadow-soft); }
.task-summary-grid button:hover { border-color: rgba(0, 82, 255, 0.28); }
.task-summary-grid button[aria-pressed="true"] { border-color: rgba(0, 82, 255, 0.38); background: #eef5ff; color: #174b9b; }
.task-summary-grid span { align-self: center; font-size: var(--ui-text-small, 0.875rem); font-weight: 700; }
.task-summary-grid strong { grid-row: 1 / 3; grid-column: 2; align-self: center; font-family: "Calistoga", Georgia, serif; font-size: 1.75rem; font-weight: 400; }
.task-summary-grid small { color: var(--portal-muted-foreground); font-size: var(--ui-text-small, 0.875rem); }
.task-filter-bar { display: grid; grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(130px, 0.35fr)) auto auto; align-items: end; gap: 0.65rem; margin-bottom: 1rem; padding: 0.85rem; border: 1px solid var(--portal-border); border-radius: 15px; background: #fff; box-shadow: var(--portal-shadow-soft); }
.task-filter-bar.is-student { grid-template-columns: minmax(240px, 1fr) minmax(150px, 0.35fr) auto auto; }
.task-filter-bar label > span { display: block; margin-bottom: 0.35rem; color: var(--portal-muted-foreground); font-size: var(--ui-text-small, 0.875rem); font-weight: 650; }
.task-filter-bar p { align-self: center; margin: 0; color: var(--portal-muted-foreground); font-size: var(--ui-text-small, 0.875rem); white-space: nowrap; }
.task-filter-bar p strong { color: var(--portal-foreground); font-size: var(--ui-text-small, 0.875rem); }
.task-filter-bar .portal-secondary-button { min-height: 40px; padding-block: 0.55rem; }
.task-workspace-list { display: grid; gap: 0.75rem; }
[data-task-card][hidden], [data-task-program-section][hidden] { display: none !important; }
.student-task-card { overflow: hidden; border: 1px solid #dbe5f0; border-left: 4px solid #2563eb; border-radius: 16px; background: #fff; box-shadow: var(--portal-shadow-soft); }
.student-task-card.is-returned, .student-task-card.is-overdue { border-left-color: #dc2626; }
.student-task-card > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1rem 1.1rem; cursor: pointer; list-style: none; }
.student-task-card > summary::-webkit-details-marker, .task-create-panel > summary::-webkit-details-marker, .task-management-card > summary::-webkit-details-marker { display: none; }
.student-task-card[open] > summary { border-bottom: 1px solid #e7ecf2; background: #f9fbfd; }
.student-task-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; color: var(--portal-muted-foreground); font-size: var(--ui-text-small, 0.875rem); font-weight: 700; text-transform: none; }
.student-task-meta b { color: #b91c1c; }
.student-task-summary-copy h2 { margin: 0.35rem 0 0.18rem; font-size: 0.92rem; }
.student-task-summary-copy p { margin: 0; color: var(--portal-muted-foreground); font-size: var(--ui-text-small, 0.875rem); }
.student-task-summary-state { display: grid; justify-items: end; gap: 0.45rem; }
.student-task-summary-state small { color: #526176; font-size: var(--ui-text-small, 0.875rem); white-space: nowrap; }
.student-task-body { display: grid; gap: 0.8rem; padding: 1rem 1.1rem 1.1rem; }
.task-instruction-block { padding: 0.85rem; border: 1px solid #e6ebf1; border-radius: 12px; background: #f9fbfd; }
.task-instruction-block > span { color: var(--portal-muted-foreground); font-size: var(--ui-text-small, 0.875rem); font-weight: 700; text-transform: none; }
.task-instruction-block p { margin: 0.3rem 0 0; color: #334155; font-size: var(--ui-text-small, 0.875rem); line-height: 1.55; }
.task-submission-panel { display: grid; grid-template-columns: minmax(170px, 0.35fr) minmax(0, 1fr); gap: 1rem; padding-top: 0.9rem; border-top: 1px solid #e7ecf2; }
.task-submission-panel h3 { margin: 0; font-size: var(--ui-text-small, 0.875rem); }
.task-submission-panel > div > p { margin: 0.3rem 0 0; color: var(--portal-muted-foreground); font-size: var(--ui-text-small, 0.875rem); line-height: 1.5; }
.task-submission-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem; border-radius: 12px; background: #f1f5f9; }
.task-submission-summary small, .task-submission-summary strong { display: block; }
.task-submission-summary small { color: var(--portal-muted-foreground); font-size: var(--ui-text-small, 0.875rem); }
.task-submission-summary strong { margin-top: 0.15rem; font-size: var(--ui-text-small, 0.875rem); }
.task-evidence-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0.65rem; padding: 0.85rem; border: 1px dashed #b8c5d4; border-radius: 12px; }
.task-evidence-panel label > span { display: block; margin-bottom: 0.35rem; color: var(--portal-muted-foreground); font-size: var(--ui-text-small, 0.875rem); font-weight: 700; }
.task-create-panel { margin-bottom: 1rem; overflow: hidden; border: 1px solid #cbdaf8; border-radius: 16px; background: #fff; box-shadow: var(--portal-shadow-soft); }
.task-create-panel > summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; cursor: pointer; list-style: none; background: linear-gradient(145deg, #f8fbff, #edf4ff); }
.task-create-panel > summary span { font-size: var(--ui-text-small, 0.875rem); font-weight: 750; }
.task-create-panel > summary small { color: #526176; font-size: var(--ui-text-small, 0.875rem); text-align: right; }
.task-create-panel[open] > summary { border-bottom: 1px solid #dbe5f0; }
.task-create-body { padding: 1rem; }
.task-assign-all { display: flex; align-items: flex-start; gap: 0.55rem; margin-bottom: 0.25rem; }
.task-assign-all span, .task-assign-all strong, .task-assign-all small { display: block; }
.task-assign-all strong { color: #26374f; font-size: var(--ui-text-small, 0.875rem); }
.task-assign-all small { margin-top: 0.15rem; color: var(--portal-muted-foreground); font-size: var(--ui-text-small, 0.875rem); }
.task-student-picker { display: grid; gap: 0.8rem; }
.task-student-picker fieldset { padding: 0.9rem; border: 1px solid #dbe5f0; border-radius: 14px; }
.task-student-picker legend { float: none; width: auto; margin: 0 0 0.7rem; padding: 0; color: #20314b; font-size: var(--ui-text-small, 0.875rem); font-weight: 700; }
.task-student-picker fieldset > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.55rem; }
.task-student-picker .form-check { display: flex; align-items: flex-start; gap: 0.45rem; padding: 0.6rem 0.6rem 0.6rem 1.9rem; border-radius: 10px; background: #f8fafc; }
.task-student-picker .form-check span { display: grid; color: #172033; font-size: var(--ui-text-small, 0.875rem); font-weight: 600; }
.task-student-picker .form-check small { color: #64748b; font-size: var(--ui-text-small, 0.875rem); font-weight: 500; }
.task-program-section { margin-top: 1rem; }
.task-management-card { overflow: hidden; border: 1px solid #dbe5f0; border-radius: 14px; background: #fff; }
.task-management-head { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem; cursor: pointer; list-style: none; background: #f8fafc; }
.task-management-head h3 { margin: 0; font-size: 1rem; }
.task-management-head p { margin: 0.3rem 0 0; color: #64748b; font-size: var(--ui-text-small, 0.875rem); }
.task-management-head > small { color: #526176; font-size: var(--ui-text-small, 0.875rem); white-space: nowrap; }
.task-management-meta { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.45rem; }
.task-management-meta span { padding: 0.2rem 0.4rem; border-radius: 999px; background: #e9eff6; color: #526176; font-size: var(--ui-text-small, 0.875rem); font-weight: 700; text-transform: none; }
.task-management-card[open] .task-management-head { border-bottom: 1px solid #dbe5f0; }
.task-management-body { display: grid; gap: 0.7rem; padding: 0.75rem; }
.task-management-body .portal-record-list { padding: 0; }

.review-count-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin-bottom: 1rem; }
.review-count-grid a { padding: 0.9rem 1rem; border: 1px solid var(--portal-border); border-radius: 14px; background: #fff; color: var(--portal-foreground); text-decoration: none; box-shadow: var(--portal-shadow-soft); }
.review-count-grid span, .review-count-grid strong { display: block; }
.review-count-grid span { color: #5b6879; font-size: var(--ui-text-small, 0.875rem); }
.review-count-grid strong { margin-top: 0.3rem; font-family: "Calistoga", Georgia, serif; font-size: 1.6rem; font-weight: 400; }
.workflow-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin-bottom: 0.8rem; }
.workflow-summary-grid a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 0.8rem; padding: 1rem; border: 1px solid var(--portal-border); border-radius: 16px; background: #fff; color: var(--portal-foreground); text-decoration: none; box-shadow: var(--portal-shadow-soft); }
.workflow-summary-grid span { align-self: center; font-size: var(--ui-text-small, 0.875rem); font-weight: 700; }
.workflow-summary-grid strong { grid-row: 1 / 3; grid-column: 2; align-self: center; font-family: "Calistoga", Georgia, serif; font-size: 1.8rem; font-weight: 400; }
.workflow-summary-grid small { color: var(--portal-muted-foreground); font-size: var(--ui-text-small, 0.875rem); }
.workflow-jump-nav { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; padding: 0.45rem; border: 1px solid var(--portal-border); border-radius: 13px; background: #f7f9fc; }
.workflow-jump-nav a { padding: 0.52rem 0.72rem; border-radius: 9px; color: #526173; font-size: var(--ui-text-small, 0.875rem); font-weight: 650; text-decoration: none; }
.workflow-jump-nav a:hover { background: #fff; color: var(--portal-accent); }
.workflow-queue { scroll-margin-top: 1rem; }
.workflow-request-list { display: grid; gap: 0.75rem; }
.workflow-request-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr); gap: 1rem; padding: 1rem; border: 1px solid #dce4ed; border-radius: 14px; background: #fff; }
.workflow-request-card.is-host-change { border-left: 4px solid #d97706; background: linear-gradient(90deg, #fffbeb 0, #fff 18%); }
.workflow-request-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.workflow-request-meta span { padding: 0.22rem 0.45rem; border-radius: 999px; background: #eef3f8; color: #526173; font-size: var(--ui-text-small, 0.875rem); font-weight: 700; text-transform: none; }
.workflow-request-copy h3 { margin: 0.6rem 0 0.2rem; font-size: 0.92rem; }
.workflow-request-copy > p { margin: 0; color: #526173; font-size: var(--ui-text-small, 0.875rem); }
.workflow-host-route { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.workflow-host-route span { color: #d97706; }
.workflow-request-copy dl { display: grid; gap: 0.42rem; margin: 0.8rem 0 0; }
.workflow-request-copy dl div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 0.55rem; padding-top: 0.42rem; border-top: 1px solid #edf1f5; font-size: var(--ui-text-small, 0.875rem); }
.workflow-request-copy dt { color: var(--portal-muted-foreground); font-weight: 500; }
.workflow-request-copy dd { margin: 0; color: #334155; font-weight: 600; }
.workflow-decision-controls { display: grid; align-content: center; gap: 0.55rem; padding-left: 1rem; border-left: 1px solid #e6ebf1; }
.workflow-decision-controls label > span { display: block; margin-bottom: 0.3rem; color: var(--portal-muted-foreground); font-size: var(--ui-text-small, 0.875rem); font-weight: 650; }
.workflow-history-panel, .workflow-tool-panel { margin-bottom: 0.75rem; overflow: hidden; border: 1px solid var(--portal-border); border-radius: 14px; background: #fff; box-shadow: var(--portal-shadow-soft); }
.workflow-history-panel > summary, .workflow-tool-panel > summary { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 1rem; cursor: pointer; list-style: none; }
.workflow-history-panel > summary::-webkit-details-marker, .workflow-tool-panel > summary::-webkit-details-marker { display: none; }
.workflow-history-panel > summary span, .workflow-tool-panel > summary span { font-size: var(--ui-text-small, 0.875rem); font-weight: 700; }
.workflow-history-panel > summary small, .workflow-tool-panel > summary small { color: var(--portal-muted-foreground); font-size: var(--ui-text-small, 0.875rem); text-align: right; }
.workflow-history-panel[open] > summary, .workflow-tool-panel[open] > summary { border-bottom: 1px solid var(--portal-border); background: #f8fafc; }
.workflow-history-panel .portal-record-list, .workflow-tool-body { padding: 1rem; }
.workflow-setup-heading { margin: 2rem 0 0.85rem; scroll-margin-top: 1rem; }
.workflow-setup-heading h2 { margin: 0; font-size: 1.15rem; }
.workflow-setup-heading > p:last-child { margin: 0.3rem 0 0; color: var(--portal-muted-foreground); font-size: var(--ui-text-small, 0.875rem); }
.review-action-section { margin-top: 1rem; padding: 1.15rem; border: 1px solid var(--portal-border); border-radius: 18px; background: #fff; box-shadow: var(--portal-shadow-soft); }
.review-action-list { display: grid; gap: 0.7rem; margin-top: 0.9rem; }
.review-action-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 0.9rem; border: 1px solid #e6ebf1; border-radius: 13px; background: #fbfcfe; }
.review-action-card h3 { margin: 0.2rem 0; color: #172033; font-size: var(--ui-text-small, 0.875rem); }
.review-action-card p { margin: 0; color: #5b6879; font-size: var(--ui-text-small, 0.875rem); line-height: 1.55; }
.review-action-card blockquote { margin: 0.55rem 0 0; padding-left: 0.65rem; border-left: 3px solid #cbd5e1; color: #38475a; font-size: var(--ui-text-small, 0.875rem); }
.review-type-label { color: #4b6b96; font-size: var(--ui-text-small, 0.875rem); font-weight: 750; letter-spacing: normal; text-transform: none; }
.review-form-fields { display: grid; grid-template-columns: minmax(180px, 1fr) 120px auto; gap: 0.5rem; min-width: min(100%, 520px); }

@media (max-width: 760px) {
    .fic-dashboard-grid, .host-detail-grid, .placement-summary-row, .profile-hours-card, .review-count-grid, .profile-overview-grid, .task-summary-grid, .workflow-summary-grid { grid-template-columns: 1fr; }
    .task-filter-bar, .task-filter-bar.is-student, .task-submission-panel { grid-template-columns: 1fr; }
    .task-filter-bar p { white-space: normal; }
    .student-task-card > summary { grid-template-columns: 1fr; }
    .student-task-summary-state { justify-items: start; }
    .student-task-summary-state small { white-space: normal; }
    .task-evidence-panel { grid-template-columns: 1fr; }
    .workflow-request-card { grid-template-columns: 1fr; }
    .workflow-decision-controls { padding-top: 0.85rem; padding-left: 0; border-top: 1px solid #e6ebf1; border-left: 0; }
    .placement-host-heading { display: block; }
    .host-student-count { display: inline-block; margin-top: 0.7rem; }
    .student-profile-hero { align-items: flex-start; }
    .student-photo-placeholder { width: 96px; height: 116px; }
    .review-action-card, .review-form-fields { grid-template-columns: 1fr; min-width: 0; }
}

.portal-scope-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
}

.portal-scope-grid > div {
    padding: 0.85rem;
    border-radius: 12px;
    background: #f8fafc;
}

.portal-scope-grid span,
.portal-scope-grid strong {
    display: block;
}

.portal-scope-grid span {
    color: var(--portal-muted-foreground);
    font-size: var(--ui-text-small, 0.875rem);
    text-transform: none;
}

.portal-scope-grid strong {
    margin-top: 0.28rem;
    font-size: var(--ui-text-small, 0.875rem);
}

.portal-notification-list {
    display: grid;
}

.portal-notification-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.8rem;
    padding: 1rem 0;
    border-top: 1px solid #edf1f6;
}

.portal-notification-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.portal-notification-item > i {
    width: 9px;
    height: 9px;
    margin-top: 0.3rem;
    border-radius: 50%;
    background: #cbd5e1;
}

.portal-notification-item.is-unread > i {
    background: var(--portal-accent);
    box-shadow: 0 0 0 5px rgba(0, 82, 255, 0.08);
}

.portal-notification-item strong {
    font-size: var(--ui-text-small, 0.875rem);
}

.portal-notification-item p {
    margin: 0.25rem 0 0;
    color: var(--portal-muted-foreground);
    font-size: var(--ui-text-small, 0.875rem);
}

.portal-notification-item time {
    color: #94a3b8;
    font-size: var(--ui-text-small, 0.875rem);
}

.portal-filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 0.7rem;
    margin-bottom: 1.25rem;
    padding: 0.9rem;
    border: 1px solid var(--portal-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--portal-shadow-soft);
}

.portal-filter-bar label span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--portal-muted-foreground);
    font-size: var(--ui-text-small, 0.875rem);
    font-weight: 650;
}

.student-main .form-label {
    margin-bottom: 0.4rem;
    color: #475569;
    font-size: var(--ui-text-small, 0.875rem);
    font-weight: 650;
}

.student-main .form-text {
    color: var(--portal-muted-foreground);
    font-size: var(--ui-text-small, 0.875rem);
}

.portal-record-list {
    display: grid;
}

.portal-record-row,
.portal-review-row {
    display: grid;
    align-items: center;
    gap: 0.8rem;
    padding: 0.95rem 0;
    border-top: 1px solid #edf1f6;
}

.portal-record-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.portal-review-row {
    grid-template-columns: minmax(220px, 1fr) auto minmax(145px, 0.5fr) minmax(115px, auto) auto;
}

.portal-record-row:first-child,
.portal-review-row:first-child {
    padding-top: 0;
    border-top: 0;
}

.portal-record-row > div strong,
.portal-record-row > div span,
.portal-review-row > div strong,
.portal-review-row > div span {
    display: block;
}

.portal-record-row > div strong,
.portal-review-row > div strong {
    font-size: var(--ui-text-small, 0.875rem);
}

.portal-record-row > div span,
.portal-review-row > div span {
    margin-top: 0.25rem;
    color: var(--portal-muted-foreground);
    font-size: var(--ui-text-small, 0.875rem);
    line-height: 1.5;
}

.portal-record-row form {
    margin: 0;
}

.portal-record-row .portal-secondary-button,
.portal-review-row .portal-primary-button {
    min-height: 40px;
    padding-block: 0.55rem;
}

.placement-detail-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(1.4rem, 4vw, 2.2rem);
    border-radius: 22px;
    background:
        radial-gradient(circle at 95% 0, rgba(77, 124, 255, 0.34), transparent 19rem),
        #0f172a;
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.18);
    color: #fff;
}

.placement-detail-hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
    background-size: 26px 26px;
    content: "";
    mask-image: linear-gradient(90deg, transparent 25%, #000);
    opacity: 0.32;
}

.placement-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.placement-detail-head h2 {
    margin: 0;
    font-family: "Calistoga", Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 400;
}

.placement-detail-head > div > p:last-child {
    margin: 0.35rem 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: var(--ui-text-small, 0.875rem);
}
.placement-detail-hero .portal-status-badge {
    border: 1px solid rgba(147, 197, 253, 0.25);
    background: rgba(59, 130, 246, 0.13);
    color: #bfdbfe;
}

.placement-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 2rem 0 0;
}

.placement-detail-grid > div {
    padding: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.055);
}

.placement-detail-grid .is-wide {
    grid-column: 1 / -1;
}

.placement-detail-grid dt {
    color: rgba(255, 255, 255, 0.43);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: var(--ui-text-small, 0.875rem);
    font-weight: 500;
    letter-spacing: normal;
    text-transform: none;
}

.placement-detail-grid dd {
    margin: 0.35rem 0 0;
    font-size: var(--ui-text-small, 0.875rem);
    font-weight: 600;
    line-height: 1.55;
}

.exceptional-request-section {
    border-color: #dbe4f0;
}

.portal-request-disclosure {
    border: 1px solid var(--portal-border);
    border-radius: 14px;
    background: #fbfcfe;
}

.portal-request-disclosure summary {
    padding: 1rem;
    color: var(--portal-foreground);
    cursor: pointer;
    font-size: var(--ui-text-small, 0.875rem);
    font-weight: 700;
}

.portal-request-disclosure form {
    margin: 0;
    padding: 0 1rem 1rem;
    border-top: 1px solid #edf1f6;
}

.portal-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 1rem;
    border: 1px solid #bfdbfe;
    border-radius: 13px;
    background: #eff6ff;
    color: #1e40af;
}

.portal-notice strong,
.portal-notice span {
    display: block;
}

.portal-notice strong {
    font-size: var(--ui-text-small, 0.875rem);
}

.portal-notice span {
    margin-top: 0.2rem;
    color: #3b5b9a;
    font-size: var(--ui-text-small, 0.875rem);
    line-height: 1.5;
}

.section-heading-row {
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-heading-row h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-heading-row p,
.section-heading-row span {
    margin: 0;
    color: var(--portal-muted-foreground);
    font-size: var(--ui-text-small, 0.875rem);
}

.student-task-list,
.student-accomplishment-list,
.student-exception-list {
    display: grid;
    gap: 0.75rem;
}

.task-meta {
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.portal-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--portal-accent);
    font-size: var(--ui-text-small, 0.875rem);
    font-weight: 700;
    text-transform: capitalize;
}

.student-task-form {
    display: grid;
    gap: 0.65rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e9edf3;
}

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

.student-task-form .form-control,
.student-exception-form .form-control,
.student-exception-form .form-select,
.evidence-form .form-control {
    min-height: 44px;
    border-color: var(--portal-border);
    border-radius: 11px;
    background: #fff;
    font-size: var(--ui-text-small, 0.875rem);
}

.student-task-form textarea,
.student-exception-form textarea {
    min-height: 90px;
}

.student-empty-state {
    padding: 1.8rem 1rem;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    color: var(--portal-muted-foreground);
    font-size: var(--ui-text-small, 0.875rem);
    text-align: center;
}

.accomplishment-row {
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    border-top: 1px solid #edf1f6;
}

.accomplishment-row:first-child {
    padding-top: 0;
    border-top: 0;
}

.accomplishment-row h3 {
    margin: 0;
    font-size: var(--ui-text-small, 0.875rem);
}

.accomplishment-row p {
    margin: 0.25rem 0 0;
    color: var(--portal-muted-foreground);
    font-size: var(--ui-text-small, 0.875rem);
}

.evidence-form {
    display: flex;
    min-width: min(100%, 270px);
    gap: 0.5rem;
}

.student-exception-form {
    display: grid;
    gap: 0.7rem;
}

.exception-history-item {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
    background: var(--portal-muted);
    font-size: var(--ui-text-small, 0.875rem);
}

.home-action-list {
    display: grid;
    gap: 0.65rem;
}

.home-action-item {
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px solid #e5eaf0;
    border-radius: 13px;
    background: #f9fbfd;
    color: var(--portal-foreground);
    text-decoration: none;
    transition: border-color 160ms ease, transform 160ms ease;
}

.home-action-item:hover {
    border-color: rgba(0, 82, 255, 0.28);
    color: var(--portal-foreground);
    transform: translateY(-1px);
}

.home-action-item > i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.09);
}

.home-action-item.is-urgent > i { background: #dc2626; box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.09); }
.home-action-item.is-placement > i { background: #d97706; box-shadow: 0 0 0 5px rgba(217, 119, 6, 0.09); }
.home-action-item.is-evaluation > i { background: #7c3aed; box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.09); }
.home-action-item span, .home-action-item small, .home-action-item strong, .home-action-item em { display: block; min-width: 0; }
.home-action-item small { color: var(--portal-muted-foreground); font-size: var(--ui-text-small, 0.875rem); font-weight: 700; text-transform: none; }
.home-action-item strong { margin-top: 0.18rem; font-size: var(--ui-text-small, 0.875rem); }
.home-action-item em { margin-top: 0.18rem; color: var(--portal-muted-foreground); font-size: var(--ui-text-small, 0.875rem); font-style: normal; line-height: 1.45; }
.home-action-item > b { color: #526173; font-size: var(--ui-text-small, 0.875rem); font-weight: 650; white-space: nowrap; }

.home-clear-state {
    display: grid;
    gap: 0.2rem;
    padding: 1rem;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: var(--portal-muted-foreground);
    font-size: var(--ui-text-small, 0.875rem);
    text-align: center;
}

.home-clear-state strong { color: #334155; font-size: var(--ui-text-small, 0.875rem); }

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

.home-attendance-day {
    padding: 0.85rem;
    border: 1px solid #e5eaf0;
    border-radius: 12px;
    background: #f9fbfd;
}

.home-attendance-day span, .home-attendance-day strong, .home-attendance-day small { display: block; }
.home-attendance-day span { color: var(--portal-muted-foreground); font-size: var(--ui-text-small, 0.875rem); }
.home-attendance-day strong { margin: 0.45rem 0 0.2rem; font-size: var(--ui-text-small, 0.875rem); }
.home-attendance-day small { color: #15803d; font-size: var(--ui-text-small, 0.875rem); font-weight: 700; }
.home-attendance-day.is-refuted { border-color: #fecaca; background: #fff7f7; }
.home-attendance-day.is-refuted small { color: #b91c1c; }
.home-attendance-grid > .home-clear-state { grid-column: 1 / -1; }

.home-attendance-issue {
    margin-top: 1.25rem;
    background: #fff;
    box-shadow: var(--portal-shadow-soft);
}

.home-attendance-issue-body > p {
    margin: 0;
    padding: 0 1rem 0.85rem;
    color: var(--portal-muted-foreground);
    font-size: var(--ui-text-small, 0.875rem);
}

@keyframes portal-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.7; }
}

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

@media (min-width: 992px) {
    .student-app-shell {
        display: grid;
        grid-template-columns: 248px minmax(0, 1fr);
    }

    .student-sidebar {
        position: sticky !important;
        top: 0;
        width: auto !important;
        height: 100vh;
        visibility: visible !important;
        transform: none !important;
    }

    .student-mobile-header {
        display: none;
    }

    .student-stage {
        padding: 2rem clamp(1.5rem, 3vw, 3.25rem) 3rem;
    }

    .student-desktop-tools {
        display: flex;
    }
}

@media (min-width: 1200px) {
    .student-stage.has-status {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: clamp(1.5rem, 3vw, 3rem);
    }

    .student-status-rail {
        position: sticky;
        top: 2rem;
        margin-top: 0;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .portal-review-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .portal-review-row > .form-control {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1450px) {
    .student-app-shell {
        grid-template-columns: 270px minmax(0, 1fr);
    }

    .student-stage.has-status {
        grid-template-columns: minmax(0, 860px) 320px;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .student-stage {
        padding: 1.1rem 0.85rem 2.5rem;
    }

    .student-page-intro {
        display: block;
    }

    .student-page-intro > p {
        margin-top: 0.85rem;
    }

    .attendance-topline,
    .attendance-actions,
    .accomplishment-row {
        align-items: stretch;
        flex-direction: column;
    }

    .attendance-topline {
        margin-bottom: 2.5rem;
    }

    .attendance-date {
        order: -1;
    }

    .home-action-item {
        grid-template-columns: 9px minmax(0, 1fr);
    }

    .home-action-item > b {
        grid-column: 2;
        white-space: normal;
    }

    .home-attendance-grid {
        grid-template-columns: 1fr;
    }

    .portal-primary-button,
    .portal-danger-button,
    .portal-secondary-button,
    .clockout-form,
    .evidence-form {
        width: 100%;
    }

    .evidence-form {
        flex-direction: column;
    }

    .portal-record-row,
    .portal-review-row,
    .placement-detail-grid {
        grid-template-columns: 1fr;
    }

    .portal-review-row {
        padding-block: 1rem;
    }

    .placement-detail-grid .is-wide {
        grid-column: auto;
    }

    .placement-detail-head {
        flex-direction: column;
    }

    .portal-page-heading-actions,
    .portal-header-actions,
    .portal-filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .portal-header-actions > *,
    .portal-filter-bar > * {
        width: 100%;
    }

    .student-roster-filter {
        grid-template-columns: 1fr;
    }

    .roster-result-count {
        text-align: left;
    }

    .portal-notification-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .portal-notification-item time {
        grid-column: 2;
    }
}

.tool-page-section {
    margin-bottom: 0.9rem;
}

.tool-page-form {
    padding: 1rem;
    border-top: 1px solid var(--portal-border);
    background: #fbfcfe;
}

.tool-page-records {
    border-top: 1px solid var(--portal-border);
}

.evaluation-cycle-form.is-tool-page {
    border-top: 1px solid var(--portal-border);
}

.account-context-banner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 0.9rem;
    overflow: hidden;
    border: 1px solid rgba(23, 75, 155, 0.2);
    border-radius: 16px;
    background: rgba(23, 75, 155, 0.14);
}

.account-context-banner > div {
    display: grid;
    gap: 0.18rem;
    padding: 0.95rem 1rem;
    background: #f5f8ff;
}

.account-context-banner span,
.account-create-section label > span,
.account-locked-scope > span {
    color: var(--portal-muted-foreground);
    font-size: var(--ui-text-small, 0.875rem);
    font-weight: 750;
    letter-spacing: normal;
    text-transform: none;
}

.account-context-banner strong,
.account-locked-scope strong {
    color: var(--portal-foreground);
    font-size: var(--ui-text-small, 0.875rem);
}

.account-context-banner small,
.account-create-section label > small,
.account-locked-scope small {
    color: var(--portal-muted-foreground);
    font-size: var(--ui-text-small, 0.875rem);
}

.account-create-workflow {
    display: grid;
    gap: 0.8rem;
}

.account-create-section {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0.85rem;
    padding: 1.1rem;
    border: 1px solid var(--portal-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--portal-shadow-soft);
}

.account-create-section[hidden],
.account-create-section [hidden],
.account-create-actions[hidden] {
    display: none !important;
}

.account-step-number {
    display: grid;
    place-items: center;
    align-self: start;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eaf1ff;
    color: #174b9b;
    font-size: var(--ui-text-small, 0.875rem);
    font-weight: 800;
}

.account-step-content,
.account-step-content > [data-account-fields] {
    display: grid;
    gap: 0.85rem;
    min-width: 0;
}

.account-step-heading h2 {
    margin: 0;
    font-family: "Calistoga", Georgia, serif;
    font-size: 1rem;
    font-weight: 400;
}

.account-step-heading p {
    margin: 0.18rem 0 0;
    color: var(--portal-muted-foreground);
    font-size: var(--ui-text-small, 0.875rem);
}

.account-step-content > label,
.account-field-grid label {
    display: grid;
    gap: 0.34rem;
}

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

.account-field-grid .is-wide {
    grid-column: 1 / -1;
}

.account-rule-note,
.account-locked-scope {
    display: grid;
    gap: 0.22rem;
    margin: 0;
    padding: 0.8rem 0.9rem;
    border: 1px solid #dfe7f2;
    border-radius: 12px;
    background: #f7f9fc;
    color: #526176;
    font-size: var(--ui-text-small, 0.875rem);
}

.account-rule-note strong {
    color: var(--portal-foreground);
}

.account-create-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    padding-top: 0.15rem;
}

.placement-host-actions,
.workflow-record-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.placement-host-actions .portal-secondary-button,
.workflow-record-actions .portal-secondary-button {
    padding: 0.48rem 0.65rem;
    font-size: var(--ui-text-small, 0.875rem);
}

@media (max-width: 680px) {
    .account-context-banner,
    .account-field-grid {
        grid-template-columns: 1fr;
    }

    .account-create-section {
        grid-template-columns: 1fr;
    }

    .account-create-actions,
    .placement-host-actions,
    .workflow-record-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .account-create-actions > * {
        width: 100%;
    }
}

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

.evaluation-overview-grid article {
    display: grid;
    gap: 0.18rem;
    min-height: 108px;
    padding: 1rem;
    border: 1px solid var(--portal-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--portal-shadow-soft);
}

.evaluation-overview-grid article.has-attention {
    border-color: rgba(180, 83, 9, 0.3);
    background: #fffbeb;
}

.evaluation-overview-grid span,
.evaluation-cycle-form > label > span,
.evaluation-cycle-form legend,
.evaluation-progress-grid span,
.evaluation-student-row > div > span {
    color: var(--portal-muted-foreground);
    font-size: var(--ui-text-small, 0.875rem);
    font-weight: 750;
    letter-spacing: normal;
    text-transform: none;
}

.evaluation-overview-grid strong {
    align-self: end;
    color: var(--portal-foreground);
    font-family: "Calistoga", Georgia, serif;
    font-size: 1.55rem;
    font-weight: 400;
}

.evaluation-overview-grid small,
.evaluation-cycle-create summary small,
.evaluation-cycle-form small,
.evaluation-program-group summary small,
.evaluation-student-row a small,
.evaluation-student-row > div small {
    color: var(--portal-muted-foreground);
    font-size: var(--ui-text-small, 0.875rem);
}

.evaluation-cycle-create,
.evaluation-cycle-card {
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--portal-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--portal-shadow-soft);
}

.evaluation-cycle-create > summary,
.evaluation-exception-panel > summary,
.evaluation-program-group > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
}

.evaluation-cycle-create > summary::-webkit-details-marker,
.evaluation-exception-panel > summary::-webkit-details-marker,
.evaluation-program-group > summary::-webkit-details-marker,
.evaluation-cycle-create > summary {
    padding: 1rem 1.15rem;
}

.evaluation-cycle-create > summary span,
.evaluation-exception-panel > summary span:first-child,
.evaluation-program-group > summary span:first-child {
    display: grid;
    gap: 0.15rem;
}

.evaluation-cycle-create > summary i {
    color: #174b9b;
    font-size: 1.2rem;
    font-style: normal;
}

.evaluation-cycle-create[open] > summary i {
    transform: rotate(45deg);
}

.evaluation-cycle-form {
    display: grid;
    grid-template-columns: 1.1fr 0.7fr 1.5fr 1fr 1fr;
    gap: 0.9rem;
    padding: 1rem 1.15rem 1.15rem;
    border-top: 1px solid var(--portal-border);
    background: #f8fafc;
}

.evaluation-cycle-form > label,
.evaluation-cycle-form fieldset {
    display: grid;
    align-content: start;
    gap: 0.35rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.evaluation-cycle-form legend {
    margin-bottom: 0.35rem;
}

.evaluation-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.38rem 0;
}

.evaluation-check input {
    margin-top: 0.15rem;
}

.evaluation-check span {
    display: grid;
}

.evaluation-check b {
    color: var(--portal-foreground);
    font-size: var(--ui-text-small, 0.875rem);
}

.evaluation-create-action {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.evaluation-cycle-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem;
}

.evaluation-cycle-head h2 {
    margin: 0.12rem 0 0.25rem;
    font-family: "Calistoga", Georgia, serif;
    font-size: 1.22rem;
    font-weight: 400;
}

.evaluation-cycle-head p {
    margin: 0;
    color: var(--portal-muted-foreground);
    font-size: var(--ui-text-small, 0.875rem);
}

.evaluation-cycle-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.evaluation-progress-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    padding: 0 1.15rem 1.15rem;
}

.evaluation-progress-grid > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.4rem 0.7rem;
    padding: 0.8rem;
    border-radius: 12px;
    background: #f6f8fb;
}

.evaluation-progress-grid strong {
    font-size: var(--ui-text-small, 0.875rem);
}

.evaluation-progress-grid progress {
    grid-column: 1 / -1;
    width: 100%;
    height: 7px;
    overflow: hidden;
    border: 0;
    border-radius: 99px;
    accent-color: #176b4d;
}

.evaluation-exception-panel {
    margin: 0 1.15rem 1rem;
    overflow: hidden;
    border: 1px solid rgba(180, 83, 9, 0.24);
    border-radius: 14px;
    background: #fffbeb;
}

.evaluation-exception-panel > summary {
    padding: 0.85rem 0.95rem;
}

.evaluation-exception-list {
    border-top: 1px solid rgba(180, 83, 9, 0.17);
}

.evaluation-exception-row {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(280px, 1.2fr);
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0.95rem;
    border-top: 1px solid rgba(180, 83, 9, 0.12);
}

.evaluation-exception-row:first-child {
    border-top: 0;
}

.evaluation-exception-row > div {
    display: grid;
}

.evaluation-exception-row > div span,
.evaluation-exception-row p {
    margin: 0;
    color: #78592d;
    font-size: var(--ui-text-small, 0.875rem);
}

.evaluation-exception-student a { width: fit-content; font-weight: 700; }
.evaluation-exception-action { display: grid; gap: 0.4rem; }
.evaluation-exception-action > a { width: fit-content; font-weight: 700; }

.evaluation-exception-row form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 0.55rem;
}
.evaluation-exception-row form p { grid-column: 1 / -1; }

.evaluation-programs {
    border-top: 1px solid var(--portal-border);
}

.evaluation-program-group {
    border-top: 1px solid var(--portal-border);
}

.evaluation-program-group:first-child {
    border-top: 0;
}

.evaluation-program-group > summary {
    padding: 0.85rem 1.15rem;
}

.evaluation-program-group > summary > span:last-child {
    color: #526176;
    font-size: var(--ui-text-small, 0.875rem);
    font-weight: 700;
}

.evaluation-student-list {
    border-top: 1px solid var(--portal-border);
    background: #fbfcfe;
}

.evaluation-student-row {
    display: grid;
    grid-template-columns: minmax(190px, 1.25fr) repeat(2, minmax(130px, 0.8fr)) auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1.15rem;
    border-top: 1px solid #e9edf3;
}

.evaluation-student-row:first-child {
    border-top: 0;
}

.evaluation-student-row.has-attention {
    box-shadow: inset 3px 0 #d97706;
}

.evaluation-student-row > a,
.evaluation-student-row > div {
    display: grid;
    gap: 0.15rem;
    color: inherit;
    text-decoration: none;
}

.evaluation-student-row > a:hover strong {
    color: #174b9b;
}

.evaluation-student-row > a strong {
    font-size: var(--ui-text-small, 0.875rem);
}

.evaluation-state {
    width: fit-content;
    color: #8a5b12;
    font-size: var(--ui-text-small, 0.875rem);
}

.evaluation-state.is-submitted {
    color: #176b4d;
}

.evaluation-state.is-missing {
    color: #a33b32;
}

@media (max-width: 980px) {
    .evaluation-overview-grid,
    .evaluation-cycle-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .evaluation-create-action {
        grid-column: 1 / -1;
    }

    .evaluation-student-row {
        grid-template-columns: minmax(180px, 1.2fr) repeat(2, minmax(120px, 0.8fr));
    }

    }

@media (max-width: 680px) {
    .evaluation-overview-grid,
    .evaluation-cycle-form,
    .evaluation-progress-grid,
    .evaluation-exception-row,
    .evaluation-student-row {
        grid-template-columns: 1fr;
    }

    .evaluation-cycle-head,
    .evaluation-create-action,
    .evaluation-exception-row form {
        align-items: stretch;
        flex-direction: column;
    }

    .evaluation-exception-row form { grid-template-columns: 1fr; }

    .evaluation-cycle-badges {
        justify-content: flex-start;
    }

    }

.host-dashboard-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.host-overview-card,
.host-fic-card {
    position: relative;
    display: flex;
    gap: 1rem;
    padding: 1.15rem;
    border: 1px solid var(--portal-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(27, 47, 75, 0.06);
}

.host-dashboard-icon {
    display: grid;
    flex: 0 0 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    background: #e8f1ff;
    color: #174b9b;
}

.host-dashboard-icon svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.host-overview-copy { min-width: 0; flex: 1; }
.host-overview-copy h2 { margin: 0.15rem 0; color: #172b4d; font-size: 1.12rem; }
.host-overview-copy > span { color: #68778b; font-size: var(--ui-text-small, 0.875rem); }
.host-overview-copy dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; margin: 1rem 0 0; }
.host-overview-copy dt, .host-placement-list dt { color: #8290a2; font-size: var(--ui-text-small, 0.875rem); font-weight: 750; text-transform: none; }
.host-overview-copy dd, .host-placement-list dd { margin: 0.12rem 0 0; color: #3e4d62; font-size: var(--ui-text-small, 0.875rem); }
.host-overview-card > .account-status-pill { position: absolute; top: 1rem; right: 1rem; }
.host-fic-card { display: block; }
.host-fic-list { display: grid; gap: 0.7rem; }
.host-fic-list article { display: flex; gap: 0.7rem; align-items: center; padding: 0.7rem; border-radius: 13px; background: #f7f9fc; }
.host-fic-list article > div { display: grid; min-width: 0; gap: 0.13rem; }
.host-fic-list strong { color: #172b4d; font-size: var(--ui-text-small, 0.875rem); }
.host-fic-list small { color: #6c7a8d; font-size: var(--ui-text-small, 0.875rem); }
.host-fic-list a { overflow: hidden; color: #174b9b; font-size: var(--ui-text-small, 0.875rem); text-overflow: ellipsis; }

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

.host-metric-grid article,
.host-metric-grid > a {
    display: grid;
    gap: 0.2rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--portal-border);
    border-radius: 15px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.host-metric-grid span { color: #68778b; font-size: var(--ui-text-small, 0.875rem); font-weight: 700; }
.host-metric-grid strong { color: #172b4d; font-size: 1.45rem; line-height: 1; }
.host-metric-grid small { color: #7d899a; font-size: var(--ui-text-small, 0.875rem); }
.host-metric-grid .is-live { border-color: #91d7b8; background: #f2fbf6; }
.host-metric-grid .is-live strong { color: #176b4d; }
.host-metric-grid .has-attention { border-color: #ebc572; background: #fffaf0; }
.host-metric-grid .has-attention strong { color: #915f12; }

.host-student-list { display: grid; gap: 0.65rem; }
.host-student-card { display: grid; grid-template-columns: 8px minmax(170px, 1.2fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(115px, 0.6fr); gap: 0.75rem; align-items: center; padding: 0.85rem; border: 1px solid #e5eaf0; border-radius: 14px; background: #fbfcfe; }
.host-duty-indicator { width: 8px; height: 100%; min-height: 42px; border-radius: 999px; background: #cbd4df; }
.host-student-card.is-active { border-color: #9bd9be; background: #f4fcf8; }
.host-student-card.is-active .host-duty-indicator { background: #25a66f; box-shadow: 0 0 0 4px rgba(37, 166, 111, 0.11); }
.host-student-card > div { display: grid; gap: 0.13rem; }
.host-student-card > div > span { color: #8190a2; font-size: var(--ui-text-small, 0.875rem); font-weight: 750; text-transform: none; }
.host-student-card strong { color: #26384f; font-size: var(--ui-text-small, 0.875rem); }
.host-student-card small { color: #6e7d90; font-size: var(--ui-text-small, 0.875rem); }
.host-student-identity strong { font-size: var(--ui-text-small, 0.875rem); }
.host-duty-state { justify-items: start; }
.host-student-card.is-active .host-duty-state strong { padding: 0.25rem 0.48rem; border-radius: 999px; background: #dff5e9; color: #176b4d; }
.host-placement-list { display: grid; gap: 0.7rem; }
.host-placement-list article { display: grid; grid-template-columns: minmax(180px, 0.8fr) 1.4fr; gap: 1rem; padding: 0.9rem; border: 1px solid #e6ebf1; border-radius: 14px; }
.host-placement-list article > div { display: grid; align-content: start; gap: 0.18rem; }
.host-placement-list article > div strong { color: #172b4d; font-size: var(--ui-text-small, 0.875rem); }
.host-placement-list article > div span { color: #68778b; font-size: var(--ui-text-small, 0.875rem); }
.host-placement-list dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin: 0; }

.evaluation-response-card { margin-bottom: 1rem; padding: 1.1rem; border: 1px solid var(--portal-border); border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(27, 47, 75, 0.05); }
.evaluation-response-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; margin-bottom: 1rem; }
.evaluation-response-head h2 { margin: 0.12rem 0 0; color: #172b4d; font-size: 1.05rem; }
.evaluation-rating-list { display: grid; gap: 0.8rem; }
.evaluation-rating-criterion { margin: 0; padding: 0.9rem; border: 1px solid #e4eaf1; border-radius: 14px; }
.evaluation-rating-criterion legend { display: flex; gap: 0.55rem; align-items: center; width: auto; margin: 0 0 0.75rem; color: #26384f; font-size: var(--ui-text-small, 0.875rem); font-weight: 750; }
.evaluation-rating-criterion legend > span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 8px; background: #e8f1ff; color: #174b9b; font-size: var(--ui-text-small, 0.875rem); }
.evaluation-rating-criterion > div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; }
.evaluation-rating-criterion label { position: relative; cursor: pointer; }
.evaluation-rating-criterion input { position: absolute; opacity: 0; pointer-events: none; }
.evaluation-rating-criterion label > span { display: grid; min-height: 62px; place-items: center; align-content: center; gap: 0.15rem; padding: 0.45rem; border: 1px solid #dce3eb; border-radius: 11px; background: #fafbfd; text-align: center; }
.evaluation-rating-criterion label b { color: #31445d; font-size: var(--ui-text-small, 0.875rem); }
.evaluation-rating-criterion label small { color: #718095; font-size: var(--ui-text-small, 0.875rem); line-height: 1.2; }
.evaluation-rating-criterion input:checked + span { border-color: #2874d0; background: #eaf3ff; box-shadow: 0 0 0 2px rgba(40, 116, 208, 0.12); }
.evaluation-rating-criterion input:checked + span b { color: #174b9b; }
.evaluation-rating-criterion input:focus-visible + span { outline: 3px solid rgba(40, 116, 208, 0.22); outline-offset: 2px; }
.evaluation-written-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; margin-top: 0.9rem; }
.evaluation-written-fields label { display: grid; gap: 0.35rem; color: #3f5067; font-size: var(--ui-text-small, 0.875rem); font-weight: 700; }
.evaluation-submit-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid #e8edf3; }
.evaluation-submit-row p { margin: 0; color: #728095; font-size: var(--ui-text-small, 0.875rem); }
.evaluation-locked-state { display: grid; gap: 0.2rem; padding: 0.85rem; border-radius: 12px; background: #f1f8f5; color: #176b4d; }
.evaluation-locked-state strong { font-size: var(--ui-text-small, 0.875rem); }
.evaluation-locked-state span { font-size: var(--ui-text-small, 0.875rem); }
.evaluation-locked-state.is-scheduled { background: #f3f6fa; color: #526176; }

.account-search-bar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(170px, 0.35fr) minmax(150px, 0.28fr) auto auto;
    gap: 0.7rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--portal-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(25, 48, 78, 0.05);
}

.account-results-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 0.65rem;
    color: #526176;
    font-size: var(--ui-text-small, 0.875rem);
}

.account-results-heading strong { color: #172b4d; }
.account-table-wrap { border: 1px solid var(--portal-border); border-radius: 16px; background: #fff; }
.account-admin-table { margin: 0; }
.account-admin-table > :not(caption) > * > * { padding: 0.9rem; border-color: #e8edf3; }
.account-identity-cell, .account-scope-cell { display: grid; gap: 0.2rem; min-width: 180px; }
.account-identity-cell strong, .account-identity-cell a, .account-scope-cell strong { color: #172b4d; font-size: var(--ui-text-small, 0.875rem); font-weight: 750; }
.account-identity-cell span, .account-scope-cell span { color: #607086; font-size: var(--ui-text-small, 0.875rem); }
.account-status-pill { display: inline-flex; width: fit-content; padding: 0.28rem 0.55rem; border-radius: 999px; background: #eef2f6; color: #526176; font-size: var(--ui-text-small, 0.875rem); font-weight: 750; text-transform: capitalize; }
.account-status-pill.is-active { background: #e7f7ef; color: #176b4d; }
.account-status-pill.is-blocked, .account-status-pill.is-inactive { background: #fbeceb; color: #9b3029; }
.account-status-pill.is-invited { background: #fff5d8; color: #8a5b12; }
.account-row-actions { display: flex; gap: 0.5rem; align-items: flex-start; min-width: 210px; }

.account-edit-summary { display: flex; gap: 0.9rem; align-items: center; margin-bottom: 1rem; padding: 1rem 1.15rem; border: 1px solid var(--portal-border); border-radius: 16px; background: #fff; }
.account-edit-avatar { display: grid; flex: 0 0 46px; height: 46px; place-items: center; border-radius: 14px; background: #e7f0ff; color: #174b9b; font-weight: 800; }
.account-edit-summary > div:nth-child(2) { min-width: 0; flex: 1; }
.account-edit-summary span, .account-edit-summary p { margin: 0; color: #66758a; font-size: var(--ui-text-small, 0.875rem); }
.account-edit-summary h2 { margin: 0.1rem 0; color: #172b4d; font-size: 1.1rem; }
.account-edit-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.7fr); gap: 1rem; align-items: start; }
.account-edit-actions { display: grid; gap: 1rem; }
.account-action-help { margin: 0.75rem 0 0; color: #66758a; font-size: var(--ui-text-small, 0.875rem); line-height: 1.5; }
.account-danger-zone { border-color: #f0c9c6; background: #fffafa; }
.temporary-password-result { display: grid; grid-template-columns: 1fr minmax(290px, 0.7fr); gap: 1rem; align-items: center; margin-bottom: 1rem; padding: 1rem 1.15rem; border: 1px solid #93d8b9; border-radius: 16px; background: #effbf5; }
.temporary-password-result h2 { margin: 0.15rem 0; color: #175f46; font-size: 1rem; }
.temporary-password-result p { margin: 0; color: #456b5d; font-size: var(--ui-text-small, 0.875rem); }
.temporary-password-copy { display: flex; gap: 0.55rem; }
.temporary-password-copy input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 750; letter-spacing: normal; }

@media (max-width: 900px) {
    .host-dashboard-summary,
    .account-edit-grid,
    .temporary-password-result { grid-template-columns: 1fr; }
    .host-student-card { grid-template-columns: 8px 1fr 1fr; }
    .host-student-card > div:nth-of-type(3),
    .host-duty-state { grid-column: 2 / -1; }
    .host-placement-list article { grid-template-columns: 1fr; }
    .host-placement-list dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .account-search-bar { grid-template-columns: 1fr 1fr; }
    .account-search-field { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .host-metric-grid,
    .evaluation-written-fields { grid-template-columns: 1fr; }
    .host-overview-card { padding-top: 3rem; }
    .host-overview-copy dl { grid-template-columns: 1fr; }
    .host-student-card { grid-template-columns: 8px 1fr; }
    .host-student-card > div { grid-column: 2; }
    .host-placement-list dl { grid-template-columns: 1fr; }
    .evaluation-rating-criterion > div { grid-template-columns: 1fr; }
    .evaluation-rating-criterion label > span { display: flex; min-height: 42px; justify-content: flex-start; padding-inline: 0.75rem; text-align: left; }
    .evaluation-submit-row { align-items: stretch; flex-direction: column; }
    .account-search-bar { grid-template-columns: 1fr; }
    .account-search-field { grid-column: auto; }
    .account-results-heading, .account-row-actions, .temporary-password-copy { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .attendance-card::after,
    .student-live-pill i,
    .attendance-state.is-active i {
        animation: none;
    }

    .student-nav-link,
    .student-icon-button,
    .portal-primary-button,
    .portal-danger-button,
    .portal-secondary-button {
        transition: none;
    }
}

@media print {
    .student-sidebar,
    .student-mobile-header,
    .student-desktop-tools,
    .student-status-rail,
    .no-print {
        display: none !important;
    }

    .student-app-shell {
        display: block !important;
    }

    .student-stage {
        max-width: none !important;
        padding: 0 !important;
    }

    .student-main {
        max-width: none !important;
    }

    .student-content-section {
        border: 0 !important;
        box-shadow: none !important;
    }
}
/* Pending requests retain native submitter values while giving immediate feedback. */
button.is-submitting,
input.is-submitting {
    cursor: progress;
    opacity: 0.7;
    pointer-events: none;
}
