:root {
  --ink: #101927;
  --muted: #5c6778;
  --quiet: #8a94a6;
  --line: #d9e0e8;
  --paper: #ffffff;
  --wash: #f4f7fa;
  --navy: #10243b;
  --blue: #1d4f73;
  --teal: #0f766e;
  --gold: #bf8432;
  --maroon: #7a2038;
  --green: #28724f;
  --violet: #4f46a6;
  --shadow: 0 18px 50px rgba(16, 25, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.08), transparent 34%),
    var(--navy);
  color: white;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), #f1ca7c);
  color: #1a2432;
  font-weight: 800;
  letter-spacing: 0;
}

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

.brand small,
.sidebar-panel small {
  color: rgba(255, 255, 255, 0.62);
}

.nav {
  display: grid;
  gap: 4px;
  margin: 24px 0;
}

.nav-group {
  display: grid;
  gap: 4px;
}

.nav-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 4px 4px 4px;
  padding-top: 4px;
}

.nav-group-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-group-hint {
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  font-weight: 650;
  font-style: italic;
}

.nav-divider {
  height: 1px;
  margin: 10px 4px;
  background: rgba(255, 255, 255, 0.13);
}

.nav a {
  border-radius: 8px;
  padding: 11px 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 650;
  transition: 180ms ease;
}

.nav a:hover,
.nav a.active {
  background: white;
  color: var(--navy);
}

.sidebar-panel {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.panel-kicker,
.eyebrow,
.label {
  color: var(--quiet);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-panel .panel-kicker {
  color: rgba(255, 255, 255, 0.52);
}

.sidebar-panel p {
  margin: 8px 0 6px;
  font-weight: 760;
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(217, 224, 232, 0.82);
  background: rgba(244, 247, 250, 0.86);
  padding: 18px 28px;
  backdrop-filter: blur(14px);
}

.topbar h1 {
  margin: 2px 0 0;
  font-size: clamp(19px, 2.2vw, 28px);
  line-height: 1.18;
}

.topbar-actions,
.action-row,
.filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mobile-menu {
  display: none;
}

.icon-button,
.primary-button,
.ghost-button,
.pill-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  transition: 180ms ease;
}

.icon-button {
  min-width: 46px;
  padding: 0 11px;
}

.primary-button {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
  padding: 0 15px;
}

.ghost-button,
.pill-button {
  padding: 0 14px;
}

.icon-button:hover,
.ghost-button:hover,
.pill-button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.primary-button:hover {
  background: #163e5d;
}

#app {
  padding: 24px 28px 44px;
}

.hero {
  position: relative;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  min-height: 360px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(100deg, rgba(16, 36, 59, 0.98), rgba(16, 36, 59, 0.84) 56%, rgba(16, 36, 59, 0.62)),
    url("https://plus.unsplash.com/premium_photo-1678167657805-36fb1c27cbd4?q=80&w=1171&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-position: center;
  background-size: cover;
  color: white;
  padding: clamp(26px, 4vw, 46px);
  box-shadow: var(--shadow);
}

.hero h2 {
  max-width: 820px;
  margin: 14px 0 14px;
  font-size: clamp(31px, 5vw, 60px);
  line-height: 0.98;
}

.hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.65;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.64);
}

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

.metric {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.metric strong {
  display: block;
  font-size: 30px;
}

.metric span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 700;
}

.page-toc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.page-toc-label {
  margin-right: 2px;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.page-toc a {
  border-radius: 999px;
  padding: 6px 13px;
  color: var(--blue);
  background: #eef5f8;
  font-size: 12.5px;
  font-weight: 750;
  transition: 150ms ease;
}

.page-toc a:hover {
  background: var(--blue);
  color: white;
}

.callout-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 16px 20px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: #fbf3e3;
}

.callout-banner strong {
  display: block;
  color: #7a5417;
  font-size: 14px;
}

.callout-banner p {
  margin: 4px 0 0;
}

.section {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 17px 18px;
}

.section-header h3 {
  margin: 0;
}

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

.section-body {
  padding: 18px;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(4, minmax(138px, 180px)) auto;
  align-items: end;
}

.field {
  display: grid;
  gap: 6px;
}

.field input,
.field select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  outline: none;
  padding: 0 12px;
}

