:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --ink: #182033;
  --muted: #667085;
  --line: #e6e8ef;
  --brand: #6d28d9;
  --brand-2: #0f9f6e;
  --brand-3: #f59e0b;
  --danger: #dc2626;
  --shadow: 0 18px 48px rgba(24, 32, 51, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  padding: 24px 18px;
  background: #101828;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #7c3aed;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 21px;
}

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

.brand span {
  margin-top: 3px;
  color: #c7d0e1;
  font-size: 13px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d8deea;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  cursor: pointer;
  text-align: left;
}

.nav-item img {
  width: 22px;
  height: 22px;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(124, 58, 237, 0.22);
  color: #fff;
}

.sidebar-note {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-note span {
  display: block;
  color: #c7d0e1;
  font-size: 12px;
}

.sidebar-note strong {
  display: block;
  margin-top: 5px;
  font-size: 15px;
}

.app-shell {
  margin-left: 240px;
  padding: 28px;
}

.hero {
  min-height: 280px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(29, 41, 57, 0.92), rgba(91, 33, 182, 0.84)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: end;
  padding: 36px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: #c4b5fd;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: 38px;
  line-height: 1.16;
}

.hero-copy {
  max-width: 760px;
  margin: 16px 0 0;
  color: #e6e8ef;
  line-height: 1.75;
}

.hero-panel {
  min-height: 132px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(14px);
}

.hero-panel p {
  margin: 6px 0 0;
  color: #e6e8ef;
  line-height: 1.6;
}

.progress-ring {
  width: 82px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(#22c55e 0 68%, rgba(255, 255, 255, 0.25) 68% 100%);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.progress-ring span {
  width: 62px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(16, 24, 40, 0.86);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.view {
  display: none;
  padding: 26px 0 0;
}

.view.active {
  display: block;
}

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

.section-head h2 {
  margin: 0;
  font-size: 24px;
}

.section-head p {
  margin: 7px 0 0;
  color: var(--muted);
}

.primary-action {
  border: 0;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}

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

.metric,
.panel,
.path-card,
.task-card,
.flow-step,
.path-map-card,
.ops-item,
.review-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(24, 32, 51, 0.04);
}

.metric {
  padding: 18px;
}

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

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.metric p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.two-col,
.profile-layout,
.ops-grid,
.review-layout,
.company-layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.role-switch {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.role-switch button {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #344054;
  cursor: pointer;
  padding: 0 12px;
}

.role-switch button.active {
  background: #111827;
  color: #fff;
}

.ops-list,
.access-stack,
.review-list {
  display: grid;
  gap: 10px;
}

.ops-item {
  padding: 14px;
}

.ops-item strong,
.access-stack strong,
.review-item strong,
.job-profile strong,
.system-card strong {
  display: block;
}

.ops-item p,
.access-stack p,
.review-item p,
.job-profile p,
.system-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.access-stack div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.access-stack span,
.job-profile span,
.system-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.review-item {
  padding: 14px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.review-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
  flex: 0 0 auto;
}

.review-actions button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  padding: 0 10px;
  white-space: nowrap;
}

.review-actions button:hover {
  border-color: #a78bfa;
  color: var(--brand);
}

.certification-summary {
  display: grid;
  align-content: start;
  gap: 14px;
}

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

.cert-stat-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}

.cert-stat-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.cert-stat-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.certification-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.portfolio-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
  margin-bottom: 16px;
}

.portfolio-profile {
  text-align: center;
}

.portfolio-profile span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.portfolio-profile strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.portfolio-profile p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.portfolio-metrics {
  margin-bottom: 16px;
}

.portfolio-radar {
  display: grid;
  gap: 14px;
}

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

.radar-row span,
.radar-row strong {
  font-size: 13px;
}

.radar-row span {
  color: #344054;
}

.radar-row strong {
  text-align: right;
  color: var(--muted);
}

.radar-row div {
  height: 10px;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
}

.radar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6d28d9, #0f9f6e);
}

.proof-list,
.next-step-list {
  display: grid;
  gap: 12px;
}

.proof-item,
.next-step-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.proof-item header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.proof-item header span {
  border-radius: 999px;
  background: #ecfdf3;
  color: #047857;
  padding: 5px 9px;
  font-size: 12px;
}

