.learning-paths-trigger {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(253, 230, 138, .9);
  border-radius: 16px;
  color: #261504;
  background: linear-gradient(135deg, #fbbf24, #fb923c 58%, #f97316);
  box-shadow: 0 8px 22px rgba(249, 115, 22, .24), inset 0 1px 0 rgba(255,255,255,.35);
  font-weight: 850;
}
.learning-paths-trigger:hover { filter: brightness(1.07) saturate(1.04); }
.learning-paths-trigger:focus-visible { outline: 3px solid rgba(253, 186, 116, .72); outline-offset: 3px; }
.learning-paths-open { overflow: hidden !important; }
.learning-paths-overlay[hidden] { display: none !important; }
.learning-paths-overlay {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  place-items: center;
  padding: clamp(8px, 2vw, 24px);
  color: var(--text, #edf5f4);
  background: rgba(2, 8, 13, .78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.learning-paths-dialog {
  display: flex;
  flex-direction: column;
  width: min(1040px, 100%);
  max-height: min(94dvh, 940px);
  overflow: hidden;
  border: 1px solid rgba(110, 231, 183, .34);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0, rgba(16, 185, 129, .14), transparent 35%),
    linear-gradient(160deg, rgba(17, 35, 38, .99), rgba(5, 13, 17, .99));
  box-shadow: 0 28px 90px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.08);
}
.learning-paths-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 3vw, 30px);
  border-bottom: 1px solid rgba(110,231,183,.18);
}
.learning-paths-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: #7dd3b2;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
}
.learning-paths-head h2 { margin: 0; color: #f0fff8; font-size: clamp(20px, 3vw, 29px); }
.learning-paths-head p { margin: 8px 0 0; color: rgba(226,247,239,.72); line-height: 1.8; }
.learning-paths-close {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  color: #e8fff5;
  background: rgba(255,255,255,.07);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}
.learning-paths-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(16px, 3vw, 28px);
}
.learning-paths-content:focus { outline: none; }
.learning-paths-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.learning-paths-toolbar h3 { margin: 0; font-size: 20px; color: #effff8; }
.learning-paths-toolbar p { margin: 5px 0 0; color: rgba(226,247,239,.65); line-height: 1.7; }
.learning-paths-tabs {
  display: flex;
  gap: 8px;
  padding: 5px;
  margin-bottom: 18px;
  width: fit-content;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 15px;
  background: rgba(0,0,0,.18);
}
.learning-paths-tabs button {
  padding: 9px 14px;
  border: 0;
  border-radius: 11px;
  color: rgba(226,247,239,.72);
  background: transparent;
  cursor: pointer;
}
.learning-paths-tabs button.is-active { color: #062a1e; background: linear-gradient(135deg,#9df2ce,#55d6a5); font-weight: 900; }
.learning-paths-tabs span { margin-inline-start: 4px; opacity: .78; }
.learning-paths-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.learning-path-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(110,231,183,.19);
  border-radius: 20px;
  background: linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.025));
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
.learning-path-card-main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-height: 198px;
  padding: 18px;
  border: 0;
  color: inherit;
  text-align: right;
  background: transparent;
  cursor: pointer;
}
.learning-path-card-main:hover { background: rgba(110,231,183,.045); }
.learning-path-card-tag {
  align-self: flex-start;
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid rgba(110,231,183,.22);
  border-radius: 999px;
  color: #9deacb;
  background: rgba(16,185,129,.09);
  font-size: 12px;
  font-weight: 800;
}
.learning-path-card h3 { margin: 12px 0 6px; color: #f1fff8; font-size: 20px; }
.learning-path-card-outcome { margin: 0 0 14px; color: rgba(226,247,239,.70); line-height: 1.8; }
.learning-path-progress-track {
  display: block;
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
}
.learning-path-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,#34d399,#b8f4d4);
  box-shadow: 0 0 16px rgba(52,211,153,.32);
}
.learning-path-progress-label { margin-top: 7px; color: #a9ddca; font-size: 13px; font-weight: 750; }
.learning-path-card-next { margin-top: 12px; color: #e7fff4; line-height: 1.6; }
.learning-path-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid rgba(255,255,255,.075);
  color: rgba(226,247,239,.62);
  font-size: 13px;
}
.learning-paths-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: clamp(28px,6vw,60px) 18px;
  border: 1px dashed rgba(110,231,183,.24);
  border-radius: 22px;
  text-align: center;
  background: rgba(255,255,255,.025);
}
.learning-paths-empty h3 { margin: 0; color: #f0fff8; font-size: 21px; }
.learning-paths-empty p { max-width: 560px; margin: 0 0 8px; color: rgba(226,247,239,.70); line-height: 1.9; }
.learning-path-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.learning-path-overview {
  padding: clamp(16px,3vw,24px);
  border: 1px solid rgba(110,231,183,.22);
  border-radius: 22px;
  background: linear-gradient(145deg,rgba(16,185,129,.09),rgba(255,255,255,.035));
}
.learning-path-overview-head h3 { margin: 12px 0 5px; color: #f1fff8; font-size: clamp(22px,3vw,30px); }
.learning-path-overview-head p { margin: 0; color: rgba(226,247,239,.72); line-height: 1.9; }
.learning-path-overview-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 18px; }
.learning-path-overview-grid > div { display: grid; gap: 5px; padding: 12px; border-radius: 14px; background: rgba(0,0,0,.16); }
.learning-path-overview-grid span { color: rgba(226,247,239,.58); font-size: 12px; }
.learning-path-overview-grid strong { color: #effff8; overflow-wrap: anywhere; line-height: 1.7; }
.learning-path-detail-progress { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; margin-top: 18px; }
.learning-path-detail-progress strong { color: #a9f1cf; white-space: nowrap; }
.learning-path-resource-section,.learning-path-stage-section { margin-top: 26px; }
.learning-path-resource-section h3,.learning-path-section-heading h3 { margin: 0 0 8px; color: #effff8; }
.learning-path-resource-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.learning-path-resource-list a { display: inline-flex; gap: 8px; padding: 9px 12px; border: 1px solid rgba(110,231,183,.18); border-radius: 12px; color: #adf1d3; background: rgba(255,255,255,.045); text-decoration: none; overflow-wrap: anywhere; }
.learning-path-section-heading p { margin: 0; color: rgba(226,247,239,.62); line-height: 1.8; }
.learning-path-stage-list { display: grid; gap: 12px; padding: 0; margin: 16px 0 0; list-style: none; }
.learning-path-stage {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}
.learning-path-stage.is-done { border-color: rgba(110,231,183,.25); background: rgba(16,185,129,.065); }
.learning-path-stage-number { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; color: #052c20; background: #8ce9bf; font-weight: 900; }
.learning-path-stage:not(.is-done) .learning-path-stage-number { color: #d9fff0; background: rgba(110,231,183,.12); border: 1px solid rgba(110,231,183,.24); }
.learning-path-stage-title-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.learning-path-stage-title-row h4 { margin: 0; color: #effff8; font-size: 18px; }
.learning-path-stage-title-row span { color: #9adfc1; font-size: 12px; white-space: nowrap; }
.learning-path-stage-body p { margin: 10px 0 0; color: rgba(226,247,239,.72); line-height: 1.8; }
.learning-path-stage-body p strong { color: #c5f4df; }
.learning-path-artifact-link { color: #a9f1cf; font-weight: 800; text-decoration: none; }
.learning-path-stage-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.learning-path-form { display: grid; gap: 18px; }
.learning-path-form-intro { display: grid; gap: 5px; padding: 14px 16px; border-inline-start: 3px solid #48cc98; border-radius: 12px; background: rgba(16,185,129,.075); }
.learning-path-form-intro strong { color: #defff0; }
.learning-path-form-intro span,.learning-path-field small { color: rgba(226,247,239,.62); line-height: 1.8; }
.learning-path-field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.learning-path-field { display: grid; gap: 7px; min-width: 0; color: #dff8eb; font-weight: 750; }
.learning-path-field-wide { grid-column: 1 / -1; }
.learning-path-field input,.learning-path-field textarea,.learning-path-field select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid rgba(110,231,183,.20);
  border-radius: 13px;
  color: #f0fff8;
  background: rgba(0,0,0,.21);
  font: inherit;
  font-weight: 500;
}
.learning-path-field textarea { resize: vertical; line-height: 1.8; }
.learning-path-field input:focus,.learning-path-field textarea:focus,.learning-path-field select:focus { outline: 2px solid rgba(110,231,183,.45); outline-offset: 1px; }
.learning-path-field select option { color: #effff8; background: #10231f; }
.learning-path-stage-editor { display: grid; gap: 12px; }
.learning-path-stage-editor-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.learning-path-stage-editor-head h4 { margin: 0 0 4px; color: #effff8; font-size: 18px; }
.learning-path-stage-editor-head p { margin: 0; color: rgba(226,247,239,.60); }
.learning-path-stage-editor-head > div:last-child { display: flex; flex-wrap: wrap; gap: 6px; }
.learning-path-stage-rows { display: grid; gap: 10px; }
.learning-path-stage-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 14px; border: 1px solid rgba(255,255,255,.10); border-radius: 17px; background: rgba(0,0,0,.13); }
.learning-path-stage-row-head { display: flex; align-items: center; justify-content: space-between; grid-column: 1/-1; color: #9deacb; }
.learning-path-stage-row > label:first-of-type { grid-column: 1/-1; }
.learning-path-form-error { padding: 11px 13px; border: 1px solid rgba(251,113,133,.35); border-radius: 12px; color: #ffd2da; background: rgba(127,29,29,.18); line-height: 1.7; }
.learning-path-form-error[hidden] { display: none; }
.learning-path-form-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 10px; }
.learning-paths-delete-confirm { display: grid; justify-items: center; gap: 10px; max-width: 560px; margin: clamp(24px,8vh,90px) auto; padding: clamp(22px,5vw,38px); border: 1px solid rgba(251,113,133,.25); border-radius: 22px; text-align: center; background: rgba(127,29,29,.10); }
.learning-paths-delete-confirm > span { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(251,113,133,.38); border-radius: 50%; color: #ffd2da; background: rgba(127,29,29,.20); font-size: 23px; font-weight: 900; }
.learning-paths-delete-confirm h3 { margin: 0; color: #fff0f2; font-size: 22px; }
.learning-paths-delete-confirm p { color: rgba(255,230,234,.77); line-height: 1.9; }
@media (max-width: 720px) {
  .learning-paths-overlay { padding: 0; place-items: stretch; }
  .learning-paths-dialog { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; border-inline: 0; }
  .learning-paths-head { padding: 16px; }
  .learning-paths-head p { font-size: 13px; }
  .learning-paths-content { padding: 14px; }
  .learning-paths-grid,.learning-path-field-grid,.learning-path-stage-row { grid-template-columns: 1fr; }
  .learning-path-field-wide,.learning-path-stage-row-head,.learning-path-stage-row > label:first-of-type { grid-column: auto; }
  .learning-paths-toolbar { align-items: flex-start; }
  .learning-paths-toolbar h3 { font-size: 17px; }
  .learning-path-detail-actions { justify-content: flex-end; }
  .learning-path-overview-grid { grid-template-columns: 1fr 1fr; }
  .learning-path-stage-editor-head { align-items: flex-start; flex-direction: column; }
  .learning-path-stage-editor-head > div:last-child { width: 100%; }
  .learning-path-stage { grid-template-columns: 34px minmax(0,1fr); gap: 9px; padding: 12px; }
  .learning-path-stage-number { width: 32px; height: 32px; }
  .learning-path-stage-title-row { align-items: flex-start; }
  .learning-path-stage-actions > button { flex: 1 1 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .learning-paths-trigger,.learning-path-card,.learning-paths-tabs button { transition: none !important; }
}
