:root {
  color-scheme: light;
  font-family: "Lexend", "Inter", "Segoe UI", Arial, sans-serif;
  color: #111;
  background: #f4f4f4;
  --brand-blue: #7cc8ec;
}

/* Visual refresh: app shell, cards, dashboards and navigation */
:root {
  --brand-blue-soft: color-mix(in srgb, var(--brand-blue) 18%, #fff);
  --ink: #111;
  --shell-dark: #080808;
  --shell-dark-2: #151515;
  --workspace-bg: #f6f7f8;
  --card-bg: #fff;
  --card-border: #e4e7eb;
  --soft-shadow: 0 18px 45px rgba(17, 17, 17, .08);
  --tight-shadow: 0 10px 26px rgba(17, 17, 17, .07);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --brand: var(--brand-blue);
  --brand-soft: var(--brand-blue-soft);
  --ink2: #444;
  --ink3: #888;
  --border: var(--card-border);
  --bg: var(--workspace-bg);
  --white: #fff;
  --radius: 10px;
}

body {
  background: var(--workspace-bg);
}

.app-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #fff 0, var(--workspace-bg) 210px),
    var(--workspace-bg);
}

.topbar {
  min-height: 92px;
  position: sticky;
  top: 0;
  z-index: 25;
  padding: 14px 26px 14px 18px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(17, 17, 17, .08);
  box-shadow: 0 12px 34px rgba(17, 17, 17, .08);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
}

.brand-mark.logo-container {
  width: 86px;
  min-height: 66px;
  display: inline-grid;
  place-items: center;
  border-radius: 22px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .32);
  background: #fff;
  box-shadow: 0 14px 32px rgba(17, 17, 17, .14);
}

.brand-mark .brand-logo {
  width: 56px;
  height: 46px;
  object-fit: contain;
  object-position: center;
}

.brand-title-shell {
  display: grid;
  gap: 2px;
  color: var(--ink);
  line-height: 1.05;
}

.brand-title-shell strong {
  max-width: 260px;
  font-size: clamp(1rem, 1.45vw, 1.28rem);
  font-weight: 900;
  letter-spacing: 0;
}

.brand-title-shell span {
  color: #30343a;
  font-size: .92rem;
  font-weight: 800;
}

.brand-title-shell em {
  color: var(--brand-blue);
  font-style: normal;
  font-size: .78em;
  font-weight: 900;
}

.topbar-actions {
  gap: 14px;
}

.icon-button,
.role-switcher,
.active-role,
.centre-logo-pill,
.topbar-signout {
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 17, 17, .06);
}

.icon-button {
  width: 46px;
  box-shadow: 0 8px 22px rgba(17, 17, 17, .06);
}

.notification-button.has-alerts {
  background: #fff;
  border-color: color-mix(in srgb, var(--brand-blue) 65%, #fff);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-blue) 22%, transparent);
}

.notification-button strong,
.menu-badge,
.thread-unread-badge {
  background: var(--brand-blue);
  color: #071016;
}

.attention-badge {
  background: #e07020;
  color: #fff;
}

.notification-panel,
.modal-panel,
.chat-panel {
  border-radius: var(--radius-lg);
  border-color: var(--card-border);
  box-shadow: var(--soft-shadow);
}

.role-switcher,
.active-role,
.topbar-signout {
  box-shadow: none;
}

.role-switcher select,
.active-role,
.topbar-signout {
  font-weight: 900;
}

.control-icon {
  background: var(--brand-blue-soft);
  color: var(--ink);
}

.workspace.with-menu {
  grid-template-columns: 264px minmax(0, 1fr);
  background: var(--workspace-bg);
}

.side-menu {
  position: sticky;
  top: 92px;
  min-height: calc(100vh - 92px);
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 30px 18px;
  background:
    linear-gradient(180deg, var(--shell-dark), var(--shell-dark-2));
  border-right: 0;
  box-shadow: 18px 0 46px rgba(17, 17, 17, .14);
}

.menu-item {
  min-height: 54px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-radius: 16px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, .78);
  font-weight: 850;
  text-align: left;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.menu-item:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  transform: translateX(2px);
  box-shadow: none;
}

.menu-item.active {
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand-blue) 86%, #fff), color-mix(in srgb, var(--brand-blue) 54%, #111));
  color: #071016;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--brand-blue) 28%, transparent);
}

.menu-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, .08);
  color: currentColor;
}

.menu-item.active .menu-icon {
  background: rgba(255, 255, 255, .36);
}

.menu-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.menu-badge {
  top: 7px;
  right: 7px;
  box-shadow: 0 0 0 3px var(--shell-dark);
}

.with-menu .page {
  padding: 34px clamp(22px, 3vw, 42px) 64px;
}

.workspace:not(.with-menu) {
  width: min(1220px, calc(100% - 40px));
}

.section-head {
  align-items: center;
  margin-bottom: 24px;
}

.section-head h1 {
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  line-height: 1.08;
  font-weight: 950;
}

.section-head p,
.table-caption,
.muted {
  color: #66707a;
}

.panel,
.role-card,
.centre-option,
.centre-tile,
.cm-metric-card,
.visual-panel,
.assessment-visual-card,
.portfolio-box,
.task-card,
.journal-card,
.mini-list-item,
.super-centre-tile,
.centre-framework-card,
.message-thread,
.message-card,
.announcement-display-card,
.qualification-selection-card,
.qualification-unit-card,
.qualification-lo-card {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: var(--tight-shadow);
}

.panel,
.role-card {
  padding: 22px;
}

.centre-tile,
.centre-option,
.cm-metric-card,
.visual-panel,
.assessment-visual-card,
.portfolio-box,
.task-card,
.journal-card,
.mini-list-item,
.super-centre-tile,
.centre-framework-card,
.qualification-selection-card {
  box-shadow: inset 5px 0 0 var(--brand-blue), var(--tight-shadow);
}

.centre-grid {
  gap: 16px;
}

.centre-tile {
  min-height: 154px;
  border-radius: 18px;
  padding: 18px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.centre-tile:hover,
.centre-option:hover,
.clickable-card:hover,
.super-centre-tile:hover {
  border-color: color-mix(in srgb, var(--brand-blue) 70%, #d9dee5);
  transform: translateY(-2px);
  box-shadow: inset 5px 0 0 var(--brand-blue), 0 20px 48px rgba(17, 17, 17, .12);
}

.tile-plus,
.tile-list,
.metric-icon,
.ksb-coverage-item span {
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-blue-soft), #fff);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-blue) 36%, #fff);
}

.primary-button,
.role-button {
  border-radius: 999px;
  background: var(--brand-blue);
  color: #071016;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--brand-blue) 26%, transparent);
}

.primary-button:hover,
.role-button:hover {
  background: color-mix(in srgb, var(--brand-blue) 78%, #fff);
}

.secondary-button,
.tab-button,
.framework-tab,
.link-button,
.journal-add-button {
  border-radius: 999px;
}

.tab-button.active,
.framework-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: inset 4px 0 0 var(--brand-blue);
}

input,
textarea,
select {
  border-color: #d4dae1;
  border-radius: 12px;
  background: #fff;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand-blue);
  outline: 3px solid color-mix(in srgb, var(--brand-blue) 32%, transparent);
}

.user-table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(17, 17, 17, .04);
}

.user-table th {
  background: #f7f8fa;
  color: #343a40;
  border-bottom: 1px solid var(--card-border);
}

.user-table td {
  border-bottom: 1px solid #eef1f4;
}

.user-table tr:last-child td {
  border-bottom: 0;
}

.learner-visual-dashboard,
.cm-dashboard-grid {
  gap: 18px;
}

.learner-ring-card {
  border-radius: 24px;
  background:
    linear-gradient(135deg, #111, #242424);
  box-shadow: inset 5px 0 0 var(--brand-blue), var(--soft-shadow);
}

.progress-ring {
  background:
    radial-gradient(circle at center, #fff 55%, transparent 56%),
    conic-gradient(var(--brand-blue) calc(var(--value) * 1%), #e5e8eb 0);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, .08);
}

.progress-ring span {
  color: var(--ink);
}

.status-track,
.billing-bar-track,
.mini-progress,
.portfolio-progress {
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: #e8ecf0;
  overflow: hidden;
}

.status-track i,
.billing-bar-track i,
.mini-progress span,
.portfolio-progress span,
.status-track .status-submitted,
.task-strip span.achieved {
  background: var(--brand-blue);
}

.task-strip span {
  border: 0;
  border-radius: 8px;
  background: #e8ecf0;
}

.status-badge,
.centre-status,
.message-status,
.thread-unread-badge {
  border-radius: 999px;
}

.otjh-meter div,
.ksb-coverage-item,
.super-centre-tile-stats div,
.otj-record-item {
  border-radius: var(--radius-md);
  border-color: var(--card-border);
  background: #f8fafb;
}

.chat-launcher {
  background: var(--brand-blue);
  color: #071016;
  box-shadow: 0 18px 36px color-mix(in srgb, var(--brand-blue) 32%, transparent);
}

.modal-backdrop {
  backdrop-filter: blur(5px);
}

@media (max-width: 980px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-lockup {
    width: 100%;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .workspace.with-menu {
    grid-template-columns: 1fr;
  }

  .side-menu {
    position: static;
    min-height: auto;
    display: flex;
    flex-wrap: wrap;
    padding: 14px;
    border-radius: 0 0 22px 22px;
  }

  .menu-item {
    flex: 1 1 calc(50% - 10px);
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 50px;
  }

  .with-menu .page {
    padding: 24px 18px 48px;
  }
}

@media (max-width: 620px) {
  .brand-mark.logo-container {
    width: 72px;
    min-height: 58px;
    box-shadow: 0 14px 32px rgba(17, 17, 17, .14);
  }

  .brand-title-shell strong {
    max-width: 190px;
  }

  .topbar-actions > * {
    max-width: 100%;
  }

  .menu-item {
    flex-basis: 100%;
  }

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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 440px) 1fr;
  background: #111;
}

.login-panel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 48px;
  background: #fff;
  border-right: 1px solid #d8d8d8;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
}

.logo-container {
  border: 1px solid #e2e2e2;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  box-shadow: inset 4px 0 0 var(--brand-blue), 0 10px 26px rgba(0, 0, 0, .06);
}

.brand-logo {
  width: 112px;
  height: 36px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.brand-orbit {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-blue) 20%, #fff);
  color: #111;
}

.centre-top-logo {
  width: auto;
  max-width: 128px;
  height: 30px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.centre-logo-pill {
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 5px 12px;
}

.login-logo {
  width: 128px;
  height: 40px;
}

.brand-title {
  display: grid;
  gap: 2px;
}

.brand-title strong {
  font-size: 1.1rem;
}

.brand-title sub {
  color: var(--brand-blue);
  font-size: .64em;
  font-weight: 800;
  vertical-align: sub;
}

.brand-title span,
.muted,
.role-meta,
.table-caption {
  color: #666;
}

.login-copy h1 {
  margin: 0 0 10px;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: 0;
}

.login-copy p {
  margin: 0;
  line-height: 1.6;
  color: #555;
}

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

label {
  display: grid;
  gap: 8px;
  color: #333;
  font-weight: 700;
  font-size: .92rem;
}

input {
  width: 100%;
  border: 1px solid #bbb;
  border-radius: 4px;
  padding: 13px 14px;
  background: #fff;
  color: #111;
}

textarea {
  width: 100%;
  border: 1px solid #bbb;
  border-radius: 4px;
  padding: 12px 14px;
  background: #fff;
  color: #111;
  font: inherit;
  resize: vertical;
}

select {
  min-height: 42px;
  border: 1px solid #bbb;
  border-radius: 4px;
  padding: 0 36px 0 12px;
  background: #fff;
  color: #111;
  font: inherit;
  font-weight: 700;
}

input:focus {
  outline: 3px solid color-mix(in srgb, var(--brand-blue) 45%, #d8d8d8);
  border-color: #111;
}

textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--brand-blue) 45%, #d8d8d8);
  border-color: #111;
}

select:focus {
  outline: 3px solid color-mix(in srgb, var(--brand-blue) 45%, #d8d8d8);
  border-color: #111;
}

.primary-button,
.secondary-button,
.role-button,
.tab-button {
  min-height: 42px;
  border-radius: 4px;
  padding: 0 16px;
  font-weight: 800;
}

.primary-button {
  background: #111;
  color: #fff;
}

.primary-button:hover,
.role-button:hover {
  background: #333;
}

.secondary-button,
.tab-button {
  border: 1px solid #cfcfcf;
  background: #fff;
  color: #111;
}

.tab-button.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.login-side {
  display: flex;
  align-items: end;
  padding: 56px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08) 0 25%, transparent 25% 50%, rgba(255,255,255,.08) 50% 75%, transparent 75%),
    #111;
  background-size: 28px 28px;
}

.login-side-copy {
  max-width: 560px;
  margin: 0;
  border-left: 4px solid var(--brand-blue);
  padding-left: 18px;
}

.login-side-copy h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.login-side-copy sub {
  color: var(--brand-blue);
  font-size: .46em;
  font-weight: 900;
  vertical-align: sub;
}

.login-side-copy p {
  margin: 0;
  color: #f1f1f1;
  font-size: 1.35rem;
  line-height: 1.5;
}

.error {
  padding: 12px 14px;
  border-left: 4px solid #111;
  background: #eee;
  color: #111;
}

.app-shell {
  min-height: 100vh;
  background: #f4f4f4;
}

.workspace {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.workspace.with-menu {
  width: 100%;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
  align-items: start;
  padding: 0;
}

.side-menu {
  min-height: calc(100vh - 72px);
  padding: 22px 14px;
  background: #fff;
  border-right: 1px solid #d8d8d8;
}

.menu-item {
  position: relative;
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: 4px;
  padding: 0 14px;
  background: transparent;
  color: #222;
  font-weight: 800;
  text-align: left;
}

.menu-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 6px;
  background: var(--brand-blue);
  color: #111;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.menu-item:hover,
.menu-item.active {
  background: #111;
  color: #fff;
  box-shadow: inset 4px 0 0 var(--brand-blue);
}

.topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 28px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--brand-blue) 8%, #fff), #fff 36%, #f7f7f7);
  border-bottom: 1px solid #d8d8d8;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .06);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.notification-wrap {
  position: relative;
}

.icon-button {
  width: 42px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  position: relative;
  border: 1px solid #dedede;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 4px 0 0 var(--brand-blue);
}

.notification-button.has-alerts {
  border-color: var(--brand-blue);
  background: color-mix(in srgb, var(--brand-blue) 16%, #fff);
  box-shadow: inset 4px 0 0 var(--brand-blue), 0 8px 18px rgba(0, 0, 0, .08);
}

.notification-button strong {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  min-height: 20px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: .72rem;
  line-height: 1;
}

.notification-panel {
  width: min(360px, 86vw);
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #d8d8d8;
  background: #fff;
  box-shadow: 0 18px 35px rgba(0, 0, 0, .16);
}

.notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid #e4e4e4;
}

.notification-item {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid #e1e1e1;
  padding: 10px;
  background: #fafafa;
  color: #222;
  text-align: left;
  cursor: pointer;
}

.notification-item:hover {
  border-color: var(--brand-blue);
  background: #fff;
}

.notification-item span,
.notification-item em {
  color: #666;
  font-size: .88rem;
  font-style: normal;
}

.notification-item em {
  color: #111;
  font-weight: 700;
}

.role-switcher {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dedede;
  border-radius: 999px;
  padding: 4px 6px 4px 10px;
  background: #fff;
  color: #111;
  font-size: .82rem;
  box-shadow: inset 4px 0 0 var(--brand-blue);
}

.role-switcher select {
  min-height: 32px;
  border: 0;
  border-left: 1px solid #e4e4e4;
  border-radius: 0;
  padding: 0 24px 0 10px;
  background-color: transparent;
  font-weight: 900;
}

.active-role {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dedede;
  border-radius: 999px;
  padding: 0 14px 0 10px;
  background: #fff;
  color: #111;
  font-weight: 800;
  box-shadow: inset 4px 0 0 var(--brand-blue);
}

.control-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-blue) 18%, #fff);
  color: #111;
}

.topbar-signout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border-color: #dedede;
  box-shadow: inset 4px 0 0 var(--brand-blue);
}

.topbar-signout .ui-icon,
.control-icon .ui-icon,
.brand-orbit .ui-icon,
.icon-button .ui-icon {
  width: 18px;
  height: 18px;
}

.page {
  width: 100%;
  min-width: 0;
}

.with-menu .page {
  padding: 32px 28px 56px;
  min-width: 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-head h1 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.section-head p {
  margin: 0;
  color: #555;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.role-card,
.panel {
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
}

.role-card {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.role-card h2,
.panel h2 {
  margin: 0;
  font-size: 1.12rem;
}

.role-button {
  width: max-content;
  background: #111;
  color: #fff;
}

.panel {
  padding: 20px;
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 42%, #d8d8d8);
  border-radius: 999px;
  padding: 5px 10px;
  background: color-mix(in srgb, var(--brand-blue) 10%, #fff);
  color: #111;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  line-height: 1.25;
  box-shadow: inset 3px 0 0 var(--brand-blue);
}

.link-button:hover {
  border-color: var(--brand-blue);
  background: color-mix(in srgb, var(--brand-blue) 20%, #fff);
  color: #111;
}

.link-button::after {
  content: "›";
  color: var(--brand-blue);
  font-size: 1.1rem;
  line-height: 1;
}

.centre-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  gap: 12px;
  margin-bottom: 18px;
}

.centre-option {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  color: #111;
  text-align: left;
  box-shadow: inset 5px 0 0 var(--brand-blue);
}

.centre-option:hover {
  background: #f7f7f7;
  border-color: #111;
}

.centre-option span {
  color: #666;
  line-height: 1.45;
}

.compact-head {
  margin-bottom: 16px;
}

.learner-create-head {
  align-items: center;
}

.section-bar {
  margin: 8px -20px 18px;
  padding: 12px 20px;
  border-top: 1px solid #cfcfcf;
  border-bottom: 1px solid #cfcfcf;
  background: #111;
  color: #fff;
  font-weight: 800;
}

.centre-section-bar {
  margin-top: 22px;
}

.learner-attachments {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attachment-list a {
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  padding: 8px 10px;
  color: #111;
  font-weight: 800;
  text-decoration: none;
}

.attachment-list span {
  color: #666;
  font-weight: 600;
}

.clean-home {
  min-height: 420px;
}

.centre-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(138px, auto);
  gap: 12px;
  width: 100%;
}

.centre-tile {
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  color: #111;
  text-align: left;
  box-shadow: inset 5px 0 0 var(--brand-blue);
}

.centre-tile strong {
  font-size: 1rem;
}

.centre-tile span,
.centre-tile small {
  color: #666;
  line-height: 1.35;
}

.centre-tile em {
  width: max-content;
  max-width: 100%;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  padding: 4px 8px;
  color: #333;
  font-size: .78rem;
  font-style: normal;
}

.add-centre-tile,
.list-centre-tile {
  align-items: flex-start;
  justify-content: center;
  border: 2px dashed #777;
  cursor: pointer;
}

.add-centre-tile:hover,
.list-centre-tile:hover {
  border-color: #111;
  background: #f7f7f7;
}

.tile-plus,
.tile-list {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
}

.tile-list {
  font-size: 1.35rem;
}

.empty-tile {
  background: #ededed;
  border-style: dashed;
}

.notice {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  border-left: 4px solid #111;
  padding: 12px 14px;
  background: #fff;
  color: #222;
}

.compact-notice {
  margin-bottom: 10px;
  padding: 10px 12px;
}

.notice strong {
  display: inline;
}

.notice span {
  overflow-wrap: anywhere;
  color: #666;
  font-size: .92rem;
}

.centre-form {
  display: grid;
  gap: 24px;
}

.form-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
}

.compact-form {
  gap: 14px;
}

.span-all {
  grid-column: 1 / -1;
}

.form-section h2 {
  grid-column: 1 / -1;
  padding-bottom: 10px;
  border-bottom: 1px solid #dedede;
}

.option-fieldset {
  grid-column: 1 / -1;
  border: 1px solid #dedede;
  border-radius: 4px;
  padding: 14px;
}

.option-fieldset legend {
  padding: 0 6px;
  font-weight: 800;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

.framework-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}

.framework-tab {
  min-height: 46px;
  border: 1px solid #d6d6d6;
  border-radius: 4px;
  background: #fff;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 10px;
  font-weight: 700;
  text-align: left;
}

.framework-tab span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ececec;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: .78rem;
}

.framework-tab.active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.framework-tab.active span {
  background: #fff;
  color: #111;
}

.framework-tab.complete {
  border-color: #777;
}

.framework-tab:disabled {
  color: #9a9a9a;
  background: #f6f6f6;
  cursor: not-allowed;
}

.framework-section {
  margin-bottom: 18px;
}

.learning-aim-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(130px, 1fr));
  gap: 14px;
  align-items: end;
  padding: 14px 0;
  border-bottom: 1px solid #dedede;
}

.framework-columns {
  display: block;
}

.full-span {
  grid-column: 1 / -1;
}

.item-list {
  max-height: 560px;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding-right: 8px;
}

.item-check {
  align-items: start;
  grid-template-columns: 18px 1fr;
  padding: 10px;
  border: 1px solid #dedede;
  border-radius: 4px;
  background: #fafafa;
  line-height: 1.45;
}

.item-check strong {
  display: block;
  margin-bottom: 4px;
  color: #111;
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.mock-card {
  display: grid;
  gap: 10px;
  border: 1px solid #dedede;
  border-radius: 4px;
  padding: 14px;
  background: #fafafa;
}

.table-scroll {
  overflow-x: auto;
}

.framework-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #fff;
  table-layout: fixed;
}

.framework-table th,
.framework-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #dedede;
  text-align: left;
  vertical-align: top;
}

.framework-table th {
  color: #333;
  background: #f2f2f2;
  font-size: .86rem;
}

.framework-table th:first-child,
.framework-table td:first-child {
  width: 58px;
  text-align: center;
}

.framework-table th:nth-child(2),
.framework-table td:nth-child(2) {
  width: 126px;
}

.framework-table th:nth-child(3),
.framework-table td:nth-child(3) {
  width: 54%;
}

.framework-table th:nth-child(4),
.framework-table td:nth-child(4) {
  width: auto;
}

.framework-table textarea {
  min-height: 46px;
  max-height: 46px;
  line-height: 1.35;
  overflow: auto;
  overflow-wrap: anywhere;
  resize: none;
  white-space: pre-wrap;
}

.framework-table input + textarea {
  margin-top: 6px;
}

.framework-subheading td {
  background: #fafafa;
}

.ksb-ref-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ksb-ref {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid #cfcfcf;
  border-radius: 999px;
  background: #f7f7f7;
  color: #111;
  font-size: .78rem;
  font-weight: 700;
}

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

