:root {
  color-scheme: dark;
  --bg: #07090f;
  --bg-soft: #0d111c;
  --panel: #121827;
  --panel-strong: #182033;
  --ink: #f3f6ff;
  --muted: #9aa6bd;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #7dd3fc;
  --accent-2: #a78bfa;
  --accent-3: #34d399;
  --warning: #fbbf24;
  --glow-cyan: rgba(125, 211, 252, 0.24);
  --glow-violet: rgba(167, 139, 250, 0.22);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse at 18% 0%, rgba(125, 211, 252, 0.16), transparent 42rem),
    radial-gradient(ellipse at 92% 12%, rgba(167, 139, 250, 0.13), transparent 38rem),
    linear-gradient(180deg, #07090f 0%, #0a0e17 48%, #07090f 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 82%);
}

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

button {
  cursor: pointer;
}

a {
  color: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 14px;
  font-size: 4.35rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 6px;
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(105deg, rgba(7, 9, 15, 0.95), rgba(13, 17, 28, 0.78)),
    radial-gradient(ellipse at 26% 18%, rgba(125, 211, 252, 0.2), transparent 32rem),
    radial-gradient(ellipse at 75% 8%, rgba(167, 139, 250, 0.18), transparent 34rem),
    #07090f;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.8), rgba(167, 139, 250, 0.62), transparent);
}

.hero__inner,
.shell {
  width: min(1200px, calc(100vw - 44px));
  margin: 0 auto;
}

.hero__inner {
  padding: 72px 0 58px;
}

.brand-lockup {
  display: grid;
  grid-template-columns: minmax(220px, 420px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.brand-logo-wrap {
  position: relative;
  display: grid;
  min-height: 220px;
  place-items: center;
}

.brand-logo-wrap::before {
  position: absolute;
  inset: 8% 2%;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(167, 139, 250, 0.28), transparent 62%),
    radial-gradient(circle, rgba(125, 211, 252, 0.12), transparent 70%);
  content: "";
  filter: blur(28px);
}

.brand-logo {
  position: relative;
  width: min(100%, 420px);
  height: auto;
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 0 34px rgba(167, 139, 250, 0.34)) drop-shadow(0 0 20px rgba(125, 211, 252, 0.12));
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.subtitle {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(243, 246, 255, 0.72);
  font-size: 1.1rem;
}

.shell {
  display: grid;
  gap: 26px;
  padding: 28px 0 48px;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: -56px;
}

.dashboard-card,
.search-panel,
.helper,
.tracking,
.detail__panel,
.resource-card,
.empty-state,
.category-browser {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(24, 32, 51, 0.88), rgba(18, 24, 39, 0.88));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.dashboard-card {
  min-height: 112px;
  padding: 20px;
}

.dashboard-card__label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.dashboard-card strong {
  display: block;
  color: var(--ink);
  font-size: 2.2rem;
  line-height: 1;
}

.dashboard-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
}

.dashboard-card--wide strong {
  font-size: 1.05rem;
  line-height: 1.25;
}

.search-panel,
.helper,
.tracking {
  padding: 22px;
}

.search-panel,
.helper,
.category-browser {
  box-shadow: var(--shadow), 0 0 44px rgba(125, 211, 252, 0.05), 0 0 56px rgba(167, 139, 250, 0.04);
}

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

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-heading--compact {
  align-items: center;
}

.search-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 800;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(7, 9, 15, 0.7);
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input,
select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 172px;
  padding: 14px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(154, 166, 189, 0.72);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(125, 211, 252, 0.7);
  background: rgba(7, 9, 15, 0.9);
  box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.12), 0 0 34px rgba(125, 211, 252, 0.08);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(125, 211, 252, 0.82);
  outline-offset: 3px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.filters label {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 10px;
  background: rgba(7, 9, 15, 0.32);
}

.filters label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.button,
.icon-button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.96), rgba(167, 139, 250, 0.92));
  color: #071018;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(125, 211, 252, 0.16);
}

.button:active,
.icon-button:active,
.helper__buttons button:active,
.category-tab:active {
  transform: translateY(0) scale(0.98);
}