.proof-item h4 {
  margin: 10px 0 6px;
  font-size: 16px;
}

.proof-item p,
.next-step-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.proof-item p + p {
  margin-top: 6px;
}

.next-step-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.next-step-item span {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 800;
}

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

.assessment-hero {
  border-radius: 8px;
  background: #111827;
  color: #fff;
  padding: 16px;
}

.assessment-hero span {
  display: block;
  color: #c7d0e1;
  font-size: 13px;
}

.assessment-hero strong {
  display: block;
  margin-top: 8px;
  line-height: 1.55;
}

.assessment-hero p {
  margin: 8px 0 0;
  color: #e6e8ef;
  line-height: 1.6;
}

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

.assessment-score-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.assessment-score-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.assessment-score-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.assessment-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.assessment-item header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.assessment-item h4 {
  margin: 0;
  font-size: 16px;
}

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

.assessment-item header p {
  margin-top: 5px;
  font-size: 13px;
}

.assessment-item header span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.interest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
  margin-top: 16px;
}

.interest-result,
.interest-list,
.interest-community-board {
  display: grid;
  gap: 12px;
}

.interest-hero {
  background: linear-gradient(135deg, #0f172a 0%, #164e63 100%);
}

.interest-item .course-meta {
  align-items: center;
}

.community-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.community-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.community-card h4 {
  margin: 0;
  font-size: 16px;
}

.community-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.community-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.community-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #14b8a6, #22c55e);
}

.education-result,
.education-list {
  display: grid;
  gap: 12px;
}

.education-hero {
  background: linear-gradient(135deg, #111827 0%, #334155 54%, #0f766e 100%);
}

.education-progress {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.education-progress div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.education-progress span {
  color: var(--muted);
  font-size: 13px;
}

.education-progress strong {
  font-size: 24px;
}

.education-progress i,
.education-mini-progress {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.education-progress b,
.education-mini-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
}

.education-item .course-meta span {
  max-width: 100%;
}

.activity-radar,
.activity-list {
  display: grid;
  gap: 12px;
}

.activity-summary {
  border-radius: 8px;
  background: #111827;
  color: #fff;
  padding: 16px;
}

.activity-summary strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.activity-summary p {
  margin: 8px 0 0;
  color: #d1d5db;
  line-height: 1.6;
}

.activity-radar-list {
  display: grid;
  gap: 12px;
}

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

.activity-radar-row span {
  color: var(--muted);
  font-size: 13px;
}

.activity-radar-row i {
  display: block;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #e5e7eb;
}

.activity-radar-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #14b8a6);
}

.activity-radar-row strong {
  text-align: right;
  font-size: 14px;
}

.activity-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.activity-item header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.activity-item h4 {
  margin: 0;
  font-size: 17px;
}

.activity-item header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.job-profile {
  display: grid;
  gap: 12px;
}

.job-profile strong {
  font-size: 22px;
}

.task-board.compact {
  grid-template-columns: 1fr;
}

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

.system-card {
  min-height: 170px;
}

.loop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.96)),
    linear-gradient(135deg, #7c3aed, #0f9f6e);
}

.loop-hero span,
.loop-score span,
.workshop-card span,
.bounty-card span,
.certificate-preview span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.loop-hero h3 {
  margin: 6px 0 8px;
  font-size: 26px;
}

.loop-hero p {
  max-width: 860px;
  margin: 0;
  color: #344054;
  line-height: 1.7;
}

.loop-score {
  min-height: 132px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
}

.loop-score strong {
  font-size: 34px;
}

.loop-score span {
  color: #c7d0e1;
}

.loop-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.loop-step {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.loop-step.active {
  border-color: #86efac;
  background: #f0fdf4;
}

.loop-step span {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f2f4f7;
  color: #344054;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.loop-step.active span {
  background: #16a34a;
  color: #fff;
}

.loop-step strong {
  display: block;
}

.loop-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

.loop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.node-standard dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.node-standard div,
.mvk-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 13px;
}

.node-standard dt {
  margin-bottom: 5px;
  color: #111827;
  font-weight: 800;
}

.node-standard dd,
.mvk-list p,
.workshop-card p,
.bounty-card p,
.certificate-preview p,
.certification-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.mvk-list strong,
.workshop-card strong,
.bounty-card strong,
.certificate-preview strong {
  display: block;
  margin: 4px 0 8px;
}