.component-head h2 {
  margin: 0;
}

.editable-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dedede;
  border-radius: 4px;
  background: #fafafa;
}

.hint-text {
  margin: -8px 0 0;
  color: #666;
  line-height: 1.5;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.user-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.user-table th,
.user-table td {
  padding: 14px;
  border-bottom: 1px solid #dedede;
  text-align: left;
  vertical-align: top;
}

.user-table th {
  color: #333;
  background: #f2f2f2;
  font-size: .86rem;
}

.compact-table {
  min-width: 1120px;
}

.assessment-template-table {
  min-width: 0;
  table-layout: fixed;
}

.assessment-template-table th,
.assessment-template-table td {
  overflow-wrap: anywhere;
  word-break: normal;
}

.assessment-template-table th:nth-child(1),
.assessment-template-table td:nth-child(1) {
  width: 17%;
}

.assessment-template-table th:nth-child(2),
.assessment-template-table td:nth-child(2) {
  width: 18%;
}

.assessment-template-table th:nth-child(3),
.assessment-template-table td:nth-child(3) {
  width: 18%;
}

.assessment-template-table th:nth-child(4),
.assessment-template-table td:nth-child(4) {
  width: 7%;
}

.assessment-template-table th:nth-child(5),
.assessment-template-table td:nth-child(5) {
  width: 7%;
}

.assessment-template-table th:nth-child(6),
.assessment-template-table td:nth-child(6) {
  width: 12%;
}

.assessment-template-table th:nth-child(7),
.assessment-template-table td:nth-child(7) {
  width: 12%;
}

.assessment-template-table th:nth-child(8),
.assessment-template-table td:nth-child(8) {
  width: 9%;
  min-width: 104px;
}

.assessment-template-actions {
  display: grid;
  gap: 7px;
  align-items: stretch;
}

.assessment-template-actions .small-button {
  justify-content: center;
  width: 100%;
  white-space: nowrap;
}

.permission-group-row th {
  background: #111;
  color: #fff;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.small-button {
  padding: 8px 10px;
  min-height: auto;
  font-size: .86rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.two-column-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cm-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  min-width: 0;
}

.cm-metric-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
  min-height: 128px;
  padding: 16px;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 5px 0 0 var(--brand-blue);
}

.metric-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cm-metric-card span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #666;
  font-size: .86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand-blue) 20%, #fff);
  color: #111;
}

.metric-icon.small-icon {
  width: 30px;
  height: 30px;
}

.ui-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.icon-text-button .ui-icon {
  width: 18px;
  height: 18px;
}

.cm-metric-card strong {
  color: #111;
  font-size: 2.2rem;
  line-height: 1;
}

.cm-metric-card small {
  color: #666;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.super-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 18px;
}

.super-centre-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.super-centre-tile {
  min-height: 260px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  border: 1px solid #dedede;
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  box-shadow: inset 6px 0 0 var(--brand-blue), 0 10px 24px rgba(0, 0, 0, .05);
}

.super-centre-tile-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.super-centre-tile-head h3 {
  margin: 0;
  color: #111;
  font-size: 1.08rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.super-centre-tile-head span:not(.metric-icon) {
  display: block;
  margin-top: 4px;
  color: #666;
  font-size: .86rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.super-centre-tile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.super-centre-tile-stats div {
  display: grid;
  gap: 6px;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  padding: 10px;
  background: #fafafa;
}

.super-centre-tile-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #666;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.super-centre-tile-stats .ui-icon {
  width: 15px;
  height: 15px;
  color: #111;
}

.super-centre-tile-stats strong {
  color: #111;
  font-size: 1.35rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.super-centre-tile-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e6e6e6;
  padding-top: 12px;
}

.super-centre-tile-action .table-caption {
  margin: 0;
}

.compact-centre-table {
  table-layout: fixed;
}

.compact-centre-table th,
.compact-centre-table td {
  overflow-wrap: anywhere;
}

.centre-framework-list {
  display: grid;
  gap: 12px;
}

.centre-framework-card {
  display: grid;
  gap: 10px;
  border: 1px solid #dedede;
  border-radius: 8px;
  padding: 12px;
  background: #fafafa;
  box-shadow: inset 5px 0 0 var(--brand-blue);
}

.centre-framework-card > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.centre-framework-card > div:first-child span {
  color: #666;
  font-size: .86rem;
  font-weight: 800;
}

.centre-framework-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.framework-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.framework-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  padding: 7px 9px;
  background: #fff;
  color: #333;
  font-size: .86rem;
  line-height: 1.35;
  box-shadow: inset 4px 0 0 var(--brand-blue);
}

.framework-chip .ui-icon {
  width: 16px;
  height: 16px;
  color: #111;
}

.framework-chip strong {
  color: #111;
}

.framework-chip em {
  border-left: 3px solid var(--brand-blue);
  padding-left: 6px;
  color: #666;
  font-style: normal;
  font-weight: 800;
}

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

.billing-bars {
  display: grid;
  gap: 12px;
}

.billing-bar-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(120px, 2fr) 42px;
  gap: 12px;
  align-items: center;
}

.billing-bar-row span {
  overflow-wrap: anywhere;
  color: #333;
  font-weight: 700;
}

.billing-bar-row strong {
  text-align: right;
}

.billing-bar-track {
  height: 12px;
  border: 1px solid #d6d6d6;
  background: #f3f3f3;
}

.billing-bar-track i {
  display: block;
  height: 100%;
  background: var(--brand-blue);
}

.billing-month-chart {
  min-height: 210px;
  display: flex;
  align-items: end;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 4px 2px;
}

.billing-month-column {
  min-width: 58px;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #333;
  font-size: .82rem;
}

.billing-month-bar {
  width: 34px;
  border: 1px solid #111;
  background: #111;
  box-shadow: inset 0 4px 0 var(--brand-blue);
}

.billing-month-column strong {
  font-size: .9rem;
}

.billing-month-column span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: #666;
}

.clickable-card {
  cursor: pointer;
}

.clickable-card:hover {
  border-color: #111;
  box-shadow: inset 0 -3px 0 var(--brand-blue);
}

button.visual-panel,
button.portfolio-overview-card,
button.ksb-coverage-item,
button.mini-list-item {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.portfolio-overview-grid {
  margin-bottom: 18px;
}

.portfolio-overview-card {
  min-height: 100%;
}

.portfolio-status-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.compact-ring {
  width: 82px;
  height: 82px;
}

.compact-metric-list {
  margin-top: 10px;
}

.status-filter-pill,
button.status-pill {
  cursor: pointer;
  font: inherit;
}

.status-filter-pill:hover,
button.status-pill:hover,
.portfolio-framework-link:hover {
  border-color: color-mix(in srgb, var(--brand-blue) 65%, #fff);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-blue) 18%, transparent);
}

.portfolio-framework-link {
  display: grid;
  gap: 4px;
  justify-items: start;
  text-align: left;
  text-decoration: none;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover td {
  background: color-mix(in srgb, var(--brand-blue) 8%, #fff);
}

.portfolio-journey-panel {
  margin-bottom: 18px;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.journey-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.journey-card.current {
  border-color: color-mix(in srgb, var(--brand-blue) 42%, #d7dce3);
  box-shadow: inset 4px 0 0 var(--brand-blue), var(--shadow-soft);
}

.journey-card.expanded {
  grid-column: span 2;
}

.journey-card-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.journey-card-head span:first-child {
  display: grid;
  gap: 2px;
}

.journey-card-head strong {
  font-size: .98rem;
}

.journey-card-head small {
  color: var(--muted);
  font-size: .78rem;
}

.journey-toggle-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-blue) 12%, #f5f7fb);
  color: var(--brand-blue);
  font-weight: 800;
}

.mini-progress {
  height: 5px;
  margin: 0 16px 12px;
  border-radius: 999px;
  background: #e8ebef;
  overflow: hidden;
}

.mini-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-blue);
}

.journey-status-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 0 12px 14px;
}

.journey-status-chip {
  min-width: 0;
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 8px 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8f9fb;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.journey-status-chip:hover {
  border-color: color-mix(in srgb, var(--brand-blue) 52%, #fff);
  background: color-mix(in srgb, var(--brand-blue) 7%, #fff);
}

.journey-status-chip strong {
  color: #111;
  font-size: .95rem;
}

.journey-status-chip span {
  max-width: 100%;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.2;
  text-align: center;
}

.journey-detail {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.journey-detail-block {
  display: grid;
  gap: 8px;
}

.journey-detail-block > strong {
  font-size: .86rem;
}

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

.journey-meta-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fbfcfe;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.journey-meta-card:hover {
  border-color: color-mix(in srgb, var(--brand-blue) 52%, #fff);
}

.journey-meta-card span {
  color: var(--muted);
  font-size: .74rem;
}

.journey-meta-card strong {
  font-size: .88rem;
}

.pj-programme-journey {
  background: var(--workspace-bg);
  border-color: var(--card-border);
}

.pj-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 24px;
}

.pj-summary-pill {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  box-shadow: var(--tight-shadow);
  color: #111;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.pj-summary-pill span {
  color: #666;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pj-summary-pill strong {
  font-size: 1.5rem;
  line-height: 1;
}

.pj-summary-pill i {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: #e6e6e6;
  overflow: hidden;
}

.pj-summary-pill b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-blue);
}

.pj-summary-pill.pj-negative strong {
  color: #c0392b;
}

.pj-summary-pill.pj-negative b {
  background: #c0392b;
}

.pj-timeline {
  position: relative;
  display: grid;
  gap: 26px;
  padding: 10px 0 8px;
}

.pj-timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 20px;
  left: 17px;
  width: 2px;
  background: #d8d8d8;
}

.pj-month-block {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.pj-month-dot {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 2px solid #d0d0d0;
  background: #fff;
  color: #777;
  font-size: .9rem;
  font-weight: 800;
}

.pj-month-past .pj-month-dot {
  border-color: #111;
  background: #111;
  color: #fff;
}

.pj-month-current .pj-month-dot {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 0 0 5px var(--brand-blue-soft);
}

.pj-month-unscheduled .pj-month-dot {
  border-style: dashed;
}

.pj-month-content {
  min-width: 0;
}

.pj-month-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pj-month-head h3 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  margin: 0;
  color: #111;
  font-size: 1.1rem;
}

.pj-month-head h3 span {
  color: var(--brand-blue);
  font-size: .78rem;
}

.pj-month-head p {
  margin: 3px 0 0;
  color: #666;
  font-size: .86rem;
}

.pj-month-badge,
.pj-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.pj-badge-dark,
.pj-chip-dark {
  background: #111;
  color: #fff;
}

.pj-badge-blue,
.pj-chip-blue {
  background: var(--brand-blue-soft);
  color: #111;
  box-shadow: inset 0 0 0 1px var(--brand-blue);
}

.pj-badge-danger,
.pj-chip-danger {
  background: #fdf0ef;
  color: #c0392b;
}

.pj-badge-muted,
.pj-chip-muted {
  background: #f0f0f0;
  color: #666;
}

.pj-assessment-list {
  display: grid;
  gap: 12px;
}

.pj-assessment-card {
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--brand-blue);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  box-shadow: var(--tight-shadow);
}

.pj-card-achieved {
  border-left-color: #111;
}

.pj-card-resubmission {
  border-left-color: #c0392b;
}

.pj-card-awaiting,
.pj-card-locked {
  border-left-color: #d0d0d0;
}

.pj-card-locked {
  opacity: .72;
}

.pj-assessment-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--card-border);
}

.pj-assessment-head h3 {
  margin: 0;
  color: #111;
  font-size: 1rem;
}

.pj-assessment-head p {
  margin: 3px 0 0;
  color: #666;
  font-size: .84rem;
}

.pj-task-list {
  display: grid;
  padding: 8px 16px;
}

.pj-task-row {
  display: grid;
  grid-template-columns: 22px minmax(160px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px 0;
  border-bottom: 1px solid #ededed;
}

.pj-task-row:last-child {
  border-bottom: 0;
}

.pj-task-dot {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid #d0d0d0;
  color: #fff;
  font-size: .7rem;
  font-weight: 900;
}

.pj-task-achieved {
  border-color: #111;
  background: #111;
}

.pj-task-resubmission {
  border-color: #c0392b;
  background: #fff;
  color: #c0392b;
}

.pj-task-in-progress {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
}

.pj-task-not-started {
  background: #f0f0f0;
}

.pj-task-title {
  min-width: 0;
  color: #333;
  font-size: .86rem;
}

.pj-ksb-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.pj-ksb-tags span {
  padding: 2px 6px;
  border-radius: 6px;
  background: #eeeeee;
  color: #666;
  font-size: .68rem;
  font-weight: 800;
}

.pj-task-cta,
.pj-training-link,
.pj-month-link {
  border: 0;
  background: transparent;
  color: var(--brand-blue);
  font: inherit;
  font-size: .8rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.pj-task-cta-danger,
.pj-training-strip-danger .pj-training-link {
  color: #c0392b;
}

.pj-training-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 16px;
  border-top: 1px solid var(--card-border);
  background: #f5f5f5;
  color: #666;
}

.pj-training-strip-danger {
  background: #fdf0ef;
}

.pj-training-strip p {
  margin: 0;
  min-width: 0;
  font-size: .83rem;
}

.pj-locked-hint {
  margin: 0;
  padding: 16px;
  color: #999;
  font-size: .86rem;
  font-style: italic;
}

.pj-month-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.pj-unscheduled-note {
  padding: 14px 16px;
  border: 1px dashed #bdbdbd;
  border-radius: var(--radius-md);
  background: #fff;
  color: #666;
  font-size: .9rem;
}

.pj-unscheduled-note strong {
  color: #111;
}

.evidence-bank-panel {
  margin-bottom: 18px;
}

.portfolio-evidence-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.portfolio-evidence-filters label {
  min-width: 0;
}

.evidence-bank-table td {
  vertical-align: top;
}

.eb-section {
  margin-bottom: 18px;
}

.eb-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}

.eb-header h2 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.1;
}

.eb-sub,
.eb-count {
  color: #666;
  font-size: .88rem;
}

.eb-sub {
  margin: 5px 0 0;
}

.eb-count {
  padding-top: 2px;
  white-space: nowrap;
}

.eb-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.8fr) repeat(3, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.eb-filters label {
  min-width: 0;
  color: #555;
  font-size: .76rem;
  font-weight: 700;
}

.eb-filters input,
.eb-filters select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-top: 5px;
  border-radius: 10px;
}

.eb-panel {
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: #fff;
}

.eb-group.eb-sep {
  border-top: 2px solid #e1e4e8;
}

.eb-group-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--card-border);
  background: #f6f7f8;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.eb-group-left {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.eb-group-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #ebedf0;
  color: #555;
}

.eb-group-icon.eb-done {
  background: var(--ink);
  color: #fff;
}

.eb-group-icon.eb-warn {
  background: #fdf0ef;
  color: #c0392b;
}

.eb-group-icon .ui-icon,
.eb-chev .ui-icon {
  width: 16px;
  height: 16px;
}

.eb-group-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: .95rem;
  font-weight: 800;
}

.eb-group-count {
  color: #666;
  font-size: .84rem;
  white-space: nowrap;
}

.eb-g-chip,
.eb-s-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.08;
  white-space: nowrap;
}

.eb-g-chip {
  padding: 5px 10px;
  font-size: .78rem;
  background: #ededed;
  color: #444;
}

.eb-gc-done {
  background: var(--ink);
  color: #fff;
}

.eb-gc-warn {
  background: #fdf0ef;
  color: #c0392b;
}

.eb-chev {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  color: #555;
  transition: transform .16s ease;
}

.eb-chev.is-collapsed {
  transform: rotate(-90deg);
}

.eb-table-wrap {
  overflow-x: auto;
}

.eb-table {
  width: 100%;
  min-width: 920px;
  table-layout: fixed;
  border-collapse: collapse;
}

.eb-col-file { width: 26%; }
.eb-col-task { width: 22%; }
.eb-col-ksb { width: 23%; }
.eb-col-date { width: 8%; }
.eb-col-status { width: 10%; }
.eb-col-action { width: 11%; }

.eb-table th {
  padding: 10px 14px;
  color: #6b6b6b;
  background: #fbfbfc;
  border-bottom: 1px solid var(--card-border);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left;
}

.eb-table td {
  padding: 14px;
  border-bottom: 1px solid #eceff2;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.eb-table tbody tr:last-child td {
  border-bottom: 0;
}

.eb-fc {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.eb-ficon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #d9f0fb;
  color: #1a5f8a;
  font-size: .76rem;
  font-weight: 900;
}

.eb-fname,
.eb-tname,
.eb-dtext {
  display: block;
  color: var(--ink);
  font-size: .88rem;
  line-height: 1.28;
}

.eb-fmeta,
.eb-tnum,
.eb-dsub {
  display: block;
  margin-top: 4px;
  color: #777;
  font-size: .76rem;
  line-height: 1.25;
}

.eb-ksb-grid {
  display: grid;
  grid-template-columns: repeat(4, min-content);
  gap: 3px;
  align-items: start;
  overflow-wrap: normal;
}

.eb-ksb,
.eb-ksb-more {
  min-width: 0;
  padding: 2px 5px;
  border: 0;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  overflow-wrap: normal;
}

.eb-ksb {
  background: #f0f0f0;
  color: #6b6b6b;
}

.eb-ksb-more {
  background: transparent;
  color: var(--brand-blue);
  cursor: pointer;
}

.eb-ksb:hover,
.eb-ksb-more:hover {
  color: #111;
  background: var(--brand-blue-soft);
}

.eb-s-chip {
  min-width: 76px;
  min-height: 30px;
  padding: 6px 10px;
  background: #ededed;
  color: #444;
  font-size: .74rem;
  cursor: pointer;
}

.eb-sc-done {
  background: var(--ink);
  color: #fff;
}

.eb-sc-warn {
  background: #fdf0ef;
  color: #c0392b;
}

.eb-s-chip:hover {
  box-shadow: 0 0 0 2px var(--brand-blue-soft);
}

.eb-act {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
}

.eb-icon-btn {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  border: 1px solid var(--card-border);
  border-radius: 7px;
  background: #fff;
  color: #333;
  text-decoration: none;
  cursor: pointer;
}

.eb-icon-btn .ui-icon {
  width: 16px;
  height: 16px;
}

.eb-icon-btn:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.eb-icon-btn.eb-warn:hover {
  border-color: #c0392b;
  color: #c0392b;
}

.evidence-file-link,
.evidence-task-link {
  display: grid;
  gap: 3px;
  min-width: 0;
  max-width: 100%;
  color: inherit;
  text-align: left;
  text-decoration: none;
}

.evidence-file-link:hover strong,
.evidence-task-link:hover strong {
  color: var(--brand-blue);
}

.evidence-task-link {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.evidence-task-link span {
  color: var(--muted);
  font-size: .78rem;
}

.ksb-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 260px;
}

.compact-empty {
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: #fbfcfe;
}

.feedback-actions-panel {
  margin-bottom: 18px;
}

.feedback-actions {
  display: grid;
  gap: 14px;
}

.fa-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.fa-header h2 {
  margin: 0;
}

.fa-header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .88rem;
}

.fa-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fa-total-pill,
.fa-zone-count,
.fa-group-count,
.fa-mini-pill,
.fa-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.fa-total-pill,
.fa-zone-count,
.fa-group-count {
  padding: 6px 11px;
  border: 1px solid var(--border);
  background: #fff;
  color: #444;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .08);
  font-size: .78rem;
}

.fa-filter-row {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(160px, 1fr));
  gap: 10px;
}

.fa-filter-row label {
  min-width: 0;
}

.fa-filter-row input,
.fa-filter-row select {
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
}

.fa-zone {
  display: grid;
  gap: 10px;
}