.field input:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(29, 79, 115, 0.1);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(350px, 0.85fr);
  gap: 18px;
  margin-top: 18px;
}

.chart-grid {
  display: grid;
  gap: 18px;
}

.bars {
  display: grid;
  height: 280px;
  grid-template-columns: repeat(auto-fit, minmax(24px, 1fr));
  align-items: end;
  gap: 12px;
  padding: 18px 8px 4px;
}

.bar {
  position: relative;
  min-height: 16px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, var(--blue), #2a7795);
}

.bar span {
  position: absolute;
  right: 0;
  bottom: calc(100% + 7px);
  left: 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.bar small {
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  left: 0;
  text-align: center;
  color: var(--quiet);
  font-size: 11px;
}

.donut-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.donut {
  width: 132px;
  height: 132px;
  border-radius: 999px;
  background: conic-gradient(var(--teal) var(--wajib), var(--gold) 0);
  display: grid;
  place-items: center;
}

.donut::after {
  content: "";
  width: 78px;
  height: 78px;
  border-radius: inherit;
  background: white;
}

.organization-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
  align-items: stretch;
}

.organization-diagram {
  min-height: 320px;
}

.organization-copy {
  display: grid;
  gap: 16px;
  align-content: start;
}

.organization-copy > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.org-block-list {
  display: grid;
  gap: 12px;
}

.org-block-list article,
.coverage-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 14px;
}

.org-block-list h4,
.coverage-grid h4 {
  margin: 0 0 6px;
}

