:root {
  --primary: #003f87;
  --primary-strong: #0056b3;
  --surface: #f8f9ff;
  --surface-soft: #f1f5f9;
  --surface-muted: #e5eeff;
  --white: #ffffff;
  --text: #0b1c30;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --border: #e2e8f0;
  --border-soft: #eef2f7;
  --green: #059669;
  --green-soft: #d1fae5;
  --blue-soft: #dbeafe;
  --purple-soft: #f3e8ff;
  --red: #e11d48;
  --red-soft: #ffe4e6;
  --shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
  --container-max: 1440px;
  --container-padding: 64px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

[hidden] {
  display: none !important;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.5;
}

body.sidebar-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.page-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.top-navbar {
  border-bottom: 1px solid var(--border-soft);
  background: var(--primary);
  color: #f3f4f6;
}

.top-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  gap: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: #1e40af;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand img {
  width: auto;
  height: 40px;
}

.desktop-nav,
.nav-actions,
.heading-actions,
.legend,
.panel-header,
.progress-line,
.table-footer {
  display: flex;
  align-items: center;
}

.desktop-nav {
  position: absolute;
  left: 50%;
  flex: 0 1 auto;
  transform: translateX(-50%);
  gap: 18px;
}

.nav-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.desktop-nav .nav-link {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.desktop-nav .nav-link.active {
  border-bottom-color: var(--primary);
}

.nav-actions {
  min-width: 40px;
  margin-left: auto;
  justify-content: flex-end;
  gap: 8px;
}

.icon-button,
.menu-toggle,
.table-action {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.icon-button:hover,
.menu-toggle:hover,
.table-action:hover {
  background: var(--surface-soft);
  color: var(--primary);
}

.menu-toggle {
  display: none;
  font-size: 24px;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  background: rgba(15, 23, 42, 0);
  transition: background 0.2s ease;
}

.mobile-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 90;
  width: min(86vw, 340px);
  transform: translateX(-100%);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: transform 0.24s ease;
}

.sidebar-open .sidebar-overlay {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.42);
}

.sidebar-open .mobile-sidebar {
  transform: translateX(0);
}

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

.sidebar-nav {
  display: grid;
  gap: 6px;
}

.sidebar-nav .nav-link {
  border-radius: 8px;
  padding: 12px 14px;
}

.sidebar-nav .nav-link.active,
.sidebar-nav .nav-link:hover {
  background: var(--blue-soft);
}

.main-content {
  flex: 1;
  padding-block: 40px;
}

.app-page[hidden] {
  display: none;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.page-heading h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: 0;
}

.page-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.heading-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.dashboard-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-top: 36px;
}

.dashboard-form-field {
  display: grid;
  min-width: 156px;
  gap: 6px;
}

.dashboard-form-field-wide {
  min-width: 230px;
}

.dashboard-form-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.dashboard-form-field select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--white);
  color: #0f172a;
  padding: 7px 34px 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.dashboard-search-button {
  flex: 0 0 auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  gap: 8px;
  border-radius: 8px;
  padding: 8px 16px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.button-primary {
  background: var(--primary-strong);
  color: var(--white);
}

.button-primary:hover {
  opacity: 0.9;
}

.button-secondary {
  border-color: var(--border);
  background: var(--white);
  color: var(--text);
}

.button-secondary:hover {
  background: var(--surface-soft);
}

.button-small {
  min-height: 30px;
  padding: 4px 12px;
  font-size: 12px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  pointer-events: none;
  background: rgba(15, 23, 42, 0);
  transition: background 0.2s ease, visibility 0.2s ease;
}

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  visibility: hidden;
  pointer-events: none;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-open .modal-overlay {
  visibility: visible;
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.42);
}

.modal-open .app-modal {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}

.app-modal-panel {
  width: min(100%, 460px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.app-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding: 18px 20px;
}

.app-modal-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.25;
}

.app-modal-header span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.app-modal-form {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.app-modal-form .dashboard-form-field {
  min-width: 0;
}

.app-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card,
.panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}

.stat-card {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stat-card strong {
  font-size: 30px;
  line-height: 1.2;
}

.stat-copy {
  display: grid;
  gap: 4px;
  margin-top: 22px;
}

.stat-copy h2 {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.stat-copy p {
  margin: 0;
  color: var(--muted-light);
  font-size: 13px;
  font-weight: 600;
}

.stat-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  font-size: 20px;
}

.stat-icon.blue {
  background: var(--blue-soft);
  color: #1d4ed8;
}

.stat-icon.purple {
  background: var(--purple-soft);
  color: #7e22ce;
}

.stat-icon.green {
  background: var(--green-soft);
  color: var(--green);
}

.stat-icon.red {
  background: var(--red-soft);
  color: var(--red);
}

.trend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.trend.positive {
  color: var(--green);
}

.trend.negative {
  color: var(--red);
}

.trend.muted {
  color: var(--muted-light);
}

.charts-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.panel {
  overflow: hidden;
}

.panel-header {
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border-soft);
  padding: 24px;
}

.panel h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
}

