/* Canonical role-specific navigation and dashboard surfaces. */
body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) {
    --role-navy: #082f63;
    --role-blue: #1261d7;
    --role-blue-2: #0d55c7;
    --role-ink: #0f2b55;
    --role-muted: #71819a;
    --role-line: #dde5ef;
    --role-surface: #ffffff;
    --role-bg: #f5f8fc;
    --role-success: #1ea852;
    --role-warning: #e89b16;
    --role-danger: #e5484d;
    --role-purple: #7646d8;
    --sidebar-width: 248px;
    background: var(--role-bg);
}

/* The reference workspaces are intentionally expanded. Compact mode remains
   available elsewhere, while responsive mobile behavior still owns <=1100px. */
@media (min-width: 1101px) {
    body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) .hpc-sidebar {
        width: 248px !important;
        transform: none !important;
    }
    html[data-hpc-sidebar-state="compact"] body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) .hpc-app-main,
    body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) .hpc-app-main {
        margin-left: 248px !important;
    }
    /* Focus Mode removes the role-workspace offset without changing the sidebar. */
    html[data-hpc-distraction-free="1"] body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) #hpc-app-main {
        margin-left: 0 !important;
        width: 100% !important;
        min-width: 0;
        max-width: 100%;
    }
    html[data-hpc-sidebar-state="compact"] body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) :where(.hpc-sidebar-brand-text,.hpc-sidebar-section-title,.hpc-sidebar-label,.hpc-sidebar-chevron,.hpc-sidebar-state-toggle) {
        display: revert !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    html[data-hpc-sidebar-state="compact"] body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) .hpc-sidebar-nav {
        padding-inline: .7rem !important;
    }
    html[data-hpc-sidebar-state="compact"] body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) .hpc-sidebar-link {
        justify-content: flex-start !important;
        padding: .57rem .72rem !important;
    }
}

body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) .hpc-sidebar {
    background: linear-gradient(180deg, #073268 0%, #062957 100%) !important;
    border-right: 0 !important;
    box-shadow: none !important;
}
body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) .hpc-sidebar-brand {
    min-height: 88px;
    padding: 1rem .95rem;
    border-bottom: 0;
    gap: .7rem;
}
body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) .hpc-sidebar-logo {
    width: 48px;
    height: 48px;
    padding: .22rem;
    border-radius: 14px;
    box-shadow: none;
}
body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) .hpc-sidebar-brand-text p {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .01em;
}
body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) .hpc-sidebar-brand-text span {
    margin-top: .15rem;
    color: rgba(255,255,255,.78);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: 0;
}
body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) .hpc-sidebar-nav {
    padding: .25rem .7rem 1.5rem;
}
body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) .hpc-sidebar-section {
    margin-bottom: .5rem;
}
body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) .hpc-sidebar-section + .hpc-sidebar-section {
    border-top: 1px solid rgba(255,255,255,.13);
    padding-top: .42rem;
}
body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) .hpc-sidebar-section-title {
    padding: .4rem .45rem .25rem;
    color: rgba(255,255,255,.72);
    font-size: .65rem;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .045em;
}
body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) .hpc-sidebar-menu-list {
    gap: .05rem;
}
body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) .hpc-sidebar-link {
    min-height: 37px;
    border-radius: 7px;
    padding: .55rem .72rem;
    gap: .65rem;
    color: rgba(255,255,255,.94);
    font-size: .77rem;
    font-weight: 570;
    letter-spacing: 0;
    box-shadow: none;
}
body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) .hpc-sidebar-link:hover {
    background: rgba(255,255,255,.09) !important;
    color: #fff !important;
}
body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) .hpc-sidebar-link.is-active,
body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) .hpc-sidebar-link.has-active-child {
    background: linear-gradient(90deg, #0d5fd7, #1d6fe6) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 7px 20px rgba(0,44,120,.3) !important;
}
body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) .hpc-sidebar-link.is-active .hpc-sidebar-icon,
body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) .hpc-sidebar-link.has-active-child .hpc-sidebar-icon {
    color: #fff !important;
}
body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) .hpc-sidebar-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}
body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) .hpc-sidebar-state-toggle {
    display: none !important;
}
body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) .hpc-topbar {
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid #e4e9f0;
    box-shadow: none;
}
body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) .hpc-main-content {
    padding: 1.2rem 1.35rem 1.55rem;
    background: var(--role-bg);
}
body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) .hpc-page-container {
    width: min(100%, 1550px);
    gap: .95rem;
}
body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) .ui-platform-context-notice {
    display: none;
}