.org-block-list p,
.coverage-grid p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.org-block-list small {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.semester-structure {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.semester-column {
  min-width: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.semester-column header {
  border-bottom: 1px solid var(--line);
  background: var(--navy);
  color: white;
  padding: 14px;
}

.semester-column header .label {
  color: rgba(255, 255, 255, 0.52);
}

.semester-column header strong {
  display: block;
  margin-top: 2px;
  font-size: 28px;
}

.semester-column header small {
  color: rgba(255, 255, 255, 0.68);
}

.semester-composition {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.semester-composition span {
  background: white;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  padding: 9px 10px;
}

.semester-course-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.semester-course {
  display: flex;
  min-height: 70px;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: white;
  padding: 10px;
  transition: 160ms ease;
}

.semester-course:hover {
  border-color: var(--blue);
  border-left-color: var(--blue);
  box-shadow: 0 10px 24px rgba(16, 25, 39, 0.09);
  transform: translateY(-1px);
}

.semester-course.elective {
  border-left-color: var(--gold);
}

.semester-course strong,
.semester-course small {
  display: block;
}

.semester-course strong {
  font-size: 13px;
  line-height: 1.3;
}

.semester-course small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.semester-course em {
  align-self: start;
  border-radius: 999px;
  background: rgba(191, 132, 50, 0.12);
  color: #8a5a17;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  padding: 4px 7px;
}

.treemap {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 8px;
  overflow: hidden;
}

.treemap.treemap-mini {
  height: 64px;
  border-radius: 6px;
}

.semester-mini-treemap {
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.treemap-tile {
  position: absolute;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid white;
  color: white;
  overflow: hidden;
}

.treemap-tile strong {
  font-size: 13px;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.treemap-tile span {
  font-size: 11px;
  opacity: 0.92;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.block-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

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

.block-legend i {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 3px;
}

.legend {
  display: grid;
  gap: 10px;
}

.transisi-result {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: #eef5f8;
}

.transisi-result h4 {
  margin: 0 0 4px;
}

.transisi-result ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.transisi-result li {
  margin-bottom: 6px;
  line-height: 1.55;
}

.nested-groups {
  display: grid;
  gap: 8px;
}

.nested-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 4px 0;
}

.nested-group summary {
  cursor: pointer;
  font-weight: 750;
  font-size: 13px;
  padding: 10px 14px;
  list-style: none;
}

.nested-group summary::-webkit-details-marker {
  display: none;
}

.nested-group summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 8px;
  color: var(--muted);
  transition: transform 140ms ease;
}

.nested-group[open] summary::before {
  transform: rotate(90deg);
}

.nested-group .stacked-list {
  padding: 0 14px 12px;
}

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

.hbar-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 10px;
}

.hbar-label {
  font-size: 12px;
  font-weight: 760;
  color: var(--muted);
}

.hbar-track {
  height: 10px;
  border-radius: 999px;
  background: #eef2f6;
  overflow: hidden;
}

.hbar-fill {
  height: 100%;
  border-radius: 999px;
}

.hbar-value {
  font-size: 12px;
  text-align: right;
  color: var(--ink);
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 3px;
}

.network-wrap {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at top left, rgba(191, 132, 50, 0.12), transparent 28%),
    linear-gradient(180deg, #fbfcfd, #eef3f7);
}

.network-svg {
  width: 100%;
  height: 560px;
  display: block;
  cursor: grab;
  touch-action: none;
}

.network-svg.dragging {
  cursor: grabbing;
}

.network-node,
.course-node {
  cursor: pointer;
}

.network-node text,
.course-node text {
  pointer-events: none;
}

.network-tooltip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  max-width: min(420px, calc(100% - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 14px;
  box-shadow: 0 12px 34px rgba(16, 25, 39, 0.12);
}

.network-tooltip strong {
  display: block;
  margin-bottom: 4px;
}

.network-tooltip summary {
  cursor: pointer;
  font-weight: 750;
  margin-bottom: 4px;
  list-style: none;
}

.network-tooltip summary::-webkit-details-marker {
  display: none;
}

.network-tooltip[open] summary::after {
  content: " (sembunyikan)";
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
}

.network-tooltip:not([open]) summary::after {
  content: " (tampilkan)";
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
}

.network-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0 12px;
}

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

.network-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.network-legend .line,
.network-legend .dash {
  width: 24px;
  height: 0;
  border-radius: 0;
  border-top: 2px solid var(--blue);
}

.network-legend .dash {
  border-top-style: dashed;
  border-top-color: var(--maroon);
}

.network-category-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.network-category-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.network-category-legend i {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.ip-cap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ip-cap-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px 14px;
  transition: 140ms ease;
}

.ip-cap-tile span {
  display: block;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.ip-cap-tile strong {
  display: block;
  margin-top: 6px;
  font-size: 14px;
}

.ip-cap-tile.active {
  border-color: var(--blue);
  background: #eef5f8;
  box-shadow: 0 8px 20px rgba(29, 79, 115, 0.12);
}

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

.concentration-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfd;
  padding: 16px;
  transition: 140ms ease;
}

.concentration-card h4 {
  margin: 0 0 6px;
}

.concentration-label {
  margin: 12px 0 6px;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.concentration-card.active {
  border-color: var(--gold);
  background: #fdf7ea;
  box-shadow: 0 8px 20px rgba(191, 132, 50, 0.14);
}

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

.filtered-results-bar {
  padding: 0 18px;
  margin-top: 4px;
}

table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

th,
td {
  border-top: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

.cpmk-stack {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.cpmk-stack li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

thead th {
  border-top: 0;
  background: #eef3f7;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

tbody tr {
  transition: 140ms ease;
}

tbody tr:hover {
  background: #f8fbfd;
}

.course-title {
  display: block;
  color: var(--ink);
  font-weight: 780;
}

.course-title:hover {
  color: var(--blue);
}

.subtle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.badge-list,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 9px;
  background: #e9f1f4;
  color: var(--blue);
  font-size: 12px;
  font-weight: 760;
}

.tag {
  border-radius: 7px;
  background: #f0f3f6;
  color: var(--muted);
}

.advisor-tag {
  border: 1px solid var(--line);
  font-family: inherit;
  cursor: pointer;
}

.advisor-tag.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

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

.advisor-list li {
  display: block;
}

.advisor-over-quota {
  color: var(--maroon);
  font-weight: 700;
  font-size: 13px;
}

.badge.gold {
  background: rgba(191, 132, 50, 0.13);
  color: #8a5a17;
}

.badge.green {
  background: rgba(15, 118, 110, 0.12);
  color: var(--teal);
}

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

.cpl-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 15px;
}

.cpl-card.accented {
  background: linear-gradient(180deg, rgba(255, 245, 0, 0.18), white 46%);
}

.cpl-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: white;
  font-weight: 850;
}

.cpl-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.cpl-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

.cpl-mini-list {
  display: grid;
  gap: 8px;
}

.cpl-mini-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px;
}

.cpl-mini-list summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 13px;
  font-weight: 780;
}

.cpl-mini-list p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

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

.coverage-grid article {
  display: block;
}

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

.glossary-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px 14px;
}

.glossary-item h4 {
  margin: 0 0 6px;
  font-size: 14px;
}

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

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

.info-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px;
}

.info-list strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
}