.fa-zone-head {
  display: grid;
  grid-template-columns: auto minmax(20px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.fa-zone-head span {
  height: 1px;
  background: var(--border);
}

.fa-zone-pill {
  border: 1px solid currentColor;
  background: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  cursor: pointer;
}

.fa-zone-pill.needs,
.fa-mini-pill.needs {
  color: #b75e00;
  background: #fff7ea;
}

.fa-zone-pill.achieved,
.fa-mini-pill.achieved,
.fa-status-pill.achieved {
  color: #247f36;
  background: #ecf9ef;
}

.fa-group-list,
.fa-task-list {
  display: grid;
  gap: 10px;
}

.fa-assessment-group {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.fa-group-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 11px 13px;
  border: 0;
  background: #f8fafc;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.fa-toggle-box {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid #adb5bd;
  border-radius: 5px;
  font-weight: 800;
  font-size: .8rem;
}

.fa-group-title {
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fa-mini-pill {
  padding: 5px 8px;
  font-size: .72rem;
}

.fa-task-list {
  padding: 10px;
}

.fa-task-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: .5px solid var(--card-border);
  border-left-width: 3px;
  border-left-style: solid;
  border-radius: 14px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  background: #fff;
}

.fa-task-card.is-needs {
  border-left-color: #e07020;
  box-shadow: inset 1px 0 0 rgba(217, 130, 34, .22), var(--shadow-soft);
  background: linear-gradient(90deg, rgba(217, 130, 34, .055), #fff 88px);
}

.fa-task-card.is-achieved {
  border-left-color: #4caf50;
  box-shadow: inset 1px 0 0 rgba(76, 175, 80, .2), var(--shadow-soft);
  background: linear-gradient(90deg, rgba(76, 175, 80, .05), #fff 88px);
}

.fa-task-main,
.fa-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.fa-task-main h4 {
  margin: 0;
  font-size: .98rem;
}

.fa-task-main p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .8rem;
}

.fa-date,
.fa-muted {
  color: var(--muted);
  font-size: .78rem;
}

.fa-feedback-box {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #d9d6cc;
  border-radius: 10px;
  background: #fbfaf4;
}

.fa-label {
  color: #666;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.fa-feedback-text {
  color: #222;
  font-size: .87rem;
  line-height: 1.42;
  white-space: pre-wrap;
}

.fa-feedback-text.is-clamped {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.fa-show-more {
  justify-self: start;
  padding: 2px 0;
}

.fa-ksb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.fa-ksb-chip {
  border: 0;
  border-radius: 6px;
  background: #eef0f2;
  color: #555;
  padding: 4px 7px;
  font-size: .76rem;
  font-weight: 800;
  cursor: pointer;
}

.fa-ksb-chip.more {
  border: 1px solid #c8cdd3;
  background: #fff;
}

.fa-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.feedback-actions .fa-resubmit-button {
  background: #fff3e0;
  border: .5px solid #e07020;
  color: #b05000;
}

.feedback-actions .fa-resubmit-button:hover {
  background: #ffe7c7;
  border-color: #e07020;
  color: #b05000;
}

.fa-response-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b05000;
  opacity: .7;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.fa-response-link:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fa-status-pill {
  padding: 8px 12px;
  font-size: .78rem;
  border: 1px solid currentColor;
}

@media (max-width: 980px) {
  .fa-filter-row {
    grid-template-columns: 1fr 1fr;
  }

  .fa-group-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .fa-mini-pill {
    display: none;
  }
}

@media (max-width: 680px) {
  .fa-header,
  .fa-task-main,
  .fa-card-footer {
    display: grid;
  }

  .fa-filter-row {
    grid-template-columns: 1fr;
  }

  .fa-actions {
    justify-content: flex-start;
  }
}

.epa-readiness-panel {
  display: grid;
  gap: 0;
  margin-bottom: 18px;
}

.epa-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 1rem;
}

.epa-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.epa-disclaimer {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 11px;
  opacity: .55;
}

.epa-score-block {
  min-width: 120px;
  text-align: right;
}

.epa-score-num {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.epa-score-denom {
  font-size: 14px;
  opacity: .6;
}

.epa-score-label {
  margin: 2px 0 0;
  font-size: 11px;
  opacity: .55;
}

.epa-progress-wrap {
  height: 6px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border: .5px solid var(--card-border);
  border-radius: 20px;
  background: var(--workspace-bg);
}

.epa-progress-fill {
  height: 100%;
  border-radius: 20px;
  background: var(--brand-blue);
  transition: width .4s ease;
}

.epa-group-label {
  margin: 1.25rem 0 4px;
  padding-bottom: 6px;
  border-bottom: .5px solid var(--card-border);
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .5;
}

.epa-row-list {
  display: grid;
}

.epa-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 132px;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: .5px solid var(--card-border);
}

.epa-row:last-child {
  border-bottom: none;
}

.epa-row.epa-dimmed {
  opacity: .5;
}

.epa-row-info {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

.epa-row-info:not(:disabled) {
  cursor: pointer;
}

.epa-row-info:disabled {
  cursor: default;
}

.epa-status-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.epa-status-achieved .epa-status-icon {
  background: #e8f5e9;
  color: #2e7d32;
}

.epa-status-in_progress .epa-status-icon,
.epa-status-not_started .epa-status-icon {
  background: #e3f2fd;
  color: #1565c0;
}

.epa-status-not_available .epa-status-icon {
  background: var(--workspace-bg);
  color: var(--muted);
}

.epa-row-body {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.epa-row-name {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.epa-row-value {
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  opacity: .6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.epa-mini-bar-wrap {
  width: 80px;
  justify-self: end;
  flex-shrink: 0;
}

.epa-mini-bar-bg {
  height: 4px;
  overflow: hidden;
  border: .5px solid var(--card-border);
  border-radius: 20px;
  background: var(--workspace-bg);
}

.epa-mini-bar-fill {
  height: 100%;
  border-radius: 20px;
  background: var(--brand-blue);
  transition: width .4s ease;
}

.epa-mini-label {
  margin-top: 2px;
  font-size: 10px;
  text-align: right;
  opacity: .55;
}

.epa-cta-link {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-blue);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.epa-cta-na {
  justify-self: end;
  color: var(--ink);
  font-size: 11px;
  opacity: .55;
  white-space: nowrap;
}

.epa-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: .5px solid var(--card-border);
}

.epa-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-size: 11px;
  opacity: .7;
}

.epa-legend-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
}

.epa-legend-dot.met {
  background: #4caf50;
}

.epa-legend-dot.progress {
  background: var(--brand-blue);
}

.epa-legend-dot.unavailable {
  background: var(--card-border);
}

@media (max-width: 760px) {
  .epa-header {
    display: grid;
  }

  .epa-score-block {
    text-align: left;
  }

  .epa-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .epa-mini-bar-wrap,
  .epa-cta-na,
  .epa-cta-link {
    justify-self: start;
  }
}

.portfolio-export-panel {
  margin-bottom: 18px;
}

.portfolio-export-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 12px;
}

.portfolio-export-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 4px 0 0 var(--brand-blue), var(--shadow-soft);
}

.portfolio-export-card .tile-list {
  width: 42px;
  height: 42px;
  font-size: .72rem;
}

.portfolio-export-card div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.portfolio-export-card small {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

.portfolio-export-card button {
  grid-column: 2;
  justify-self: start;
}

.dashboard-row-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.dashboard-row-button:hover span,
.dashboard-row-button:hover strong {
  color: #111;
}

.learner-visual-dashboard {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) repeat(2, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
  min-width: 0;
}

.learner-ring-card,
.visual-panel,
.assessment-visual-card {
  min-width: 0;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  box-shadow: inset 5px 0 0 var(--brand-blue);
}

.learner-ring-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  background: #111;
  color: #fff;
  box-shadow: inset 5px 0 0 var(--brand-blue);
}

.learner-ring-card p {
  margin: 8px 0 0;
  color: #d6d6d6;
  line-height: 1.45;
}

.learner-home-programme-panel {
  margin-bottom: 14px;
}

.learner-home-programme-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(260px, 1.6fr) repeat(2, minmax(150px, .8fr));
  gap: 12px;
}

.programme-summary-card {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: inset 4px 0 0 var(--brand-blue-soft);
}

button.programme-summary-card {
  cursor: pointer;
}

button.programme-summary-card:hover {
  border-color: var(--brand-blue);
  box-shadow: inset 4px 0 0 var(--brand-blue), var(--tight-shadow);
}

.programme-summary-card span {
  color: #666;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.programme-summary-card strong {
  overflow-wrap: anywhere;
  font-size: .95rem;
  line-height: 1.25;
}

.programme-summary-card small {
  color: #777;
  font-size: .78rem;
}

.progress-ring {
  width: 124px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #111 58%, transparent 59%),
    conic-gradient(var(--brand-blue) calc(var(--value) * 1%), #3b3b3b 0);
}

.progress-ring span {
  color: #fff;
  font-size: 1.55rem;
  font-weight: 900;
}

.status-bars {
  display: grid;
  gap: 10px;
}

.status-bar-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
  font-size: .9rem;
  min-width: 0;
}

.status-bar-row span,
.status-bar-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.status-track {
  height: 10px;
  border: 1px solid #cfcfcf;
  background: #f3f3f3;
}

.status-track i {
  display: block;
  height: 100%;
  background: #111;
}

.status-track .status-progress {
  background: #777;
}

.status-track .status-submitted {
  background: var(--brand-blue);
}

.status-track .status-resubmission {
  background: #111;
}

.status-track .status-achieved {
  background: #22a06b;
}

.task-strip {
  display: grid;
  grid-template-columns: repeat(12, minmax(10px, 1fr));
  gap: 6px;
}

.task-strip span {
  aspect-ratio: 1;
  border: 1px solid #cfcfcf;
  background: #f2f2f2;
}

.task-strip span.achieved {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}

.ksb-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ksb-chip-cloud span {
  border: 1px solid #111;
  padding: 6px 8px;
  background: #f8f8f8;
  font-weight: 800;
  font-size: .86rem;
}

.ksb-coverage-panel {
  display: grid;
  gap: 12px;
}

.ksb-overall-bar {
  display: grid;
  gap: 8px;
}

.ksb-overall-bar strong {
  font-size: .9rem;
}

.ksb-coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ksb-coverage-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  background: #fafafa;
  box-shadow: inset 4px 0 0 var(--brand-blue);
}

.ksb-coverage-item div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.ksb-coverage-item span {
  display: grid;
  place-items: center;
  width: 28px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-weight: 900;
}

.ksb-coverage-item strong {
  font-size: 1.15rem;
}

.ksb-coverage-item small {
  color: #666;
  line-height: 1.35;
}

.portfolio-ksb-modal {
  overflow-y: auto;
}

.portfolio-ksb-modal .task-response-form {
  padding: 12px;
}

.portfolio-ksb-modal .task-response-form h3 {
  margin: 0 0 10px;
}

.portfolio-ksb-modal .two-column-panel {
  gap: 12px;
}

.portfolio-ksb-modal .two-column-panel > div > strong {
  display: block;
  margin-bottom: 7px;
  color: #111;
  font-size: .86rem;
}

.portfolio-ksb-list {
  display: grid;
  gap: 6px;
}

.portfolio-ksb-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  background: #fafafa;
}

.portfolio-ksb-code {
  align-self: start;
  color: #111;
  font-size: .84rem;
  line-height: 1.25;
}

.portfolio-ksb-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.portfolio-ksb-copy span {
  display: -webkit-box;
  max-height: 2.56em;
  overflow: hidden;
  color: #333;
  font-size: .82rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.portfolio-ksb-copy small {
  display: -webkit-box;
  max-height: 2.5em;
  overflow: hidden;
  color: #666;
  font-size: .74rem;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.assessment-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.assessment-visual-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.assessment-visual-card span,
.assessment-visual-card small {
  color: #666;
  font-size: .88rem;
}

.otj-record-panel {
  display: grid;
  gap: 12px;
}

.otj-record-list {
  display: grid;
  gap: 8px;
}

.otj-record-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 10px;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  background: #fafafa;
  box-shadow: inset 4px 0 0 var(--brand-blue);
}

.otj-record-item strong,
.otj-record-item span {
  display: block;
  overflow-wrap: anywhere;
}

.otj-record-item span {
  margin-top: 3px;
  color: #666;
  font-size: .86rem;
}

.otj-record-item > div:last-child {
  text-align: right;
  white-space: nowrap;
}

.otj-entry-form {
  align-items: end;
}

.otjh-progress-panel {
  display: grid;
  gap: 14px;
}

.otjh-meter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.otjh-meter div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #e1e1e1;
  background: #fafafa;
}

.otjh-meter span,
.otjh-progress-stack label,
.otjh-balance span {
  color: #666;
  font-size: .86rem;
  font-weight: 800;
}

.otjh-balance.static-balance {
  cursor: default;
}

.otjh-meter strong {
  font-size: 1.15rem;
}

.otjh-progress-stack {
  display: grid;
  gap: 8px;
}

.otjh-balance {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font-weight: 900;
  text-align: left;
}

.otjh-balance.positive {
  box-shadow: inset 4px 0 0 #22a06b;
}

.otjh-balance.negative {
  box-shadow: inset 4px 0 0 #111;
}

.otjh-balance:hover {
  background: #f5f5f5;
}

.journal-timeline {
  display: grid;
  gap: 16px;
}

.journal-timeline-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.journal-date {
  color: #666;
  font-weight: 800;
}

.journal-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #fff;
  position: relative;
  box-shadow: inset 4px 0 0 var(--brand-blue);
}

.journal-add-button {
  justify-self: start;
  min-height: 38px;
  border: 1px solid var(--brand-blue);
  background: color-mix(in srgb, var(--brand-blue) 18%, #fff);
  color: #111;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: inset 4px 0 0 var(--brand-blue);
}

.journal-add-button:hover {
  background: color-mix(in srgb, var(--brand-blue) 32%, #fff);
}

.journal-timeline-item.current .journal-card {
  border-color: #111;
  box-shadow: inset 4px 0 0 var(--brand-blue);
}

.journal-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 16px;
  position: relative;
  z-index: 20;
}

.journal-main,
.journal-side {
  display: grid;
  gap: 12px;
}

.journal-composer select,
.journal-composer input,
.journal-composer textarea {
  position: relative;
  z-index: 21;
  pointer-events: auto;
}

.journal-side {
  padding: 12px;
  border: 1px solid #e1e1e1;
  background: #fafafa;
}

.journal-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.journal-record-table {
  min-width: 0;
  table-layout: fixed;
}

.journal-record-table th,
.journal-record-table td {
  padding: 9px 8px;
  vertical-align: middle;
}

.journal-record-table th:nth-child(1),
.journal-record-table td:nth-child(1) {
  width: 22%;
}

.journal-record-table th:nth-child(2),
.journal-record-table td:nth-child(2) {
  width: 13%;
}

.journal-record-table th:nth-child(3),
.journal-record-table td:nth-child(3) {
  width: 10%;
}

.journal-record-table th:nth-child(4),
.journal-record-table td:nth-child(4) {
  width: 10%;
}

.journal-record-table th:nth-child(5),
.journal-record-table td:nth-child(5) {
  width: 20%;
}

.journal-record-table th:nth-child(6),
.journal-record-table td:nth-child(6) {
  width: 25%;
}

.journal-record-table .action-row {
  gap: 5px;
  justify-content: flex-start;
}

.journal-record-table .small-button {
  padding: 5px 8px;
}

.otjhs-summary {
  display: grid;
  gap: 10px;
}

.otjhs-progress-card,
.otjhs-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--brand-blue);
  border-radius: var(--radius-lg);
}

.otjhs-progress-card {
  margin-bottom: 10px;
  padding: 18px 20px;
}

.otjhs-stat-strip {
  background: var(--card-border);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
  overflow: hidden;
}

.otjhs-stat-cell {
  background: #fff;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 14px;
}

.otjhs-stat-cell span,
.otjhs-card h2 {
  color: #888;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.otjhs-stat-cell strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

.otjhs-progress-rows {
  display: grid;
  gap: 8px;
}

.otjhs-progress-row {
  align-items: center;
  display: flex;
  gap: 10px;
}

.otjhs-progress-row > span {
  color: #888;
  flex-shrink: 0;
  font-size: 11px;
  width: 70px;
}

.otjhs-track {
  background: var(--workspace-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  flex: 1;
  height: 8px;
  overflow: hidden;
}

.otjhs-track i {
  border-radius: 4px;
  display: block;
  height: 100%;
}

.otjhs-track .expected {
  background: var(--card-border);
}

.otjhs-track .recorded,
.otjhs-category-track i {
  background: var(--brand-blue);
}

.otjhs-progress-row strong {
  color: #444;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
  text-align: right;
  width: 72px;
}

.otjhs-progress-row em {
  color: #888;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
}

.otjhs-delta {
  font-size: 13px;
  font-weight: 500;
  margin-top: 12px;
}

.otjhs-delta.negative {
  color: #b05000;
}

.otjhs-delta.positive {
  color: #1a7a1a;
}

.otjhs-delta.neutral {
  color: #888;
}

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

.otjhs-card {
  padding: 16px 18px;
}

.otjhs-card h2 {
  letter-spacing: .07em;
  margin-bottom: 14px;
}

.otjhs-programme-row {
  align-items: center;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
}

.otjhs-programme-row:last-child {
  border-bottom: 0;
}

.otjhs-programme-row span {
  color: #888;
  font-size: 12px;
}

.otjhs-programme-row strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  text-align: right;
}

.otjhs-last-pill {
  align-items: center;
  background: var(--workspace-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  color: #888;
  display: inline-flex;
  font-size: 11px;
  gap: 6px;
  margin-top: 14px;
  padding: 4px 10px;
}

.otjhs-last-pill strong {
  color: var(--ink);
  font-weight: 500;
}

.otjhs-category-list {
  display: grid;
  gap: 10px;
}

.otjhs-category-row {
  align-items: center;
  display: flex;
  gap: 10px;
}

.otjhs-category-row.empty {
  opacity: .4;
}

.otjhs-category-row > span {
  color: #444;
  flex-shrink: 0;
  font-size: 12px;
  width: 130px;
}

.otjhs-category-track {
  background: var(--workspace-bg);
  border: 1px solid var(--card-border);
  border-radius: 3px;
  flex: 1;
  height: 6px;
  overflow: hidden;
}

.otjhs-category-track i {
  border-radius: 3px;
  display: block;
  height: 100%;
}

.otjhs-category-row strong {
  color: #444;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
  text-align: right;
  width: 52px;
}

.otjhs-category-row.empty strong {
  color: #888;
  font-weight: 400;
}

.metric-list {
  display: grid;
  gap: 9px;
}

.metric-list span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  color: #555;
}

.metric-list strong {
  color: #111;
  white-space: nowrap;
}

.otj-time-fields {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}

.otj-time-fields label {
  width: 96px;
}

input.compact-number-input {
  text-align: center;
}

.stacked-list {
  display: grid;
  gap: 10px;
}

.mini-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #fafafa;
  box-shadow: inset 4px 0 0 var(--brand-blue);
}

.mini-list-item strong,
.mini-list-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mini-list-item span {
  color: #666;
  font-size: .9rem;
}