.legend {
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.legend-dot.current {
  background: var(--primary);
}

.legend-dot.target {
  background: var(--border);
}

.bar-chart {
  display: flex;
  align-items: end;
  height: 320px;
  gap: 24px;
  padding: 32px;
}

.bar-item {
  display: flex;
  flex: 1 1 0;
  min-width: 38px;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.bar-track {
  position: relative;
  width: 100%;
  height: 75%;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: var(--surface-soft);
}

.bar-track span {
  position: absolute;
  inset: auto 0 0;
  border-radius: 8px 8px 0 0;
  background: #1d4ed8;
  transition: height 0.2s ease;
}

.bar-item b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.bar-item.flagged b {
  color: var(--red);
}

.competency-panel {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.radar-wrap {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.radar-chart {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 1;
}

.radar-chart svg {
  width: 100%;
  height: 100%;
}

.axis {
  position: absolute;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.axis-top {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.axis-right {
  top: 50%;
  right: 0;
  transform: translateY(-50%) rotate(90deg);
}

.axis-bottom {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.axis-left {
  top: 50%;
  left: 0;
  transform: translateY(-50%) rotate(-90deg);
}

.competency-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.competency-list p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  color: #475569;
  font-size: 14px;
}

.competency-list strong {
  color: var(--text);
}

.cpl-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  align-items: start;
  gap: 24px;
  margin-bottom: 40px;
}

.cpl-panel {
  padding: 22px;
}

.cpl-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

.cpl-panel-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.cpl-panel-header span {
  color: var(--muted);
  font-family: "Inter", monospace;
  font-size: 12px;
  font-weight: 700;
}

.cpl-standard {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 12px;
  border: 1px solid rgba(5, 150, 105, 0.25);
  border-radius: 6px;
  background: rgba(209, 250, 229, 0.38);
  color: #047857;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
}

.cpl-standard strong {
  margin-left: 8px;
  color: #047857;
}

.cpl-list,
.status-list {
  display: grid;
}

.cpl-row {
  display: grid;
  grid-template-columns: 64px minmax(160px, 1fr) minmax(150px, 180px) 54px 42px;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding: 13px 0;
}

.cpl-row:last-child,
.status-row:last-child {
  border-bottom: 0;
}

.cpl-code {
  color: #1d4ed8;
  font-size: 13px;
}

.cpl-row p {
  margin: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
}

.cpl-progress {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: #ebe7df;
}

.cpl-progress::after {
  position: absolute;
  left: 70%;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(15, 23, 42, 0.24);
  content: "";
}

.cpl-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2563ad;
}

.cpl-progress small {
  position: absolute;
  right: 0;
  top: -21px;
  color: #475569;
  font-size: 10px;
}

.cpl-row b {
  color: #1d4ed8;
  font-size: 20px;
  font-weight: 500;
  text-align: right;
}

.cpl-row em,
.status-row em {
  border: 1px solid #bfdbfe;
  border-radius: 5px;
  background: #eff6ff;
  color: #1d4ed8;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.cpl-row em {
  padding: 4px 7px;
}

.cpl-row.success .cpl-code,
.cpl-row.success b {
  color: #15803d;
}

.cpl-row.success .cpl-progress span,
.status-row.teal span i,
.status-row.pink span i {
  background: #15803d;
}

.cpl-row.success em,
.status-row em {
  border-color: rgba(5, 150, 105, 0.24);
  background: rgba(209, 250, 229, 0.42);
  color: #047857;
}

.status-list {
  margin-top: 16px;
}

.status-row {
  display: grid;
  grid-template-columns: 56px minmax(140px, 1fr) 48px 80px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.status-row strong {
  color: #1d4ed8;
  font-size: 12px;
}

.status-row span {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #ebe7df;
}

.status-row span i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2563ad;
}

.status-row b {
  color: #1d4ed8;
  font-size: 12px;
  text-align: right;
}

.status-row em {
  padding: 4px 10px;
}

.status-row.red strong {
  color: #dc2626;
}

.status-row.green strong {
  color: #15803d;
}

.status-row.gold strong {
  color: #b45309;
}

.status-row.purple strong {
  color: #7c3aed;
}

.status-row.teal strong,
.status-row.teal b {
  color: #0f766e;
}

.status-row.pink strong,
.status-row.pink b {
  color: #db2777;
}

.status-row.slate strong {
  color: #64748b;
}

.obe-workspace {
  display: grid;
  gap: 18px;
  margin-bottom: 40px;
}

.obe-panel-head h2 {
  margin: 0;
  color: #0f172a;
  line-height: 1.25;
}

.obe-panel-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.obe-score-row span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #334155;
  color: var(--white);
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.obe-score-row span.is-plain {
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
}

.obe-dashboard-grid {
  display: grid;
  gap: 18px;
}

.obe-score-panel,
.obe-summary-panel,
.obe-report-card {
  padding: 22px;
}

.obe-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.obe-panel-head h2 {
  font-size: 18px;
}

.obe-standard-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 6px 11px;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.obe-standard-badge.is-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.obe-score-list {
  display: grid;
  margin-top: 6px;
}

.obe-score-row {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(180px, 260px) 64px 126px;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border-soft);
  padding: 15px 0;
}

.obe-score-row:last-child {
  border-bottom: 0;
}

.obe-score-row strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.35;
}

.obe-score-row b {
  color: #16a34a;
  font-size: 16px;
  text-align: right;
}

.obe-score-row b.gap {
  color: #ef4444;
}

.obe-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.obe-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #22c55e;
}

.obe-score-row.needs-action .obe-meter i {
  background: #ef4444;
}

.obe-score-row em {
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.obe-score-row em.met {
  background: #22c55e;
  color: var(--white);
}

.obe-score-row em.gap {
  background: #ef4444;
  color: var(--white);
}

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

.obe-report-card {
  display: grid;
  gap: 16px;
}

.obe-report-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

.obe-report-card-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.25;
}

.obe-report-card-head span,
.obe-report-metrics span,
.obe-report-focus span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.obe-report-card-head em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--white);
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.obe-report-card-head em.gap {
  background: #ef4444;
}

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

.obe-report-metrics div {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfdff;
  padding: 12px;
}

.obe-report-metrics strong {
  display: block;
  margin-top: 6px;
  color: #0f172a;
  font-size: 22px;
  line-height: 1;
}

.obe-report-metrics strong.met {
  color: #16a34a;
}

.obe-report-metrics strong.gap {
  color: #ef4444;
}

.obe-report-focus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  gap: 8px 12px;
}

.obe-report-focus span,
.obe-report-focus strong,
.obe-report-focus .obe-mini-meter {
  grid-column: 1 / -1;
}

.obe-report-focus strong {
  color: #0f172a;
  font-size: 14px;
}

.obe-report-focus b {
  color: #ef4444;
  font-size: 14px;
  text-align: right;
}

.obe-mini-meter {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.obe-mini-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #ef4444;
}

.obe-coverage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.obe-summary-table {
  display: grid;
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.obe-summary-head,
.obe-summary-line {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(90px, 0.7fr));
  align-items: center;
}

.obe-summary-head {
  background: var(--surface-soft);
  color: var(--muted);
}

.obe-summary-head span {
  padding: 11px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.obe-summary-head span:nth-child(n + 2) {
  text-align: center;
}

.obe-summary-line {
  border-top: 1px solid var(--border);
  background: var(--white);
}

.obe-summary-line strong,
.obe-summary-line b {
  padding: 12px 14px;
}

.obe-summary-line strong {
  color: #0f172a;
  font-size: 13px;
}

.obe-summary-line b {
  display: grid;
  min-height: 48px;
  place-items: center;
  font-size: 18px;
}

.obe-summary-line b.met {
  color: #16a34a;
}

.obe-summary-line b.gap {
  color: #ef4444;
}

.obe-summary-line.total {
  background: #f8fafc;
}

.obe-summary-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  align-items: start;
  gap: 16px;
  margin-top: 16px;
}

.obe-summary-layout .obe-summary-table {
  margin-top: 0;
}

.obe-summary-side {
  display: grid;
  gap: 12px;
}

.obe-conclusion-card,
.obe-note-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.obe-conclusion-card {
  background: #f8fafc;
}

.obe-note-card {
  background: #fff7ed;
  border-color: #fed7aa;
}

.obe-side-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.obe-side-title i {
  color: var(--primary-strong);
  font-size: 22px;
}

.obe-note-card .obe-side-title i {
  color: #ea580c;
}

.obe-side-title h3 {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
}

.obe-conclusion-card ul,
.obe-note-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
}

.obe-conclusion-callout {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  color: #14532d;
  padding: 11px 12px;
  font-size: 12px;
  font-weight: 800;
}

.obe-conclusion-callout i {
  flex: 0 0 auto;
  color: #16a34a;
  font-size: 16px;
  line-height: 1.2;
}

.obe-table-link {
  border: 0;
  background: transparent;
  color: #0f172a;
  padding: 0;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  text-align: left;
}

.obe-table-link:hover {
  color: var(--primary-strong);
  text-decoration: underline;
}