.button--secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.button--secondary:hover {
  border-color: rgba(125, 211, 252, 0.38);
  background: rgba(125, 211, 252, 0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.button--danger {
  border-color: rgba(248, 113, 113, 0.36);
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
}

.button--danger:hover {
  border-color: rgba(248, 113, 113, 0.58);
  background: rgba(248, 113, 113, 0.16);
  box-shadow: 0 12px 30px rgba(248, 113, 113, 0.08);
}

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

.helper__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.helper__buttons button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  font-weight: 800;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.helper__buttons button:hover {
  border-color: rgba(167, 139, 250, 0.52);
  background: rgba(167, 139, 250, 0.12);
  transform: translateY(-1px);
}

.recommendation-card {
  grid-column: 2;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 18px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(125, 211, 252, 0.09), rgba(167, 139, 250, 0.08)),
    rgba(7, 9, 15, 0.38);
}

.recommendation-card__header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.recommendation-card h3 {
  margin-bottom: 0;
}

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

.recommendation-card ol {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding-left: 20px;
}

.recommendation-card li span {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.pathways {
  padding: 4px 0 0;
}

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

.pathway-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(24, 32, 51, 0.96), rgba(13, 17, 28, 0.94)),
    var(--panel);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.pathway-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.13), transparent 42%, rgba(167, 139, 250, 0.11));
  opacity: 0.7;
}

.pathway-card > * {
  position: relative;
}

.pathway-card:hover,
.pathway-card.is-open {
  border-color: rgba(125, 211, 252, 0.36);
  transform: translateY(-2px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.44), 0 0 42px rgba(125, 211, 252, 0.14), 0 0 58px rgba(167, 139, 250, 0.08);
}

.pathway-card__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}

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

.pathway-progress {
  display: grid;
  gap: 7px;
  margin: 16px 0;
}

.pathway-progress__meta {
  display: flex;
  justify-content: space-between;
  color: rgba(243, 246, 255, 0.76);
  font-size: 0.8rem;
  font-weight: 800;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.pathway-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.pathway-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  border-radius: 14px;
  padding: 9px;
  background: rgba(7, 9, 15, 0.28);
  font-size: 0.9rem;
}

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

.results {
  min-width: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 32px;
  margin-bottom: 14px;
}

.category-browser {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 18px;
}

.category-browser::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(120deg, rgba(125, 211, 252, 0.1), transparent 46%, rgba(167, 139, 250, 0.08));
}

.category-browser > * {
  position: relative;
}

.category-browser__heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 14px;
}

.category-browser__heading h3 {
  margin-bottom: 0;
  font-size: 1.15rem;
}

.tab-summary {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 4px 10px;
  scrollbar-color: rgba(125, 211, 252, 0.45) transparent;
}

.category-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(7, 9, 15, 0.5);
  color: var(--muted);
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.category-tab strong {
  display: inline-grid;
  min-width: 30px;
  min-height: 26px;
  place-items: center;
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(243, 246, 255, 0.86);
  font-size: 0.78rem;
}

.category-tab:hover {
  border-color: rgba(125, 211, 252, 0.34);
  background: rgba(125, 211, 252, 0.09);
  color: var(--ink);
  transform: translateY(-1px);
}

.category-tab.is-active {
  border-color: rgba(125, 211, 252, 0.6);
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.16), rgba(167, 139, 250, 0.14));
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.18), 0 0 30px rgba(125, 211, 252, 0.16), 0 0 42px rgba(167, 139, 250, 0.1);
}

.resource-list {
  display: grid;
  gap: 14px;
}

.resource-card,
.empty-state {
  padding: 18px;
}

.resource-card {
  animation: cardRise 260ms ease both;
  animation-delay: calc(var(--card-index, 0) * 14ms);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.resource-card:hover {
  border-color: rgba(125, 211, 252, 0.24);
  transform: translateY(-1px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42), 0 0 34px rgba(125, 211, 252, 0.08);
}

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

.resource-card__main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0;
}

.badge,
.count-pill,
.chip,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(243, 246, 255, 0.86);
  font-size: 0.76rem;
  font-weight: 800;
}

.badge--accent {
  border-color: rgba(125, 211, 252, 0.28);
  background: rgba(125, 211, 252, 0.12);
  color: var(--accent);
}

.badge--section {
  border-color: rgba(167, 139, 250, 0.24);
  color: #d7ccff;
}

.badge--type {
  border-color: rgba(125, 211, 252, 0.24);
  color: #c8efff;
}

.badge--level {
  border-color: rgba(52, 211, 153, 0.22);
  color: #b8f5dc;
}