.workshop-card,
.bounty-card {
  display: grid;
  gap: 10px;
}

.certification-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: center;
}

.certificate-preview {
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  padding: 16px;
}

.certificate-status {
  width: fit-content;
  margin-top: 12px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

.panel {
  padding: 20px;
}

.panel h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

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

.node {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.node strong,
.task-card strong {
  display: block;
  margin-bottom: 5px;
}

.node p,
.task-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.status {
  border-radius: 999px;
  padding: 5px 10px;
  background: #f3e8ff;
  color: #6d28d9;
  font-size: 12px;
  white-space: nowrap;
}

.status.done {
  background: #dcfce7;
  color: #15803d;
}

.status.waiting {
  background: #fef3c7;
  color: #92400e;
}

.chat {
  min-height: 228px;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  overflow: auto;
}

.chat p {
  width: fit-content;
  max-width: 88%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.55;
}

.chat .bot {
  background: #ede9fe;
  color: #3b0764;
}

.chat .user {
  justify-self: end;
  background: #111827;
  color: #fff;
}

.chat-input {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 8px;
}

.chat-input input {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
}

.chat-input button {
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #111827;
  cursor: pointer;
}

.path-grid,
.task-board,
.path-map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.map-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
  margin-bottom: 16px;
}

.map-intro p,
.map-current p,
.path-map-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f8fafc;
  color: #344054;
  font-size: 13px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.dot.learn {
  background: var(--brand-2);
}

.dot.practice {
  background: var(--brand-3);
}

.dot.archive {
  background: #2563eb;
}

.map-current {
  display: grid;
  align-content: center;
  gap: 9px;
}

.map-current span {
  color: var(--muted);
  font-size: 13px;
}

.map-current strong {
  font-size: 20px;
}

.map-current button,
.flow-step button,
.path-map-card button {
  width: fit-content;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  padding: 0 12px;
}

.map-current button:hover,
.flow-step button:hover,
.path-map-card button:hover {
  border-color: #a78bfa;
  color: var(--brand);
}

.student-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: flow;
}

.flow-step {
  min-height: 210px;
  padding: 18px;
  display: grid;
  gap: 10px;
  align-content: start;
  position: relative;
  overflow: hidden;
}

.flow-step::after {
  content: "";
  position: absolute;
  inset: auto 16px 16px auto;
  width: 54px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(109, 40, 217, 0.1);
}

.flow-step.learn::after {
  background: rgba(15, 159, 110, 0.12);
}

.flow-step.practice::after {
  background: rgba(245, 158, 11, 0.14);
}

.flow-step.archive::after {
  background: rgba(37, 99, 235, 0.12);
}

.flow-step span {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f3e8ff;
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}

.flow-step.learn span {
  background: #dcfce7;
  color: #15803d;
}

.flow-step.practice span {
  background: #fef3c7;
  color: #92400e;
}

.flow-step.archive span {
  background: #dbeafe;
  color: #1d4ed8;
}

.flow-step h3,
.path-map-card h3 {
  margin: 0;
  font-size: 17px;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.path-map-grid {
  margin-top: 16px;
}

.path-map-card {
  padding: 18px;
  display: grid;
  gap: 12px;
}

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

.teacher-layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
  align-items: start;
}

.node-admin-layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
}

.course-form {
  display: grid;
  gap: 12px;
}

.course-form label {
  display: grid;
  gap: 6px;
}

.course-form label span {
  color: var(--muted);
  font-size: 13px;
}

.course-form input,
.course-form select,
.course-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

.course-form textarea {
  resize: vertical;
  line-height: 1.6;
}

.course-form input:focus,
.course-form select:focus,
.course-form textarea:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px #ede9fe;
}

.upload-line {
  display: grid;
  grid-template-columns: minmax(0, 180px) 1fr;
  gap: 10px;
  align-items: center;
}

.course-form .file-input {
  padding: 8px;
  border-style: dashed;
  background: #fafafa;
  font-size: 12px;
}