.course-hero {
  border-radius: 8px;
  background: var(--navy);
  color: white;
  padding: clamp(24px, 4vw, 42px);
}

.course-hero h2 {
  max-width: 900px;
  margin: 16px 0 8px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
}

.course-hero p {
  color: rgba(255, 255, 255, 0.7);
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.fact {
  background: white;
  padding: 15px;
}

.fact strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
}

.text-block {
  line-height: 1.7;
}

.text-block h3 {
  margin-top: 0;
}

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

.list-grid li,
.stacked-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 11px 12px;
  line-height: 1.55;
}

.stacked-list,
.list-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pertemuan-divider {
  margin: 14px 0 8px;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.pertemuan-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pertemuan-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 11px 12px;
  line-height: 1.55;
}

.pertemuan-no {
  display: block;
  font-size: 11px;
  font-weight: 750;
  color: var(--blue);
  margin-bottom: 3px;
}

.empty {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.fade-in {
  animation: rise 360ms ease-out both;
}

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

/* ---- Aturan Peralihan: sub-tabs & tooling ---- */
.subtab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.subtab {
  border-radius: 7px;
  padding: 9px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  transition: 160ms ease;
}

.subtab:hover {
  background: var(--wash);
  color: var(--blue);
}

.subtab.active {
  background: var(--navy);
  color: white;
}

.stacked-list.compact li {
  padding: 9px 11px;
  font-size: 13px;
}

.komposisi-grid,
.calc-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.komposisi-tile,
.calc-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 14px;
}

.komposisi-tile span,
.calc-tile span {
  display: block;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.komposisi-tile strong,
.calc-tile strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.calc-tile.accent {
  border-color: var(--blue);
  background: #eef5f8;
}

.sem-sks-bars {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  height: 140px;
}

.sem-sks-col {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.sem-sks-bar {
  position: relative;
  width: 100%;
  min-height: 22px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--blue), #2a7795);
}

.sem-sks-bar span {
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.sem-sks-col small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

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

.scenario-grid {
  margin-top: 16px;
}

.principle-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 14px;
}

.principle-no {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: white;
  font-weight: 850;
}

.principle-card strong {
  display: block;
  margin-bottom: 4px;
}

.principle-card p {
  margin: 0;
}

.scenario-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 15px;
}

.scenario-card.active {
  border-color: var(--blue);
  background: #eef5f8;
  box-shadow: 0 10px 26px rgba(29, 79, 115, 0.14);
}

.scenario-tag {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.scenario-card.active .scenario-tag {
  color: var(--blue);
}

.scenario-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.3;
}

.scenario-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.scenario-card li {
  margin-bottom: 6px;
  border: 0;
  padding: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.calc-checklist {
  display: grid;
  gap: 12px;
  max-height: 640px;
  overflow-y: auto;
}

.calc-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 8px 12px 12px;
}

.calc-group legend {
  padding: 0 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calc-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 7px;
  padding: 8px 8px;
  cursor: pointer;
  transition: 140ms ease;
}

.calc-check:hover {
  background: var(--wash);
}

.calc-check.checked {
  background: #eef5f8;
}

.calc-check input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.calc-check span {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}

.calc-check small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.calc-result-label {
  margin: 16px 0 8px;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calc-result-label:first-child {
  margin-top: 0;
}

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

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px 14px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 780;
  font-size: 14px;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 18px;
  margin-right: 6px;
  color: var(--blue);
  font-weight: 850;
}

.faq-item[open] summary::before {
  content: "\2013";
}

.faq-item p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---- Latar Belakang & Ringkasan Eksekutif ---- */
.delta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.delta-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 14px;
}

.delta-tile .label {
  display: block;
}

.delta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
}

.delta-before {
  color: var(--quiet);
  font-size: 13px;
  text-decoration: line-through;
}

.delta-arrow {
  color: var(--quiet);
  font-weight: 800;
}

.delta-after {
  color: var(--blue);
  font-size: 17px;
  font-weight: 800;
}

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