.tag {
  min-height: 24px;
  padding: 3px 8px;
  color: var(--muted);
  font-size: 0.72rem;
}

.resource-card__actions,
.detail__actions,
.export-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.icon-button {
  width: 42px;
  padding: 0;
}

.icon-button.is-active {
  border-color: rgba(251, 191, 36, 0.42);
  background: rgba(251, 191, 36, 0.16);
  color: var(--warning);
}

.check-row {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.check-row input,
.pathway-item input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent-3);
}

.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 800;
  text-align: left;
}

.link-button:hover {
  color: #d7f6ff;
  text-decoration: underline;
}

.detail {
  position: sticky;
  top: 18px;
}

.detail__panel {
  padding: 22px;
}

.detail__panel:focus-visible {
  outline: 3px solid rgba(125, 211, 252, 0.7);
  outline-offset: 4px;
}

.detail__panel a {
  color: inherit;
}

.detail__notes {
  display: block;
  margin-top: 16px;
}

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

.empty-state {
  min-height: 220px;
  display: grid;
  align-content: center;
  justify-items: start;
}

.resource-paging {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(7, 9, 15, 0.36);
  color: var(--muted);
  font-weight: 800;
}

.resource-paging__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recent-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.recent-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(7, 9, 15, 0.28);
  color: var(--muted);
  font-size: 0.88rem;
}

.export-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--accent-3);
  font-size: 0.88rem;
  font-weight: 800;
}

.tracking {
  display: grid;
  gap: 16px;
}

.tracking__header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.tracking__header p:last-child {
  max-width: 520px;
  margin-bottom: 0;
  text-align: right;
}

.progress-tools,
.advanced-tools {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 9, 15, 0.3);
}

.progress-tools summary,
.advanced-tools summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.progress-tools summary::-webkit-details-marker,
.advanced-tools summary::-webkit-details-marker {
  display: none;
}

.progress-tools > summary {
  min-height: 68px;
  padding: 16px 18px;
}

.progress-tools summary strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

.progress-tools > .export-row,
.progress-tools > .export-status {
  margin: 0 18px 16px;
}

.advanced-tools {
  margin: 0 18px 16px;
}

.advanced-tools summary {
  min-height: 54px;
  padding: 0 14px;
  color: var(--muted);
  font-weight: 900;
}

.advanced-tools .export-row {
  padding: 0 14px 14px;
}

.summary-hint {
  color: var(--muted);
  font-weight: 800;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.footer-brand__lockup,
.footer-status {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.footer-status {
  color: rgba(154, 166, 189, 0.88);
}

.footer-status span:not([hidden]) + span:not([hidden])::before {
  margin-right: 10px;
  color: rgba(154, 166, 189, 0.45);
  content: "/";
}

.footer-brand img {
  width: 58px;
  height: auto;
  filter: drop-shadow(0 0 16px rgba(167, 139, 250, 0.28));
}

@media (max-width: 1040px) {
  h1 {
    font-size: 3.2rem;
  }

  .dashboard,
  .filters,
  .pathway-grid,
  .content-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail {
    position: static;
  }
}

@media (max-width: 760px) {
  .hero__inner,
  .shell {
    width: min(100vw - 28px, 1200px);
  }

  .hero__inner {
    padding: 56px 0 68px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .search-row,
  .filters,
  .helper,
  .pathway-grid,
  .content-grid,
  .resource-card__main {
    grid-template-columns: 1fr;
  }

  .dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: -66px;
  }

  .dashboard-card {
    min-height: 88px;
    padding: 14px;
  }

  .dashboard-card strong {
    font-size: 1.65rem;
  }

  .dashboard-card--wide {
    grid-column: 1 / -1;
  }

  .dashboard-card--wide strong {
    font-size: 0.98rem;
    overflow-wrap: anywhere;
  }

  .brand-lockup {
    grid-template-columns: 1fr;
  }

  .brand-logo-wrap {
    min-height: 150px;
  }

  .brand-logo {
    width: min(78vw, 300px);
    max-height: 180px;
  }

  .control-heading,
  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .recommendation-card {
    grid-column: auto;
  }

  .pathway-card__top,
  .pathway-item {
    grid-template-columns: 1fr;
  }

  .recent-item {
    flex-direction: column;
  }

  .category-browser__heading,
  .resource-paging {
    align-items: start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