.mini-list-item button {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.danger-button {
  border-color: #111;
  color: #111;
}

.mini-progress {
  width: 120px;
  height: 8px;
  border: 1px solid #bbb;
  background: #f4f4f4;
  margin-bottom: 4px;
}

.mini-progress span {
  display: block;
  height: 100%;
  background: var(--brand-blue);
}

.portfolio-header {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(280px, 1.2fr);
  gap: 18px;
  margin-bottom: 18px;
}

.portfolio-header h2 {
  margin: 4px 0 0;
}

.portfolio-header p {
  margin: 6px 0 0;
  color: #555;
}

.portfolio-section {
  margin-bottom: 18px;
}

.portfolio-section h2 {
  margin-bottom: 14px;
}

.assessor-learner-summary-panel {
  margin-bottom: 14px;
}

.assessor-learner-summary-strip {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(220px, 1.4fr) repeat(3, minmax(140px, .9fr));
  gap: 10px;
}

.assessor-learner-summary-strip article {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 12px 13px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: inset 4px 0 0 var(--brand-blue-soft);
}

.assessor-learner-summary-strip span {
  color: #666;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.assessor-learner-summary-strip strong {
  color: var(--ink);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.assessor-learner-summary-strip small {
  color: #666;
  font-size: .75rem;
  line-height: 1.35;
}

.assessor-learner-summary-strip .positive-balance {
  color: #2e7d32;
}

.assessor-learner-summary-strip .negative-balance {
  color: #b05000;
}

.portfolio-aim-grid,
.portfolio-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.portfolio-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.portfolio-box {
  min-height: 104px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid #dedede;
  border-radius: 8px;
  padding: 14px;
  background: #fafafa;
  overflow-wrap: anywhere;
  box-shadow: inset 4px 0 0 var(--brand-blue);
}

.portfolio-box.highlight {
  border-color: #111;
  background: #fff;
}

.portfolio-box span {
  color: #555;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portfolio-box strong {
  color: #111;
  font-size: 1.15rem;
}

.portfolio-box small {
  color: #666;
  line-height: 1.45;
}

.portfolio-progress {
  width: 100%;
  height: 9px;
  border: 1px solid #bbb;
  background: #fff;
}

.portfolio-progress span {
  display: block;
  height: 100%;
  background: var(--brand-blue);
}

.action-select {
  min-width: 132px;
  padding: 8px 10px;
  font-size: .9rem;
}

.task-card {
  display: grid;
  gap: 14px;
  border: 1px solid #dedede;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  background: #fff;
  box-shadow: inset 5px 0 0 var(--brand-blue);
}

.accordion-task-card {
  padding: 0;
  overflow: hidden;
}

.accordion-task-card.open {
  border-color: color-mix(in srgb, var(--brand-blue) 55%, #bfc7cc);
}

.task-accordion-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  background: #fff;
  color: #111;
  cursor: pointer;
  text-align: left;
}

.task-accordion-toggle:hover,
.accordion-task-card.open .task-accordion-toggle {
  background: color-mix(in srgb, var(--brand-blue) 12%, #fff);
}

.task-accordion-toggle span {
  font-weight: 900;
  overflow-wrap: anywhere;
}

.task-accordion-toggle small {
  color: #666;
  font-weight: 800;
}

.task-accordion-toggle i {
  color: var(--brand-blue);
  font-style: normal;
  font-size: 1.1rem;
  font-weight: 900;
}

.task-accordion-body {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
}

.task-accordion-body.is-collapsed {
  display: none;
}

.task-description {
  white-space: pre-wrap;
  line-height: 1.55;
  color: #222;
}

.answer-preview {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #d8d8d8;
  background: #f7f7f7;
}

.assessment-resource {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #d7d7d7;
  background: #f8f9fa;
}

.assessment-resource div {
  display: grid;
  gap: 3px;
}

.assessment-resource span {
  color: #555;
  font-size: 0.9rem;
}

.wrap-actions {
  flex-wrap: wrap;
}

.compact-table {
  table-layout: fixed;
  width: 100%;
}

.compact-table th,
.compact-table td {
  overflow-wrap: anywhere;
  word-break: normal;
}

.assessment-criteria-table th:nth-child(1),
.assessment-criteria-table td:nth-child(1) {
  width: 82px;
}

.assessment-criteria-table th:nth-child(3),
.assessment-criteria-table td:nth-child(3),
.assessment-criteria-table th:nth-child(4),
.assessment-criteria-table td:nth-child(4) {
  width: 92px;
  text-align: center;
}

.criteria-grade {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  color: #111;
}

.inset-feedback {
  margin-top: 14px;
  background: #fafafa;
}

.learner-task-card {
  gap: 16px;
}

.task-response-form {
  display: grid;
  gap: 10px;
  border-top: 1px solid #e5e5e5;
  padding-top: 14px;
}

.tutor-feedback-box {
  border: 1px solid color-mix(in srgb, var(--brand-blue) 72%, #cfd9df);
  border-left: 5px solid var(--brand-blue);
  background: color-mix(in srgb, var(--brand-blue) 18%, #fff);
  color: #333;
  padding: 14px;
}

.tutor-feedback-box textarea,
.tutor-feedback-box .answer-preview {
  border-color: color-mix(in srgb, var(--brand-blue) 50%, #d7d7d7);
  background: color-mix(in srgb, var(--brand-blue) 14%, #fff);
  color: #333;
}

.task-evidence-list {
  display: grid;
  gap: 8px;
  border-top: 1px solid #e5e5e5;
  padding-top: 14px;
}

.task-evidence-list a {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 42%, #d8d8d8);
  border-radius: 999px;
  padding: 5px 10px;
  background: color-mix(in srgb, var(--brand-blue) 10%, #fff);
  color: #111;
  font-weight: 800;
  text-decoration: none;
  box-shadow: inset 3px 0 0 var(--brand-blue);
}

.task-evidence-list span {
  color: #666;
  font-weight: 600;
}

.mapping-summary {
  border-left: 4px solid #111;
  background: #f7f7f7;
  padding: 10px 12px;
  line-height: 1.5;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, .45);
  display: grid;
  place-items: center;
  padding: 22px;
}

.modal-panel {
  width: min(1100px, 96vw);
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  border-radius: 6px;
  padding: 18px;
}

.form-modal {
  width: min(820px, 96vw);
}

.wide-modal {
  width: min(1120px, 96vw);
}

.slim-section {
  margin-bottom: 16px;
}

.stacked-label {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  line-height: 1.35;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 42%, #d8d8d8);
  border-radius: 999px;
  padding: 5px 10px;
  background: color-mix(in srgb, var(--brand-blue) 10%, #fff);
  color: #111;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  box-shadow: inset 3px 0 0 var(--brand-blue);
}

.text-link:hover {
  border-color: var(--brand-blue);
  background: color-mix(in srgb, var(--brand-blue) 20%, #fff);
}

.text-link::after {
  content: "›";
  color: var(--brand-blue);
  font-size: 1.1rem;
  line-height: 1;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  padding: 18px;
}

.detail-grid h2 {
  margin-top: 0;
}

.centre-details-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  margin-bottom: 18px;
}

.centre-logo-card {
  align-content: start;
}

.centre-logo-preview {
  min-height: 116px;
  display: grid;
  place-items: center;
  border: 1px dashed #bbb;
  border-radius: 8px;
  padding: 18px;
  background: #f7f7f7;
  color: #666;
  font-weight: 800;
  text-align: center;
}

.centre-logo-preview img {
  width: auto;
  max-width: min(280px, 100%);
  max-height: 92px;
  object-fit: contain;
}

.centre-detail-list {
  display: grid;
  gap: 10px;
}

.detail-line {
  display: grid;
  grid-template-columns: minmax(140px, 0.55fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border-bottom: 1px solid #e2e2e2;
  padding: 0 0 10px;
}

.detail-line span {
  color: #666;
  font-weight: 800;
}

.detail-line strong {
  color: #111;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.training-filter-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.training-filter-panel label {
  width: min(460px, 100%);
}

.training-resource-form {
  margin-top: 8px;
}

.atc-filter-bar {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.atc-filter-bar label {
  align-items: center;
  color: var(--ink3);
  display: flex;
  font-size: 12px;
  font-weight: 600;
  gap: 14px;
  margin: 0;
}

.atc-filter-bar select {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  min-width: 260px;
  outline: none;
  padding: 7px 12px;
}

.atc-filter-bar select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(124, 200, 236, .15);
}

.atc-filter-hint {
  color: var(--ink3);
  font-size: 11px;
  font-style: italic;
  text-align: right;
}

.atc-upload-accordion {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.atc-upload-trigger {
  align-items: center;
  background: var(--card-bg);
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-family: inherit;
  justify-content: space-between;
  padding: 14px 18px;
  text-align: left;
  width: 100%;
}

.atc-trigger-main {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.atc-plus {
  color: var(--ink2);
  flex-shrink: 0;
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
}

.atc-trigger-main strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.atc-trigger-main small {
  color: var(--ink3);
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.atc-chevron {
  color: var(--ink3);
  flex-shrink: 0;
  font-size: 14px;
  transition: transform .18s ease;
}

.atc-upload-accordion.open .atc-chevron {
  transform: rotate(180deg);
}

.atc-upload-body {
  border-top: 0 solid var(--card-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height .24s ease;
}

.atc-upload-accordion.open .atc-upload-body {
  border-top-width: 1px;
  max-height: 900px;
}

.atc-upload-inner {
  padding: 20px 22px 22px;
}

.atc-upload-form {
  margin-top: 0;
}

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

.atc-form-grid .span-all {
  grid-column: 1 / -1;
}

.atc-form-grid > label,
.atc-upload-field {
  color: var(--ink3);
  display: grid;
  font-size: 11px;
  font-weight: 600;
  gap: 6px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.atc-form-grid > label > input,
.atc-form-grid > label > select {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  min-width: 0;
  padding: 10px 12px;
  text-transform: none;
  width: 100%;
}

.atc-form-grid > label > input:focus,
.atc-form-grid > label > select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(124, 200, 236, .15);
  outline: none;
}

.atc-drop-zone {
  background: var(--workspace-bg);
  border: 2px dashed var(--card-border);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 4px;
  min-height: 94px;
  overflow: hidden;
  padding: 18px;
  place-items: center;
  position: relative;
  text-align: center;
  text-transform: none;
}

.atc-drop-zone input {
  cursor: pointer;
  height: 100%;
  inset: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
}

.atc-drop-zone strong {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.atc-drop-zone small {
  color: var(--ink3);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.atc-or-divider {
  align-items: center;
  color: var(--ink3);
  display: flex;
  gap: 12px;
  justify-content: center;
  letter-spacing: 0;
  text-transform: none;
}

.atc-or-divider span {
  background: var(--card-border);
  flex: 1;
  height: 1px;
}

.atc-or-divider strong {
  font-size: 12px;
  font-weight: 600;
}

.atc-upload-footer {
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 14px;
}

.atc-upload-footer button {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  min-width: 150px;
  padding: 8px 16px;
}

.atc-upload-footer button:hover {
  background: var(--workspace-bg);
}

@media (max-width: 760px) {
  .atc-filter-bar {
    align-items: stretch;
    display: grid;
  }

  .atc-filter-bar label {
    align-items: stretch;
    display: grid;
  }

  .atc-filter-bar select {
    min-width: 0;
    width: 100%;
  }

  .atc-filter-hint {
    text-align: left;
  }

  .atc-form-grid {
    grid-template-columns: 1fr;
  }

  .atc-upload-trigger {
    padding: 12px 14px;
  }

  .atc-upload-inner {
    padding: 16px;
  }
}

.tc-hero {
  align-items: center;
  background: #111;
  border-radius: var(--radius-lg);
  display: flex;
  gap: 20px;
  margin-bottom: 1.25rem;
  padding: 20px 24px;
}

.tc-hero-main {
  flex: 1;
  min-width: 0;
}

.tc-eyebrow {
  color: #666;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.tc-hero h1 {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
}

.tc-sub {
  color: #666;
  font-size: 12px;
  margin-bottom: 14px;
}

.tc-progress-label {
  align-items: center;
  color: #666;
  display: flex;
  font-size: 11px;
  justify-content: space-between;
  margin-bottom: 5px;
}

.tc-progress-label strong {
  color: var(--brand-blue);
  font-weight: 500;
}

.tc-progress-track {
  background: #2a2a2a;
  border-radius: 3px;
  height: 6px;
  overflow: hidden;
}

.tc-progress-track i {
  background: var(--brand-blue);
  border-radius: 3px;
  display: block;
  height: 100%;
}

.tc-quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
}

.tc-quick-stats span {
  display: grid;
  min-width: 72px;
  gap: 1px;
}

.tc-quick-stats strong {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}

.tc-quick-stats em {
  color: #555;
  font-size: 10px;
  font-style: normal;
}

.tc-hero-actions {
  flex-shrink: 0;
  text-align: right;
}

.tc-start-pill {
  align-items: center;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 20px;
  color: var(--brand-blue);
  display: inline-flex;
  font-size: 11px;
  gap: 6px;
  margin-bottom: 8px;
  padding: 6px 12px;
}

.tc-continue {
  background: var(--brand-blue);
  border: 0;
  border-radius: var(--radius-sm);
  color: #111;
  cursor: pointer;
  display: block;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 16px;
}

.tc-continue:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.tc-month-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.25rem;
}

.tc-month-tab {
  align-items: center;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  color: #888;
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-weight: 500;
  gap: 6px;
  padding: 7px 16px;
  transition: all .15s ease;
}

.tc-month-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.tc-month-tab em {
  background: var(--workspace-bg);
  border-radius: 10px;
  color: #888;
  font-size: 10px;
  font-style: normal;
  padding: 1px 6px;
}

.tc-month-tab.active em {
  background: rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .7);
}

.tc-month-tab i {
  background: #4caf50;
  border-radius: 50%;
  flex-shrink: 0;
  height: 6px;
  width: 6px;
}

.tc-plan {
  display: grid;
  gap: 1.5rem;
}

.tc-month-section {
  display: grid;
  gap: 10px;
}

.tc-month-head {
  align-items: center;
  display: flex;
  gap: 10px;
}

.tc-month-head h2 {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.tc-month-head span,
.tc-month-head strong {
  color: #888;
  font-size: 11px;
}

.tc-month-head i {
  background: var(--card-border);
  flex: 1;
  height: 1px;
}

.tc-month-head strong.complete {
  color: #4caf50;
}

.tc-resource-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tc-resource-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow .15s ease, transform .15s ease;
}

.tc-resource-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, .10);
  transform: translateY(-1px);
}

.tc-resource-card.tc-completed {
  border-left: 4px solid #4caf50;
}

.tc-resource-card.tc-locked {
  cursor: not-allowed;
  opacity: .55;
}

.tc-card-banner {
  align-items: center;
  display: flex;
  height: 64px;
  justify-content: center;
  position: relative;
}

.tc-type-interactive .tc-card-banner {
  background: linear-gradient(135deg, #1a2a3a, #0d1f2d);
}

.tc-type-brief .tc-card-banner {
  background: linear-gradient(135deg, #1a2a4a, #0f1e3a);
}

.tc-type-slides .tc-card-banner {
  background: linear-gradient(135deg, #2a1a1a, #3a0f0f);
}

.tc-type-resource .tc-card-banner {
  background: linear-gradient(135deg, #1a2a2a, #0d2020);
}

.tc-icon {
  font-size: 22px;
}

.tc-type-badge {
  border-radius: 10px;
  font-size: 9px;
  font-weight: 600;
  left: 8px;
  letter-spacing: .06em;
  padding: 2px 6px;
  position: absolute;
  text-transform: uppercase;
  top: 6px;
}

.tc-type-interactive .tc-type-badge,
.tc-type-brief .tc-type-badge {
  background: rgba(124, 200, 236, .2);
  border: 1px solid rgba(124, 200, 236, .3);
  color: var(--brand-blue);
}

.tc-type-slides .tc-type-badge {
  background: rgba(255, 120, 80, .15);
  border: 1px solid rgba(255, 120, 80, .2);
  color: #ff8060;
}

.tc-type-resource .tc-type-badge {
  background: rgba(200, 200, 200, .15);
  border: 1px solid rgba(200, 200, 200, .2);
  color: #aaa;
}

.tc-complete-tick {
  align-items: center;
  background: #4caf50;
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 10px;
  height: 18px;
  justify-content: center;
  position: absolute;
  right: 8px;
  top: 6px;
  width: 18px;
}

.tc-lock {
  color: #555;
  position: absolute;
  right: 8px;
  top: 6px;
}

.tc-card-body {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
}

.tc-card-body > strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.tc-card-body > span {
  color: #888;
  font-size: 11px;
}

.tc-card-body > small {
  color: #bbb;
  font-family: monospace;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tc-card-footer {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.tc-card-cta {
  background: var(--brand-blue-soft);
  border: 1px solid var(--brand-blue);
  border-radius: var(--radius-sm);
  color: #185fa5;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
}

.tc-card-cta.done {
  background: #e8f5e9;
  border-color: #4caf50;
  color: #1a7a1a;
}

.tc-card-cta:disabled {
  background: var(--workspace-bg);
  border-color: var(--card-border);
  color: #888;
  cursor: not-allowed;
}

.tc-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.tc-empty-state {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
}

.tc-empty-state div {
  font-size: 40px;
  margin-bottom: 12px;
}

.tc-empty-state strong {
  color: var(--ink);
  display: block;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 6px;
}

.tc-empty-state p {
  color: #888;
  font-size: 13px;
  margin: 0 auto;
  max-width: 320px;
}

.training-plan-list {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.training-framework-card {
  display: grid;
  gap: 14px;
}

.training-month-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.training-month-card {
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  padding: 14px;
  background: #fafafa;
}

.training-month-card h3 {
  margin: 0;
  font-size: 1rem;
}

.training-resource-stack {
  display: grid;
  gap: 10px;
}

.training-resource-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  box-shadow: inset 5px 0 0 var(--brand-blue);
}

.training-resource-item div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.training-resource-item span,
.training-resource-item small {
  color: #666;
  overflow-wrap: anywhere;
}

.training-viewer-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.training-resource-frame {
  width: 100%;
  min-height: 72vh;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
}

.training-viewer-panel.role-full-viewer {
  min-height: calc(100vh - 104px);
}

.training-viewer-panel.role-full-viewer .training-resource-frame {
  min-height: calc(100vh - 184px);
}

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

.mapping-accordion-list {
  display: grid;
  gap: 10px;
}

.mapping-accordion {
  border: 1px solid #dedede;
  border-radius: 6px;
  background: #fff;
}

.mapping-accordion summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 800;
  list-style: none;
}

.mapping-accordion summary::-webkit-details-marker {
  display: none;
}

.accordion-count {
  color: #555;
  font-size: .86rem;
  font-weight: 700;
}

.mapping-list {
  max-height: 420px;
  overflow: auto;
  grid-template-columns: 1fr;
  padding: 12px 14px 14px;
  border-top: 1px solid #eeeeee;
}

.mapping-check {
  align-items: flex-start;
}

.mapping-check small {
  display: block;
  color: #555;
  font-weight: 700;
  margin-top: 3px;
}

.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.wide-checks {
  grid-column: 1 / -1;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #222;
}

.check input {
  width: 16px;
  height: 16px;
}

.messages-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.78fr) minmax(420px, 1.35fr);
  gap: 14px;
  align-items: start;
}

.messages-layout .message-compose-panel {
  position: sticky;
  top: 82px;
  align-self: start;
}

.message-compose-panel,
.message-history-panel {
  overflow: hidden;
}

.message-history-panel {
  min-width: 0;
}

.message-section-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  margin-right: 7px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--brand-blue) 18%, #fff);
  color: #111;
  vertical-align: middle;
}

.message-section-icon .ui-icon {
  width: 16px;
  height: 16px;
}

.message-form {
  gap: 13px;
  align-items: stretch;
}

.message-form select,
.message-form input,
.message-form textarea {
  font-size: .86rem;
}

.message-history {
  display: grid;
  gap: 10px;
}

.message-thread {
  display: grid;
  gap: 0;
  position: relative;
  border: 1px solid #e1e5ea;
  border-radius: 14px;
  background: #fff;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(17, 17, 17, .045);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.message-thread::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: transparent;
}

.message-thread.unread::before,
.message-thread.open::before {
  background: var(--brand-blue);
}

.message-thread.open {
  border-color: color-mix(in srgb, var(--brand-blue) 46%, #dfe5eb);
  box-shadow: 0 12px 28px rgba(17, 17, 17, .075);
}

.message-thread:hover {
  border-color: color-mix(in srgb, var(--brand-blue) 36%, #dfe5eb);
}

.message-thread-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 11px 12px 11px 14px;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: inherit;
  text-align: left;
}

.message-thread.open .message-thread-head {
  border-bottom-color: #edf0f3;
  background: #fbfcfd;
}

.message-thread-avatar {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  background: #f1f3f5;
  color: #111;
}

.message-thread.unread .message-thread-avatar,
.message-thread.open .message-thread-avatar {
  background: color-mix(in srgb, var(--brand-blue) 22%, #fff);
}

.message-thread-avatar .ui-icon {
  width: 17px;
  height: 17px;
}

.message-thread-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.message-thread-head strong {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  min-width: 0;
  color: #111;
  font-size: .92rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.thread-unread-badge {
  display: inline-flex;
  align-items: center;
  place-items: center;
  min-height: 18px;
  border-radius: 999px;
  padding: 2px 7px;
  background: var(--brand-blue);
  color: #111;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
}

.message-thread-head span,
.message-thread-head time,
.message-thread-title span {
  color: #666;
  font-size: 0.76rem;
}

.message-thread-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.message-thread-meta i {
  color: var(--brand-blue);
  font-style: normal;
  font-size: 1.2rem;
  font-weight: 900;
}

.message-thread-preview {
  display: grid;
  gap: 5px;
  padding: 0 12px 11px 58px;
  color: #555;
}

.message-thread-preview span {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-weight: 700;
}

.message-thread-preview .ui-icon {
  width: 14px;
  height: 14px;
  color: var(--brand-blue);
}

.message-thread-preview em {
  border-radius: 999px;
  padding: 2px 7px;
  background: color-mix(in srgb, var(--brand-blue) 24%, #fff);
  color: #111;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 900;
}

.message-thread-preview p {
  margin: 0;
  max-height: 3em;
  overflow: hidden;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message-trail {
  display: grid;
  gap: 9px;
  padding: 12px;
  background:
    linear-gradient(180deg, #fff, #fbfcfd);
  animation: messageThreadOpen .16s ease-out;
}

@keyframes messageThreadOpen {
  from {
    opacity: .3;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-card {
  width: min(82%, 620px);
  border: 1px solid #dfe4ea;
  border-left: 0;
  border-radius: 14px;
  background: #fff;
  padding: 10px 11px;
  box-shadow: 0 4px 12px rgba(17, 17, 17, .04);
}

.message-card.received {
  justify-self: start;
  border-top-left-radius: 5px;
  background: #fff;
}

.message-card.sent {
  justify-self: end;
  border-color: color-mix(in srgb, var(--brand-blue) 34%, #dfe4ea);
  border-top-right-radius: 5px;
  background: color-mix(in srgb, var(--brand-blue) 10%, #fff);
}

.message-card.unread-message {
  box-shadow: inset 4px 0 0 var(--brand-blue), 0 4px 12px rgba(17, 17, 17, .04);
}

.message-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.message-card-head div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.message-card-head strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: #111;
  font-size: .78rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.message-card-head strong .ui-icon {
  width: 14px;
  height: 14px;
  color: var(--brand-blue);
}

.message-card-head span,
.message-card-head time {
  color: #666;
  font-size: 0.72rem;
}

  .message-status-stack {
  display: grid;
  justify-items: end;
  gap: 4px;
  white-space: nowrap;
}

.message-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 2px 7px;
  background: #eeeeee;
  color: #333;
  font-size: 0.68rem;
  font-weight: 800;
}

.message-status .ui-icon {
  width: 12px;
  height: 12px;
}

.message-status.read {
  background: color-mix(in srgb, var(--brand-blue) 25%, #fff);
  color: #111;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background: #f5f5f5;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.status-pill.active {
  background: #e5f7ea;
  color: #126b2f;
}

.status-pill.pending {
  background: color-mix(in srgb, var(--brand-blue) 22%, #fff);
  color: #111;
}

.status-pill.expired {
  background: #ececec;
  color: #666;
}

.status-pill.danger {
  background: #fdecec;
  color: #9b1c1c;
  margin-left: 8px;
}

.otj-history {
  margin-top: 8px;
}

.otj-history p {
  margin: 4px 0 0;
}

.otj-history span {
  font-weight: 800;
  text-transform: capitalize;
}

.announcement-editor-modal {
  max-width: min(980px, calc(100vw - 32px));
}

.rich-editor-field {
  display: grid;
  gap: 8px;
}

.rich-editor-toolbar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px;
  border: 1px solid #d8d8d8;
  border-radius: 8px 8px 0 0;
  background: #f6f6f6;
}

.rich-editor-toolbar button {
  min-height: 34px;
  border-radius: 4px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid #d0d0d0;
  color: #222;
  font-weight: 800;
}

.rich-editor {
  min-height: 220px;
  max-height: 430px;
  overflow: auto;
  border: 1px solid #d8d8d8;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  padding: 14px;
  background: #fff;
  line-height: 1.55;
}

.rich-editor:focus {
  outline: 3px solid color-mix(in srgb, var(--brand-blue) 45%, #d8d8d8);
}

.rich-editor img,
.rich-content img,
.rich-editor-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px 0;
  border-radius: 8px;
}

.announcement-popup {
  max-width: min(820px, calc(100vw - 32px));
}

.announcement-popup-list {
  display: grid;
  gap: 14px;
  max-height: min(70vh, 620px);
  overflow: auto;
}

.announcement-display-card {
  border: 1px solid #d8d8d8;
  border-left: 5px solid var(--brand-blue);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.announcement-display-card h3 {
  margin: 0 0 10px;
}

.rich-content {
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.message-card p {
  margin: 0 0 7px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.45;
  color: #222;
  font-size: .84rem;
}

.reply-form {
  display: grid;
  gap: 9px;
  margin: 0 12px 12px;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 30%, #dfe4ea);
  border-radius: 14px;
  padding: 10px;
  background: #fff;
  box-shadow: inset 4px 0 0 var(--brand-blue);
  animation: messageThreadOpen .16s ease-out;
}

.reply-form label span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.reply-form label span .ui-icon {
  width: 15px;
  height: 15px;
  color: var(--brand-blue);
}

.reply-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 84px;
}

.conversation-reply-actions {
  justify-content: flex-end;
}

.message-empty-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed #d8dee5;
  border-radius: 14px;
  padding: 24px;
  background: #fbfcfd;
  color: #555;
  text-align: center;
}

.message-empty-state > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand-blue) 18%, #fff);
  color: #111;
}

.message-empty-state .ui-icon {
  width: 22px;
  height: 22px;
}

.message-empty-state strong {
  color: #111;
}

.message-empty-state p {
  max-width: 320px;
  margin: 0;
  line-height: 1.45;
}

.chat-widget {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  justify-items: start;
  gap: 10px;
}

.chat-launcher {
  min-width: 108px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 10px 14px;
  background: #111;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.chat-launcher span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--brand-blue);
  color: #111;
  font-weight: 800;
  font-size: 0.78rem;
}

.chat-launcher strong {
  font-size: 0.95rem;
}

.chat-panel {
  width: min(380px, calc(100vw - 40px));
  max-height: min(640px, calc(100vh - 110px));
  display: grid;
  grid-template-rows: auto minmax(160px, 1fr) auto auto;
  overflow: hidden;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.chat-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: #111;
  color: #fff;
}

.chat-head div {
  display: grid;
  gap: 3px;
}

.chat-head span {
  color: #d8d8d8;
  font-size: 0.82rem;
}

.chat-thread {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  padding: 14px;
  background: #f7f7f7;
}

.chat-bubble {
  max-width: 92%;
  border-radius: 8px;
  padding: 10px 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.45;
  font-size: 0.92rem;
}

.chat-bubble.ai {
  justify-self: start;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 58%, #d0d0d0);
  background: color-mix(in srgb, var(--brand-blue) 18%, #fff);
  color: #333;
}

.chat-bubble.user {
  justify-self: end;
  background: #222;
  color: #fff;
}

.chat-ask-form {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid #ddd;
  background: #fff;
}

.chat-ask-form textarea {
  width: 100%;
  resize: vertical;
}

.chat-escalate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid #ddd;
  background: color-mix(in srgb, var(--brand-blue) 12%, #fff);
}

.chat-escalate p {
  margin: 0;
  color: #333;
  font-weight: 700;
  font-size: 0.9rem;
}

.qualification-instructions {
  display: grid;
  gap: 8px;
}

.qualification-instructions p {
  margin: 0;
  color: #333;
  line-height: 1.45;
}

.prompt-copy-box {
  width: 100%;
  min-height: 420px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.qualification-editor {
  display: grid;
  gap: 18px;
}

.qualification-unit-stack,
.qualification-outcome-stack {
  display: grid;
  gap: 14px;
}

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

.qualification-selection-section {
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid #d6dce2;
  border-left: 5px solid #4aa8d8;
  border-radius: 14px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.qualification-selection-list {
  display: grid;
  gap: 10px;
  max-height: 62vh;
  overflow: auto;
  padding-right: 4px;
}

.qualification-selection-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  border: 1px solid #d8dfe6;
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
}

.qualification-selection-card.optional-card {
  grid-template-columns: auto minmax(0, 1fr);
  cursor: pointer;
}

.qualification-selection-card input {
  margin-top: 3px;
}

.qualification-selection-card strong,
.qualification-selection-card span,
.qualification-selection-card small {
  display: block;
  overflow-wrap: anywhere;
}

.qualification-selection-card small {
  color: #666;
}

.qualification-selection-card.optional-card:has(input:checked) {
  border-color: #4aa8d8;
  background: #eaf6fc;
}

.qualification-unit-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.qualification-unit-tab {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 12px 14px;
  border: 1px solid #d6dce2;
  border-left: 5px solid transparent;
  border-radius: 14px;
  background: #fff;
  color: #222;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.qualification-unit-tab strong {
  font-size: 0.9rem;
}

.qualification-unit-tab span {
  color: #666;
  font-size: 0.8rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qualification-unit-tab.active {
  border-left-color: #4aa8d8;
  background: #eaf6fc;
}

.qualification-unit-card,
.qualification-lo-card {
  border: 1px solid #d6dce2;
  border-left: 5px solid #4aa8d8;
  border-radius: 14px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.qualification-lo-card {
  background: #f8fafc;
  border-left-width: 4px;
}

.qualification-lo-card h4 {
  margin: 14px 0 8px;
  color: #111;
}

.qualification-edit-table {
  table-layout: fixed;
  min-width: 720px;
}

.qualification-edit-table th:first-child,
.qualification-edit-table td:first-child {
  width: 140px;
}

.qualification-edit-table input,
.qualification-edit-table textarea {
  width: 100%;
  min-width: 0;
}

.warning-box {
  border-left: 5px solid #4aa8d8;
  border-radius: 12px;
  background: #eaf6fc;
  color: #1f2933;
  padding: 14px 16px;
  font-weight: 700;
}

.sticky-form-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d6dce2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.08);
}

@media (max-width: 840px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .login-panel,
  .login-side {
    min-height: auto;
    padding: 32px 22px;
  }

  .login-side {
    align-items: start;
  }

  .topbar,
  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .topbar-actions > * {
    max-width: 100%;
  }

  .two-column-panel,
  .cm-dashboard-grid,
  .super-dashboard-grid,
  .super-centre-tile-grid,
  .learner-visual-dashboard,
  .ksb-coverage-grid,
  .otjh-meter,
  .journal-timeline-item,
  .journal-composer,
  .journal-summary-grid,
  .assessment-card-grid,
  .centre-details-grid,
  .detail-line,
  .training-resource-item,
  .mini-list-item {
    grid-template-columns: 1fr;
  }

  .training-filter-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .learner-ring-card {
    grid-template-columns: 1fr;
  }

  .progress-ring {
    width: min(124px, 100%);
  }

  .status-bar-row,
  .dashboard-row-button {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
  }

  .status-bar-row strong {
    text-align: left;
  }

  .task-strip {
    grid-template-columns: repeat(12, minmax(6px, 1fr));
    gap: 4px;
  }

  .cm-metric-card strong {
    font-size: 1.9rem;
  }

  .mini-list-item button {
    grid-row: auto;
    grid-column: 1;
    justify-self: start;
  }

  .otj-record-item {
    grid-template-columns: 1fr;
  }

  .otj-record-item > div:last-child {
    text-align: left;
    white-space: normal;
  }

  .workspace.with-menu {
    grid-template-columns: 1fr;
  }

  .side-menu {
    min-height: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 20px;
    border-right: 0;
    border-bottom: 1px solid #d8d8d8;
  }

  .menu-item {
    width: auto;
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
    justify-content: center;
    text-align: center;
  }

  .with-menu .page {
    padding: 24px 20px 44px;
  }

  .centre-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

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

  .framework-tabs {
    grid-template-columns: 1fr;
  }

  .learning-aim-row {
    grid-template-columns: 1fr;
  }

  .portfolio-header,
  .portfolio-aim-grid,
  .portfolio-detail-grid,
  .portfolio-summary-grid {
    grid-template-columns: 1fr;
  }

  .messages-layout {
    grid-template-columns: 1fr;
  }

  .messages-layout .message-compose-panel {
    position: static;
  }

  .message-card-head {
    display: grid;
  }

  .message-status-stack {
    justify-items: start;
  }

  .message-thread-head {
    display: grid;
  }

  .chat-widget {
    left: 12px;
    bottom: 12px;
  }

  .qualification-unit-card,
  .qualification-lo-card {
    padding: 14px;
  }

  .sticky-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .qualification-selection-grid {
    grid-template-columns: 1fr;
  }

  .qualification-selection-list {
    max-height: none;
  }
}

/* Final visual refresh overrides */
.app-shell {
  background:
    linear-gradient(180deg, #fff 0, var(--workspace-bg) 220px),
    var(--workspace-bg);
}

.topbar {
  min-height: 92px;
  position: sticky;
  top: 0;
  z-index: 25;
  padding: 14px 26px 14px 18px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(17, 17, 17, .08);
  box-shadow: 0 12px 34px rgba(17, 17, 17, .08);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
}

.brand-mark.logo-container {
  width: 86px;
  min-height: 66px;
  display: inline-grid;
  place-items: center;
  border-radius: 22px;
  padding: 10px 14px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(17, 17, 17, .14);
}

.brand-mark .brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  object-position: center;
}

.brand-title-shell {
  display: grid;
  gap: 2px;
  line-height: 1.05;
}

.brand-title-shell strong {
  max-width: 260px;
  color: #111;
  font-size: clamp(1rem, 1.45vw, 1.28rem);
  font-weight: 900;
  letter-spacing: 0;
}

.brand-title-shell span {
  color: #30343a;
  font-size: .92rem;
  font-weight: 800;
}

.brand-title-shell em {
  color: var(--brand-blue);
  font-style: normal;
  font-size: .78em;
  font-weight: 900;
}

.workspace.with-menu {
  grid-template-columns: 264px minmax(0, 1fr);
  background: var(--workspace-bg);
}

.side-menu {
  position: sticky;
  top: 92px;
  min-height: calc(100vh - 92px);
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 30px 18px;
  background: linear-gradient(180deg, var(--shell-dark), var(--shell-dark-2));
  border-right: 0;
  box-shadow: 18px 0 46px rgba(17, 17, 17, .14);
}

.menu-item {
  min-height: 54px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-radius: 16px;
  padding: 8px 12px;
  background: transparent;
  color: rgba(255, 255, 255, .78);
  font-weight: 850;
  text-align: left;
  box-shadow: none;
}

.menu-item:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  box-shadow: none;
}

.menu-item.active {
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand-blue) 86%, #fff), color-mix(in srgb, var(--brand-blue) 54%, #111));
  color: #071016;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--brand-blue) 28%, transparent);
}

.menu-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, .08);
  color: currentColor;
}

.menu-item.active .menu-icon {
  background: rgba(255, 255, 255, .36);
}

.menu-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.with-menu .page {
  padding: 34px clamp(22px, 3vw, 42px) 64px;
}

.panel,
.role-card,
.centre-option,
.centre-tile,
.cm-metric-card,
.visual-panel,
.assessment-visual-card,
.portfolio-box,
.task-card,
.journal-card,
.mini-list-item,
.super-centre-tile,
.centre-framework-card,
.message-thread,
.message-card,
.qualification-selection-card,
.qualification-unit-card,
.qualification-lo-card {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--tight-shadow);
}

.centre-tile,
.centre-option,
.cm-metric-card,
.visual-panel,
.assessment-visual-card,
.portfolio-box,
.task-card,
.journal-card,
.mini-list-item,
.super-centre-tile,
.centre-framework-card,
.qualification-selection-card {
  box-shadow: inset 5px 0 0 var(--brand-blue), var(--tight-shadow);
}

.primary-button,
.role-button {
  border-radius: 999px;
  background: var(--brand-blue);
  color: #071016;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--brand-blue) 26%, transparent);
}

.secondary-button,
.tab-button,
.framework-tab,
.link-button,
.journal-add-button,
input,
textarea,
select {
  border-radius: 12px;
}

.user-table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
}

.user-table th {
  background: #f7f8fa;
  color: #343a40;
}

@media (max-width: 980px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .workspace.with-menu {
    grid-template-columns: 1fr;
  }

  .side-menu {
    position: static;
    min-height: auto;
    display: flex;
    flex-wrap: wrap;
    padding: 14px;
  }

  .menu-item {
    flex: 1 1 calc(50% - 10px);
  }
}

@media (max-width: 620px) {
  .brand-mark.logo-container {
    width: 72px;
    min-height: 58px;
    box-shadow: 0 14px 32px rgba(17, 17, 17, .14);
  }

  .brand-title-shell strong {
    max-width: 190px;
  }

  .menu-item {
    flex-basis: 100%;
  }
}

/* Compact operational density pass */
:root {
  --soft-shadow: 0 10px 24px rgba(17, 17, 17, .07);
  --tight-shadow: 0 6px 16px rgba(17, 17, 17, .055);
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
}

body {
  font-size: 14px;
}

.app-shell {
  background:
    linear-gradient(180deg, #fff 0, var(--workspace-bg) 150px),
    var(--workspace-bg);
}

.topbar {
  min-height: 68px;
  padding: 9px 18px 9px 14px;
  box-shadow: 0 8px 22px rgba(17, 17, 17, .07);
}

.brand-lockup {
  gap: 11px;
  min-width: 224px;
}

.brand-mark.logo-container {
  width: 62px;
  min-height: 50px;
  border-radius: 16px;
  padding: 7px 10px;
  box-shadow: 0 8px 18px rgba(17, 17, 17, .12);
}

.brand-mark .brand-logo {
  width: 40px;
  height: 40px;
}

.brand-title-shell strong {
  max-width: 220px;
  font-size: .98rem;
}

.brand-title-shell span {
  font-size: .78rem;
}

.topbar-actions {
  gap: 9px;
  flex-wrap: nowrap;
}

.icon-button,
.role-switcher,
.active-role,
.centre-logo-pill,
.topbar-signout {
  min-height: 36px;
}

.icon-button {
  width: 36px;
}

.role-switcher {
  padding: 3px 5px 3px 8px;
}

.role-switcher select {
  min-height: 28px;
  font-size: .82rem;
}

.active-role,
.topbar-signout {
  padding-inline: 10px;
  font-size: .84rem;
}

.control-icon {
  width: 24px;
  height: 24px;
}

.topbar-signout .ui-icon,
.control-icon .ui-icon,
.brand-orbit .ui-icon,
.icon-button .ui-icon {
  width: 16px;
  height: 16px;
}

.workspace.with-menu {
  grid-template-columns: 218px minmax(0, 1fr);
}

.side-menu {
  top: 68px;
  min-height: calc(100vh - 68px);
  gap: 7px;
  padding: 20px 12px;
  box-shadow: 12px 0 28px rgba(17, 17, 17, .11);
}

.menu-item {
  min-height: 42px;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  border-radius: 12px;
  padding: 6px 9px;
  font-size: .88rem;
}

.menu-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.menu-icon .ui-icon {
  width: 17px;
  height: 17px;
}

.menu-badge {
  top: 2px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  font-size: .65rem;
}

.with-menu .page {
  padding: 22px clamp(16px, 2vw, 28px) 40px;
}

.section-head {
  gap: 16px;
  margin-bottom: 15px;
}

.section-head h1 {
  margin-bottom: 5px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.section-head p {
  font-size: .9rem;
}

.panel,
.role-card {
  padding: 16px;
}

.panel h2,
.role-card h2 {
  font-size: 1rem;
}

.centre-grid {
  grid-auto-rows: minmax(112px, auto);
  gap: 10px;
}

.centre-tile {
  min-height: 112px;
  gap: 6px;
  border-radius: 13px;
  padding: 12px;
}

.centre-tile strong {
  font-size: .92rem;
}

.centre-tile small,
.centre-tile span {
  font-size: .8rem;
}

.tile-plus,
.tile-list,
.metric-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.metric-icon .ui-icon,
.tile-plus .ui-icon,
.tile-list .ui-icon {
  width: 16px;
  height: 16px;
}

.cm-dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.cm-metric-card {
  min-height: 98px;
  gap: 6px;
  border-radius: 13px;
  padding: 12px;
}

.cm-metric-card span {
  font-size: .74rem;
}

.cm-metric-card strong {
  font-size: 1.65rem;
}

.cm-metric-card small {
  font-size: .78rem;
}

.super-dashboard-grid,
.billing-grid,
.two-column-panel,
.learner-visual-dashboard,
.assessment-card-grid,
.journal-summary-grid,
.portfolio-header,
.portfolio-aim-grid,
.portfolio-detail-grid,
.portfolio-summary-grid {
  gap: 12px;
}

.super-centre-tile-grid {
  gap: 10px;
}

.super-centre-tile {
  min-height: 206px;
  gap: 12px;
  border-radius: 14px;
  padding: 13px;
}

.super-centre-tile-head {
  gap: 9px;
}

.super-centre-tile-head h3 {
  font-size: .96rem;
}

.super-centre-tile-stats {
  gap: 7px;
}

.super-centre-tile-stats div {
  gap: 4px;
  padding: 8px;
}

.super-centre-tile-stats span {
  font-size: .68rem;
}

.super-centre-tile-stats strong {
  font-size: 1.08rem;
}

.assessor-action-grid {
  margin-top: 8px;
}

.note-card-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.note-card {
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--brand-blue);
  border-radius: 14px;
  background: var(--card-bg);
  box-shadow: var(--tight-shadow);
  padding: 14px;
}

.note-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.note-card h3 {
  margin: 0 0 4px;
  font-size: .98rem;
}

.note-card p {
  margin: 0;
  white-space: pre-wrap;
}

.nested-modal {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: #f8fafb;
  padding: 14px;
  margin: 10px 0 14px;
}

.checkbox-fieldset {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px;
}

.checkbox-fieldset legend {
  padding: 0 6px;
  font-weight: 700;
}

.checkbox-fieldset label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0 0;
  font-weight: 500;
}

.checkbox-fieldset input {
  flex: 0 0 auto;
  margin-top: 2px;
}

.checkbox-fieldset span {
  min-width: 0;
  line-height: 1.35;
}

.note-create-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr);
  gap: 12px;
  align-items: start;
}

.note-detail-field textarea {
  min-height: 220px;
}

.note-share-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.activity-filter-bar {
  margin: 8px 0 12px;
}

.otj-rejected-hours {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  color: #7a1f1f;
}

.otj-correction-button {
  box-shadow: 0 0 0 3px var(--brand-blue-soft);
}

.learner-visual-dashboard {
  grid-template-columns: minmax(230px, .95fr) repeat(2, minmax(200px, 1fr));
  margin-bottom: 12px;
}

.learner-ring-card,
.visual-panel,
.assessment-visual-card {
  padding: 12px;
  border-radius: 14px;
}

.learner-ring-card {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
}

.learner-ring-card p {
  margin-top: 5px;
  font-size: .82rem;
}

.progress-ring {
  width: 86px;
}

.progress-ring span {
  font-size: 1.18rem;
}

.status-bars {
  gap: 7px;
}

.status-bar-row {
  grid-template-columns: 78px minmax(0, 1fr) 26px;
  gap: 8px;
  font-size: .8rem;
}

.status-track,
.billing-bar-track,
.mini-progress,
.portfolio-progress {
  height: 7px;
}

.task-strip {
  gap: 4px;
}

.task-strip span {
  border-radius: 5px;
}

.ksb-coverage-grid {
  gap: 8px;
}

.ksb-coverage-item {
  gap: 6px;
  padding: 8px;
}

.ksb-coverage-item span {
  width: 24px;
  border-radius: 8px;
}

.ksb-coverage-item strong {
  font-size: 1rem;
}

.portfolio-box,
.task-card,
.journal-card,
.mini-list-item,
.otj-record-item,
.message-card,
.message-thread,
.centre-framework-card,
.qualification-selection-card,
.qualification-unit-card,
.qualification-lo-card {
  border-radius: 12px;
  padding: 12px;
}

.task-card,
.journal-card {
  gap: 10px;
  margin-bottom: 10px;
}

.tabs,
.form-actions,
.action-row {
  gap: 8px;
}

.primary-button,
.secondary-button,
.role-button,
.tab-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: .86rem;
}

.small-button {
  padding: 6px 9px;
  font-size: .78rem;
}

input,
textarea {
  padding: 9px 11px;
}

select {
  min-height: 36px;
  padding-left: 10px;
}

label {
  gap: 6px;
  font-size: .84rem;
}

.centre-form {
  gap: 16px;
}

.form-section {
  gap: 12px;
}

.user-table th,
.user-table td {
  padding: 9px 10px;
  font-size: .84rem;
}

.table-caption {
  font-size: .78rem;
}

.notice,
.error {
  margin-bottom: 12px;
  padding: 9px 11px;
}

.chat-launcher {
  min-height: 46px;
  padding: 8px 12px;
}

@media (max-width: 980px) {
  .topbar {
    min-height: auto;
    padding: 10px 14px;
  }

  .brand-lockup {
    min-width: 0;
  }

  .topbar-actions {
    flex-wrap: wrap;
  }

  .side-menu {
    top: auto;
    padding: 10px;
    gap: 8px;
  }

  .menu-item {
    flex: 1 1 calc(50% - 8px);
    min-height: 40px;
  }
}

@media (max-width: 620px) {
  .brand-mark.logo-container {
    width: 58px;
    min-height: 48px;
  }

  .brand-mark .brand-logo {
    width: 38px;
    height: 38px;
  }
}

/* Message screen interaction refresh */
.messages-layout {
  grid-template-columns: minmax(270px, .72fr) minmax(440px, 1.4fr);
  gap: 12px;
}

.message-compose-panel,
.message-history-panel {
  border-radius: 14px;
}

.message-compose-panel {
  padding: 16px;
}

.message-compose-panel .compact-head,
.message-history-panel .compact-head {
  margin-bottom: 11px;
}

.message-compose-panel h2,
.message-history-panel h2 {
  display: inline-flex;
  align-items: center;
}

.message-form {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 11px;
}

.message-form label,
.message-form .form-actions {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.message-form select,
.message-form input,
.message-form textarea,
.message-form button {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

.message-form select,
.message-form input,
.message-form textarea {
  width: 100%;
}

.message-form select {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-form textarea {
  min-height: 104px;
}

.message-thread {
  border-radius: 13px;
}

.message-thread-head {
  min-height: 58px;
}

.message-bubble {
  max-width: 82%;
}

@media (max-width: 1100px) {
  .messages-layout {
    grid-template-columns: minmax(250px, .86fr) minmax(360px, 1.14fr);
  }
}

@media (max-width: 820px) {
  .messages-layout {
    grid-template-columns: 1fr;
  }

  .messages-layout .message-compose-panel {
    position: static;
  }

  .message-card {
    width: min(94%, 620px);
  }
}

@media (max-width: 520px) {
  .message-thread-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .message-thread-meta {
    grid-column: 2;
    justify-self: start;
  }

  .message-thread-preview {
    padding-left: 14px;
  }

  .message-card {
    width: 100%;
  }

  .message-card-head {
    display: grid;
  }

.message-status-stack {
    justify-items: start;
  }
}

/* Assessor Learners account view compact controls */
.assessor-learner-account-head {
  min-height: auto;
  padding: 12px;
}

.assessor-learner-account-head h2 {
  margin: 2px 0 3px;
}

.assessor-learner-account-section {
  padding: 12px;
  margin-bottom: 12px;
}

.assessor-learner-account-section h2 {
  margin-bottom: 10px;
}

.assessor-learner-detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.assessor-learner-tile {
  width: 100%;
  min-height: 86px;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.assessor-learner-tile:disabled {
  cursor: default;
  opacity: .72;
}

.assessor-learner-tile:not(:disabled):hover {
  border-color: var(--brand-blue);
  background: #fff;
  box-shadow: inset 4px 0 0 var(--brand-blue), 0 8px 18px rgba(17, 17, 17, .07);
}

.assessor-learner-tile.selected-tile {
  border-color: var(--brand-blue);
  box-shadow: inset 4px 0 0 var(--brand-blue), 0 8px 18px rgba(17, 17, 17, .07);
}

.count-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--brand-blue);
  color: #fff;
}

.assessment-list-head {
  margin-top: 14px;
}

.assessor-task-table tr.unread-task-row td:first-child {
  box-shadow: inset 4px 0 0 var(--brand-blue);
}

.assessor-task-table tbody tr {
  cursor: pointer;
}

.task-type-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f2f6fb;
  color: #111;
  font-size: .82rem;
  font-weight: 700;
}

.ah-header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.ah-header h1 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  margin: 0;
}

.ah-header p {
  color: var(--ink3);
  font-size: 12px;
  font-weight: 500;
  margin: 4px 0 0;
}

.ah-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ah-column {
  align-content: start;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.ah-card,
.ah-alert-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-sizing: border-box;
  color: var(--ink);
  padding: 16px 18px;
}

.ah-card {
  cursor: default;
  font-family: inherit;
}

button.ah-card {
  text-align: left;
  width: 100%;
}

.ah-clickable,
.ah-learner-row,
.ah-review-row,
.ah-link-button {
  cursor: pointer;
}

.ah-clickable:hover,
.ah-learner-row:hover,
.ah-review-row:hover,
.ah-alert-card:hover {
  box-shadow: 0 2px 12px rgba(124, 200, 236, .22);
}

.ah-dark-card {
  align-items: center;
  background: #111;
  border-color: #111;
  color: #fff;
  display: grid;
  justify-items: center;
  min-height: 210px;
  text-align: center;
}

.ah-dark-card strong {
  color: #ddd;
  font-size: 13px;
  font-weight: 500;
  margin-top: 8px;
}

.ah-dark-card span {
  font-size: 12px;
  font-weight: 600;
  margin-top: 3px;
}

.ah-dark-card .positive {
  color: #4caf50;
}

.ah-dark-card .negative {
  color: #e07020;
}

.ah-donut {
  height: 112px;
  width: 112px;
}

.ah-donut text {
  fill: #fff;
  font-size: 22px;
  font-weight: 700;
}

.ah-donut .ah-donut-sub {
  fill: #ccc;
  font-size: 10px;
  font-weight: 500;
}

.ah-stat-tile {
  border-left-width: 4px;
  display: grid;
  gap: 4px;
  min-height: 130px;
}

.ah-stat-tile strong {
  color: #b05000;
  font-size: 28px;
  font-weight: 700;
}

.ah-stat-tile span,
.ah-stat-tile small {
  color: var(--ink3);
  font-size: 12px;
}

.ah-stat-tile span {
  font-size: 13px;
}

.ah-orange {
  border-left-color: #e07020;
}

.ah-blue {
  border-left: 4px solid var(--brand);
}

.ah-frameworks h2,
.ah-marking-card h2,
.ah-reviews-card h2,
.ah-recent-otj h2,
.ah-card-head h2 {
  color: var(--ink3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  margin: 0;
  text-transform: uppercase;
}

.ah-frameworks,
.ah-marking-card,
.ah-reviews-card,
.ah-recent-otj {
  display: grid;
  gap: 14px;
}

.ah-framework-row {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-bottom: 10px;
}

.ah-framework-row:last-child,
.ah-learner-row:last-child,
.ah-review-row:last-child,
.ah-queue-row:last-child,
.ah-otj-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ah-framework-row strong,
.ah-learner-copy strong,
.ah-review-date strong,
.ah-otj-row strong {
  color: var(--ink);
  display: block;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.25;
}

.ah-framework-row small,
.ah-learner-copy small,
.ah-review-date small,
.ah-otj-row small {
  color: var(--ink3);
  display: block;
  font-size: 12px;
  font-style: normal;
  margin-top: 2px;
}

.ah-framework-row em,
.ah-otj-row em {
  font-style: normal;
  text-align: right;
}

.ah-framework-row em strong,
.ah-otj-row em strong {
  color: #185fa5;
  font-size: 18px;
}

.ah-learners-card {
  min-height: 100%;
}

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

.ah-link-button {
  background: transparent;
  border: 0;
  color: #185fa5;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 0;
  text-align: left;
}

.ah-learner-row,
.ah-review-row {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
  display: grid;
  gap: 10px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  padding: 10px 0;
  text-align: left;
  width: 100%;
}

.ah-avatar {
  align-items: center;
  background: var(--bg);
  border-radius: 50%;
  color: var(--ink3);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.ah-status-ahead .ah-avatar {
  background: #e8f5e9;
  color: #1a7a1a;
}

.ah-status-behind .ah-avatar {
  background: #fff3e0;
  color: #b05000;
}

.ah-status-track .ah-avatar {
  background: var(--brand-soft);
  color: #185fa5;
}

.ah-status-pill {
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--ink3);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  white-space: nowrap;
}

.ah-status-ahead .ah-status-pill {
  background: #e8f5e9;
  border-color: #81c784;
  color: #1a7a1a;
}

.ah-status-behind .ah-status-pill {
  background: #fff3e0;
  border-color: #e07020;
  color: #b05000;
}

.ah-status-track .ah-status-pill {
  background: var(--brand-soft);
  border-color: #90caf9;
  color: #185fa5;
}

.ah-queue-row {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 12px;
  grid-template-columns: 100px minmax(80px, 1fr) 28px;
  padding-bottom: 10px;
}

.ah-queue-row span {
  color: var(--ink2);
  font-size: 13px;
}

.ah-queue-row strong {
  color: var(--ink);
  font-size: 16px;
  text-align: right;
}

.ah-progress {
  background: var(--bg);
  border-radius: 999px;
  display: block;
  height: 4px;
  overflow: hidden;
}

.ah-progress i {
  background: var(--brand);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.ah-fill-orange {
  background: #e07020 !important;
}

.ah-fill-green {
  background: #4caf50 !important;
}

.ah-review-row {
  grid-template-columns: 42px minmax(0, 1fr) minmax(92px, auto);
}

.ah-review-date {
  text-align: right;
}

.ah-divider {
  align-items: center;
  display: flex;
  gap: 12px;
  margin: 1.5rem 0 12px;
}

.ah-divider span {
  background: var(--border);
  flex: 1;
  height: 1px;
}

.ah-divider strong {
  color: var(--ink3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ah-attention-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.ah-attention-grid.single {
  grid-template-columns: 1fr;
}

.ah-alert-card {
  background: #fffaf7;
  border-left: 4px solid #e07020;
  cursor: pointer;
  display: block;
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.ah-alert-card h3 {
  color: #b05000;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
}

.ah-alert-card p {
  color: var(--ink2);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 12px;
}

.ah-otj-row {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  font-family: inherit;
  gap: 12px;
  justify-content: space-between;
  padding-bottom: 10px;
  text-align: left;
  width: 100%;
}

.ah-otj-row:hover {
  background: var(--bg);
  box-shadow: 0 2px 12px rgba(124, 200, 236, .14);
}

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

  .ah-column:nth-child(2) {
    grid-row: span 2;
  }
}

@media (max-width: 820px) {
  .ah-grid,
  .ah-attention-grid,
  .ah-attention-grid.single {
    grid-template-columns: 1fr;
  }

  .ah-column:nth-child(2) {
    grid-row: auto;
  }

  .ah-queue-row {
    grid-template-columns: 88px minmax(70px, 1fr) 28px;
  }
}

.at-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 1.25rem;
}

.at-page-head h1 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}

.at-page-head p {
  margin: 3px 0 0;
  color: var(--ink3);
  font-size: 12px;
}

.at-page-head > span {
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  background: #e07020;
  color: #fff;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.at-panel {
  min-width: 0;
}

.at-filter-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 1.25rem;
}

.at-filter-bar label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--ink3);
  font-size: 11px;
  font-weight: 600;
}

.at-filter-bar select {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  color: var(--ink);
  padding: 7px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
}

.at-filter-bar select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(124, 200, 236, .15);
  outline: 0;
}

.at-task-list {
  min-width: 0;
}

.at-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 1.25rem 0 8px;
}

.at-divider span {
  flex: 1;
  height: 1px;
  background: var(--card-border);
}

.at-divider strong {
  color: var(--ink3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.at-card {
  display: grid;
  grid-template-columns: 36px minmax(120px, 1.4fr) minmax(120px, 1fr) minmax(180px, 2fr) minmax(110px, 1fr) 80px 110px;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  min-width: 0;
  margin-bottom: 6px;
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  padding: 12px 16px;
  cursor: pointer;
  transition: box-shadow .15s ease;
}

.at-card:hover,
.at-card:focus-visible {
  box-shadow: 0 2px 10px rgba(124, 200, 236, .18);
}

.at-card:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.at-state-unread {
  border-left-color: #e07020;
  background: #fffaf7;
}

.at-state-open {
  border-left-color: var(--brand);
}

.at-state-read {
  border-left-color: var(--card-border);
}

.at-avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--workspace-bg);
  color: var(--ink3);
  font-size: 11px;
  font-weight: 600;
}

.at-state-unread .at-avatar {
  background: #fff3e0;
  color: #b05000;
}

.at-state-open .at-avatar {
  background: var(--brand-soft);
  color: #185fa5;
}

.at-learner {
  min-width: 0;
}

.at-learner strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.at-type-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 20px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  white-space: normal;
}

.at-type-new-learner {
  border: 1px solid #9c27b0;
  background: #f3e8ff;
  color: #6a1b9a;
}

.at-type-message {
  border: 1px solid var(--brand);
  background: var(--brand-soft);
  color: #185fa5;
}

.at-type-otjh {
  border: 1px solid #4caf50;
  background: #e8f5e9;
  color: #1a7a1a;
}

.at-type-submission {
  border: 1px solid #e07020;
  background: #fff3e0;
  color: #b05000;
}

.at-type-other {
  border: 1px solid var(--card-border);
  background: var(--workspace-bg);
  color: var(--ink3);
}

.at-description {
  min-width: 0;
  margin: 0;
  color: var(--ink2);
  font-size: 12px;
  line-height: 1.4;
}

.at-date {
  color: var(--ink3);
  font-size: 12px;
  line-height: 1.3;
}

.at-state-pill {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.at-pill-unread {
  border: 1px solid #e07020;
  background: #fff3e0;
  color: #b05000;
}

.at-pill-open {
  border: 1px solid #4caf50;
  background: #e8f5e9;
  color: #1a7a1a;
}

.at-pill-read {
  border: 1px solid var(--card-border);
  background: var(--workspace-bg);
  color: var(--ink3);
}

.at-action-button {
  width: 100%;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  color: var(--ink);
  padding: 5px 12px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.at-state-unread .at-action-button {
  border: 0;
  background: var(--ink);
  color: #fff;
}

.atpl-page-head {
  margin-bottom: 1.25rem;
}

.atpl-page-head h1 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}

.atpl-page-head p {
  margin: 3px 0 0;
  color: var(--ink3);
  font-size: 12px;
}

.atpl-panel {
  min-width: 0;
}

.atpl-filter {
  display: grid;
  gap: 6px;
  margin-bottom: 1.25rem;
}

.atpl-filter label {
  display: grid;
  gap: 6px;
  align-items: start;
  color: var(--ink3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.atpl-filter select {
  box-sizing: border-box;
  width: min(100%, 420px);
  min-width: 260px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  color: var(--ink);
  padding: 7px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
}

.atpl-filter select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(124, 200, 236, .15);
}

.atpl-table-wrap {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
}

.atpl-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.atpl-table thead tr {
  background: var(--workspace-bg);
}

.atpl-table th {
  border-bottom: 1px solid var(--card-border);
  color: var(--ink3);
  padding: 10px 16px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .07em;
  text-align: left;
  text-transform: uppercase;
}

.atpl-table th:last-child {
  text-align: right;
}

.atpl-table tbody tr {
  transition: background .12s ease;
}

.atpl-table tbody tr:hover {
  background: var(--workspace-bg);
}

.atpl-table td {
  border-bottom: 1px solid var(--card-border);
  padding: 14px 16px;
  vertical-align: middle;
}

.atpl-table tbody tr:last-child td {
  border-bottom: 0;
}

.atpl-template-name,
.atpl-framework-name {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.atpl-template-name strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.atpl-template-name span {
  color: var(--ink3);
  font-size: 11px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.atpl-framework-name strong {
  color: var(--ink2);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
}

.atpl-framework-name span {
  color: var(--ink3);
  font-size: 11px;
  line-height: 1.25;
}

.atpl-due {
  color: var(--ink2);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.atpl-due span {
  color: var(--ink3);
}

.atpl-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.atpl-view-button,
.atpl-assign-button {
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.atpl-view-button {
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--ink);
  font-weight: 500;
}

.atpl-view-button:hover {
  background: var(--workspace-bg);
}

.atpl-assign-button {
  border: 0;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

.atpl-assign-button:hover {
  background: #333;
}

@media (max-width: 1100px) {
  .at-card {
    grid-template-columns: 36px minmax(160px, 1fr) minmax(130px, auto) minmax(90px, auto);
  }

  .at-description {
    grid-column: 2 / -1;
  }

  .at-date {
    grid-column: 2 / span 1;
  }

  .at-action-button {
    grid-column: -2 / -1;
  }
}

@media (max-width: 720px) {
  .at-page-head,
  .at-filter-bar {
    grid-template-columns: 1fr;
  }

  .at-page-head {
    display: grid;
  }

  .at-card {
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
  }

  .at-card > div:nth-child(3),
  .at-description,
  .at-date,
  .at-state-pill,
  .at-action-button {
    grid-column: 2 / -1;
  }

  .at-action-button {
    justify-self: start;
    width: auto;
  }

  .atpl-table-wrap {
    overflow-x: auto;
  }

  .atpl-table {
    min-width: 720px;
  }
}

.activity-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 12px;
}

.activity-pagination .active-page {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

.portfolio-tabs {
  margin: -4px 0 16px;
}

.portfolio-tabs .tab-button.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #071016;
  box-shadow: none;
}

.hd-home-head {
  margin-bottom: 1.25rem;
}

.hd-home-head h1 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
}

.hd-home-head p {
  color: #888;
  font-size: 12px;
}

.hd-dashboard {
  display: grid;
  gap: 10px;
}

.hd-programme-strip {
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--brand-blue);
  border-radius: var(--radius-lg);
  cursor: pointer;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  padding: 0;
  text-align: left;
  transition: box-shadow .18s ease, transform .18s ease;
}

.hd-programme-strip:hover,
.hd-stat-chip:hover,
.hd-detail-card:hover {
  box-shadow: 0 2px 12px rgba(124, 200, 236, .25);
  transform: translateY(-1px);
}

.hd-programme-cell {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px 14px;
}

.hd-programme-cell + .hd-programme-cell {
  border-left: 1px solid var(--card-border);
}

.hd-label,
.hd-card-head span {
  color: #888;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hd-programme-cell strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.hd-programme-cell small {
  color: #888;
  font-size: 10px;
}

.hd-stat-grid,
.hd-detail-grid {
  display: grid;
  gap: 8px;
}

.hd-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hd-detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: .5rem;
}

.hd-stat-chip,
.hd-detail-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--brand-blue);
  border-radius: var(--radius-lg);
  cursor: pointer;
  min-width: 0;
  padding: 12px 14px;
  text-align: left;
  transition: box-shadow .18s ease, transform .18s ease;
}

.hd-stat-chip {
  display: grid;
  gap: 4px;
}

.hd-stat-value {
  color: var(--ink);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.hd-stat-value span {
  color: #888;
  font-size: 13px;
  font-weight: 400;
}

.hd-stat-label,
.hd-card-sub,
.hd-otj-total {
  color: #888;
  font-size: 11px;
}

.hd-progress,
.hd-otj-track {
  background: var(--workspace-bg);
  border-radius: 3px;
  display: block;
  overflow: hidden;
}

.hd-progress {
  height: 3px;
  margin-top: 4px;
}

.hd-progress i,
.hd-otj-track i {
  background: var(--brand-blue);
  display: block;
  height: 100%;
}

.hd-donut-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hd-donut-card {
  align-items: center;
  background: #111;
  border: 0;
  border-radius: var(--radius-lg);
  color: #fff;
  cursor: pointer;
  display: flex;
  gap: 16px;
  min-width: 0;
  padding: 16px 18px;
  text-align: left;
  transition: box-shadow .18s ease, transform .18s ease;
}

.hd-donut-card:hover {
  box-shadow: 0 2px 16px rgba(0, 0, 0, .35);
  transform: translateY(-1px);
}

.hd-donut {
  flex: 0 0 88px;
  transform: rotate(-90deg);
}

.hd-donut text {
  transform: rotate(90deg);
  transform-origin: 44px 44px;
}

.hd-donut-percent {
  fill: #fff;
  font-size: 16px;
  font-weight: 500;
}

.hd-donut-sub {
  fill: #555;
  font-size: 9px;
}

.hd-donut-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.hd-donut-title {
  color: #666;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.hd-donut-number {
  color: #fff;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.hd-donut-number span,
.hd-donut-label {
  color: #555;
}

.hd-donut-number span {
  font-size: 14px;
  font-weight: 400;
}

.hd-donut-label,
.hd-donut-legend {
  font-size: 11px;
}

.hd-donut-legend {
  align-items: center;
  color: #666;
  display: inline-flex;
  gap: 5px;
}

.hd-donut-legend i {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 999px;
  height: 7px;
  width: 7px;
}

.hd-donut-legend i.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}

.hd-detail-card {
  display: grid;
  gap: 8px;
}

.hd-card-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.hd-card-head i {
  color: var(--brand-blue);
  font-size: 16px;
  font-style: normal;
  opacity: .8;
}

.hd-status-list {
  display: grid;
  gap: 7px;
}

.hd-status-row {
  align-items: center;
  color: #444;
  display: grid;
  font-size: 12px;
  gap: 8px;
  grid-template-columns: 8px 1fr auto;
}

.hd-status-row strong {
  color: var(--ink);
  font-weight: 500;
}

.hd-dot {
  background: var(--card-border);
  border-radius: 999px;
  height: 8px;
  width: 8px;
}

.hd-dot.achieved {
  background: #4caf50;
}

.hd-dot.progress {
  background: var(--brand-blue);
}

.hd-dot.resubmission {
  background: #e07020;
}

.hd-otj-bars {
  display: grid;
  gap: 8px;
}

.hd-otj-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 58px minmax(0, 1fr) 56px;
}

.hd-otj-row span,
.hd-otj-row strong {
  color: #444;
  font-size: 11px;
  font-weight: 400;
}

.hd-otj-row > span:first-child {
  color: #888;
}

.hd-otj-row strong {
  text-align: right;
}

.hd-otj-track {
  border: 1px solid var(--card-border);
  height: 5px;
}

.hd-otj-track .expected {
  background: var(--card-border);
}

.hd-otj-delta {
  font-size: 12px;
  font-weight: 500;
}

.hd-otj-delta.negative {
  color: #b05000;
}

.hd-otj-delta.positive {
  color: #1a7a1a;
}

.hd-card-divider {
  background: var(--card-border);
  display: block;
  height: 1px;
}

.hd-otj-total strong {
  color: var(--ink);
  font-weight: 500;
}

.hd-ksb-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.hd-ksb-pills span {
  background: var(--workspace-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  color: #444;
  font-size: 11px;
  padding: 3px 9px;
}

.hd-ksb-pills .muted {
  color: #888;
}

.hd-review-card {
  border-left-color: #e07020;
}

.hd-review-summary {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.hd-review-summary strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hd-review-summary small {
  color: #888;
  font-size: 11px;
}

.hd-divider {
  align-items: center;
  display: flex;
  gap: 10px;
  margin: 1.5rem 0 1.25rem;
}

.hd-divider span {
  background: var(--card-border);
  flex: 1;
  height: 1px;
}

.hd-divider strong {
  color: #888;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.hd-attention-section {
  display: grid;
  gap: 8px;
}

.hd-section-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.hd-section-row h2 {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.hd-section-row button {
  background: transparent;
  border: 0;
  color: #185fa5;
  cursor: pointer;
  font-size: 11px;
}

.hd-action-stack,
.hd-feedback-stack {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.hd-action-card,
.hd-otj-alert,
.hd-feedback-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--brand-blue);
  border-radius: var(--radius-lg);
  cursor: pointer;
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  text-align: left;
  transition: box-shadow .18s ease, transform .18s ease;
}

.hd-action-card:hover,
.hd-otj-alert:hover,
.hd-feedback-row:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  transform: translateY(-1px);
}

.hd-action-card.resubmission,
.hd-otj-alert,
.hd-feedback-row.resubmission {
  border-left-color: #e07020;
}

.hd-feedback-row.achieved {
  border-left-color: #4caf50;
}

.hd-action-badge {
  border: 1px solid #90caf9;
  border-radius: 20px;
  color: #185fa5;
  background: #e3f2fd;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .05em;
  padding: 2px 7px;
  text-transform: uppercase;
}

.hd-action-card.resubmission .hd-action-badge {
  background: #fff3e0;
  border-color: #e07020;
  color: #b05000;
}

.hd-action-body,
.hd-otj-alert > span:first-child,
.hd-feedback-row > span {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.hd-action-body strong,
.hd-otj-alert strong,
.hd-feedback-row strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.hd-action-body small,
.hd-otj-alert small,
.hd-feedback-row small {
  color: #888;
  display: -webkit-box;
  font-size: 11px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.hd-action-cta,
.hd-otj-alert > span:last-child {
  background: #e3f2fd;
  border: 1px solid #90caf9;
  border-radius: var(--radius-sm);
  color: #185fa5;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 12px;
  white-space: nowrap;
}

.hd-action-card.resubmission .hd-action-cta {
  background: #fff3e0;
  border-color: #e07020;
  color: #b05000;
}

.hd-otj-alert > span:last-child {
  background: #fff;
  border-color: var(--card-border);
  color: #444;
}

.hd-feedback-row {
  align-items: flex-start;
  padding: 10px 14px;
}

.hd-feedback-row strong {
  font-size: 12px;
}

.hd-feedback-row time {
  color: #888;
  flex-shrink: 0;
  font-size: 10px;
  padding-top: 2px;
  white-space: nowrap;
}

.framework-assessment-list {
  display: grid;
  gap: 6px;
}

.fa-card {
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-md);
  border: .5px solid var(--card-border);
  background: var(--card-bg);
  overflow: hidden;
  cursor: pointer;
  min-width: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.fa-card:hover {
  border-color: var(--brand-blue);
}

.fa-card.fa-active {
  border: 1px solid var(--brand-blue);
}

.fa-card.fa-locked {
  cursor: default;
}

.fa-card.fa-locked:hover {
  border-color: var(--card-border);
}

.fa-strip {
  width: 4px;
  flex-shrink: 0;
}

.fa-strip-green { background: #4caf50; }
.fa-strip-blue { background: #7cc8ec; }
.fa-strip-orange { background: #e07020; }
.fa-strip-gray { background: var(--card-border); }

.fa-card-body {
  flex: 1;
  padding: 10px 12px;
  min-width: 0;
}

.fa-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.fa-card-name {
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.fa-card-name span {
  color: var(--muted);
  font-weight: 500;
}

.fa-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(17, 17, 17, .62);
}

.fa-unlock-note {
  color: rgba(17, 17, 17, .55);
}

.fa-pips {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.fa-pip {
  width: 16px;
  height: 4px;
  border-radius: 2px;
}

.fa-pip-green { background: #4caf50; }
.fa-pip-blue { background: #7cc8ec; }
.fa-pip-orange { background: #e07020; }
.fa-pip-gray { background: var(--card-border); }

.fa-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.fa-pill-green {
  color: #1a7a1a;
  background: #e8f5e9;
  border: .5px solid #81c784;
}

.fa-pill-blue {
  color: #185fa5;
  background: #e3f2fd;
  border: .5px solid #90caf9;
}

.fa-pill-orange {
  color: #b05000;
  background: #fff3e0;
  border: .5px solid #e07020;
}

.fa-pill-gray {
  color: rgba(17, 17, 17, .55);
  background: var(--workspace-bg);
  border: .5px solid var(--card-border);
}

.fa-chevron {
  display: flex;
  align-items: center;
  padding: 0 14px 0 0;
  color: var(--muted);
  font-size: 22px;
}

.fa-action-label {
  align-items: center;
  color: #185fa5;
  display: flex;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  padding: 0 14px 0 0;
  white-space: nowrap;
}

.learner-review-group {
  display: grid;
  gap: 8px;
}

.learner-assessment-detail {
  display: grid;
  gap: 12px;
}

.fa-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: .5px solid var(--card-border);
}

.fa-detail-head h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.fa-detail-status {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.fa-detail-actions {
  margin: -4px 0 0;
}

.assessment-resource {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: .5px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
}

.assessment-resource-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e3f2fd;
  color: #185fa5;
  flex-shrink: 0;
}

.assessment-resource > div {
  flex: 1;
  display: grid;
  gap: 2px;
  min-width: 0;
}

.assessment-resource strong {
  font-size: 12px;
}

.assessment-resource span:not(.assessment-resource-icon) {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.open-brief-button {
  color: #185fa5;
  border-color: #90caf9;
  background: #fff;
}

.fa-section-label {
  margin: 2px 0 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.fa-task-list {
  display: grid;
  gap: 6px;
}

.fa-task-row {
  display: block;
  padding: 0;
  background: var(--card-bg);
  border: .5px solid var(--card-border);
  border-left-width: 3px;
  border-left-style: solid;
  border-radius: var(--radius-md);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  overflow: hidden;
  margin: 0;
}

.fa-task-row-green { border-left-color: #4caf50; }
.fa-task-row-blue { border-left-color: #7cc8ec; }
.fa-task-row-orange { border-left-color: #e07020; }
.fa-task-row-gray { border-left-color: var(--card-border); }

.fa-task-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.fa-task-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.fa-task-icon-green {
  background: #e8f5e9;
  color: #2e7d32;
}

.fa-task-icon-blue {
  background: #e3f2fd;
  color: #1565c0;
}

.fa-task-icon-orange {
  background: #fff3e0;
  color: #b05000;
}

.fa-task-icon-gray {
  background: var(--workspace-bg);
  color: var(--muted);
}

.fa-task-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.fa-task-name {
  font-size: 13px;
  font-weight: 600;
}

.fa-task-ksbs {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}

.fa-task-ksb {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--workspace-bg);
  border: .5px solid var(--card-border);
  color: rgba(17, 17, 17, .7);
  line-height: 1.35;
}

.fa-task-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-md);
  border: .5px solid var(--card-border);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--card-bg);
}

.fa-task-cta-green {
  border-color: #81c784;
  color: #1a7a1a;
  background: #e8f5e9;
}

.fa-task-cta-blue {
  border-color: #90caf9;
  color: #185fa5;
  background: #e3f2fd;
}

.fa-task-cta-orange {
  border-color: #e07020;
  color: #b05000;
  background: #fff3e0;
}

.fa-task-cta-gray {
  border-color: var(--card-border);
  color: var(--muted);
  background: var(--card-bg);
}

.fa-marking-grid-section {
  padding: 0;
  border: .5px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  overflow: hidden;
}

.fa-mg-details {
  width: 100%;
}

.fa-mg-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  font-size: 12px;
}

.fa-mg-summary::-webkit-details-marker {
  display: none;
}

.fa-mg-summary > span {
  display: inline-flex;
  transition: transform .15s ease;
}

.fa-mg-details[open] .fa-mg-summary > span {
  transform: rotate(90deg);
}

.fa-mg-summary strong {
  color: var(--ink);
  font-size: 12px;
}

.fa-mg-summary em {
  margin-left: auto;
  font-style: normal;
  color: var(--muted);
}

.fa-mg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.fa-mg-table th {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 6px 10px;
  background: var(--workspace-bg);
  border-bottom: .5px solid var(--card-border);
  text-align: left;
  color: rgba(17, 17, 17, .6);
}

.fa-mg-table td {
  padding: 7px 10px;
  border-bottom: .5px solid var(--card-border);
  vertical-align: top;
  color: rgba(17, 17, 17, .78);
}

.fa-mg-table tr:last-child td {
  border-bottom: none;
}

.fa-mg-table th:nth-child(1),
.fa-mg-table td:nth-child(1) {
  width: 50px;
}

.fa-mg-table th:nth-child(2),
.fa-mg-table td:nth-child(2) {
  width: 70px;
}

.fa-mg-table th:nth-child(4),
.fa-mg-table td:nth-child(4),
.fa-mg-table th:nth-child(5),
.fa-mg-table td:nth-child(5) {
  width: 60px;
  text-align: center;
}

.fa-grade-pass,
.fa-grade-distinction {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  line-height: 1.35;
}

.fa-grade-pass {
  background: #e3f2fd;
  border: .5px solid #90caf9;
  color: #185fa5;
}

.fa-grade-distinction {
  background: #f3e5f5;
  border: .5px solid #ce93d8;
  color: #6a1b9a;
}

@media (max-width: 1120px) {
  .tc-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assessor-learner-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assessor-learner-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-card.expanded {
    grid-column: span 1;
  }

  .portfolio-evidence-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learner-home-programme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eb-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .eb-count {
    white-space: normal;
  }

  .eb-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feedback-card-main {
    grid-template-columns: 1fr auto;
  }

  .feedback-card-main > .status-pill,
  .feedback-excerpt {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .tc-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .tc-hero-actions {
    text-align: left;
  }

  .tc-resource-grid {
    grid-template-columns: 1fr;
  }

  .assessor-learner-summary-strip {
    grid-template-columns: 1fr;
  }

  .tc-month-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .tc-month-head i {
    width: 100%;
  }

  .otjhs-stat-strip,
  .otjhs-bottom-grid {
    grid-template-columns: 1fr;
  }

  .otjhs-progress-row,
  .otjhs-category-row {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .otjhs-progress-row > span,
  .otjhs-progress-row strong,
  .otjhs-category-row > span,
  .otjhs-category-row strong {
    text-align: left;
    width: auto;
  }

  .hd-programme-strip,
  .hd-stat-grid,
  .hd-donut-grid,
  .hd-detail-grid {
    grid-template-columns: 1fr;
  }

  .hd-programme-cell + .hd-programme-cell {
    border-left: 0;
    border-top: 1px solid var(--card-border);
  }

  .hd-action-card,
  .hd-otj-alert,
  .hd-feedback-row {
    align-items: stretch;
    flex-direction: column;
  }

  .hd-feedback-row time {
    white-space: normal;
  }

  .assessor-learner-detail-grid {
    grid-template-columns: 1fr;
  }

  .note-create-layout {
    grid-template-columns: 1fr;
  }

  .journey-status-grid,
  .journey-meta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pj-summary-strip {
    grid-template-columns: 1fr;
  }

  .pj-month-block {
    gap: 28px;
  }

  .pj-task-row {
    grid-template-columns: 22px minmax(0, 1fr) auto;
  }

  .pj-ksb-tags {
    display: none;
  }

  .pj-assessment-head,
  .pj-month-head {
    flex-direction: column;
  }

  .pj-training-strip {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .portfolio-evidence-filters {
    grid-template-columns: 1fr;
  }

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

  .eb-filters {
    grid-template-columns: 1fr;
  }

  .eb-group-left {
    flex-wrap: wrap;
  }

  .feedback-card-main {
    grid-template-columns: 1fr;
  }
}

.al-directory {
  display: grid;
  gap: 18px;
}

.al-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  color: #111;
}

.al-header p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #7a7f86;
}

.al-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: .25rem;
}

.al-search {
  position: relative;
  flex: 1;
  min-width: 220px;
  display: block;
}

.al-search span {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #7a7f86;
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
}

.al-search input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 14px;
  padding: 0 14px 0 42px;
  outline: none;
}

.al-search input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(124, 200, 236, .24);
}

.al-chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.al-chip {
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: #fff;
  color: #7a7f86;
  padding: 0 16px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.al-chip.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #0b1b25;
  box-shadow: 0 8px 18px rgba(124, 200, 236, .28);
}

.al-columns,
.al-row {
  display: grid;
  grid-template-columns: 2fr 1.8fr 1.4fr 1fr 100px 80px;
  gap: 16px;
  align-items: center;
}

.al-columns {
  padding: 0 22px 6px;
  color: #7a7f86;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.al-list {
  display: grid;
  gap: 10px;
}

.al-row {
  width: 100%;
  box-sizing: border-box;
  min-height: 86px;
  border: 1px solid var(--card-border);
  border-left-width: 4px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  padding: 16px 18px;
  color: #111;
  text-align: left;
  cursor: pointer;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}

.al-row:hover,
.al-row:focus-visible {
  box-shadow: 0 2px 12px rgba(124, 200, 236, .2);
  outline: none;
}

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

.al-status-ahead {
  border-left-color: #4caf50;
}

.al-status-behind {
  border-left-color: #e07020;
}

.al-status-on_track,
.al-status-marginal {
  border-left-color: var(--card-border);
}

.al-learner-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.al-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  background: #f0f0f0;
  color: #666;
}

.al-status-ahead .al-avatar {
  background: #e8f5e9;
  color: #1a7a1a;
}

.al-status-behind .al-avatar {
  background: #fff3e0;
  color: #b05000;
}

.al-learner-cell strong,
.al-framework-cell strong,
.al-review-cell strong {
  display: block;
  min-width: 0;
  color: #111;
  overflow-wrap: anywhere;
}

.al-learner-cell strong {
  font-size: 13px;
  font-weight: 500;
}

.al-framework-cell strong {
  font-size: 12px;
  font-weight: 500;
  color: #3f444a;
}

.al-learner-cell small,
.al-framework-cell small,
.al-review-cell small {
  display: block;
  margin-top: 2px;
  color: #7a7f86;
  font-size: 10px;
  line-height: 1.25;
}

.al-learner-cell small {
  font-size: 11px;
}

.al-progress-cell {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.al-progress-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #111;
}

.al-progress-line small {
  color: #7a7f86;
  white-space: nowrap;
}

.al-mini-progress {
  display: block;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--workspace-bg);
  border: 1px solid #dfe4e8;
}

.al-mini-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-blue);
}

.al-delta {
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}

.al-delta.positive {
  color: #1a7a1a;
}

.al-delta.negative {
  color: #b05000;
}

.al-delta.neutral {
  color: #7a7f86;
}

.al-task-progress-label {
  color: var(--ink3);
  font-size: 10px;
  line-height: 1.25;
}

.al-status-cell,
.al-marking-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.al-status-pill,
.al-marking-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.al-status-ahead .al-status-pill {
  color: #1a7a1a;
  background: #e8f5e9;
  border: 1px solid #4caf50;
}

.al-status-behind .al-status-pill {
  color: #b05000;
  background: #fff3e0;
  border: 1px solid #e07020;
}

.al-status-on_track .al-status-pill,
.al-status-marginal .al-status-pill {
  color: #7a7f86;
  background: var(--workspace-bg);
  border: 1px solid var(--card-border);
}

.al-review-cell {
  min-width: 0;
}

.al-review-cell strong {
  font-size: 12px;
  font-weight: 500;
}

.al-marking-badge {
  color: #b05000;
  background: #fff3e0;
  border: 1px solid #e07020;
}

.al-dash {
  color: #b6bbc1;
  font-size: 14px;
}

.al-empty {
  color: #7a7f86;
  font-size: 13px;
  padding: 40px 0;
  text-align: center;
}

@media (max-width: 1120px) {
  .al-columns {
    display: none;
  }

  .al-row {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }

  .al-status-cell,
  .al-marking-cell {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .al-filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .al-chip-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .al-row {
    grid-template-columns: 1fr;
  }
}

.assessor-learner-detail-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  width: 100%;
}

.assessor-learner-detail-page > .tab-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--card-border);
  background: #050505;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.assessor-learner-detail-page > .tab-row .tab-button {
  position: relative;
  flex: 0 0 auto;
  min-height: 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8d9298;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}

.assessor-learner-detail-page > .tab-row .tab-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, .04);
}

.assessor-learner-detail-page > .tab-row .tab-button.active {
  border-color: transparent;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.assessor-learner-detail-page > .tab-row .tab-button.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--brand-blue);
}

.assessor-learner-detail-page .alo-card,
.assessor-learner-detail-page .alo-progress-card,
.assessor-learner-detail-page .alas-summary-grid,
.assessor-learner-detail-page .alas-task-card,
.assessor-learner-detail-page .assessor-inline-submission,
.assessor-learner-detail-page .alot-progress-header,
.assessor-learner-detail-page .alot-category-card,
.assessor-learner-detail-page .alot-entry-card,
.assessor-learner-detail-page .alks-summary-tile,
.assessor-learner-detail-page .alks-column-head,
.assessor-learner-detail-page .alks-ksb-card,
.assessor-learner-detail-page .aln-compose-card,
.assessor-learner-detail-page .aln-note-card {
  border-radius: 18px;
}

.assessor-inline-submission {
  width: 100%;
  box-sizing: border-box;
  margin-top: 12px;
}

.assessor-inline-submission .task-card {
  max-width: none;
}

.alo-overview-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  align-items: start;
}

.alo-left,
.alo-right {
  display: grid;
  gap: 12px;
}

.alo-card {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  padding: 20px;
  box-shadow: 0 8px 20px rgba(17, 17, 17, .04);
}

.alo-card h3 {
  margin: 0 0 18px;
  color: #888d92;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.alo-profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 128px;
  border-left-width: 4px;
}

.alo-status-ahead {
  border-left-color: #4caf50;
}

.alo-status-behind {
  border-left-color: #e07020;
}

.alo-status-on_track,
.alo-status-marginal {
  border-left-color: var(--card-border);
}

.alo-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #f0f0f0;
  color: #666;
  font-size: 15px;
  font-weight: 800;
}

.alo-status-ahead .alo-avatar {
  background: #e8f5e9;
  color: #1a7a1a;
}

.alo-status-behind .alo-avatar {
  background: #fff3e0;
  color: #b05000;
}

.alo-profile-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.alo-profile-main > strong {
  color: #111;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.alo-profile-main > small {
  color: #7a7f86;
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.alo-status-pill {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
}

.alo-status-ahead .alo-status-pill {
  color: #1a7a1a;
  background: #e8f5e9;
  border: 1px solid #4caf50;
}

.alo-status-behind .alo-status-pill {
  color: #b05000;
  background: #fff3e0;
  border: 1px solid #e07020;
}

.alo-status-on_track .alo-status-pill,
.alo-status-marginal .alo-status-pill {
  color: #7a7f86;
  background: var(--workspace-bg);
  border: 1px solid var(--card-border);
}

.alo-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--card-border);
}

.alo-info-row:last-child {
  border-bottom: 0;
}

.alo-key {
  width: 110px;
  flex: 0 0 110px;
  color: #888d92;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1.35;
  text-transform: uppercase;
}

.alo-value {
  flex: 1;
  color: #111;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-align: right;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.alo-value.muted {
  color: #7a7f86;
  font-size: 12px;
}

.alo-link,
.alo-action-link {
  color: #185fa5;
  text-decoration: none;
}

.alo-link:hover,
.alo-action-link:hover {
  text-decoration: underline;
}

.alo-progress-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  border-radius: var(--radius-lg);
  background: #111;
  color: #fff;
  padding: 20px;
  min-height: 214px;
  box-shadow: 0 10px 24px rgba(17, 17, 17, .12);
}

.alo-donut {
  position: relative;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
}

.alo-donut svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.alo-donut-track,
.alo-donut-fill {
  fill: none;
  stroke-width: 9;
}

.alo-donut-track {
  stroke: #333;
}

.alo-donut-fill {
  stroke: var(--brand-blue);
  stroke-linecap: round;
}

.alo-donut span {
  display: grid;
  justify-items: center;
  line-height: 1.05;
}

.alo-donut strong {
  color: #fff;
  font-size: 22px;
  font-weight: 600;
}

.alo-donut small {
  color: #aaa;
  font-size: 10px;
}

.alo-progress-card p {
  margin: 0;
  color: #ccc;
  font-size: 12px;
  font-weight: 500;
}

.alo-progress-delta {
  font-size: 12px;
  font-weight: 500;
}

.alo-progress-delta.positive {
  color: #4caf50;
}

.alo-progress-delta.negative {
  color: #e07020;
}

.alo-ksb-card,
.alo-next-review-card {
  border-left: 4px solid var(--brand-blue);
}

.alo-ksb-card {
  display: grid;
  gap: 14px;
  color: #111;
  text-align: left;
  cursor: pointer;
}

.alo-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.alo-card-title-row strong,
.alo-overline {
  color: #888d92;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.alo-card-title-row em {
  color: #185fa5;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}

.alo-ksb-list {
  display: grid;
  gap: 12px;
}

.alo-ksb-row {
  display: grid;
  gap: 5px;
}

.alo-ksb-row-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #3f444a;
  font-size: 13px;
}

.alo-ksb-row-head strong {
  color: #7a7f86;
  font-size: 12px;
  font-weight: 600;
}

.alo-mini-bar {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--workspace-bg);
}

.alo-mini-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-blue);
}