/* Dashboard language */
.role-dashboard {
    display: grid;
    gap: 1rem;
    color: var(--role-ink);
    font-size: .8rem;
}
.role-dashboard :where(h1,h2,h3,p) { margin: 0; }
.role-dashboard a { text-decoration: none; }
.role-dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: .1rem .15rem .15rem;
}
.role-dashboard-header h1,
.role-welcome-banner h1 {
    color: #102e5c;
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 700;
}
.role-dashboard-header p,
.role-welcome-banner p {
    margin-top: .28rem;
    color: #677891;
    font-size: .78rem;
}
.role-date-chip,
.role-live-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 34px;
    padding: .45rem .75rem;
    border: 1px solid var(--role-line);
    border-radius: 7px;
    background: #fff;
    color: #314c72;
    font-weight: 650;
    white-space: nowrap;
}
.role-date-chip svg { width: 15px; height: 15px; }
.role-live-chip { color: #168244; }
.role-live-chip > span { width: 7px; height: 7px; border-radius: 999px; background: #20b45b; }

.role-card,
.role-kpi-card,
.role-boundary-banner,
.role-welcome-banner {
    border: 1px solid var(--role-line);
    border-radius: 12px;
    background: var(--role-surface);
    box-shadow: 0 2px 8px rgba(25,49,83,.025);
}
.role-card { padding: 1rem; min-width: 0; }
.role-kpi-grid { display: grid; gap: .8rem; }
.role-kpi-grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
/* Five cards never divide evenly into a three-column grid, which left the last
   two stranded beside an empty cell. Flex wrapping lets the trailing row
   stretch to fill the width instead of leaving a hole. */
.role-kpi-grid--5 { display: flex; flex-wrap: wrap; }
.role-kpi-grid--5 > * { flex: 1 1 190px; }
.role-kpi-grid--6 { grid-template-columns: repeat(6, minmax(0,1fr)); }
.role-kpi-card {
    min-width: 0;
    min-height: 126px;
    padding: .95rem;
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    color: inherit;
}
.role-kpi-card:hover { border-color: #b9c9dd; box-shadow: 0 7px 24px rgba(24,57,96,.07); }
.role-kpi-card > div { min-width: 0; }
.role-kpi-card small { display: block; color: #304c73; font-size: .7rem; font-weight: 690; }
.role-kpi-card strong { display: block; margin-top: .25rem; color: #102f61; font-size: 1.55rem; line-height: 1.05; font-weight: 700; }
.role-kpi-card p { margin-top: .32rem; color: #7c8aa0; font-size: .66rem; line-height: 1.35; }
.role-icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #2465ce;
}
.role-icon svg { width: 19px; height: 19px; }
.role-icon--blue { background:#eaf2ff; color:#145fd1; }
.role-icon--green { background:#e9f8ef; color:#169548; }
.role-icon--warning { background:#fff4df; color:#d68708; }
.role-icon--danger { background:#ffebec; color:#e13c43; }
.role-icon--purple { background:#f1ebff; color:#7145d4; }
.role-icon--cyan { background:#eaf8fb; color:#13809b; }

.role-grid { display: grid; gap: .8rem; min-width: 0; }
.role-grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.role-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.role-span-2 { grid-column: span 2; }
.role-span-full { grid-column: 1/-1; }
.role-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    margin-bottom: .75rem;
}
.role-section-heading h2,
.role-card-title { color: #17345f; font-size: .84rem; font-weight: 700; }
.role-section-heading a,
.role-text-link { color: #0d61d6; font-size: .68rem; font-weight: 660; }
.role-text-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .75rem; }
.role-text-link svg { width: 14px; height: 14px; }
.role-card-subtitle,
.role-muted { margin-top: .22rem !important; color: #7a899e; font-size: .68rem; line-height: 1.45; }
.role-empty-copy { padding: .8rem; border-radius: 8px; background: #f7f9fc; color: #78889e; line-height: 1.45; }

.role-simple-list { display: grid; }
.role-simple-list > :where(a,div) {
    min-width: 0;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .58rem .18rem;
    border-bottom: 1px solid #edf1f6;
    color: #29466f;
}
.role-simple-list > :where(a,div):last-child { border-bottom: 0; }
.role-simple-list span { min-width: 0; }
.role-simple-list strong { display: block; overflow: hidden; text-overflow: ellipsis; color: #203d66; font-size: .7rem; font-weight: 700; }
.role-simple-list small { display: block; margin-top: .13rem; overflow: hidden; text-overflow: ellipsis; color: #8794a7; font-size: .62rem; }
.role-simple-list > a:hover strong { color: #0d61d6; }
.role-pill {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    border-radius: 5px;
    background: #eef3fa;
    color: #58708e;
    padding: .24rem .42rem;
    font-size: .58rem;
    font-weight: 700;
    white-space: nowrap;
}
.role-pill.is-success { background:#e9f8ee; color:#23864b; }
.role-pill.is-danger { background:#ffebec; color:#cf3b42; }

.role-table-wrap { overflow-x: auto; }
.role-dashboard .role-table {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: .66rem;
}
.role-dashboard .role-table th {
    padding: .52rem .45rem !important;
    border-bottom: 1px solid #e5eaf1 !important;
    background: transparent !important;
    color: #7f8ca0 !important;
    font-size: .59rem !important;
    font-weight: 680 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
.role-dashboard .role-table td {
    padding: .6rem .45rem !important;
    border-bottom: 1px solid #edf1f5 !important;
    color: #375273;
    vertical-align: middle;
}
.role-dashboard .role-table td strong,
.role-dashboard .role-table td small { display: block; }
.role-dashboard .role-table td small { margin-top:.12rem; color:#8a97a9; font-size:.59rem; }

.role-stat-list { display: grid; }
.role-stat-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    min-height: 42px;
    border-bottom: 1px solid #edf1f5;
    color: #536984;
    font-size: .67rem;
}
.role-stat-list > div:last-child { border-bottom: 0; }
.role-stat-list strong { color: #18365f; font-size: .7rem; }
.role-stat-list--compact > div { min-height: 33px; }

.role-donut {
    --value: 0;
    width: 150px;
    height: 150px;
    flex: 0 0 150px;
    border-radius: 50%;
    display: grid;
    place-content: center;
    text-align: center;
    background: radial-gradient(circle closest-side, white 74%, transparent 75% 99.9%), conic-gradient(#1766d7 calc(var(--value) * 1%), #e9edf3 0);
}
.role-donut strong { color: #14345f; font-size: 1.55rem; line-height: 1; }
.role-donut span { margin-top: .3rem; color: #7b899d; font-size: .68rem; }
.role-donut--small { width: 112px; height:112px; flex-basis:112px; }
.role-donut--small strong { font-size:1.15rem; }
.role-progress-summary { display:flex; align-items:center; gap:1.2rem; min-height:170px; }
.role-progress-large { display:grid; place-items:center; gap:.7rem; min-height:145px; text-align:center; }
.role-progress-large p { max-width:320px; color:#7b8a9f; font-size:.64rem; line-height:1.5; }
.role-legend { flex:1; display:grid; gap:.65rem; min-width:0; }
.role-legend > div { display:grid; grid-template-columns:10px 1fr auto; align-items:center; gap:.55rem; color:#60738d; font-size:.66rem; }
.role-legend strong { color:#304b6e; font-size:.66rem; }
.role-dot { width:8px; height:8px; border-radius:2px; background:#b8c1cf; }
.role-dot.is-success{background:#25a957}.role-dot.is-blue{background:#1766d7}.role-dot.is-warning{background:#efa51a}.role-dot.is-neutral{background:#b9c1ce}

.role-primary-action,
.role-secondary-action {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:.4rem;
    min-height:36px;
    padding:.55rem .8rem;
    border-radius:6px;
    font-size:.69rem;
    font-weight: 700;
}
.role-primary-action { width:100%; margin-top:.8rem; background:linear-gradient(90deg,#0d5acb,#1266dc); color:#fff; }
.role-secondary-action { border:1px solid #d8e0ea; background:#fff; color:#145eca; }
.role-secondary-action svg { width:14px;height:14px; }

.role-footer-note {
    display:flex;
    align-items:center;
    gap:.55rem;
    min-height:42px;
    padding:.6rem .9rem;
    border:1px solid #dfe6ee;
    border-radius:9px;
    background:#f9fbfd;
    color:#687a93;
    font-size:.67rem;
}
.role-footer-note svg { width:16px; height:16px; color:#1261d7; }

/* Participant overview must occupy the full content track, including when the
   shell introduces additional grid cells for actor navigation. The dashboard
   is an index view, not a narrow reading form. */
body[data-assessment-route="assessment.participant.dashboard"] .hpc-page-container > .role-dashboard--participant {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    justify-self: stretch;
}
.role-dashboard--participant > .role-welcome-banner,
.role-dashboard--participant > .role-grid { width: 100%; min-width: 0; }
.role-dashboard--participant .role-grid--participant-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.role-dashboard--participant { font-size: .91rem; }
.role-dashboard--participant .role-welcome-banner { min-height: 126px; }
.role-dashboard--participant .role-welcome-banner h1 { font-size: 1.5rem; }
.role-dashboard--participant .role-welcome-banner p { font-size: .93rem; }
.role-dashboard--participant .role-welcome-banner small { font-size: .82rem; }
.role-dashboard--participant .role-welcome-illustration { width: 150px; height: 84px; flex: 0 0 150px; }
.role-dashboard--participant .role-welcome-illustration svg { width: 52px; height: 52px; }
.role-dashboard--participant .role-next-card { min-height: 225px; }
.role-dashboard--participant .role-card-heading small { font-size: .8rem; }
.role-dashboard--participant .role-card-heading h2 { font-size: 1.2rem; }
.role-dashboard--participant .role-next-meta,
.role-dashboard--participant .role-card-subtitle,
.role-dashboard--participant .role-next-card .role-muted { font-size: .82rem; }
.role-dashboard--participant .role-card-title { font-size: 1.05rem; }
.role-dashboard--participant .role-primary-action { min-height: 42px; font-size: .86rem; }
.role-dashboard--participant .role-legend > div,
.role-dashboard--participant .role-legend strong { font-size: .8rem; }
.role-dashboard--participant .role-text-link { font-size: .82rem; }
.role-dashboard--participant .role-checklist > div { min-height: 48px; font-size: .8rem; }
.role-dashboard--participant .role-checklist small { font-size: .72rem; }
.role-dashboard--participant .role-result-state { min-height: 180px; }
.role-dashboard--participant .role-result-state p { font-size: .82rem; }
.role-dashboard--participant .role-result-state small { font-size: .75rem; }
.role-dashboard--participant .role-quick-links strong { font-size: .83rem; }
.role-dashboard--participant .role-quick-links small { font-size: .73rem; }
.role-dashboard--participant .role-footer-note { font-size: .78rem; }
.participant-support-page > .as-card:first-child {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    align-content: start;
    gap: .45rem;
}
.participant-support-page > .as-card:first-child > * { min-width: 0; max-width: 100%; }
.participant-support-page > .as-card:first-child > .as-alert { justify-self: stretch; }
.participant-support-page .as-field > span { font-size: .9rem; }
.participant-support-page .as-btn { min-height: 2.75rem; font-size: .9rem; }
.participant-support-page .participant-adjustment-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}
.participant-adjustment-form__wide,
.participant-adjustment-form__actions { grid-column: 1 / -1; }
.participant-adjustment-form__actions { display: flex; justify-content: flex-end; }
.participant-adjustment-form__actions .as-btn { min-width: 13rem; }
@media (max-width: 850px) {
    .role-dashboard--participant .role-grid--participant-top { grid-template-columns: minmax(0, 1fr); }
    .role-dashboard--participant .role-welcome-illustration { display: none; }
}
@media (max-width: 560px) {
    .participant-support-page .participant-adjustment-form { grid-template-columns: minmax(0, 1fr); }
    .participant-adjustment-form__actions .as-btn { width: 100%; }
    .role-dashboard--participant .role-checklist > div { grid-template-columns: 20px minmax(0, 1fr); }
    .role-dashboard--participant .role-checklist small { grid-column: 2; padding-bottom: .4rem; }
}

/* Participant */
.role-welcome-banner {
    min-height:150px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    overflow:hidden;
    padding:1.45rem 1.7rem;
    background:linear-gradient(100deg,#fff 0%,#fff 58%,#f3f7fd 100%);
}
.role-welcome-banner h1 { font-size:1.35rem; }
.role-welcome-banner small { display:block; margin-top:.65rem; color:#8290a4; font-size:.72rem; }
.role-welcome-illustration { width:215px; height:105px; display:grid; place-items:center; border-radius:50% 20% 20% 50%; background:linear-gradient(135deg,#e6f0ff,#edf4ff); color:#1b65d2; }
.role-welcome-illustration svg { width:68px; height:68px; stroke-width:1.35; }
.role-grid--participant-top { grid-template-columns:.95fr 1.05fr; }
.role-next-card { min-height:258px; }
.role-card-heading { display:flex; gap:.8rem; align-items:flex-start; }
.role-card-heading small { display:block; color:#51657f; font-size:.66rem; font-weight: 680; }
.role-card-heading h2 { margin-top:.32rem; color:#143560; font-size:1.04rem; font-weight: 700; }
.role-next-meta { display:flex; flex-wrap:wrap; gap:.8rem 1.1rem; margin:1rem 0 .4rem 46px; color:#718199; font-size:.67rem; }
.role-next-meta span { display:inline-flex; align-items:center; gap:.35rem; }
.role-next-meta svg { width:14px;height:14px; }
.role-next-card .role-muted { margin-left:46px !important; }
.role-card-title { font-size:.87rem; }
.role-result-card { text-align:left; }
.role-result-state { min-height:215px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.45rem; text-align:center; border:1px solid #e3e9f0; border-radius:9px; background:#fbfcfe; padding:1rem; }
.role-result-card.has-result .role-result-state { background:linear-gradient(180deg,#f4fbf6,#f8fcf9); }
.role-result-icon { display:grid; place-items:center; width:66px; height:66px; color:#2aa959; }
.role-result-icon svg { width:52px;height:52px; }
.role-result-state p { color:#657690; font-size:.7rem; }
.role-result-state strong { color:#23a455; font-size:1.05rem; }
.role-result-state strong.is-muted { color:#708198; }
.role-result-state small { color:#8794a6; font-size:.62rem; line-height:1.4; }
.role-checklist { display:grid; margin-top:.65rem; }
.role-checklist > div { min-height:42px; display:grid; grid-template-columns:20px 1fr auto; align-items:center; gap:.5rem; border-bottom:1px solid #edf1f5; color:#425d7f; font-size:.65rem; }
.role-checklist svg { width:15px;height:15px;color:#315a8a; }
.role-checklist small { color:#8d99a9; font-size:.57rem; }
.role-quick-links { display:grid; gap:.45rem; margin-top:.7rem; }
.role-quick-links > a { display:grid; grid-template-columns:32px 1fr 14px; align-items:center; gap:.6rem; min-height:58px; padding:.55rem; border:1px solid #e5eaf1; border-radius:8px; color:#27446c; }
.role-quick-links > a > svg:first-child { width:28px;height:28px;padding:6px;border-radius:7px;background:#edf4ff;color:#1761cc; }
.role-quick-links > a > svg:last-child { width:14px;height:14px; }
.role-quick-links strong,.role-quick-links small { display:block; }
.role-quick-links strong { font-size:.68rem; }
.role-quick-links small { margin-top:.1rem;color:#8794a6;font-size:.58rem; }

/* Proctor and role-specific information blocks */
.role-alert-summary { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:155px; text-align:center; }
.role-alert-summary strong { margin-top:.45rem; color:#193961; font-size:1.8rem; }
.role-alert-summary p { margin-top:.35rem; max-width:360px; color:#77869b; font-size:.65rem; line-height:1.45; }
.role-data-notice { min-height:180px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.55rem; padding:1rem; border:1px dashed #d8e0eb; border-radius:9px; background:#fafbfd; text-align:center; }
.role-data-notice > svg { width:42px;height:42px;color:#4d75a8;stroke-width:1.4; }
.role-data-notice strong { color:#26466e;font-size:.76rem; }
.role-data-notice p { max-width:420px;color:#7d8a9d;font-size:.63rem;line-height:1.5; }
.role-data-notice--horizontal { flex-direction:row;text-align:left;min-height:125px; }
.role-data-notice--horizontal > svg { flex:0 0 42px; }
.role-agenda-list time { flex:0 0 44px;color:#294b74;font-size:.7rem;font-weight: 700; }
.role-agenda-list > div { justify-content:flex-start; }

/* Admin/platform visual summaries */
.role-activity-bars { display:grid; gap:.8rem; padding:.5rem .1rem; }
.role-activity-bars > div { display:grid; grid-template-columns:1fr auto; gap:.25rem .7rem; align-items:center; }
.role-activity-bars span { color:#61758f;font-size:.66rem; }
.role-activity-bars strong { color:#243f65;font-size:.67rem; }
.role-activity-bars i { grid-column:1/-1; height:7px; border-radius:99px; background:#edf1f5; overflow:hidden; }
.role-activity-bars i::after { content:"";display:block;height:100%;width:var(--bar);border-radius:inherit;background:#1766d7; }
.role-workload-note { margin-top:.65rem;padding:.55rem .65rem;border-radius:8px;background:#f4f7fb;color:#536b89; }
.role-workload-note strong,.role-workload-note span { display:block;font-size:.61rem; }
.role-workload-note span { margin-top:.12rem;color:#7a899d; }
.role-boundary-banner { display:flex;align-items:center;gap:.8rem;padding:.8rem 1rem;border-color:#bcd0ec;background:#f6f9fe; }
.role-boundary-banner p { flex:1;color:#314e74;font-size:.69rem;line-height:1.45; }
.role-credit-chart { display:grid;gap:1rem;padding:.5rem 0; }
.role-credit-meter { height:10px;border-radius:999px;background:#e9edf3;overflow:hidden; }
.role-credit-meter span { display:block;height:100%;border-radius:inherit;background:#7046d6; }

@media (max-width: 1350px) {
    .role-kpi-grid--6 { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .role-grid--3 { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .role-grid--3 > .role-card:last-child:not(.role-span-2) { grid-column:auto; }
}
@media (max-width: 1100px) {
    body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) .hpc-sidebar { width:var(--sidebar-width) !important; }
    body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) .hpc-app-main { margin-left:0 !important; }
}
@media (max-width: 850px) {
    .role-kpi-grid--4,.role-kpi-grid--6 { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .role-kpi-grid--5 > * { flex-basis: 45%; }
    .role-grid--2,.role-grid--3,.role-grid--participant-top { grid-template-columns:1fr; }
    .role-span-2 { grid-column:auto; }
    .role-welcome-illustration { display:none; }
    .role-progress-summary { align-items:flex-start; }
    .role-donut { width:120px;height:120px;flex-basis:120px; }
}
@media (max-width: 560px) {
    body[data-hpc-workspace-profile]:not([data-hpc-workspace-profile="default"]) .hpc-main-content { padding:.75rem; }
    .role-kpi-grid--4,.role-kpi-grid--6 { grid-template-columns:1fr; }
    .role-kpi-grid--5 > * { flex-basis: 100%; }
    .role-kpi-card { min-height:100px; }
    .role-dashboard-header,.role-boundary-banner { align-items:stretch;flex-direction:column; }
    .role-progress-summary { flex-direction:column;align-items:center; }
    .role-legend { width:100%; }
    .role-next-meta,.role-next-card .role-muted { margin-left:0 !important; }
    .role-welcome-banner { padding:1.1rem; }
}

/* Institution-admin dashboard: operational priority before decoration. */
.role-dashboard--admin {
    gap: .9rem;
    font-size: .82rem;
}
.role-dashboard--admin .role-kpi-card {
    min-height: 112px;
    padding: .9rem;
    align-items: center;
    border-radius: 10px;
}
.role-dashboard--admin .role-kpi-card.has-attention {
    border-color: #f1d49b;
    background: linear-gradient(180deg, #fffdf8, #fff);
}
.role-dashboard--admin .role-kpi-card small {
    color: #4e6584;
    font-size: .72rem;
    letter-spacing: .01em;
}
.role-dashboard--admin .role-kpi-card strong {
    margin-top: .2rem;
    color: #122f58;
    font-size: 1.48rem;
}
.role-dashboard--admin .role-kpi-card p {
    margin-top: .28rem;
    color: #718198;
    font-size: .68rem;
}
.role-dashboard-priority-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(280px, .75fr);
    gap: .8rem;
    min-width: 0;
}
.role-dashboard--admin .role-card {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(25,49,83,.035);
}
.role-section-heading--strong {
    align-items: flex-start;
    margin-bottom: .85rem;
}
.role-section-heading--strong > div { min-width: 0; }
.role-section-heading--strong h2 {
    color: #102f5a;
    font-size: .92rem;
}
.role-section-heading--strong p {
    margin-top: .18rem;
    color: #7a899e;
    font-size: .68rem;
    line-height: 1.45;
}
.role-section-kicker {
    display: block;
    margin-bottom: .22rem;
    color: #67809f;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .09em;
}
.role-attention-list { display: grid; gap: .45rem; }
.role-attention-item {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0,1fr) auto;
    align-items: center;
    gap: .7rem;
    min-width: 0;
    min-height: 72px;
    padding: .62rem .7rem .62rem .82rem;
    border: 1px solid #e4eaf2;
    border-radius: 8px;
    background: #fff;
    color: #29466f;
    transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}
.role-attention-item::before {
    content: "";
    position: absolute;
    inset: 8px auto 8px 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #6c88ad;
}
.role-attention-item.is-warning::before { background: #e5a126; }
.role-attention-item.is-danger::before { background: #d94a50; }
.role-attention-item.is-pending::before { background: #7052c7; }
.role-attention-item:hover {
    border-color: #cbd8e8;
    box-shadow: 0 5px 16px rgba(28,58,95,.07);
    transform: translateY(-1px);
}
.role-attention-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5fa;
    color: #44688f;
}
.role-attention-item.is-warning .role-attention-icon { background: #fff5e4; color: #b9750a; }
.role-attention-item.is-danger .role-attention-icon { background: #ffedef; color: #c94047; }
.role-attention-item.is-pending .role-attention-icon { background: #f2effb; color: #694cb7; }
.role-attention-icon svg { width: 16px; height: 16px; }
.role-attention-copy { min-width: 0; }
.role-attention-context {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .38rem;
    margin-bottom: .18rem;
}
.role-attention-context time {
    color: #8a98aa;
    font-size: .61rem;
}
.role-attention-copy > strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #17375f;
    font-size: .73rem;
    font-weight: 700;
    white-space: nowrap;
}
.role-attention-copy > small {
    display: block;
    margin-top: .14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #74859b;
    font-size: .64rem;
    white-space: nowrap;
}
.role-domain-tag {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: .18rem .4rem;
    border-radius: 999px;
    background: #f1f5fa;
    color: #58708e;
    font-size: .57rem;
    font-weight: 700;
}
.role-attention-state {
    display: grid;
    justify-items: end;
    gap: .3rem;
    min-width: 92px;
}
.role-pill.is-warning { background: #fff2d9; color: #9b6409; }
.role-attention-action {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: #145fc7;
    font-size: .62rem;
    font-weight: 700;
    white-space: nowrap;
}
.role-attention-action svg { width: 12px; height: 12px; }
.role-attention-empty {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-height: 84px;
    padding: .8rem;
    border: 1px dashed #cddfD4;
    border-radius: 8px;
    background: #fbfefc;
}
.role-attention-empty strong,
.role-attention-empty span { display: block; }
.role-attention-empty strong { color: #24613a; font-size: .74rem; }
.role-attention-empty span { margin-top: .15rem; color: #71877a; font-size: .65rem; }
.role-attention-overflow { margin-top: .55rem; }
.role-attention-overflow > summary { color: #496889; font-size: .66rem; font-weight: 700; cursor: pointer; }
.role-card--pulse { min-width: 0; }
.role-pulse-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .5rem;
}
.role-pulse-grid > a {
    min-width: 0;
    min-height: 86px;
    padding: .72rem;
    border: 1px solid #e6ebf2;
    border-radius: 8px;
    background: #fbfcfe;
    color: #566d8a;
}
.role-pulse-grid > a:hover { border-color: #c9d7e8; background: #fff; }
.role-pulse-grid span { display: block; font-size: .64rem; }
.role-pulse-grid strong { display: block; margin-top: .25rem; color: #17385f; font-size: 1.25rem; line-height: 1; }
.role-pulse-foot {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem .75rem;
    margin-top: .65rem;
    padding-top: .65rem;
    border-top: 1px solid #e8edf3;
    color: #687b94;
    font-size: .64rem;
}
.role-pulse-foot strong { color: #223f65; }
.role-dashboard-secondary-grid .role-card { min-height: 250px; }
.role-review-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .45rem;
    margin-top: .75rem;
}
.role-review-metrics > a {
    min-height: 70px;
    padding: .62rem .68rem;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    background: #fbfcfe;
    color: #60738c;
}
.role-review-metrics > a.is-warning { border-color: #efd69d; background: #fffaf0; }
.role-review-metrics span { display: block; font-size: .63rem; }
.role-review-metrics strong { display: block; margin-top: .22rem; color: #17385f; font-size: 1.08rem; }
.role-review-metrics > a.is-warning strong { color: #a86c09; }
.role-staffing-summary {
    margin: .7rem 0 .45rem;
    padding: .7rem;
    border: 1px solid #e5eaf1;
    border-radius: 8px;
    background: #fbfcfe;
}
.role-staffing-summary > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .7rem;
    margin-bottom: .55rem;
}
.role-staffing-summary > div strong { color: #17385f; font-size: 1.25rem; }
.role-staffing-summary > div span { color: #687b94; font-size: .64rem; text-align: right; }
.role-staffing-progress {
    display: block;
    width: 100%;
    height: 8px;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    background: #e8edf3;
}
.role-staffing-progress::-webkit-progress-bar { background: #e8edf3; border-radius: 999px; }
.role-staffing-progress::-webkit-progress-value { background: #1f8f55; border-radius: 999px; }
.role-staffing-progress::-moz-progress-bar { background: #1f8f55; border-radius: 999px; }
.role-dashboard--admin .role-simple-list strong { font-size: .72rem; }
.role-dashboard--admin .role-simple-list small { font-size: .63rem; line-height: 1.4; }

@media (max-width: 1180px) {
    .role-dashboard-priority-grid { grid-template-columns: 1fr; }
    .role-card--pulse .role-pulse-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 850px) {
    .role-card--pulse .role-pulse-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .role-attention-item { grid-template-columns: 32px minmax(0,1fr); }
    .role-attention-state { grid-column: 2; grid-template-columns: auto auto; justify-content: start; justify-items: start; align-items: center; min-width: 0; }
}
@media (max-width: 560px) {
    .role-attention-item { grid-template-columns: 1fr; padding: .7rem; }
    .role-attention-item::before { inset: 0 8px auto; width: auto; height: 3px; border-radius: 0 0 3px 3px; }
    .role-attention-icon { display: none; }
    .role-attention-state { grid-column: auto; }
    .role-attention-copy > strong,
    .role-attention-copy > small { white-space: normal; }
    .role-review-metrics { grid-template-columns: 1fr; }
}

/* Staff duty cards are operational entry points, not static briefing blocks. */
.role-duty {
    padding: .78rem 0;
    border-top: 1px solid #edf1f6;
}
.role-duty:first-of-type { border-top: 0; padding-top: .15rem; }
.role-duty > header { display: grid; gap: .34rem; }
.role-duty-title { display: inline-flex; width: fit-content; max-width: 100%; color: #17345f; }
.role-duty-title strong { overflow: hidden; text-overflow: ellipsis; }
.role-duty-title:hover { color: #0d61d6; }
.role-duty > header > small { color: #657991; font-size: .68rem; line-height: 1.45; }
.role-duty-label { color: #344e70; font-weight: 700; }
.role-duty-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .15rem; }
.role-duty-open {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: .38rem .65rem;
    border: 1px solid #cbd8e8;
    border-radius: 7px;
    background: #fff;
    color: #1f568f;
    font-size: .68rem;
    font-weight: 700;
}
.role-duty-open:hover { border-color: #8fb4e5; background: #f6faff; color: #0d61d6; }
.role-duty-open--proctoring { border-color: #b7d6fb; background: #eef6ff; color: #0b63c9; }

/* Role Player operational workspace: duty-scoped, intentionally no scoring controls. */
[data-role-player-workspace] .role-section-head,
[data-role-player-index] .role-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .8rem;
    margin-bottom: .8rem;
}
[data-role-player-workspace] .role-section-head h2,
[data-role-player-index] .role-section-head h2 { margin: .15rem 0 0; color: #102f61; font-size: 1rem; }
[data-role-player-workspace] .role-section-head small,
[data-role-player-index] .role-section-head small { color: #71819a; font-weight: 650; }
[data-role-player-workspace] .role-list-row,
[data-role-player-index] .role-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .72rem 0;
    border-top: 1px solid var(--role-line, #dde5ef);
}
[data-role-player-workspace] .role-list-row:first-of-type { border-top: 0; }
[data-role-player-workspace] .role-list-row > div:first-child { min-width: 0; }
[data-role-player-workspace] .role-list-row strong { display: block; color: #102f61; }
[data-role-player-workspace] .role-list-row small { display: block; margin-top: .12rem; color: #71819a; }
[data-role-player-workspace] .role-list-row > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
[data-role-player-index] .role-card__footer { display:flex; align-items:center; justify-content:space-between; gap:.65rem; margin-top:.8rem; }
[data-role-player-index] .role-card h2 { margin:.25rem 0; color:#102f61; font-size:1rem; }
[data-role-player-index] .role-card p { color:#71819a; }
@media (max-width: 760px) {
    [data-role-player-workspace] .role-section-head,
    [data-role-player-workspace] .role-list-row,
    [data-role-player-index] .role-card__footer { align-items: stretch; flex-direction: column; }
    [data-role-player-workspace] .role-list-row > div:last-child { justify-content:flex-start; }
}

/* Simulation observation capture: evidence-first, shared across Role Play/LGD/presentation/simulation. */
[data-simulation-observation-capture] { margin-bottom: 1rem; }
[data-simulation-observation-capture] .aec-form-actions { display:flex; align-items:center; flex-wrap:wrap; gap:.65rem; }
[data-simulation-observation-capture] .aec-form-actions > small { color:#71819a; line-height:1.45; }
.simulation-observation-capture__timeline { margin-top:1rem; padding-top:.85rem; border-top:1px solid #e3e9f1; }
.simulation-observation-capture__timeline > strong { color:#17345f; font-size:.78rem; }
.simulation-observation-capture__timeline article { display:grid; grid-template-columns:minmax(180px,.65fr) minmax(0,1.35fr); gap:.65rem; padding:.62rem 0; border-top:1px solid #edf1f6; }
.simulation-observation-capture__timeline article:first-of-type { margin-top:.5rem; }
.simulation-observation-capture__timeline article strong { display:block; color:#17345f; font-size:.73rem; }
.simulation-observation-capture__timeline article small { color:#71819a; font-size:.66rem; }
.simulation-observation-capture__timeline article p { margin:0; color:#304967; font-size:.73rem; line-height:1.5; }
@media (max-width:760px) { .simulation-observation-capture__timeline article { grid-template-columns:1fr; } }

/* Assessor work-product version review: provenance-first, no automatic file diff/scoring. */
.simulation-work-product-review { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid #e3e9f1; }
.simulation-work-product-review__head { display:flex; align-items:flex-start; justify-content:space-between; gap:.8rem; }
.simulation-work-product-review__head h4 { margin:.12rem 0 .2rem; color:#17345f; }
.simulation-work-product-review__head p { margin:0; color:#71819a; font-size:.72rem; line-height:1.5; }
.simulation-work-product-review__versions { display:grid; gap:.6rem; margin-top:.8rem; }
.simulation-work-product-version { display:grid; gap:.35rem; padding:.72rem; border:1px solid #dde5ef; border-radius:9px; background:#fff; }
.simulation-work-product-version.is-active { border-color:#9cc8f7; background:#f7fbff; }
.simulation-work-product-version__meta { display:flex; align-items:flex-start; justify-content:space-between; gap:.7rem; }
.simulation-work-product-version__meta strong,
.simulation-work-product-version__meta span { display:block; }
.simulation-work-product-version__meta strong { color:#17345f; font-size:.74rem; }
.simulation-work-product-version__meta span { color:#425d7d; font-size:.7rem; overflow-wrap:anywhere; }
.simulation-work-product-version__badges { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:.3rem; }
.simulation-work-product-version > small { color:#71819a; font-size:.66rem; }
.simulation-work-product-version__note { margin:.15rem 0; color:#304967; font-size:.72rem; line-height:1.45; }
.simulation-work-product-review__hint { margin:.7rem 0 0; color:#71819a; font-size:.68rem; line-height:1.45; }
@media (max-width:760px) {
    .simulation-work-product-review__head,
    .simulation-work-product-version__meta { flex-direction:column; align-items:stretch; }
    .simulation-work-product-version__badges { justify-content:flex-start; }
}
@media (max-width: 640px) {
    .participant-session-index .ui-auto-table-scroll,
    .participant-session-index > .overflow-x-auto { overflow: visible; }
    .participant-session-index .participant-session-index-table {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
    }
    .participant-session-index-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .participant-session-index-table tbody { display: grid; gap: .65rem; padding: .65rem; }
    .participant-session-index-table tbody tr {
        display: grid;
        min-width: 0;
        border: 1px solid #dbe4ea;
        border-radius: .75rem;
        background: #fff;
    }
    .participant-session-index-table tbody td {
        display: block;
        min-width: 0;
        padding: .55rem .75rem;
        border: 0;
        overflow-wrap: anywhere;
    }
    .participant-session-index-table tbody td:first-child {
        background: #f8fbfe;
        border-bottom: 1px solid #e5edf3;
        border-radius: .75rem .75rem 0 0;
    }
    .participant-session-index-table tbody td[data-mobile-label]:not(:first-child)::before {
        content: attr(data-mobile-label);
        display: block;
        margin-bottom: .15rem;
        color: #526783;
        font-size: .7rem;
        font-weight: 700;
    }
    .participant-session-index-table tbody td:last-child {
        text-align: left;
        border-top: 1px solid #e5edf3;
    }
    .participant-session-index-table tbody td:last-child a {
        display: inline-flex;
        align-items: center;
        min-height: 2.75rem;
        padding: .5rem .85rem;
        border-radius: .6rem;
        background: #eaf4ff;
        text-decoration: none;
    }
}