.obe-detail-panel {
  display: grid;
  gap: 16px;
}

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

.obe-detail-metrics div {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfdff;
  padding: 14px;
}

.obe-detail-metrics span,
.obe-detail-card h3 {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.obe-detail-metrics strong {
  display: block;
  margin-top: 6px;
  color: #0f172a;
  font-size: 24px;
  line-height: 1;
}

.obe-detail-metrics strong.success {
  color: #16a34a;
}

.obe-detail-metrics strong.danger {
  color: #ef4444;
}

.obe-detail-grid,
.student-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.obe-detail-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.obe-detail-card h3 {
  margin: 0 0 10px;
}

.obe-detail-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.obe-prodi-helper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 14px;
}

.obe-threshold-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  background: #eff6ff;
  padding: 14px 16px;
}

.obe-threshold-info i {
  flex: 0 0 auto;
  color: #2563eb;
  font-size: 21px;
  line-height: 1.25;
}

.obe-threshold-info strong,
.obe-threshold-info span {
  display: block;
  line-height: 1.4;
}

.obe-threshold-info strong {
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 800;
}

.obe-threshold-info span {
  margin-top: 2px;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
}

.obe-status-legend {
  display: grid;
  align-content: center;
  min-width: 245px;
  gap: 8px;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  background: #ffffff;
  padding: 10px 14px;
}

.obe-status-legend > strong {
  color: #334155;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.obe-status-legend div {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.obe-status-legend .badge {
  justify-content: center;
  border-radius: 4px;
  padding-block: 4px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.obe-status-legend small {
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.obe-prodi-panel .table-scroll {
  margin-top: 16px;
}

.obe-prodi-table {
  min-width: 720px;
}

.obe-prodi-table th,
.obe-prodi-table td {
  padding: 13px 14px;
}

.obe-prodi-table tbody tr:hover {
  background: #f8fafc;
}

.obe-prodi-table tbody tr,
.obe-cpl-table tbody tr {
  cursor: pointer;
}

.obe-prodi-progress {
  width: min(100%, 360px);
}

.obe-prodi-progress span {
  flex: 1 1 160px;
  width: auto;
}

.progress-line.obe-prodi-progress i {
  background: #16a34a;
}

.progress-line.obe-prodi-progress.danger i {
  background: #ef4444;
}

.obe-prodi-progress b {
  min-width: 34px;
  color: #0f172a;
  font-size: 13px;
  text-align: right;
}

.obe-prodi-progress small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.obe-cpl-note {
  margin: 14px 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.obe-cpl-table {
  min-width: 720px;
}

.obe-cpl-table th,
.obe-cpl-table td {
  padding: 13px 14px;
}

.obe-cpl-table tbody tr:hover {
  background: #f8fafc;
}

.obe-cpl-progress {
  width: min(100%, 360px);
}

.obe-cpl-progress span {
  flex: 1 1 160px;
  width: auto;
}

.progress-line.obe-cpl-progress i {
  background: #16a34a;
}

.progress-line.obe-cpl-progress.danger i {
  background: #ef4444;
}

.obe-cpl-progress b {
  min-width: 44px;
  color: #0f172a;
  font-size: 13px;
  text-align: right;
}

.obe-cpl-progress small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.obe-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.obe-insight-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}

.obe-insight-card.warning {
  border-color: #fde68a;
  background: #fffbeb;
}

.obe-insight-card.follow-up {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.obe-insight-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 13px;
  text-transform: uppercase;
}

.obe-insight-title i {
  color: var(--primary-strong);
  font-size: 16px;
}

.obe-insight-card.warning .obe-insight-title i {
  color: #d97706;
}

.obe-insight-card.follow-up .obe-insight-title i {
  color: #2563eb;
}

.obe-insight-card ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
}

.profile-heading {
  align-items: flex-start;
}

.profile-heading p {
  max-width: 760px;
  color: var(--text);
  font-size: 15px;
}

.pl-summary-grid,
.pl-card-grid {
  display: grid;
  gap: 16px;
}

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

.pl-summary-card {
  min-height: 106px;
  border: 1px solid var(--border);
  border-top: 2px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  padding: 18px 20px;
}

.pl-summary-card.green {
  border-top-color: #15803d;
}

.pl-summary-card.blue {
  border-top-color: #2563ad;
}

.pl-summary-card.gold {
  border-top-color: #b45309;
}

.pl-summary-card.neutral {
  border-top-color: #7c3aed;
}

.pl-summary-card span,
.pl-card-footer span,
.pl-detail-hero aside span,
.pl-mapping-header span,
.pl-table-head,
.pl-total-row span,
.pl-formula p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pl-summary-card span,
.pl-table-head,
.pl-total-row span {
  text-transform: uppercase;
}

.pl-summary-card strong {
  display: block;
  margin-top: 8px;
  color: #020617;
  font-size: 30px;
  line-height: 1;
}

.pl-summary-card small {
  font-size: 18px;
}

.pl-summary-card p {
  margin: 3px 0 0;
  font-size: 15px;
}

.pl-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pl-card {
  display: flex;
  min-height: 266px;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  padding: 22px;
  color: inherit;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pl-card:hover {
  border-color: rgba(0, 86, 179, 0.34);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.pl-card-top,
.pl-card-footer,
.pl-mapping-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pl-code {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  background: #eff6ff;
  color: #2563ad;
  padding: 2px 8px;
  font-family: "Inter", monospace;
  font-size: 11px;
  font-weight: 800;
}

.pl-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 3px;
  padding: 4px 9px;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pl-badge.danger {
  background: #ef4444;
  color: var(--white);
}

.pl-badge.success {
  background: #22c55e;
  color: var(--white);
}

.pl-card h2 {
  margin: 16px 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.pl-card p {
  margin: 0;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.55;
}

.pl-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  margin-bottom: 12px;
  padding-top: 14px;
}

.pl-card-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.pl-card-footer strong {
  font-family: "Inter", monospace;
  font-size: 20px;
}

.pl-card-footer strong.danger {
  color: #ef4444;
}

.pl-card-footer strong.success {
  color: #16a34a;
}

.pl-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 32px;
  margin-bottom: 28px;
  padding: 28px;
}

.pl-back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--primary);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pl-back-button:hover {
  border-color: rgba(0, 86, 179, 0.28);
  background: var(--surface-soft);
}

.pl-detail-hero h1 {
  margin: 10px 0 8px;
  font-size: 26px;
  line-height: 1.2;
}

.pl-detail-hero p {
  margin: 0;
  max-width: 1180px;
  color: #111827;
  font-size: 15px;
  line-height: 1.55;
}

.pl-detail-hero aside {
  display: grid;
  align-content: start;
  justify-items: end;
}

.pl-detail-hero aside strong {
  color: #020617;
  font-size: 48px;
  line-height: 1;
}

.pl-mapping-panel {
  margin-bottom: 18px;
}

.pl-mapping-header {
  padding: 18px 22px;
}

.pl-mapping-header h2 {
  margin: 0;
  font-size: 16px;
}

.pl-table-head {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 74px 86px 100px 128px;
  gap: 18px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
  padding: 12px 18px;
}

.pl-mapping-list {
  display: grid;
}

.pl-mapping-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 74px 86px 100px 128px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--white);
  padding: 14px 18px;
}