.alo-next-review-card {
  display: grid;
  gap: 8px;
}

.alo-next-review-card > strong {
  color: #111;
  font-size: 16px;
  font-weight: 500;
}

.alo-next-review-card > small {
  color: #7a7f86;
  font-size: 12px;
}

.alo-next-review-card > small.overdue {
  color: #b05000;
}

.alo-action-link {
  font-size: 12px;
  font-weight: 600;
}

.assessor-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 20px;
  background: #e07020;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

.alas-assessments-tab {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  min-width: 0;
  width: 100%;
}

.alas-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  box-shadow: 0 8px 20px rgba(17, 17, 17, .04);
}

.alas-summary-tile {
  box-sizing: border-box;
  min-width: 0;
  border: 0;
  border-right: 1px solid var(--card-border);
  border-radius: 0;
  background: transparent;
  padding: 12px 14px;
  text-align: center;
}

.alas-summary-tile:last-child {
  border-right: 0;
}

.alas-summary-tile strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}

.alas-summary-tile span {
  display: block;
  margin-top: 2px;
  color: var(--ink3);
  font-size: 11px;
  line-height: 1.25;
}

.alas-summary-achieved strong {
  color: #1a7a1a;
}

.alas-summary-pending {
  border-left: 4px solid #e07020;
}