.upload-status {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.upload-status.success {
  color: #047857;
}

.upload-status.error {
  color: #dc2626;
}

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

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

.enrollment-panel {
  margin-top: 16px;
}

.panel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.panel-title-row h3 {
  margin: 0 0 4px;
}

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

.secondary-action {
  border: 1px solid #ddd6fe;
  border-radius: 10px;
  background: #f5f3ff;
  color: #6d28d9;
  padding: 9px 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

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

.enrollment-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.enrollment-item header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.enrollment-item h4 {
  margin: 0;
  font-size: 15px;
}

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

.enrollment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
}

.enrollment-meta span {
  border-radius: 999px;
  background: #f8fafc;
  padding: 5px 8px;
}

.enrollment-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.enrollment-actions button {
  border: 0;
  border-radius: 9px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}

.enrollment-actions .approve {
  background: #10b981;
  color: #fff;
}

.enrollment-actions .reject {
  background: #fee2e2;
  color: #b91c1c;
}

.ability-node-list {
  display: grid;
  gap: 12px;
}

.workshop-list,
.bounty-list {
  display: grid;
  gap: 12px;
}

.ability-node-item,
.workshop-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.ability-node-item header,
.workshop-item header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.ability-node-item h4,
.workshop-item h4 {
  margin: 0;
  font-size: 17px;
}

.ability-node-item p,
.workshop-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.ability-node-item dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.ability-node-item dl div {
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}

.ability-node-item dt {
  margin-bottom: 4px;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
}

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

.workshop-body {
  display: grid;
  gap: 8px;
}

.workshop-body div {
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}

.workshop-body strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.workshop-body p {
  margin: 0;
  line-height: 1.6;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

.course-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.course-item header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.course-item h4 {
  margin: 0;
  font-size: 16px;
}

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

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-meta span,
.preview-strip span {
  border-radius: 999px;
  padding: 5px 9px;
  background: #f2f4f7;
  color: #344054;
  font-size: 12px;
}

.course-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.course-actions button {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  padding: 0 10px;
}

.course-actions button:hover {
  border-color: #a78bfa;
  color: var(--brand);
}

.student-preview {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: center;
}

.student-preview p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.preview-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.path-card {
  padding: 20px;
  display: grid;
  gap: 14px;
}

.path-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: var(--brand);
}

.path-card:nth-child(2) .path-icon {
  background: var(--brand-2);
}

.path-card:nth-child(3) .path-icon {
  background: var(--brand-3);
}

.path-card h3 {
  margin: 0;
}

.path-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.path-card ul {
  margin: 0;
  padding-left: 18px;
  color: #344054;
  line-height: 1.8;
}

.path-card button {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.path-card.selected {
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px #ede9fe;
}

.task-card {
  padding: 18px;
  min-height: 170px;
}

.task-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.task-type {
  color: var(--muted);
  font-size: 13px;
}

.task-card footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.profile-card {
  text-align: center;
}

.avatar {
  width: 76px;
  height: 76px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #ede9fe;
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
}

.profile-card p {
  color: var(--muted);
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.profile-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  font-size: 13px;
}

.timeline ol,
.timeline {
  margin: 0;
}

.timeline ol {
  padding-left: 22px;
}

.timeline li {
  margin-bottom: 14px;
  line-height: 1.65;
}

.timeline time {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 14px;
  }

  .nav {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-item {
    justify-content: center;
    min-width: 104px;
  }

  .nav-item span {
    display: inline;
    font-size: 13px;
  }

  .sidebar-note {
    display: none;
  }

  .app-shell {
    margin-left: 0;
    padding: 16px;
  }

  .hero,
  .two-col,
  .profile-layout,
  .ops-grid,
  .review-layout,
  .company-layout,
  .portfolio-layout,
  .loop-hero,
  .loop-layout,
  .certification-panel,
  .map-overview,
  .interest-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .teacher-grid,
  .path-grid,
  .task-board,
  .student-flow,
  .loop-steps,
  .path-map-grid,
  .system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-layout,
  .node-admin-layout,
  .student-preview {
    grid-template-columns: 1fr;
  }

  .preview-strip {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 24px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .metric-grid,
  .teacher-grid,
  .path-grid,
  .task-board,
  .student-flow,
  .loop-steps,
  .path-map-grid,
  .system-grid {
    grid-template-columns: 1fr;
  }

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

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

  .role-switch {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .review-item {
    align-items: start;
    flex-direction: column;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}