.pl-mapping-row p {
  margin: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
}

.pl-mapping-row strong {
  color: #0f172a;
  font-size: 13px;
}

.pl-total-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 16px;
  background: var(--white);
  padding: 12px 18px;
}

.pl-total-row div {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
}

.pl-total-row i {
  display: block;
  height: 100%;
  background: var(--primary-strong);
}

.pl-total-row strong {
  color: var(--primary);
  font-size: 12px;
}

.pl-formula {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  padding: 14px 18px;
}

.pl-formula p {
  margin: 0 0 8px;
  color: #334155;
}

.pl-formula strong {
  display: block;
  margin-bottom: 10px;
  font-family: "Inter", monospace;
  font-size: 13px;
}

.cpl-calculation-panel {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.cpl-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  padding: 28px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}

.cpl-detail-hero-info {
  display: grid;
  align-content: center;
}

.cpl-detail-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cpl-detail-hero-metrics div {
  display: grid;
  gap: 4px;
}

.cpl-hero-stat {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  padding: 12px 14px;
}

.cpl-detail-hero-metrics span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cpl-detail-hero-metrics strong {
  color: #0f172a;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.cpl-hero-stat small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.cpl-detail-hero-score {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 8px;
}

.cpl-detail-hero-score > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cpl-detail-hero-score strong {
  font-size: 48px;
  line-height: 1;
}

.cpl-detail-hero-score strong.success {
  color: #16a34a;
}

.cpl-detail-hero-score strong.danger {
  color: #ef4444;
}

.cpl-cpmk-section {
  display: grid;
  gap: 12px;
}

.cpl-detail-formula {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
}

.cpl-detail-formula strong {
  color: #0f172a;
  font-size: 14px;
}

.cpl-detail-formula p {
  margin: 0;
  color: #334155;
  font-size: 13px;
}

.cpl-cpmk-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.cpl-cpmk-item-head {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 260px) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  cursor: default;
  user-select: text;
  background: var(--white);
  transition: background 0.2s ease;
}

.cpl-cpmk-item-head:hover {
  background: var(--surface-soft);
}

.cpl-cpmk-item-info strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
}

.cpl-cpmk-item-info span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.cpl-cpmk-item-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.cpl-progress-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  overflow: hidden;
}

.cpl-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: #22c55e;
  transition: width 0.3s ease;
}

.cpl-progress-fill.danger {
  background: #ef4444;
}

.cpl-progress-threshold {
  position: absolute;
  left: 75%;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(15, 23, 42, 0.2);
}

.cpl-cpmk-item-bar strong {
  color: #0f172a;
  font-size: 14px;
  text-align: right;
  min-width: 48px;
}

.cpl-cpmk-item-bar strong.success {
  color: #16a34a;
}

.cpl-cpmk-item-bar strong.danger {
  color: #ef4444;
}

.cpl-cpmk-toggle {
  display: none;
}

.cpl-cpmk-item-body {
  display: block;
  border-top: 1px solid var(--border);
  overflow-x: auto;
}

.cpl-cpmk-item.is-expanded .cpl-cpmk-item-body {
  display: block;
}

.cpl-mk-head,
.cpl-mk-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 54px 92px 110px 92px 100px;
  gap: 14px;
  align-items: center;
  min-width: 760px;
}

.cpl-mk-head {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--white);
  padding: 10px 18px;
}

.cpl-mk-head span {
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.cpl-mk-head span:first-child {
  text-align: left;
}

.cpl-mk-list {
  display: grid;
  overflow-x: auto;
}

.cpl-mk-row {
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
  padding: 12px 18px;
}

.cpl-mk-row:hover {
  background: #fafcff;
}

.cpl-mk-row:last-child {
  border-bottom: 0;
}

.cpl-mk-row p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.cpl-mk-row p strong {
  color: #0f172a;
  font-size: 13px;
}

.cpl-mk-row p span,
.cpl-mk-row > strong {
  color: var(--muted);
  font-size: 12px;
}

.cpl-mk-row > strong {
  color: #0f172a;
  text-align: center;
}

.cpl-mk-row > strong:last-child {
  text-align: right;
}

.cpl-calculation-row {
  border-bottom: 1px solid var(--border-soft);
  background: var(--white);
  padding: 14px 18px;
}

.cpl-calculation-row:last-child {
  border-bottom: 0;
}

.cpl-calculation-row p {
  display: grid;
  gap: 3px;
  min-width: 0;
  margin: 0;
}

.cpl-calculation-row p strong,
.cpl-calculation-row p span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cpl-calculation-row p strong {
  color: #0f172a;
  font-size: 13px;
}

.cpl-calculation-row p span,
.cpl-calculation-row > strong {
  color: var(--muted);
  font-size: 12px;
}

.cpl-calculation-row > strong {
  color: #0f172a;
}

.cpmk-student-detail-panel {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.cpmk-detail-head {
  padding-bottom: 16px;
}

.cpmk-detail-subtitle {
  margin-top: 6px;
}

.cpmk-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.cpmk-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: #334155;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
}

.cpmk-detail-metrics div {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}

.cpmk-student-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.cpmk-formula-box {
  display: grid;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  padding: 14px 16px;
}

.cpmk-formula-box strong {
  color: #0f172a;
  font-size: 14px;
}

.cpmk-formula-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.cpmk-student-head,
.cpmk-student-row {
  display: grid;
  grid-template-columns: 110px minmax(220px, 1fr) repeat(3, 70px) 96px 130px;
  gap: 12px;
  align-items: center;
  min-width: 860px;
}

.cpmk-student-head {
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
  padding: 12px 14px;
}

.cpmk-student-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.cpmk-student-list {
  display: grid;
}

.cpmk-student-row {
  border-bottom: 1px solid var(--border-soft);
  background: var(--white);
  padding: 12px 14px;
}

.cpmk-student-row:last-child {
  border-bottom: 0;
}

.cpmk-student-row strong,
.cpmk-student-row span {
  overflow: hidden;
  color: #0f172a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cpmk-student-row strong {
  font-size: 13px;
}

.mk-heading {
  margin-bottom: 24px;
}

.mk-heading p {
  max-width: 680px;
}

.mk-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.mk-stat-card {
  border: 1px solid var(--border);
  border-top: 3px solid #7c3aed;
  border-radius: 8px;
  background: var(--white);
  padding: 18px 20px;
}

.mk-stat-card.blue {
  border-top-color: var(--primary-strong);
}

.mk-stat-card.green {
  border-top-color: var(--green);
}

.mk-stat-card span,
.mk-course-code,
.mk-semester-column header b,
.mk-detail-head span,
.mk-detail-table-head,
.mk-summary-row > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mk-stat-card strong {
  display: block;
  margin-top: 8px;
  color: #020617;
  font-size: 30px;
  line-height: 1;
}

.mk-stat-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.mk-board-panel,
.mk-detail-panel,
.mk-summary-panel {
  margin-bottom: 24px;
}

.mk-board-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  padding: 20px 22px;
}