.alas-summary-pending strong {
  color: #b05000;
}

.alas-summary-resubmission strong {
  color: #b05000;
}

.alas-summary-progress strong {
  color: #185fa5;
}

.alas-summary-muted strong {
  color: var(--ink3);
}

.alas-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 1.25rem 0 10px;
}

.alas-divider span {
  flex: 1;
  height: 1px;
  background: var(--card-border);
}

.alas-divider strong {
  color: var(--ink3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.alas-task-card {
  box-sizing: border-box;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  padding: 16px 18px;
  margin-bottom: 8px;
  box-shadow: 0 8px 20px rgba(17, 17, 17, .04);
  cursor: pointer;
}

.alas-task-card:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.alas-task-card.alas-pending {
  border-left: 4px solid #e07020;
  background: #fffaf7;
}

.alas-task-card.alas-achieved {
  border-left: 4px solid #4caf50;
}

.alas-task-card.alas-resubmission {
  border-left: 4px solid #e07020;
  background: #fffaf7;
}

.alas-task-card.alas-in-progress {
  border-left: 4px solid var(--brand-blue);
}

.alas-task-card.alas-not-started {
  border-left: 4px solid var(--card-border);
}

.alas-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.alas-card-header > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.alas-card-header strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.alas-card-header small {
  color: var(--ink3);
  font-size: 11px;
  line-height: 1.25;
}

.alas-status-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.alas-pill-pending {
  border: 1px solid #e07020;
  background: #fff3e0;
  color: #b05000;
}

.alas-pill-achieved {
  border: 1px solid #4caf50;
  background: #e8f5e9;
  color: #1a7a1a;
}

.alas-pill-resubmission {
  border: 1px solid #e07020;
  background: #fff3e0;
  color: #b05000;
}

.alas-pill-in-progress {
  border: 1px solid var(--brand-blue);
  background: var(--brand-soft);
  color: #185fa5;
}

.alas-pill-not-started {
  border: 1px solid var(--card-border);
  background: var(--workspace-bg);
  color: var(--ink3);
}

.alas-ksb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.alas-ksb-tags span {
  border: 1px solid var(--card-border);
  border-radius: 4px;
  background: var(--workspace-bg);
  color: var(--ink3);
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
}

.alas-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--ink3);
  font-size: 11px;
  line-height: 1.3;
}