.swot-card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 14px;
}

.swot-card h4 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.swot-card ul {
  margin: 0;
  padding-left: 18px;
}

.swot-card li {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.swot-card.gold {
  border-top-color: var(--gold);
}

.swot-card.blue {
  border-top-color: var(--blue);
}

.swot-card.maroon {
  border-top-color: var(--maroon);
}

.cpl-hierarchy {
  display: grid;
  grid-template-columns: 1fr 34px 1fr 34px 1fr;
  grid-template-rows: auto 34px auto 34px auto 34px auto 34px auto;
  gap: 6px;
  padding: 6px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfcfd, #f4f7fa);
}

.cpl-hierarchy-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px 14px;
  box-shadow: 0 1px 2px rgba(16, 25, 39, 0.05);
  transition: 160ms ease;
}

.cpl-hierarchy-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(16, 25, 39, 0.12);
}

.cpl-hierarchy-badge {
  display: grid;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 850;
}

.cpl-hierarchy-copy {
  min-width: 0;
}

.cpl-hierarchy-box .cpl-id {
  display: block;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.cpl-hierarchy-box strong {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.cpl-hierarchy-box.branch-root {
  border-left-color: var(--navy);
  background: linear-gradient(135deg, rgba(16, 36, 59, 0.06), white 60%);
}

.cpl-hierarchy-box.branch-root .cpl-hierarchy-badge {
  background: var(--navy);
}

.cpl-hierarchy-box.branch-root .cpl-id {
  color: var(--navy);
}

.cpl-hierarchy-box.branch-teknis {
  border-left-color: var(--teal);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.07), white 60%);
}

.cpl-hierarchy-box.branch-teknis .cpl-hierarchy-badge {
  background: var(--teal);
}

.cpl-hierarchy-box.branch-teknis .cpl-id {
  color: var(--teal);
}

.cpl-hierarchy-box.branch-profesional {
  border-left-color: var(--gold);
  background: linear-gradient(135deg, rgba(191, 132, 50, 0.09), white 60%);
}

.cpl-hierarchy-box.branch-profesional .cpl-hierarchy-badge {
  background: var(--gold);
}

.cpl-hierarchy-box.branch-profesional .cpl-id {
  color: #8a5a17;
}

.cpl-hierarchy-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
}

.cpl-hierarchy-arrow.branch-teknis {
  color: var(--teal);
}

.cpl-hierarchy-arrow.branch-profesional {
  color: #8a5a17;
}

.cpl-hierarchy-arrow[data-dir="right"]::after {
  content: "\2192";
}

.cpl-hierarchy-arrow[data-dir="down"]::after {
  content: "\2193";
}

.cpl-hierarchy-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

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

.cpl-hierarchy-legend i {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 3px;
}

.cpl-hierarchy-legend i.branch-root {
  background: var(--navy);
}

.cpl-hierarchy-legend i.branch-teknis {
  background: var(--teal);
}

.cpl-hierarchy-legend i.branch-profesional {
  background: var(--gold);
}

@media (max-width: 1120px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 220ms ease;
  }

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

  .mobile-menu {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    padding: 0 12px;
    font-weight: 750;
  }

  .hero,
  .organization-layout,
  .dashboard-grid,
  .course-layout,
  .cpl-catalog,
  .coverage-grid,
  .calc-layout {
    grid-template-columns: 1fr;
  }

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

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

  .komposisi-grid,
  .calc-summary,
  .principle-grid,
  .scenario-grid,
  .delta-grid,
  .ip-cap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calc-checklist {
    max-height: none;
  }

  .cpl-hierarchy {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .cpl-hierarchy-arrow {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  #app {
    padding: 16px;
  }

  .hero {
    padding: 24px;
  }

  .hero-metrics,
  .filter-grid,
  .fact-grid,
  .list-grid,
  .pertemuan-list,
  .cpl-catalog,
  .coverage-grid,
  .glossary-grid,
  .komposisi-grid,
  .calc-summary,
  .principle-grid,
  .scenario-grid,
  .delta-grid,
  .swot-grid,
  .ip-cap-grid,
  .concentration-grid {
    grid-template-columns: 1fr;
  }

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

  .sem-sks-bars {
    gap: 6px;
  }
}