.mk-board-header h2 {
  margin: 0;
  font-size: 18px;
}

.mk-board-header span {
  color: var(--muted);
  font-size: 13px;
}

.mk-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 520px;
}

.mk-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  padding: 4px 8px;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}

.mk-legend i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.mk-semester-board {
  display: grid;
  grid-template-columns: repeat(8, minmax(154px, 1fr));
  overflow-x: auto;
}

.mk-semester-column {
  min-width: 154px;
  border-right: 1px solid var(--border);
  background: #fbfdff;
}

.mk-semester-column:last-child {
  border-right: 0;
}

.mk-semester-column header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  background: #0f172a;
  color: var(--white);
  padding: 12px;
}

.mk-semester-column header span {
  font-size: 12px;
  font-weight: 800;
}

.mk-semester-column header b {
  color: #cbd5e1;
}

.mk-semester-column > div {
  display: grid;
  gap: 10px;
  min-height: 246px;
  padding: 12px;
}

.mk-course-card {
  display: grid;
  gap: 5px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  padding: 12px;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mk-empty-semester {
  display: grid;
  min-height: 88px;
  place-items: center;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.mk-course-card:hover,
.mk-course-card.active {
  border-color: rgba(0, 86, 179, 0.42);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.mk-course-card.active {
  outline: 2px solid rgba(0, 86, 179, 0.1);
}

.mk-course-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mk-course-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mk-course-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.mk-cpl-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.mk-cpl-pill {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 4px;
  background: var(--pill-color);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
}

.mk-course-footer b,
.mk-summary-row b,
.mk-detail-score strong {
  color: #2563ad;
}

.mk-course-footer b.high,
.mk-summary-row b.high,
.mk-detail-score strong.high {
  color: var(--green);
}

.mk-course-footer b.low,
.mk-summary-row b.low,
.mk-detail-score strong.low {
  color: #b45309;
}

.mk-detail-panel {
  padding: 22px;
}

.mk-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.mk-detail-head h2 {
  margin: 4px 0 0;
  font-size: 24px;
}

.mk-detail-score {
  display: grid;
  justify-items: end;
  min-width: 144px;
}

.mk-detail-score strong {
  font-size: 42px;
  line-height: 1;
}

.mk-detail-score span {
  text-align: right;
}

.mk-detail-table {
  display: grid;
}

.mk-detail-table-head,
.mk-detail-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 86px minmax(220px, 280px);
  align-items: center;
  gap: 18px;
}

.mk-detail-table-head {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
  padding: 12px;
}

.mk-detail-row {
  border-bottom: 1px solid var(--border-soft);
  padding: 14px 12px;
}

.mk-detail-row:last-child {
  border-bottom: 0;
}

.mk-cpl-code {
  color: var(--cpl-color);
  font-size: 12px;
  font-weight: 800;
}

.mk-detail-row p {
  margin: 0;
  color: #334155;
  font-size: 13px;
}

.mk-detail-row p strong {
  display: block;
  margin-bottom: 2px;
  color: #0f172a;
}

.mk-detail-row b {
  color: var(--primary);
  font-size: 13px;
}

.mk-contribution {
  display: grid;
  gap: 6px;
}

.mk-contribution i {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: var(--primary-strong);
}

.mk-contribution span {
  color: #1d4ed8;
  font-family: "Inter", monospace;
  font-size: 12px;
  font-weight: 800;
}

.mk-detail-table.high .mk-contribution i {
  background: var(--green);
}

.mk-detail-table.high .mk-contribution span {
  color: var(--green);
}

.mk-detail-table.low .mk-contribution i {
  background: #b45309;
}

.mk-detail-table.low .mk-contribution span {
  color: #b45309;
}

.mk-summary-list {
  display: grid;
  padding: 0 22px 20px;
}

.mk-summary-panel .panel-header {
  border-bottom: 1px solid var(--border-soft);
  padding: 20px 22px 12px;
}

.mk-summary-panel .panel-header h2 {
  font-size: 18px;
  font-weight: 700;
}

.mk-summary-head,
.mk-summary-row {
  display: grid;
  grid-template-columns: 140px 110px 110px minmax(0, 1fr) 150px;
  align-items: center;
  gap: 16px;
}

.mk-summary-head {
  margin-top: 16px;
  background: var(--surface-soft);
  color: #6b7280;
  padding: 10px 12px;
}

.mk-summary-head span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mk-summary-row {
  border-bottom: 1px solid var(--border-soft);
  padding: 12px;
}

.mk-summary-row:last-child {
  border-bottom: 0;
}

.mk-summary-row strong {
  color: #0f172a;
  font-size: 13px;
}

.mk-summary-row div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mk-summary-row div span {
  max-width: 128px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tag-color) 28%, white);
  border-radius: 4px;
  background: color-mix(in srgb, var(--tag-color) 12%, white);
  color: var(--tag-color);
  padding: 2px 7px;
  font-family: "Inter", monospace;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mk-summary-row b {
  font-size: 13px;
}

.matrix-heading {
  margin-bottom: 24px;
}

.matrix-heading p {
  max-width: 680px;
}

.matrix-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.matrix-panel {
  margin-bottom: 24px;
}

.matrix-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border-soft);
  padding: 20px 22px;
}

.matrix-panel-header h2 {
  margin: 0;
  font-size: 18px;
}

.matrix-panel-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.matrix-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.matrix-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.matrix-legend i {
  width: 12px;
  height: 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
}

.matrix-legend .soft {
  background: #f8fafc;
}

.matrix-legend .medium {
  background: #eaf3ff;
}

.matrix-legend .strong {
  background: #d8e9ff;
}

.matrix-legend .max {
  background: #bfdcff;
}

.matrix-table-wrap {
  overflow-x: auto;
  padding: 18px;
}

.matrix-table {
  min-width: 1080px;
  border-collapse: separate;
  border-spacing: 0;
}

.matrix-table-compact {
  width: auto;
  min-width: 640px;
  max-width: 760px;
  border: 1px solid var(--border);
}

.matrix-table th,
.matrix-table td {
  border-bottom: 1px solid var(--border-soft);
  padding: 11px 12px;
  font-size: 12px;
}

.matrix-table-compact th,
.matrix-table-compact td {
  border-right: 1px solid var(--border);
  border-bottom-color: var(--border);
  padding: 9px 10px;
}

.matrix-table-compact th:last-child,
.matrix-table-compact td:last-child {
  border-right: 0;
}

.matrix-table th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.matrix-table th[style] {
  color: var(--cpl-color);
}

.matrix-table tbody tr:hover {
  background: rgba(219, 234, 254, 0.28);
}

.matrix-table td:not(.matrix-course) {
  text-align: center;
}

.matrix-course {
  min-width: 220px;
}

.matrix-table-compact .matrix-course {
  min-width: 170px;
}

.matrix-course strong {
  display: block;
  color: #0f172a;
  font-size: 12px;
  line-height: 1.3;
}