.alas-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--card-border);
}

.alas-card-footer em {
  min-width: 0;
  overflow: hidden;
  color: var(--ink2);
  font-size: 12px;
  font-style: italic;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alas-mark-button,
.alas-outline-button {
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.alas-mark-button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
}

.alas-outline-button {
  border: 1px solid var(--brand-blue);
  background: #fff;
  color: #185fa5;
}

.alas-empty {
  margin: 0 0 8px;
  color: var(--ink3);
  font-size: 12px;
}

.alot-tab {
  display: grid;
  gap: 0;
  min-width: 0;
}

.alot-progress-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 0;
  margin-bottom: 12px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: #111;
  color: #fff;
}

.alot-hours-panel {
  display: grid;
  justify-items: center;
  padding: 0 24px 0 0;
  text-align: center;
}

.alot-hours-panel strong {
  color: #fff;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.05;
}

.alot-hours-panel span {
  margin-top: 4px;
  color: #aaa;
  font-size: 11px;
}

.alot-hours-panel small {
  margin-top: 4px;
  color: #aaa;
  font-size: 12px;
}

.alot-hours-panel em {
  margin-top: 6px;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.alot-hours-panel em.positive {
  color: #4caf50;
}

.alot-hours-panel em.negative {
  color: #e07020;
}

.alot-metric-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 0 24px;
  border-left: 1px solid #333;
}

.alot-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.alot-metric-row span {
  color: #aaa;
  font-size: 11px;
}

.alot-metric-row strong {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}

.alot-section-label {
  margin: 1.25rem 0 10px;
  color: var(--ink3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.alot-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.alot-category-card {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  background: var(--card-bg);
}

.alot-category-card div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.alot-category-card strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
}

.alot-category-card span {
  flex-shrink: 0;
  color: var(--ink3);
  font-size: 11px;
}

.alot-progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--workspace-bg);
}

.alot-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.alot-month-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 4px;
}

.alot-month-divider span {
  flex: 1;
  height: 1px;
  background: var(--card-border);
}

.alot-month-divider strong {
  color: var(--ink3);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.alot-record-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
}

.alot-record-table {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
}

.alot-record-table th {
  padding: 9px 10px;
  border-bottom: 1px solid var(--card-border);
  background: var(--workspace-bg);
  color: var(--ink3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.alot-record-table td {
  padding: 10px;
  border-bottom: 1px solid var(--card-border);
  color: var(--ink2);
  font-size: 12px;
  vertical-align: top;
}

.alot-record-table tbody tr:last-child td {
  border-bottom: 0;
}

.alot-record-table tbody tr.is-rejected td:first-child {
  border-left: 4px solid #e07020;
}

.alot-record-table tbody tr.is-rejected td {
  background: #fffaf7;
}

.alot-record-table tbody tr:not(.is-rejected) td:first-child {
  border-left: 4px solid var(--brand);
}

.alot-record-table td strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.alot-record-table td small {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 3px;
  color: var(--ink3);
  font-size: 11px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.alot-record-table .compact-tags {
  margin-top: 6px;
}

.alot-actions-col {
  width: 190px;
  text-align: right;
}

.alot-table-actions,
.alot-table-actions .action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.alot-table-actions .action-row {
  margin: 0;
}

.alot-record-history-row td {
  padding-top: 0;
  background: #fffaf7;
}

.alot-record-table tbody tr.alot-record-history-row td:first-child {
  border-left: 4px solid #e07020;
}

.alot-record-history-row .otj-history {
  margin: 0;
}

.alot-record-edit-row td {
  padding: 12px;
  background: var(--workspace-bg);
}

.alot-record-table tbody tr.alot-record-edit-row td:first-child {
  border-left: 4px solid var(--brand);
}

.alot-entry-card {
  min-width: 0;
  margin-bottom: 8px;
  padding: 14px 16px;
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  background: var(--card-bg);
}

.alot-entry-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.alot-entry-header strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.alot-entry-header > span {
  flex-shrink: 0;
  color: #185fa5;
  font-size: 13px;
  font-weight: 600;
}

.alot-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 8px;
  color: var(--ink3);
  font-size: 11px;
}

.alot-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 1px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}

.alot-approved {
  border: 1px solid #4caf50;
  background: #e8f5e9;
  color: #1a7a1a;
}

.alot-pending {
  border: 1px solid var(--brand);
  background: var(--brand-soft);
  color: #185fa5;
}

.alot-rejected {
  border: 1px solid #e07020;
  background: #fff3e0;
  color: #b05000;
}

.alot-entry-card p {
  margin: 0 0 8px;
  color: var(--ink2);
  font-size: 12px;
  line-height: 1.55;
}

.alot-entry-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--card-border);
}

.alot-entry-actions .action-row {
  margin: 0;
}

.alks-tab {
  display: grid;
  gap: 0;
  min-width: 0;
}

.alks-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 1.25rem;
}

.alks-summary-tile {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  text-align: center;
  box-sizing: border-box;
}

.alks-summary-tile strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}

.alks-summary-tile span {
  display: block;
  margin-top: 2px;
  color: var(--ink3);
  font-size: 11px;
  line-height: 1.25;
}

.alks-total {
  border-left: 4px solid var(--brand);
}

.alks-achieved-number strong {
  color: #1a7a1a;
}

.alks-pending-number strong {
  color: var(--ink3);
}

.alks-progress-number strong {
  color: #185fa5;
}

.alks-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.alks-column {
  min-width: 0;
}

.alks-column-head {
  margin-bottom: 10px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.alks-column-achieved {
  border: 1px solid #4caf50;
  background: #e8f5e9;
  color: #1a7a1a;
}

.alks-column-pending {
  border: 1px solid var(--card-border);
  background: var(--workspace-bg);
  color: var(--ink3);
}

.alks-type-group {
  margin-bottom: 14px;
}

.alks-type-group h4 {
  margin: 0 0 6px;
  padding-left: 2px;
  color: var(--ink3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.alks-ksb-card {
  margin-bottom: 6px;
  padding: 10px 12px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
}

.alks-ksb-card.alks-achieved {
  border-left: 4px solid #4caf50;
}

.alks-ksb-card.alks-pending {
  border-left: 4px solid var(--card-border);
}

.alks-ksb-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.alks-ksb-head strong {
  flex-shrink: 0;
  color: #185fa5;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.alks-ksb-head p {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: var(--ink2);
  font-size: 12px;
  line-height: 1.45;
}

.alks-ksb-head span {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 500;
}

.alks-achieved .alks-ksb-head span {
  border: 1px solid #4caf50;
  background: #e8f5e9;
  color: #1a7a1a;
}

.alks-pending .alks-ksb-head span {
  border: 1px solid var(--card-border);
  background: var(--workspace-bg);
  color: var(--ink3);
}

.alks-ksb-card small {
  display: block;
  margin-top: 5px;
  color: var(--ink3);
  font-size: 10px;
  line-height: 1.35;
}

.alks-more {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 6px 12px;
  color: var(--ink3);
  font-size: 11px;
  font-style: italic;
  text-align: left;
  opacity: .7;
  cursor: pointer;
}

.alks-more:hover,
.alks-more:focus-visible {
  color: #185fa5;
  opacity: 1;
}

.alks-more[hidden] {
  display: none;
}

.alks-empty {
  margin: 0 0 8px;
  color: var(--ink3);
  font-size: 12px;
}

.alks-hidden-dom {
  display: none;
}

.alks-type-group.expanded .alks-hidden-dom {
  display: block;
}

.aln-tab {
  display: grid;
  gap: 0;
  min-width: 0;
}

.aln-compose-card {
  box-sizing: border-box;
  margin-bottom: 1.25rem;
  padding: 16px 18px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  box-shadow: 0 8px 20px rgba(17, 17, 17, .04);
}

.aln-compose-card h3 {
  margin: 0 0 8px;
  color: var(--ink3);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.aln-save-notice {
  margin: 0 0 8px;
  border: 1px solid #4caf50;
  border-radius: var(--radius-sm);
  background: #e8f5e9;
  color: #1a7a1a;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
}

.aln-compose-card textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 72px;
  resize: vertical;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
}

.aln-compose-card textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(124, 200, 236, .15);
  outline: 0;
}

.aln-compose-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.aln-visible-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.aln-visible-picker > span {
  flex: 0 0 auto;
  color: var(--ink3);
  font-size: 12px;
  font-weight: 500;
}

.aln-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.aln-visibility-chip {
  display: inline-flex;
  cursor: pointer;
}

.aln-visibility-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.aln-visibility-chip span {
  border: 1px solid var(--card-border);
  border-radius: 20px;
  background: var(--workspace-bg);
  color: var(--ink3);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}

.aln-visibility-chip input:checked + span {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: #185fa5;
}

.aln-visibility-chip input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(124, 200, 236, .2);
}

.aln-compose-footer button {
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  padding: 7px 18px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.aln-saved-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}

.aln-saved-head h3 {
  margin: 0;
  color: var(--ink3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.aln-saved-head span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--ink3);
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
}

.aln-date-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 4px;
}

.aln-date-divider span {
  flex: 1;
  height: 1px;
  background: var(--card-border);
}

.aln-date-divider strong {
  color: var(--ink3);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.aln-note-card {
  min-width: 0;
  margin-bottom: 8px;
  padding: 14px 16px;
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  box-shadow: 0 8px 20px rgba(17, 17, 17, .04);
}

.aln-note-card.unread {
  border-left-color: #e07020;
  background: #fffaf7;
}

.aln-note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.aln-author {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.aln-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.aln-role-centre_admin {
  background: var(--brand-soft);
  color: #185fa5;
}

.aln-role-iqa {
  background: #e8f5e9;
  color: #1a7a1a;
}

.aln-role-eqa {
  background: #f3e8ff;
  color: #6a1b9a;
}

.aln-role-assessor {
  background: #fff3e0;
  color: #b05000;
}

.aln-author strong,
.aln-author small {
  display: block;
}

.aln-author strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.aln-author small {
  margin-top: 2px;
  color: var(--ink3);
  font-size: 11px;
  line-height: 1.2;
}

.aln-note-time {
  display: inline-grid;
  justify-items: end;
  gap: 8px;
  flex-shrink: 0;
  color: var(--ink3);
  font-size: 11px;
  line-height: 1.25;
  text-align: right;
}

.aln-note-time i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e07020;
}

.aln-note-card > p {
  margin: 0 0 10px;
  color: var(--ink2);
  font-size: 13px;
  line-height: 1.55;
}

.aln-visible-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.aln-visible-row strong {
  color: var(--ink3);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.aln-visible-row span {
  border: 1px solid var(--card-border);
  border-radius: 20px;
  background: var(--workspace-bg);
  color: var(--ink3);
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
}

.aln-visible-row span.current {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: #185fa5;
}

.aln-empty {
  padding: 40px 0;
  color: var(--ink3);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 980px) {
  .alo-overview-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .alks-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alot-progress-header {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .aln-compose-footer,
  .aln-visible-picker {
    align-items: flex-start;
    flex-direction: column;
  }

  .alot-hours-panel,
  .alot-metric-panel {
    padding: 0;
    border-left: 0;
  }

  .alot-metric-panel {
    padding-top: 16px;
    border-top: 1px solid #333;
  }

  .alas-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alas-summary-tile {
    border-bottom: 1px solid var(--card-border);
  }

  .alas-summary-tile:nth-child(2n) {
    border-right: 0;
  }

  .alas-summary-tile:nth-last-child(-n + 1) {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  .alks-summary-grid {
    grid-template-columns: 1fr;
  }

  .alks-ksb-head {
    display: grid;
    gap: 5px;
  }

  .alks-ksb-head span {
    justify-self: start;
  }

  .alot-category-grid {
    grid-template-columns: 1fr;
  }

  .alot-entry-header {
    display: grid;
    gap: 6px;
  }

  .alas-summary-grid {
    grid-template-columns: 1fr;
  }

  .alo-info-row {
    display: grid;
    gap: 3px;
  }

  .alo-key {
    width: auto;
    flex-basis: auto;
  }

  .alo-value {
    text-align: left;
  }

  .alas-summary-tile {
    border-right: 0;
  }

  .alas-summary-tile:nth-child(2n) {
    border-right: 0;
  }

  .alas-summary-tile:not(:last-child) {
    border-bottom: 1px solid var(--card-border);
  }

  .alas-card-header,
  .alas-card-footer {
    display: grid;
  }

  .alas-status-pill,
  .alas-mark-button,
  .alas-outline-button {
    justify-self: start;
  }

  .alas-card-footer em {
    white-space: normal;
  }
}

.attempt-tabs {
  display: flex;
  gap: 0;
  margin: 12px 0 0;
  overflow-x: auto;
  padding: 0 0 0 6px;
  border-bottom: 1px solid var(--card-border);
}

.attempt-tab {
  align-items: center;
  background: var(--workspace-bg);
  border: 1px solid var(--card-border);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  color: var(--ink3);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  gap: 6px;
  line-height: 1;
  max-width: 260px;
  margin: 0 2px -1px 0;
  padding: 8px 12px;
  white-space: nowrap;
}

.attempt-tab span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attempt-tab.active {
  background: var(--card-bg);
  border-color: var(--brand);
  border-bottom: 1px solid var(--card-bg);
  box-shadow: none;
  color: var(--ink);
  position: relative;
  z-index: 1;
}

.attempt-tab:not(.active):hover {
  background: #fff;
  color: var(--ink2);
}

.attempt-pill {
  border-radius: 999px;
  flex-shrink: 0;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  margin-left: 2px;
  padding: 2px 6px;
}

.attempt-pill.achieved {
  background: #e8f5e9;
  border: 1px solid #4caf50;
  color: #1a7a1a;
}

.attempt-pill.resubmission {
  background: #fff3e0;
  border: 1px solid #e07020;
  color: #b05000;
}

.attempt-meta {
  align-items: center;
  color: var(--ink3);
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  gap: 8px;
  margin: 0 0 8px;
}

.attempt-meta span {
  background: var(--workspace-bg);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 3px 8px;
}

.attempt-amendments {
  border-top: 1px solid var(--card-border);
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
}

.attempt-amendments > strong {
  color: var(--ink3);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.assessor-reviews-panel {
  display: grid;
  gap: 12px;
}

.review-card-list {
  display: grid;
  gap: 8px;
}

.review-card {
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
}

.review-card strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.review-card p,
.review-card small {
  color: var(--ink3);
  display: block;
  font-size: 11px;
  margin: 3px 0 0;
}

.review-card-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.review-signature-summary {
  background: var(--workspace-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  color: var(--ink2);
  font-size: 12px;
  margin: 0 0 12px;
  padding: 8px 10px;
}

.review-history {
  border-top: 1px solid var(--card-border);
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding-top: 10px;
}

.review-history strong {
  color: var(--ink3);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.review-history p {
  color: var(--ink2);
  font-size: 12px;
  margin: 0;
}

.muted-block {
  opacity: .55;
}

.attempt-amendments p {
  background: var(--workspace-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--ink2);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  padding: 8px 10px;
}

.attempt-amendments span {
  color: var(--ink3);
  display: block;
  font-size: 10px;
  margin-top: 4px;
}

.cml-page,
.cml-page * {
  font-family: "Lexend", sans-serif;
}

.cml-page select,
.cml-page input,
.cml-page button {
  font-family: "Lexend", sans-serif !important;
  font-size: 13px !important;
}

.cml-page {
  display: grid;
  gap: 16px;
}

.cml-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.cml-head h1 {
  color: #111;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

.cml-head p {
  color: #888;
  font-size: 13px;
  margin: 6px 0 0;
}

.cml-create-button {
  background: #7cc8ec;
  border: 1px solid #7cc8ec;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-weight: 600 !important;
  padding: 9px 18px;
  white-space: nowrap;
}

.cml-create-button:hover {
  background: #185fa5;
  border-color: #185fa5;
}

.cml-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
}

.cml-stat-card {
  background: #fff;
  border: 1px solid #e0e4e8;
  border-radius: 10px;
  padding: 14px 16px;
}

.cml-stat-card span,
.cml-filter-label,
.cml-list-head span {
  color: #888;
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.cml-stat-card strong {
  color: #111;
  display: block;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 4px;
}

.cml-stat-card small {
  color: #888;
  display: block;
  font-size: 11px;
  margin-top: 2px;
}

.cml-filter-card {
  background: #fff;
  border: 1px solid #e0e4e8;
  border-radius: 10px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  padding: 16px 18px;
}

.cml-filter-label {
  margin-bottom: 5px;
}

.cml-select {
  background: #f7f9fb;
  border: 1px solid #e0e4e8;
  border-radius: 6px;
  color: #111;
  cursor: pointer;
  padding: 8px 12px;
  width: 100%;
}

.cml-select:focus {
  border-color: #7cc8ec;
  box-shadow: 0 0 0 3px rgba(124, 200, 236, .15);
  outline: none;
}

.cml-list-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cml-list-head input {
  background: #fff;
  border: 1px solid #e0e4e8;
  border-radius: 6px;
  color: #111;
  max-width: 100%;
  padding: 7px 12px;
  width: 220px;
}

.cml-list-head input:focus {
  border-color: #7cc8ec;
  box-shadow: 0 0 0 3px rgba(124, 200, 236, .15);
  outline: none;
}

.cml-list {
  display: grid;
  gap: 8px;
}

.cml-learner-card {
  align-items: center;
  background: #fff;
  border: 1px solid #e0e4e8;
  border-radius: 10px;
  display: grid;
  gap: 0;
  grid-template-columns: 58px minmax(220px, 1.15fr) minmax(270px, 1fr) minmax(130px, .7fr) 130px 132px;
  margin-bottom: 0;
  position: relative;
  transition: box-shadow .15s;
}

.cml-learner-card:hover {
  box-shadow: 0 3px 14px rgba(0, 0, 0, .07);
}

.cml-avatar-wrap {
  padding-left: 16px;
}

.cml-avatar {
  align-items: center;
  background: #e3f4fb;
  border-radius: 50%;
  color: #185fa5;
  display: flex;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.cml-learner-card.is-ahead .cml-avatar {
  background: #e8f5e9;
  color: #1a7a1a;
}

.cml-learner-info,
.cml-progress-cell,
.cml-workplace-cell,
.cml-status-cell {
  padding: 14px;
}

.cml-learner-info strong {
  color: #111;
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.cml-learner-info small,
.cml-workplace-cell small {
  color: #888;
  display: block;
  font-size: 11px;
  margin-top: 2px;
}

.cml-learner-info span {
  background: #e3f4fb;
  border-radius: 4px;
  color: #185fa5;
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  margin-top: 4px;
  padding: 2px 7px;
}

.cml-progress-head {
  align-items: center;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  gap: 10px;
}

.cml-progress-head strong {
  color: #111;
  font-weight: 600;
}

.cml-progress-head strong.positive {
  color: #1a7a1a;
}

.cml-progress-head span {
  color: #888;
}

.cml-progress-bar {
  background: #e0e4e8;
  border-radius: 999px;
  height: 6px;
  margin: 5px 0;
  overflow: hidden;
}

.cml-progress-bar i {
  background: #7cc8ec;
  border-radius: inherit;
  display: block;
  height: 100%;
}

.cml-learner-card.is-ahead .cml-progress-bar i {
  background: #4caf50;
}

.cml-progress-cell p {
  color: #888;
  font-size: 11px;
  margin: 0;
}

.cml-progress-cell p strong {
  color: #444;
}

.cml-workplace-cell strong {
  color: #444;
  display: block;
  font-size: 12px;
  font-weight: 500;
}

.cml-status-cell {
  padding-left: 8px;
  padding-right: 8px;
}

.cml-status-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  white-space: nowrap;
}

.cml-status-pill.programme {
  background: #e3f4fb;
  border: 1px solid #7cc8ec;
  color: #185fa5;
}

.cml-status-pill.achieved {
  background: #e8f5e9;
  border: 1px solid #81c784;
  color: #1a7a1a;
}

.cml-status-pill.other {
  background: #f7f9fb;
  border: 1px solid #e0e4e8;
  color: #888;
}

.cml-actions {
  padding: 14px 14px 14px 4px;
  position: relative;
}

.cml-action-trigger {
  align-items: center;
  background: #fff;
  border: 1px solid #e0e4e8;
  border-radius: 6px;
  color: #444;
  cursor: pointer;
  display: flex;
  font-weight: 600 !important;
  gap: 5px;
  padding: 7px 12px;
  white-space: nowrap;
}

.cml-action-trigger:hover {
  background: #f7f9fb;
  border-color: #ccc;
}

.cml-action-menu {
  background: #fff;
  border: 1px solid #e0e4e8;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .10);
  display: none;
  min-width: 160px;
  position: absolute;
  right: 14px;
  top: calc(100% - 10px);
  z-index: 100;
}

.cml-action-menu.open {
  display: block;
}

.cml-action-item {
  align-items: center;
  background: none;
  border: none;
  border-bottom: 1px solid #e0e4e8;
  color: #444;
  cursor: pointer;
  display: flex;
  font-size: 12px !important;
  gap: 9px;
  padding: 10px 14px;
  text-align: left;
  width: 100%;
}

.cml-action-item:last-child {
  border-bottom: none;
}

.cml-action-item:hover {
  background: #f7f9fb;
  color: #111;
}

.cml-action-item.portfolio {
  color: #185fa5;
}

@media (max-width: 1180px) {
  .cml-stats,
  .cml-filter-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .cml-learner-card {
    grid-template-columns: 58px 1fr 1fr;
  }

  .cml-status-cell,
  .cml-actions {
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  .cml-head,
  .cml-list-head {
    align-items: stretch;
    flex-direction: column;
  }

  .cml-create-button,
  .cml-list-head input {
    width: 100%;
  }

  .cml-stats,
  .cml-filter-card,
  .cml-learner-card {
    grid-template-columns: 1fr;
  }

  .cml-avatar-wrap {
    padding: 14px 14px 0;
  }

  .cml-actions {
    padding: 0 14px 14px;
  }

.cml-action-menu {
    left: 14px;
    right: auto;
  }
}

.pagination-row {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}

.results-actions {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compact-empty-state {
  display: grid;
  gap: 4px;
  padding: 18px;
}

.compact-empty-state strong {
  color: var(--ink);
  font-size: 14px;
}

.compact-empty-state p {
  color: var(--ink3);
  font-size: 12px;
  margin: 0;
}

.form-builder-panel,
.learner-forms-panel {
  display: grid;
  gap: 14px;
}

.form-builder-panel {
  position: relative;
}

.form-builder-fields,
.form-preview-stack {
  display: grid;
  gap: 12px;
}

.form-builder-add-row {
  align-items: center;
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: center;
  padding: 12px;
}

.form-builder-floating-add {
  bottom: 86px;
  box-shadow: 0 10px 26px rgba(17, 17, 17, .18);
  justify-self: end;
  position: sticky;
  width: fit-content;
  z-index: 8;
}

.form-field-editor {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  display: grid;
  gap: 10px;
  padding: 12px;
  transition: border-color .15s, box-shadow .15s;
}

.form-field-editor-focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(124, 200, 236, .16);
}

.field-editor-head,
.inline-upload-row {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.field-editor-head > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.field-editor-head strong {
  color: var(--ink);
  font-size: 13px;
}

.field-editor-head span {
  color: var(--ink3);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-editor-main {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1.4fr) minmax(150px, .8fr) max-content;
}

.field-required-toggle {
  align-self: center;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 8px 12px;
}

.field-advanced-toggle {
  align-items: center;
  background: var(--workspace-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--ink2);
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  justify-content: space-between;
  padding: 8px 10px;
  text-align: left;
}

.field-advanced-toggle.active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: #185fa5;
}

.field-advanced-toggle span:last-child {
  color: var(--ink3);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.field-advanced-panel {
  background: var(--workspace-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  display: grid;
  gap: 10px;
  padding: 12px;
}

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

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

.inline-check {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  width: fit-content;
}

.form-learner-checklist {
  background: var(--workspace-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  display: grid;
  gap: 6px;
  max-height: 340px;
  overflow: auto;
  padding: 10px;
}

.form-learner-checklist .check {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.form-learner-checklist small,
.form-field-help,
.form-upload-field .muted {
  color: var(--ink3);
  display: block;
  font-size: 11px;
  margin-top: 2px;
}

.form-fieldset,
.form-upload-field {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
}

.form-fieldset legend,
.form-upload-field strong {
  color: var(--ink2);
  font-size: 12px;
  font-weight: 700;
}

.inline-upload-row {
  justify-content: flex-start;
}

.inline-upload-row input[type="file"] {
  min-width: 0;
}

.text-warning {
  color: #b05000;
  font-weight: 600;
}

.employer-home-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.warning-stat {
  border-left: 4px solid #e07020;
}

.employer-learner-list {
  display: grid;
  gap: 8px;
}

.employer-learner-card {
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  display: grid;
  gap: 12px;
  grid-template-columns: 1.5fr 1fr auto auto;
  padding: 12px 14px;
}

.employer-learner-card p,
.activity-item span {
  color: var(--ink3);
  font-size: 12px;
  margin: 3px 0 0;
}

.learner-progress-summary {
  display: grid;
  gap: 4px;
}

.learner-progress-summary small {
  color: var(--ink3);
  font-size: 11px;
}

.compact-activity-list {
  display: grid;
  gap: 8px;
}

.activity-item {
  border-bottom: 1px solid var(--card-border);
  display: grid;
  gap: 2px;
  padding: 8px 0;
}

.activity-item:last-child {
  border-bottom: 0;
}

.review-card.needs-action {
  border-left: 4px solid #e07020;
}

@media (max-width: 760px) {
  .employer-home-grid,
  .employer-learner-card {
    grid-template-columns: 1fr;
  }

  .field-editor-head,
  .inline-upload-row {
    align-items: stretch;
    flex-direction: column;
  }

  .field-editor-main {
    grid-template-columns: 1fr;
  }

  .field-required-toggle,
  .form-builder-floating-add {
    width: 100%;
  }

  .form-builder-floating-add {
    bottom: 72px;
  }

  .form-grid-compact {
    grid-template-columns: 1fr;
  }
}