.matrix-course span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.matrix-weight {
  color: #334155;
  font-weight: 800;
}

.matrix-weight.soft {
  background: #f8fafc;
  color: var(--cpl-color);
}

.matrix-weight.medium {
  background: #eaf3ff;
  color: var(--cpl-color);
}

.matrix-weight.strong {
  background: #d8e9ff;
  color: var(--cpl-color);
}

.matrix-weight.max {
  background: #bfdcff;
  color: var(--cpl-color);
}

.matrix-score,
.matrix-total,
.matrix-achievement {
  color: #2563ad;
  font-weight: 800;
}

.matrix-score.high,
.matrix-achievement.high {
  color: var(--green);
}

.matrix-score.low,
.matrix-achievement.low {
  color: #b45309;
}

.matrix-footer-row td {
  border-bottom: 0;
  background: var(--white);
  color: #0f172a;
  font-weight: 800;
}

.matrix-footer-row.achievement td {
  background: var(--white);
}

.matrix-achievement strong {
  display: block;
  color: inherit;
}

.matrix-achievement small {
  display: block;
  margin-top: 2px;
  color: inherit;
  font-size: 10px;
}

.analysis-heading {
  margin-bottom: 22px;
}

.analysis-heading p {
  max-width: 760px;
}

.cpl-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.cpl-filter-button {
  min-width: 64px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--white);
  color: #475569;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 800;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cpl-filter-button:hover,
.cpl-filter-button.active {
  border-color: var(--cpl-color);
  background: color-mix(in srgb, var(--cpl-color) 10%, white);
  color: var(--cpl-color);
}

.analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.98fr);
  align-items: start;
  gap: 24px;
}

.analysis-side {
  display: grid;
  gap: 18px;
}

.analysis-panel-header {
  border-bottom: 1px solid var(--border);
  padding: 20px 22px 14px;
}

.analysis-panel-header h2 {
  margin: 0;
  font-size: 18px;
}

.analysis-contribution-list {
  display: grid;
  padding: 14px 22px 0;
}

.analysis-contribution-row {
  display: grid;
  grid-template-columns: 150px minmax(180px, 1fr) 48px 70px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  padding: 11px 0;
}

.analysis-contribution-row strong {
  display: block;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.25;
}

.analysis-contribution-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.analysis-progress {
  height: 12px;
  overflow: hidden;
  border-radius: 4px;
  background: #ebe7df;
}

.analysis-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: color-mix(in srgb, var(--cpl-color) 42%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cpl-color) 18%, white);
}

.analysis-contribution-row b {
  color: #2563ad;
  font-size: 13px;
}

.analysis-contribution-row b.high {
  color: var(--green);
}

.analysis-contribution-row b.low {
  color: #b45309;
}

.analysis-contribution-row em {
  color: #64748b;
  font-family: "Inter", monospace;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.analysis-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 22px 22px;
  border-top: 2px solid #0f172a;
  padding-top: 16px;
}

.analysis-total span {
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
}

.analysis-total strong {
  color: #2563ad;
  font-size: 30px;
  line-height: 1;
}

.analysis-total strong.high {
  color: var(--green);
}

.analysis-total small {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 6px;
  border-radius: 4px;
  background: var(--blue-soft);
  color: #1d4ed8;
  padding: 2px 8px;
  font-size: 12px;
  vertical-align: middle;
}

.analysis-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  min-height: 220px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 1px solid var(--border);
  padding: 26px 22px 8px;
  scrollbar-gutter: stable;
}

.analysis-bar-item {
  display: grid;
  grid-template-rows: 20px 96px 72px;
  justify-items: center;
  flex: 0 0 56px;
  min-width: 56px;
}

.analysis-bar-item b {
  color: #2563ad;
  font-size: 12px;
}

.analysis-bar-item.high b {
  color: var(--green);
}

.analysis-bar-item.low b {
  color: #b45309;
}

.analysis-bar-item span {
  align-self: end;
  width: 46px;
  max-height: 96px;
  border: 1px solid #bfdbfe;
  border-radius: 3px 3px 0 0;
  background: #dbeafe;
}

.analysis-bar-item.high span {
  border-color: #bbf7d0;
  background: #dcfce7;
}

.analysis-bar-item.low span {
  border-color: #fde68a;
  background: #fef3c7;
}

.analysis-bar-item small {
  align-self: start;
  display: block;
  width: 68px;
  max-height: 68px;
  overflow: hidden;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  text-align: right;
  text-overflow: ellipsis;
  writing-mode: vertical-rl;
}

.analysis-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 14px 22px 20px;
}

.analysis-chip-list span {
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.analysis-chip-list span.high {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: var(--green);
}

.analysis-chip-list span.low {
  border-color: #fde68a;
  background: #fffbeb;
  color: #b45309;
}

.analysis-chip-list em {
  color: #64748b;
  font-style: normal;
  font-weight: 600;
}

.analysis-notes {
  display: grid;
  gap: 8px;
  padding: 18px 22px 22px;
}

.analysis-notes p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: #0f172a;
  font-size: 13px;
}

.analysis-notes i {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  border-radius: 999px;
}

.analysis-notes .warning {
  background: #fbbf24;
}

.analysis-notes .success {
  background: #65a30d;
}

.analysis-notes .info {
  background: #2563ad;
}

.diagram-heading {
  margin-bottom: 24px;
}

.diagram-heading p {
  max-width: 780px;
}

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

.diagram-summary-grid small {
  font-size: 18px;
}

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

.diagram-card {
  min-height: 420px;
}

.diagram-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding: 20px 22px 14px;
}

.diagram-card-header h2 {
  margin: 0;
  font-size: 18px;
}

.diagram-card-header span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.diagram-canvas-wrap {
  position: relative;
  height: 330px;
  padding: 22px;
}

.diagram-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.student-heading {
  margin-bottom: 24px;
}

.student-heading p {
  max-width: 720px;
}

.student-table-panel {
  margin-bottom: 24px;
}

.student-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border-soft);
  padding: 20px 22px 14px;
}

.student-panel-header h2 {
  margin: 0;
  font-size: 18px;
}

.student-panel-header span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.student-table-wrap {
  overflow-x: auto;
  padding: 18px 22px 22px;
}

.student-table {
  width: 100% !important;
  min-width: 760px;
}

.student-table thead th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.student-table tbody td {
  color: #334155;
  font-size: 14px;
  vertical-align: middle;
}

.student-table tbody td:nth-child(1) {
  color: #0f172a;
  font-weight: 800;
  text-align: center;
}

.student-table tbody td:nth-child(2) {
  color: #0f172a;
  font-weight: 800;
  text-align: left;
}

.student-table thead th:nth-child(1) {
  text-align: center;
}

.student-table thead th:nth-child(2) {
  text-align: left;
}

.student-detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  gap: 7px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.student-detail-button:hover {
  border-color: rgba(0, 86, 179, 0.45);
  background: #dbeafe;
  transform: translateY(-1px);
}

.student-detail-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
}

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

.student-achievement-row {
  display: grid;
  gap: 9px;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 12px;
}

.student-achievement-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.student-achievement-row strong {
  color: #0f172a;
  font-size: 13px;
  line-height: 1.35;
}

.student-achievement-link {
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.student-achievement-link:hover {
  color: var(--primary);
}

.student-achievement-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.student-achievement-row-head .badge {
  flex: 0 0 auto;
  width: fit-content;
  font-size: 10px;
  line-height: 1.2;
}

.student-achievement-progress {
  width: 100%;
}

.student-achievement-progress span {
  flex: 1 1 140px;
  width: auto;
}

.progress-line.student-achievement-progress i {
  background: #16a34a;
}

.progress-line.student-achievement-progress.danger i {
  background: #ef4444;
}

.student-achievement-progress b {
  min-width: 42px;
  color: #0f172a;
  font-size: 13px;
  text-align: right;
}

.student-real-metrics {
  margin-bottom: 6px;
}

.student-action-row {
  display: flex;
  justify-content: flex-end;
}

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

.student-diagram-card {
  min-height: 390px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.student-diagram-card .diagram-card-header {
  padding: 16px 18px 12px;
}

.student-diagram-card .diagram-card-header h2 {
  font-size: 15px;
}

.student-diagram-card .diagram-canvas-wrap {
  height: 300px;
  padding: 18px;
}

.student-real-section {
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.student-cpl-real-list {
  display: grid;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.student-cpl-real-head,
.student-cpl-real-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 82px 82px 100px 128px;
  gap: 14px;
  align-items: center;
}

.student-cpl-real-head {
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
  padding: 12px 16px;
}

.student-cpl-real-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.student-cpl-real-list.is-course .student-cpl-real-head,
.student-cpl-real-list.is-course .student-cpl-real-row {
  grid-template-columns: minmax(180px, 1fr) 82px 100px 128px;
}

.student-cpl-real-list.is-cpmk-summary .student-cpl-real-head,
.student-cpl-real-list.is-cpmk-summary .student-cpl-real-row {
  grid-template-columns: minmax(180px, 1fr) 82px 100px 128px;
}

.student-cpl-real-row {
  border-bottom: 1px solid var(--border-soft);
  background: var(--white);
  padding: 13px 16px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.student-cpl-real-row:hover {
  background: #f8fafc;
}

.student-cpl-real-row:last-child {
  border-bottom: 0;
}

.student-cpl-real-row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.student-cpl-real-row div strong,
.student-cpl-real-row div span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-cpl-real-row div strong,
.student-cpl-real-row > strong {
  color: #0f172a;
  font-size: 13px;
}

.student-cpl-real-row div span,
.student-cpl-real-row > span {
  color: var(--muted);
  font-size: 12px;
}

.student-real-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.student-real-table-head,
.student-real-table-row {
  display: grid;
  grid-template-columns: 72px minmax(260px, 1fr) 54px repeat(3, 72px) 96px 128px;
  gap: 12px;
  align-items: center;
  min-width: 940px;
}

.student-real-table-head {
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
  padding: 12px 14px;
}

.student-real-table-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.student-real-table-list {
  display: grid;
}

.student-real-table-row {
  border-bottom: 1px solid var(--border-soft);
  background: var(--white);
  padding: 12px 14px;
}

.student-real-table-row:last-child {
  border-bottom: 0;
}

.student-real-table-row p {
  display: grid;
  gap: 3px;
  min-width: 0;
  margin: 0;
}

.student-real-table-row p strong,
.student-real-table-row p span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-real-table-row p strong,
.student-real-table-row > strong {
  color: #0f172a;
  font-size: 13px;
}

.student-real-table-row p span,
.student-real-table-row > span {
  color: var(--muted);
  font-size: 12px;
}

.student-real-table-wrap.is-cpmk .student-real-table-head,
.student-real-table-row.is-cpmk {
  grid-template-columns: 72px minmax(260px, 1fr) 54px 96px 128px;
  min-width: 640px;
}

.cpmk-report-panel .student-panel-header {
  align-items: center;
}

.cpmk-table {
  min-width: 820px;
}

.cpmk-table tbody td {
  vertical-align: middle;
}

.cpmk-table tbody td:nth-child(3),
.cpmk-table tbody td:nth-child(5),
.cpmk-table thead th:nth-child(3),
.cpmk-table thead th:nth-child(5) {
  text-align: center;
}

.cpmk-table tbody td:nth-child(4),
.cpmk-table thead th:nth-child(4) {
  text-align: left;
}

.cpmk-table small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.cpmk-progress {
  width: min(100%, 360px);
}

.cpmk-progress span {
  flex: 1 1 160px;
  width: auto;
}

.progress-line.cpmk-progress i {
  background: #16a34a;
}

.progress-line.cpmk-progress.danger i {
  background: #ef4444;
}

.cpmk-progress b {
  min-width: 46px;
  color: #0f172a;
  font-size: 13px;
  text-align: right;
}

.cpmk-insight-grid {
  margin: 0 22px 22px;
}

div.dt-container {
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
}

div.dt-container .dt-layout-row {
  margin: 0;
}

div.dt-container .dt-layout-row:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

div.dt-container .dt-layout-row:last-child {
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

div.dt-container .dt-length label,
div.dt-container .dt-search label,
div.dt-container .dt-info {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

div.dt-container select.dt-input,
div.dt-container input.dt-input {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  font-size: 13px;
  outline: none;
}

div.dt-container input.dt-input {
  min-width: 260px;
  padding: 8px 12px;
}

div.dt-container select.dt-input {
  padding: 6px 28px 6px 10px;
}

div.dt-container input.dt-input:focus,
div.dt-container select.dt-input:focus {
  border-color: rgba(0, 86, 179, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

table.dataTable.student-table {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

table.dataTable.student-table > thead > tr > th,
table.dataTable.student-table > tbody > tr > td {
  border-bottom: 1px solid var(--border-soft);
  padding: 14px 16px;
}

table.dataTable.student-table > tbody > tr:last-child > td {
  border-bottom: 0;
}

table.dataTable.student-table.hover > tbody > tr:hover > *,
table.dataTable.student-table.display > tbody > tr:hover > * {
  box-shadow: inset 0 0 0 9999px rgba(219, 234, 254, 0.26);
}

div.dt-container .dt-paging .dt-paging-button {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  background: var(--white) !important;
  color: #334155 !important;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px !important;
}

div.dt-container .dt-paging .dt-paging-button i {
  font-size: 14px;
  line-height: 1;
}

div.dt-container .dt-paging .dt-paging-button.current,
div.dt-container .dt-paging .dt-paging-button.current:hover {
  border-color: var(--primary-strong) !important;
  background: var(--primary-strong) !important;
  color: var(--white) !important;
}

div.dt-container .dt-paging .dt-paging-button:hover {
  border-color: rgba(0, 86, 179, 0.35) !important;
  background: var(--surface-soft) !important;
  color: var(--primary) !important;
}

.table-panel {
  margin-bottom: 40px;
}

.table-header {
  align-items: center;
}

select {
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 6px 12px;
  outline: none;
}

select:focus {
  border-color: rgba(0, 86, 179, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.12);
}

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

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  text-align: left;
}

thead {
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

th,
td {
  padding: 16px 24px;
  font-size: 14px;
}

tbody tr {
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.2s ease;
}

tbody tr:hover {
  background: rgba(219, 234, 254, 0.45);
}

td {
  color: #475569;
}

td strong {
  color: #0f172a;
}

.center {
  text-align: center;
}

.right {
  text-align: right;
}

.progress-line {
  gap: 12px;
}

.progress-line span {
  display: block;
  width: 96px;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.progress-line i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #1d4ed8;
}

.progress-line.danger i {
  background: var(--red);
}

.progress-line b {
  color: var(--text);
  font-size: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge.success {
  background: #22c55e;
  color: var(--white);
}

.badge.info {
  background: var(--blue-soft);
  color: #1e40af;
}

.badge.danger {
  background: #ef4444;
  color: var(--white);
}

.table-action {
  width: 32px;
  height: 32px;
}

.table-footer {
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border-soft);
  background: var(--surface-soft);
  padding: 16px 24px;
}

.table-footer > span {
  color: var(--muted);
  font-size: 12px;
}

.table-footer > div {
  display: flex;
  gap: 8px;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.footer-container {
  padding-block: 28px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted-light);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  :root {
    --container-padding: 40px;
  }

  .desktop-nav {
    gap: 12px;
  }

  .desktop-nav .nav-link {
    font-size: 13px;
  }

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

  .pl-summary-grid,
  .pl-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .cpl-dashboard {
    grid-template-columns: 1fr;
  }

  .obe-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .obe-coverage-grid {
    grid-template-columns: 1fr;
  }

  .obe-report-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 960px) {
  :root {
    --container-padding: 24px;
  }

  .top-navbar-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: 46px;
    gap: 2px;
    font-size: 10px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .navbar {
    min-height: 60px;
  }

  .main-content {
    padding-block: 28px;
  }

  .page-heading,
  .panel-header,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .dashboard-filter-form {
    width: 100%;
  }

  .dashboard-form-field {
    flex: 1 1 150px;
  }

  .dashboard-form-field-wide {
    flex-basis: 230px;
  }

  .obe-summary-layout {
    grid-template-columns: 1fr;
  }

  .obe-prodi-helper {
    grid-template-columns: 1fr;
  }

  .obe-status-legend {
    min-width: 0;
  }

  .obe-detail-metrics,
  .obe-detail-grid,
  .student-detail-grid {
    grid-template-columns: 1fr;
  }

  .student-cpl-real-head,
  .student-cpl-real-row,
  .student-cpl-real-list.is-course .student-cpl-real-head,
  .student-cpl-real-list.is-course .student-cpl-real-row,
  .student-cpl-real-list.is-cpmk-summary .student-cpl-real-head,
  .student-cpl-real-list.is-cpmk-summary .student-cpl-real-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .student-diagram-section {
    grid-template-columns: 1fr;
  }

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

  .pl-detail-hero {
    grid-template-columns: 1fr;
  }

  .pl-detail-hero aside {
    justify-items: start;
  }

  .pl-table-head {
    display: none;
  }

  .pl-mapping-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cpl-detail-hero {
    grid-template-columns: 1fr;
  }

  .cpl-detail-hero-metrics {
    grid-template-columns: 1fr;
  }

  .cpl-detail-hero-score {
    justify-items: start;
  }

  .cpl-cpmk-item-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cpl-mk-head {
    display: none;
  }

  .pl-total-row {
    grid-template-columns: 1fr;
  }

  .mk-board-header,
  .mk-detail-head,
  .matrix-panel-header {
    flex-direction: column;
  }

  .mk-legend,
  .matrix-legend {
    justify-content: flex-start;
  }

  .mk-detail-score {
    justify-items: start;
  }

  .mk-detail-score span {
    text-align: left;
  }

  .mk-detail-table-head {
    display: none;
  }

  .mk-detail-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mk-summary-head,
  .mk-summary-row {
    grid-template-columns: 1fr 1fr;
  }

  .mk-summary-head span:nth-child(4),
  .mk-summary-head span:nth-child(5) {
    display: none;
  }

  .mk-summary-row div {
    grid-column: 1 / -1;
  }

  .analysis-contribution-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .analysis-contribution-row em {
    text-align: left;
  }

  .bar-chart {
    height: 280px;
    gap: 12px;
    padding: 24px 18px;
    overflow-x: auto;
  }

  .bar-item {
    min-width: 44px;
  }

  .cpl-panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .cpl-row {
    grid-template-columns: 58px minmax(160px, 1fr) minmax(130px, 170px) 48px 40px;
    gap: 12px;
  }

  .obe-score-row {
    grid-template-columns: 1fr;
  }

  .obe-score-row b {
    text-align: left;
  }
}

@media (max-width: 520px) {
  :root {
    --container-padding: 18px;
  }

  .brand {
    font-size: 18px;
  }

  .page-heading h1 {
    font-size: 25px;
  }

  .dashboard-form-field,
  .dashboard-form-field-wide {
    min-width: 0;
    width: 100%;
  }

  .heading-actions .button {
    width: 100%;
  }

  .dashboard-filter-form .button {
    width: 100%;
  }

  .stat-card,
  .competency-panel {
    padding: 18px;
  }

  .panel-header {
    padding: 18px;
  }

  .panel h2 {
    font-size: 18px;
  }

  .pl-summary-grid,
  .pl-card-grid,
  .mk-stats-grid,
  .matrix-stats-grid,
  .diagram-summary-grid {
    grid-template-columns: 1fr;
  }

  .diagram-card {
    min-height: 360px;
  }

  .diagram-canvas-wrap {
    height: 280px;
    padding: 16px;
  }

  .pl-card {
    min-height: auto;
  }

  .pl-card-top,
  .pl-card-footer,
  .pl-mapping-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .pl-detail-hero {
    padding: 20px;
  }

  .pl-detail-hero aside strong {
    font-size: 40px;
  }

  .cpl-panel {
    padding: 18px;
  }

  .obe-score-panel,
  .obe-summary-panel,
  .obe-report-card {
    padding: 18px;
  }

  .obe-report-metrics {
    grid-template-columns: 1fr;
  }

  .obe-report-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .obe-insight-grid {
    grid-template-columns: 1fr;
  }

  .obe-coverage-grid {
    grid-template-columns: 1fr;
  }

  .obe-summary-head,
  .obe-summary-line {
    grid-template-columns: minmax(0, 1fr) 74px 92px;
  }

  .obe-summary-head span,
  .obe-summary-line strong,
  .obe-summary-line b {
    padding-inline: 10px;
  }

  .cpl-row,
  .status-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cpl-row b,
  .status-row b {
    text-align: left;
  }

  .cpl-row em,
  .status-row em {
    width: fit-content;
  }

  th,
  td {
    padding: 14px 16px;
  }

  .table-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .table-footer > div,
  .table-footer .button {
    width: 100%;
  }

}
