:root {
  --bg: #eef4fb;
  --surface: #ffffff;
  --surface-soft: #f7fbff;
  --ink: #122039;
  --sub: #627188;
  --line: #d8e3f4;
  --primary: #1f5bd6;
  --primary-soft: #f0f5ff;
  --accent: #1ea5d6;
  --good: #0f6f3f;
  --warn: #f08a24;
  --shadow-soft: 0 4px 16px rgba(18, 32, 57, 0.07);
  --shadow: 0 8px 22px rgba(18, 32, 57, 0.07);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;

  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
}

body {
  background: var(--bg);
}

.shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px;
}

.hero {
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  color: #fff;
  background: linear-gradient(115deg, #081d3b, #11407a 45%, #1f5bd6);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.17);
}

.eyebrow {
  margin: 0;
  color: #a8d7ff;
  letter-spacing: 0.02em;
  font-size: 12px;
  font-weight: 600;
}

.hero h1 {
  margin: 8px 0 8px;
  font-size: 30px;
  letter-spacing: 0.01em;
}

.hero p {
  margin: 0;
  color: #dce6f7;
  line-height: 1.6;
}

.meta {
  margin-top: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  color: #dce6f7;
}

.meta a {
  color: #afe0ff;
}

.hero-badges {
  margin-top: 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12px;
  color: #dcefff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(2px);
}

.filter-state-strip {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 0;
}

.hero .filter-state-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

.filter-state-item {
  min-width: 0;
  border-radius: 10px;
  border: 1px solid rgba(145, 173, 255, 0.42);
  padding: 6px 9px 7px;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.88), rgba(239, 247, 255, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  color: #1c365b;
  font-size: 11px;
  overflow: hidden;
  position: relative;
  background-size: 200% 200%;
  animation: stripFlow 18s linear infinite;
}

.filter-state-item .filter-state-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 3px;
}

.filter-state-item strong {
  color: #11284c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.filter-state-tag {
  display: inline-block;
  margin: 2px 0 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.filter-state-tag.state-good {
  color: #0f6f3f;
  background: rgba(122, 230, 182, 0.24);
  border: 1px solid rgba(22, 174, 128, 0.42);
}

.filter-state-tag.state-warn {
  color: #8a4f00;
  background: rgba(255, 205, 138, 0.2);
  border: 1px solid rgba(231, 147, 47, 0.45);
}

.filter-state-tag.state-low {
  color: #556a83;
  background: linear-gradient(90deg, rgba(183, 200, 225, 0.24), rgba(203, 215, 237, 0.3));
  border: 1px solid rgba(138, 158, 187, 0.45);
}

.filter-state-foot {
  display: block;
  margin-top: 2px;
  color: rgba(62, 79, 104, 0.85);
  font-size: 10px;
  letter-spacing: 0.01em;
}

.filter-state-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(233, 240, 251, 0.9);
  border: 1px solid rgba(188, 208, 238, 0.9);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.filter-state-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: inherit;
}

.filter-state-fill.category {
  background: linear-gradient(90deg, #6db9ff, #2f68d6);
}

.filter-state-fill.topic {
  background: linear-gradient(90deg, #ab9dff, #6f42c1);
}

.filter-state-fill.high-value {
  background: linear-gradient(90deg, #57dcb3, #0f6f3f);
}

.filter-state-item strong::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

@keyframes stripFlow {
  0%,
  100% {
    background-position: 0% 0%;
  }

  50% {
    background-position: 100% 100%;
  }
}

.meta button,
.toolbar button {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #f4f8ff;
  backdrop-filter: blur(3px);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.toolbar {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

#searchInput,
#sortSelect,
#topicSelect {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  outline: none;
}

#searchInput {
  flex: 1;
  min-width: 260px;
}

#sortSelect,
#topicSelect {
  min-width: 145px;
  background: #fff;
}

#count {
  margin-left: auto;
  font-size: 13px;
  color: #3d4d61;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 8px;
}

.stat-card {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat-card h3 {
  margin: 0 0 6px;
  color: #35517e;
  font-size: 13px;
}

.stat-card p {
  margin: 0;
  font-size: 30px;
  color: #153160;
  font-weight: 700;
  line-height: 1.2;
}

.insights,
.visuals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
  min-width: 0;
}

.visual-grid-2 {
  margin-top: 4px;
}

.panel {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 12px;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow-wrap: anywhere;
}

.panel h2,
.left h2,
.center h2,
.right h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.panel-subtitle {
  margin: 0 0 10px;
  font-size: 12px;
  color: #5f728c;
}

.visual-full {
  grid-column: 1 / -1;
}

.focus-active {
  background: #d9e8ff !important;
  color: #0f2f63 !important;
  border-color: #356bcc !important;
}

.hero p {
  max-width: 980px;
}

.meta button[disabled],
.toolbar button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.provider-strip {
  margin: 6px 0 10px;
}

.provider-pills {
  gap: 6px;
}

.provider-chip {
  border: 1px solid color-mix(in oklab, var(--provider-chip-color, #2f68d6) 55%, #c9deff 45%);
  color: #18386b;
  background: linear-gradient(90deg, color-mix(in oklab, var(--provider-chip-color, #2f68d6) 16%, #ffffff 84%), #f8fbff);
}

.provider-chip.active {
  color: #fff;
  background: linear-gradient(90deg, var(--provider-chip-color, #2f68d6), color-mix(in oklab, var(--provider-chip-color, #2f68d6) 70%, #173e80 30%));
  border-color: color-mix(in oklab, var(--provider-chip-color, #2f68d6) 65%, #0e316e 35%);
}

#providerSelect {
  min-width: 132px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  outline: none;
  background: #fff;
}

#providerHint {
  color: #d7ecff;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 2px 10px;
}

.provider-tag {
  color: #fff;
  border-color: transparent;
  padding: 2px 8px;
  border-radius: 999px;
}

.provider-deepseek {
  background: linear-gradient(90deg, #0f4fbe, #4f8eff);
}

.provider-kimi {
  background: linear-gradient(90deg, #5e3bd1, #8a6fff);
}

.provider-glm {
  background: linear-gradient(90deg, #0e7c7a, #31d8d0);
}

.provider-mimo {
  background: linear-gradient(90deg, #b45d08, #f59e0b);
}

.provider-inline {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  margin-left: 4px;
}

.meta button:hover,
.toolbar button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.path-item button,
.track-card button,
.detail button,
.keyword-chip,
.empty-state button,
.chip,
.provider-chip {
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.path-item button:hover,
.track-card button:hover,
.detail button:hover,
.keyword-chip:hover,
.empty-state button:hover,
.chip:hover,
.provider-chip:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: var(--shadow-soft);
}

.keyword-chip,
.empty-state button,
.path-item button,
.track-card button,
.detail button,
.chip,
.provider-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: #163d7a;
}

.path-item button:active,
.track-card button:active,
.detail button:active,
.keyword-chip:active,
.empty-state button:active,
.meta button:active,
.toolbar button:active,
.chip:active,
.provider-chip:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

button:focus-visible {
  outline: 2px solid #9fc1ff;
  outline-offset: 2px;
}
.learning-pulse {
  margin: 0;
  color: #273b56;
  line-height: 1.6;
}

.kpi-strip {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.empty-state {
  border: 1px dashed #bfceed;
  border-radius: 10px;
  background: #f7fbff;
  padding: 16px;
  text-align: center;
  color: #415670;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.empty-state p {
  margin: 0 0 10px;
  line-height: 1.6;
  font-size: 13px;
}

.empty-state button {
  padding: 7px 12px;
}

.kpi-item {
  border: 1px solid #e3ecfb;
  border-radius: 8px;
  padding: 6px 8px;
  background: #f8fbff;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #2f435d;
}

.track-grid {
  display: grid;
  gap: 10px;
}

.track-card {
  border: 1px solid #d6e4fb;
  border-radius: var(--radius-sm);
  background: #f9fbff;
  padding: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.track-card:hover {
  border-color: #a9ccff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.track-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.track-meta {
  margin: 4px 0;
  color: #61738e;
  font-size: 12px;
  line-height: 1.6;
}

.track-list {
  margin: 6px 0 0;
  padding-left: 18px;
  color: #39516f;
  line-height: 1.6;
  font-size: 13px;
}

.roadmap-flow {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  max-width: 100%;
  min-width: 0;
}

.roadmap-stage {
  position: relative;
  flex: 1;
  min-width: 220px;
  border-radius: var(--radius-sm);
  border: 1px solid #d2e1f8;
  background: linear-gradient(180deg, #f6fbff 0, #f4f8ff 100%);
  padding: 10px;
  cursor: pointer;
}

.roadmap-status-chip {
  margin-bottom: 6px;
  font-size: 11px;
  border-radius: 999px;
  padding: 2px 8px;
  width: fit-content;
}

.roadmap-status-chip.done {
  color: #145c43;
  background: #dcf7ea;
  border: 1px solid #86dcb2;
}

.roadmap-status-chip.uncovered {
  color: #7a8595;
  background: #eef2f8;
  border: 1px solid #c4d2ea;
}

.roadmap-status-strip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  padding: 2px 0 3px;
  color: #365987;
  font-size: 11px;
  font-weight: 600;
}

.roadmap-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.roadmap-status-dot.done {
  background: linear-gradient(90deg, #2ab8a8, #0f6f3f);
}

.roadmap-status-dot.uncovered {
  background: linear-gradient(90deg, #9aaeca, #687c9a);
}

.roadmap-status-done,
.roadmap-status-uncovered {
  position: relative;
}

.roadmap-status-done::before,
.roadmap-status-uncovered::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 12px 0 0 12px;
}

.roadmap-status-done::before {
  background: linear-gradient(180deg, #2ab8a8 0%, #0f6f3f 100%);
}

.roadmap-status-uncovered::before {
  background: linear-gradient(180deg, #9aaeca 0%, #687c9a 100%);
}

.roadmap-stage.roadmap-status-done .roadmap-progress > span {
  background: linear-gradient(90deg, #2ab8a8, #0f6f3f);
}

.roadmap-stage.roadmap-status-uncovered .roadmap-progress > span {
  background: linear-gradient(90deg, #6f8db7, #a5b7d4);
}

.provider-deep-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.provider-deep-card {
  border: 1px solid #d6e5fb;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fbfdff 0, #f4f8ff 100%);
  padding: 10px;
}

.provider-deep-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.provider-deep-header h3 {
  margin: 0;
  font-size: 15px;
}

.provider-deep-header p {
  margin: 0;
  font-size: 11px;
  color: #546a84;
}

.provider-deep-summary {
  margin: 6px 0 8px;
  padding: 6px 8px;
  border: 1px dashed #cfdff8;
  border-radius: 8px;
  background: #f7fbff;
  color: #4c607a;
  font-size: 11px;
  line-height: 1.45;
}

.provider-adapter-note {
  margin: 8px 0 6px;
  color: #304865;
  font-size: 12px;
  line-height: 1.65;
}

.provider-focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 8px;
}

.provider-focus-tags span {
  border: 1px solid #cfe0f8;
  border-radius: 999px;
  background: linear-gradient(90deg, #f7fbff, #eef5ff);
  color: #244977;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 600;
}

.provider-feature-list {
  display: grid;
  gap: 8px;
}

.provider-feature-item {
  border: 1px solid #dce8fb;
  border-radius: 9px;
  padding: 6px 8px;
  background: #fff;
}

.provider-feature-title {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}

.provider-feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--feature-dot, #2f68d6);
}

.provider-feature-title strong {
  font-size: 12px;
}

.provider-feature-bar {
  height: 7px;
  border-radius: 8px;
  overflow: hidden;
  background: #e1e9f8;
}

.provider-feature-bar span {
  display: block;
  height: 100%;
  min-width: 3px;
}

.provider-feature-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 11px;
  color: #5e7390;
}

.provider-feature-state {
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 10px;
  border: 1px solid transparent;
}

.provider-feature-state.state-good {
  color: #0f6f3f;
  border-color: #9cd9b7;
  background: #e4f8ee;
}

.provider-feature-state.state-warn {
  color: #8b4d00;
  border-color: #f4ca89;
  background: #fff3df;
}

.provider-feature-state.state-low {
  color: #4b5c75;
  border-color: #d7e1f4;
  background: #f2f6ff;
}

.provider-focus-btn {
  margin-top: 8px;
  border: 1px solid #bfd4f5;
  border-radius: 999px;
  background: #fff;
  padding: 4px 10px;
  font-size: 11px;
  color: #17439a;
}

.provider-focus-btn:hover {
  background: #edf4ff;
}

.roadmap-stage .roadmap-meta {
  margin: 4px 0 0;
  color: #7383a1;
  font-size: 11px;
}

.roadmap-legend {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.roadmap-legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #4b5d75;
}

.legend-progress {
  width: 110px;
  height: 8px;
  border-radius: 999px;
  background: rgba(31, 91, 214, 0.14);
  overflow: hidden;
  position: relative;
}

.legend-progress span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2ab8a8, #1ea5d6);
}

.roadmap-legend .legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.roadmap-legend .legend-swatch.done {
  background: #2ab8a8;
}

.roadmap-legend .legend-swatch.uncovered {
  background: #b8c6dd;
}

.roadmap-stage::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 42px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid #d2e1f8;
}

.roadmap-stage:last-child::after {
  display: none;
}

.roadmap-stage h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.roadmap-progress {
  margin: 8px 0;
  height: 8px;
  border-radius: 999px;
  background: #dce8ff;
  overflow: hidden;
}

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

.road-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  background: #ecf4ff;
  font-size: 12px;
  margin-right: 6px;
}

.topic-bars,
.category-bars,
.topic-matrix,
.keyword-cloud,
.path-list,
.chips,
.kpi-strip {
  display: grid;
  gap: 8px;
}

.checklist-grid {
  display: grid;
  gap: 10px;
}

.method-flow {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.method-item {
  border-radius: var(--radius-sm);
  border: 1px solid #d7e5fb;
  background: #f8fbff;
  padding: 10px;
}

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

.method-item p {
  margin: 5px 0;
  color: #3b5170;
  font-size: 12px;
  line-height: 1.55;
}

.method-item button {
  border: 1px solid #bdd0f2;
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
}

.method-item header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.method-index {
  color: #17439a;
  font-weight: 700;
  font-size: 11px;
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(23, 67, 154, 0.08);
  border: 1px solid rgba(23, 67, 154, 0.2);
}

.method-status {
  border-radius: 999px;
  font-size: 10px;
  padding: 2px 7px;
  border: 1px solid transparent;
}

.method-status-done {
  color: #0f6f3f;
  background: #e9fbf3;
  border-color: #8dd2b8;
}

.method-status-processing {
  color: #365887;
  background: #eef4ff;
  border-color: #a6c4f4;
}

.method-status-pending {
  color: #6a7890;
  background: #f4f7fc;
  border-color: #c5d5eb;
}

.method-item.method-done {
  border-color: #98d6b8;
  background: linear-gradient(180deg, #f2fdf8, #fbfffc);
}

.method-item.method-processing {
  border-left: 4px solid #6e9bf0;
}

.method-item.method-pending {
  border-left: 4px solid #b8c6dd;
}

.method-track {
  margin: 6px 0 8px;
  height: 8px;
  border-radius: 999px;
  background: #dce8ff;
  overflow: hidden;
}

.method-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1ea5d6, #2f68d6);
}

.method-focus-doc {
  color: #526a8a;
  font-size: 11px;
}

.check-item {
  border: 1px solid #d4e2f7;
  border-radius: var(--radius-sm);
  background: #f8fbff;
  padding: 9px;
}

.check-item h4 {
  margin: 0 0 6px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-item p {
  margin: 0;
  color: #42567b;
  line-height: 1.55;
  font-size: 13px;
}

.check-item ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.check-item li {
  margin: 2px 0;
}

.check-mark {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 2px solid #b8c8df;
  background: #fff;
}

.check-mark.done {
  border-color: #2ab8a8;
  background: radial-gradient(circle at center, #2ab8a8 0 45%, transparent 48% 100%), #e9fbf3;
}

.lesson-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 255, 0.98)),
    linear-gradient(90deg, rgba(47, 104, 214, 0.1), rgba(15, 111, 63, 0.08));
}

.stage-course-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 255, 0.98)),
    linear-gradient(90deg, rgba(47, 104, 214, 0.1), rgba(240, 138, 36, 0.08));
}

.panel-kicker {
  margin: 0 0 4px;
  color: #2460b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stage-course-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.stage-course-title h2 {
  margin-bottom: 6px;
}

.stage-artifacts {
  display: grid;
  gap: 8px;
  align-self: stretch;
}

.stage-artifacts a {
  border: 1px solid #cfdff8;
  border-radius: 9px;
  background: #fff;
  color: #17439a;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.stage-artifacts a:hover {
  background: #eef6ff;
  border-color: #9fc0f2;
}

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

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

.stage-format-card {
  min-height: 118px;
  border: 1px solid #d4e3f8;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  position: relative;
  overflow: hidden;
}

.stage-format-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #2f68d6, #0f6f3f, #f08a24);
}

.stage-format-card span {
  display: block;
  margin-top: 4px;
  color: #526a87;
  font-size: 11px;
}

.stage-format-card strong {
  display: block;
  margin: 5px 0;
  color: #112c57;
  font-size: 20px;
}

.stage-format-card p {
  margin: 0;
  color: #3f536e;
  font-size: 12px;
  line-height: 1.6;
}

.stage-course-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stage-course-summary,
.stage-chapter,
.stage-next-card,
.stage-daily {
  border: 1px solid #d5e3f7;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
}

.stage-course-warning {
  background: linear-gradient(180deg, #fffdf8, #ffffff);
  border-color: #efd4a7;
}

.stage-chip,
.stage-index,
.stage-state {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 800;
}

.stage-chip {
  color: #145f47;
  background: #e7f8ef;
  border: 1px solid #9bd9ba;
}

.stage-course-summary h3,
.stage-chapter h3,
.stage-next-card h3,
.stage-daily h3 {
  margin: 8px 0 6px;
  font-size: 16px;
  color: #153160;
}

.stage-course-summary p,
.stage-chapter p,
.stage-next-card p {
  margin: 0 0 8px;
  color: #354b68;
  font-size: 13px;
  line-height: 1.65;
}

.stage-course-summary ul,
.stage-chapter ul,
.stage-daily ol {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #344b6a;
  font-size: 12px;
  line-height: 1.7;
}

.stage-mini-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 10px;
}

.stage-mini-flow span {
  border: 1px solid #cfdef6;
  border-radius: 999px;
  background: #f5f9ff;
  padding: 3px 9px;
  color: #244d82;
  font-size: 11px;
  font-weight: 700;
}

.stage-mini-flow b {
  color: #6d7e98;
  font-size: 12px;
}

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

.stage-chapter {
  position: relative;
  overflow: hidden;
}

.stage-chapter::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #9fb0c9;
}

.stage-chapter.state-done::before {
  background: linear-gradient(180deg, #2ab8a8, #0f6f3f);
}

.stage-chapter.state-warn::before {
  background: linear-gradient(180deg, #f3b35c, #d97706);
}

.stage-chapter header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.stage-index {
  color: #17439a;
  background: #edf4ff;
  border: 1px solid #c9dcfb;
}

.stage-state {
  color: #145f47;
  background: #e8f8f1;
  border: 1px solid #96d5bd;
}

.stage-chapter h4 {
  margin: 10px 0 5px;
  color: #294768;
  font-size: 12px;
}

.stage-doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stage-doc-links button,
.stage-focus-btn,
.stage-next-card button {
  border: 1px solid #cbdcf4;
  border-radius: 8px;
  background: #f8fbff;
  color: #16447f;
  padding: 5px 8px;
  cursor: pointer;
  font-size: 11px;
}

.stage-doc-links button:hover,
.stage-focus-btn:hover,
.stage-next-card button:hover {
  border-color: #9fc0ef;
  background: #edf5ff;
}

.stage-output {
  margin-top: 8px !important;
  border: 1px dashed #cbdcf3;
  border-radius: 8px;
  background: #f8fbff;
  padding: 7px 8px;
  color: #24486f !important;
  font-weight: 700;
}

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

.stage-next-card {
  border-top: 4px solid #2f68d6;
}

.stage-next-card.provider-kimi {
  border-top-color: #6a4ce0;
}

.stage-next-card.provider-glm {
  border-top-color: #0ea5a3;
}

.stage-next-card.provider-mimo {
  border-top-color: #d97706;
}

.stage-next-card > span {
  color: #506684;
  font-size: 11px;
  font-weight: 800;
}

.stage-daily {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.roadmap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.lesson-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.lesson-card {
  border: 1px solid #cfdff7;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(18, 32, 57, 0.06);
  position: relative;
  overflow: hidden;
}

.lesson-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2f68d6, #1ea5d6, #0f6f3f);
}

.lesson-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin: 2px 0 8px;
}

.lesson-index,
.lesson-state {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
}

.lesson-index {
  color: #173d7f;
  background: #edf4ff;
  border: 1px solid #c9dcfb;
}

.lesson-state.strong {
  color: #0f6f3f;
  background: #e6f8ef;
  border: 1px solid #9bd9ba;
}

.lesson-state.medium {
  color: #815000;
  background: #fff3df;
  border: 1px solid #f3c57c;
}

.lesson-state.weak {
  color: #5b6c83;
  background: #f2f6fc;
  border: 1px solid #d8e2f2;
}

.lesson-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #153160;
}

.lesson-card h4 {
  margin: 0 0 6px;
  font-size: 12px;
  color: #274469;
}

.lesson-intent {
  margin: 0 0 10px;
  color: #40556f;
  font-size: 13px;
  line-height: 1.7;
}

.lesson-progress {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #dce8fb;
  margin-bottom: 10px;
}

.lesson-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1ea5d6, #2f68d6);
}

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

.lesson-columns ul,
.lesson-docs ul {
  margin: 0;
  padding-left: 18px;
  color: #3a4f6d;
  font-size: 12px;
  line-height: 1.65;
}

.lesson-provider-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0;
}

.lesson-provider-row button,
.lesson-docs button {
  border: 1px solid #d6e3f7;
  border-radius: 8px;
  background: #f8fbff;
  color: #1d3f70;
  padding: 6px 7px;
  cursor: pointer;
  font-size: 11px;
  text-align: left;
}

.lesson-provider-row button {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
}

.lesson-provider-row button strong {
  color: #0f6f3f;
}

.lesson-docs {
  border-top: 1px dashed #d8e5f6;
  padding-top: 8px;
  display: grid;
  gap: 6px;
}

.lesson-docs button:hover,
.lesson-provider-row button:hover {
  border-color: #abc8f7;
  background: #eef6ff;
}

.engineering-plan-box {
  border: 1px solid #d5e5f8;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  padding: 10px;
}

.engineering-plan-box p {
  margin: 0 0 6px;
  color: #2d4767;
  font-size: 12px;
  line-height: 1.6;
}

.engineering-plan-box ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: #334b6b;
  font-size: 12px;
  line-height: 1.65;
}

.category-item,
.topic-bar-item {
  border: 1px solid #deebff;
  border-radius: var(--radius-sm);
  background: #f8fbff;
  padding: 8px;
}

.category-head,
.topic-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

.bar-track {
  height: 10px;
  border-radius: 10px;
  background: #e0eafc;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 10px;
  background: #2f68d6;
}

.matrix-header,
.matrix-row {
  display: grid;
  grid-template-columns: 140px repeat(auto-fit, minmax(52px, 1fr));
  gap: 6px;
  align-items: center;
}

.matrix-header .matrix-cell {
  font-weight: 700;
  color: #17335f;
}

.matrix-cell {
  min-height: 34px;
  border: 1px solid #d9e4f5;
  border-radius: 6px;
  background: #f5f8fe;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
}

.matrix-row .matrix-topic-label {
  font-weight: 600;
  justify-content: flex-start;
}

.matrix-empty {
  color: #9eaec6;
  background: #f2f5fb;
}

.count-cell {
  font-weight: 700;
  color: #12315e;
}

.keyword-chip {
  border: 1px solid #d4e1f4;
  border-radius: 999px;
  background: #ecf3ff;
  color: #14355f;
  font-size: 12px;
  white-space: nowrap;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chain-diagram {
  display: flex;
  gap: 10px;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  padding: 6px 0 2px;
}

.chain-node {
  flex: 1 1 140px;
  min-height: 78px;
  padding: 10px;
  border: 1px solid #bfd2f5;
  border-radius: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.chain-node span {
  color: #17335f;
  font-weight: 700;
}

.chain-node small {
  color: #60748f;
  font-size: 12px;
}

.chain-arrow {
  align-self: center;
  color: #1d7dd1;
  font-weight: 700;
  font-size: 20px;
}

.layout {
  display: grid;
  grid-template-columns: 300px 1.35fr 1.15fr 320px;
  gap: 16px;
}

.left,
.center,
.right,
.pinned-tasks {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 12px;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow-wrap: anywhere;
}

.pinned-tasks {
  border: 1px solid #c6daff;
  background: linear-gradient(180deg, #fbfdff, #f6faff);
  max-height: calc(100vh - 28px);
  overflow: hidden;
  width: 320px;
  align-self: start;
  position: sticky;
  top: 12px;
  z-index: 1;
}

.pinned-subtitle {
  margin: 0 0 10px;
  color: #536784;
  font-size: 12px;
  line-height: 1.6;
}

.pinned-header {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

.pinned-meta {
  font-size: 11px;
  color: #4f627e;
}

.pinned-method {
  margin: 0 0 2px;
  font-weight: 600;
  color: #2f4f7f;
}

.pinned-hint {
  margin: 8px 0 0;
  color: #4f627e;
  line-height: 1.6;
}

.pinned-progress-meta {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.pinned-uncovered {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px dashed #d5e3f9;
  background: #fbfdff;
  color: #5a6f8d;
  font-size: 11px;
}

.pinned-focus-hint {
  margin-top: 8px;
  padding: 8px;
  border-radius: 10px;
  border: 1px dashed #c8dcff;
  color: #30476c;
  background: #fbfdff;
  font-size: 11px;
}

#clearPinned {
  margin-bottom: 8px;
}

.pinned-task-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  overflow: auto;
  max-height: calc(100vh - 290px);
}

.pinned-task.empty-task {
  border-style: dashed;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.86), rgba(243, 248, 255, 0.9));
}

.pinned-task {
  border: 1px solid #d9e5f8;
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 8px;
  overflow: hidden;
}

.pinned-task.done {
  border-color: #95d7be;
  background: #f3fdf8;
}

.pinned-task h4 {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.4;
}

.pinned-task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pinned-task-desc {
  margin: 0 0 6px;
  color: #344867;
  font-size: 12px;
  line-height: 1.6;
}

.pinned-badge {
  align-self: flex-start;
  font-size: 10px;
  border-radius: 999px;
  border: 1px solid #c9d8ef;
  color: #365987;
  background: #f3f8ff;
  padding: 2px 7px;
}

.pinned-badge.done {
  border-color: #9bd3ba;
  color: #0f6f3f;
  background: #e8f8f1;
}

.pinned-task p {
  margin: 0 0 8px;
  color: #4f647f;
  font-size: 12px;
  line-height: 1.6;
}

.pinned-task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pinned-task .task-meta {
  font-size: 11px;
  color: #6c7d98;
}

.pinned-task-meta {
  margin: 0;
  color: #5f7593;
  font-size: 11px;
  line-height: 1.6;
}

.pinned-task-checkpoint {
  margin: 6px 0;
  color: #304865;
  font-size: 11px;
  line-height: 1.5;
}

.pinned-task-step {
  margin: 0 0 8px;
  padding-left: 18px;
  color: #3a4f6d;
  font-size: 11px;
  line-height: 1.5;
}

.pinned-task-step li {
  margin: 2px 0;
}

.pinned-task-note {
  margin: 0 0 8px;
  color: #4f627f;
  font-size: 11px;
}

.pinned-task .task-meta button {
  color: #1b4f93;
  font-size: 11px;
  padding: 4px 8px;
}

.task-quick {
  border: 1px solid #c7d9fb;
  border-radius: 999px;
  padding: 2px 8px;
  background: #f4f8ff;
  font-size: 11px;
}

.task-quick-state.done {
  border-color: #89d9c2;
  background: #dff7ea;
}

.task-quick:hover {
  border-color: #a8c4f3;
}

.pinned-progress {
  border: 1px solid #d7e4fa;
  border-radius: 10px;
  background: #f7fbff;
  padding: 8px;
  margin-bottom: 8px;
}

.pinned-progress span {
  display: block;
  color: #324969;
  margin-bottom: 6px;
  font-size: 12px;
}

.pinned-progress strong {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: #163e71;
}



.path-story {
  border: 1px solid #dce8fc;
  background: #f8fcff;
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 12px;
  color: #2f4864;
  font-size: 13px;
  line-height: 1.7;
}

.path-story p {
  margin: 0 0 6px;
}

.path-story ul {
  margin: 0;
  padding-left: 18px;
}

.path-story li {
  margin: 4px 0;
}

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

.chip {
  border: 1px solid #d6e3f9;
  border-radius: 999px;
  background: #edf5ff;
  color: #17335f;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.chip.active {
  background: #1849aa;
  color: #fff;
}

.path-item {
  margin-bottom: 10px;
  border: 1px solid #dce7f8;
  border-radius: var(--radius-sm);
  background: #f8fcff;
  padding: 8px;
}

.path-item h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.path-item p {
  margin: 0 0 6px;
  color: #3c536f;
  font-size: 13px;
}

.path-item ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
  color: #31445e;
}

.path-item button {
  margin-top: 7px;
  border: 1px solid #c8d8ef;
  background: #fff;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}

.doc-grid {
  display: grid;
  gap: 8px;
}

.doc-card {
  border: 1px solid #d8e5f9;
  border-radius: var(--radius-sm);
  background: #fcfdff;
  padding: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.doc-card.high-value-doc {
  border-color: #a9d9c2;
  background: linear-gradient(180deg, #fbfffd, #f5fbff);
}

.doc-status-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: #526782;
  font-size: 10px;
  font-weight: 700;
}

.doc-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #a9b8cf;
}

.high-value-doc .doc-status-dot {
  background: linear-gradient(90deg, #2ab8a8, #0f6f3f);
}

.doc-card:hover {
  border-color: #b8cefb;
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.doc-card.active {
  border-color: #2c4a7b;
  background: #edf4ff;
}

.doc-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  background: #edf4ff;
  color: #1f4e96;
  border-radius: 999px;
  padding: 2px 6px;
  margin: 0 6px 6px 0;
  font-size: 11px;
}

.doc-summary {
  margin: 7px 0;
  color: #425067;
  font-size: 13px;
  line-height: 1.55;
}

.doc-card .skill-meter {
  margin-top: 6px;
}

.skill-meter {
  display: grid;
  grid-template-columns: 100px 1fr 36px;
  gap: 8px;
  align-items: center;
}

.skill-track {
  height: 7px;
  border-radius: 6px;
  background: #dce8fb;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

.skill-value {
  font-size: 12px;
  color: #426085;
}

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail {
  max-height: calc(100vh - 300px);
  overflow: auto;
  color: #233142;
}

.detail .placeholder {
  color: #6b7c93;
}

.detail pre {
  margin: 0 0 10px;
  background: #f4f7fb;
  border: 1px solid #dbe7fa;
  border-radius: 8px;
  padding: 10px;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
}

.detail code,
.detail pre {
  font-family: Consolas, "Courier New", monospace;
}

.detail section {
  margin-bottom: 12px;
}

.detail button {
  margin-right: 6px;
  margin-top: 4px;
  border: 1px solid #c5d7f0;
  background: #ffffff;
  border-radius: 8px;
  padding: 5px 10px;
  color: #153f82;
  cursor: pointer;
  transition: background 0.15s ease;
}

.detail button:hover {
  background: #edf4ff;
}

.detail h3 {
  margin: 0;
}

.detail h4 {
  margin: 10px 0 6px;
  font-size: 15px;
}

.path-note {
  margin-top: 0;
  color: #3b506f;
}

#dailyGuidance {
  margin: 0;
  color: #2d4466;
  line-height: 1.7;
  font-size: 13px;
}

footer {
  margin-top: 12px;
  color: #64738b;
  font-size: 13px;
}

@media (max-width: 1120px) {
  .hero-badges,
  .hero .filter-state-strip {
    grid-template-columns: 1fr;
  }

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

  .layout {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .insights,
  .visuals,
  .layout {
    gap: 10px;
  }

  .insights,
  .visuals {
    grid-template-columns: 1fr;
  }

  .chain-arrow {
    transform: rotate(90deg);
  }

  .left,
  .center,
  .right {
    margin-bottom: 10px;
  }

  .matrix-header,
  .matrix-row {
    grid-template-columns: 120px repeat(auto-fit, minmax(40px, 1fr));
  }

  .lesson-columns,
  .lesson-provider-row,
  .stage-course-title,
  .stage-course-map,
  .stage-chapter-grid,
  .stage-provider-next {
    grid-template-columns: 1fr;
  }

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

  .layout > .left,
  .layout > .center,
  .layout > .right,
  .layout > .pinned-tasks {
    max-height: none;
    width: auto;
    overflow: visible;
  }
}

@media (max-width: 520px) {
  .shell {
    padding: 10px;
  }

  .hero {
    padding: 12px;
  }

  .hero h1 {
    font-size: 24px;
    line-height: 1.25;
  }

  .hero p {
    font-size: 13px;
    line-height: 1.45;
  }

  .meta {
    gap: 6px;
    font-size: 12px;
  }

  .hero-badge {
    display: none;
  }

  .filter-state-item {
    padding: 5px 7px;
  }

  .filter-state-item .filter-state-label {
    margin-bottom: 1px;
  }

  .filter-state-foot {
    display: none;
  }

  .filter-state-tag {
    margin: 1px 0 4px;
  }

  .filter-state-track {
    height: 6px;
  }

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

  .stage-format-grid {
    grid-template-columns: 1fr;
  }

  .stage-format-card {
    min-height: auto;
  }

  .stage-chapter header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 1121px) {
  .left,
  .right,
  .pinned-tasks {
    position: sticky;
    top: 12px;
    align-self: start;
    max-height: calc(100vh - 28px);
    overflow: hidden;
  }

  .left .path-story,
  .left .path-list,
  .left .chips,
  .right .detail,
  .pinned-task-list {
    max-height: calc(100vh - 220px);
    overflow: auto;
  }
}

/* ChinaAI Roadmaps dark integration layer */
:root {
  --bg: #050b14;
  --surface: rgba(10, 22, 40, 0.82);
  --surface-soft: rgba(15, 31, 55, 0.74);
  --ink: #f7fbff;
  --sub: #9aaac2;
  --line: rgba(255, 255, 255, 0.12);
  --primary: #3d8bff;
  --primary-soft: rgba(61, 139, 255, 0.16);
  --accent: #00e5ff;
  --good: #22c55e;
  --warn: #f59e0b;
  --shadow-soft: 0 14px 32px rgba(0, 0, 0, 0.22);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 229, 255, 0.12), transparent 32%),
    radial-gradient(circle at 86% 20%, rgba(34, 197, 94, 0.10), transparent 30%),
    linear-gradient(180deg, #050b14 0%, #081120 52%, #050b14 100%);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle, rgba(0, 229, 255, 0.48) 0 1px, transparent 1.6px);
  background-size: 72px 72px, 72px 72px, 116px 116px;
  opacity: 0.26;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  padding: 20px;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.20);
  background:
    linear-gradient(135deg, rgba(9, 24, 47, 0.96), rgba(5, 11, 20, 0.95)),
    radial-gradient(circle at 85% 12%, rgba(34, 197, 94, 0.18), transparent 34%);
  box-shadow: 0 0 34px rgba(0, 229, 255, 0.08), var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -55% 20%;
  height: 180px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.16), transparent 62%);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.site-links a,
.stage-artifacts a {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #dff9ff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.site-links a:hover,
.stage-artifacts a:hover {
  border-color: rgba(0, 229, 255, 0.52);
  background: rgba(0, 229, 255, 0.10);
}

.eyebrow {
  color: #67e8f9;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 900px;
  margin-top: 6px;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p,
.meta,
footer,
.panel-subtitle,
.track-meta,
.doc-summary,
.path-note,
#dailyGuidance,
.pinned-subtitle,
.pinned-meta,
.pinned-hint,
.stage-format-card span,
.stage-format-card p,
.stage-course-summary p,
.stage-chapter p,
.stage-next-card p,
.provider-deep-summary,
.provider-adapter-note,
.method-item p,
.check-item p,
.lesson-intent,
.engineering-plan-box p,
.detail .placeholder {
  color: var(--sub);
}

#providerHint,
.hero-badge {
  color: #e9fbff;
  background: rgba(0, 229, 255, 0.10);
  border-color: rgba(0, 229, 255, 0.24);
}

.toolbar {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 17, 32, 0.72);
  box-shadow: var(--shadow-soft);
}

#searchInput,
#sortSelect,
#topicSelect,
#providerSelect {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(4, 11, 23, 0.86);
  color: var(--ink);
}

#searchInput::placeholder {
  color: rgba(154, 170, 194, 0.82);
}

#count {
  color: #9fe7ff;
}

.meta button,
.toolbar button,
.path-item button,
.track-card button,
.detail button,
.empty-state button,
.method-item button,
.provider-focus-btn,
.stage-doc-links button,
.stage-focus-btn,
.stage-next-card button,
.lesson-provider-row button,
.lesson-docs button,
.task-quick {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #e9fbff;
  box-shadow: none;
}

.meta button:hover,
.toolbar button:hover,
.path-item button:hover,
.track-card button:hover,
.detail button:hover,
.empty-state button:hover,
.method-item button:hover,
.provider-focus-btn:hover,
.stage-doc-links button:hover,
.stage-focus-btn:hover,
.stage-next-card button:hover,
.lesson-provider-row button:hover,
.lesson-docs button:hover {
  border-color: rgba(0, 229, 255, 0.48);
  background: rgba(0, 229, 255, 0.10);
}

.stat-card,
.panel,
.left,
.center,
.right,
.pinned-tasks,
.track-card,
.roadmap-stage,
.provider-deep-card,
.provider-feature-item,
.method-item,
.check-item,
.lesson-card,
.engineering-plan-box,
.category-item,
.topic-bar-item,
.chain-node,
.path-story,
.path-item,
.doc-card,
.detail,
.stage-format-card,
.stage-course-summary,
.stage-chapter,
.stage-next-card,
.stage-daily,
.empty-state,
.pinned-progress,
.pinned-task,
.pinned-focus-hint,
.pinned-uncovered,
.filter-state-item {
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(15, 31, 55, 0.82), rgba(8, 17, 32, 0.86));
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.lesson-panel,
.stage-course-panel,
.pinned-tasks,
.pinned-task.done,
.stage-daily,
.doc-card.high-value-doc {
  background:
    linear-gradient(180deg, rgba(15, 31, 55, 0.88), rgba(8, 17, 32, 0.90)),
    radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.12), transparent 38%);
}

.stat-card h3,
.panel h2,
.left h2,
.center h2,
.right h2,
.stat-card p,
.track-card h3,
.doc-card h3,
.detail h3,
.detail h4,
.stage-course-summary h3,
.stage-chapter h3,
.stage-next-card h3,
.stage-format-card strong,
.lesson-card h3,
.lesson-card h4,
.method-item h4,
.chain-node span,
.provider-deep-header h3,
.check-item h4,
.pinned-task h4,
.path-item h3 {
  color: var(--ink);
}

.filter-state-item strong,
.matrix-header .matrix-cell,
.count-cell,
.stage-chip,
.stage-index,
.stage-state,
.lesson-index,
.lesson-state,
.method-index,
.provider-feature-title strong,
.skill-value,
.pinned-progress strong {
  color: #eafcff;
}

.filter-state-foot,
.provider-feature-foot,
.chain-node small,
.stage-course-summary ul,
.stage-chapter ul,
.stage-daily ol,
.track-list,
.lesson-columns ul,
.lesson-docs ul,
.engineering-plan-box ul,
.path-item p,
.path-item ul,
.detail,
.pinned-task p,
.pinned-task-desc,
.pinned-task-note,
.pinned-task-step,
.pinned-task-checkpoint {
  color: var(--sub);
}

.chip,
.keyword-chip,
.tag,
.road-tag,
.stage-mini-flow span,
.provider-focus-tags span,
.roadmap-legend .legend-item,
.pinned-badge,
.method-status,
.provider-feature-state {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: #dff9ff;
}

.chip.active,
.provider-chip.active,
.focus-active {
  border-color: rgba(0, 229, 255, 0.55) !important;
  background: linear-gradient(90deg, rgba(61, 139, 255, 0.86), rgba(0, 229, 255, 0.42)) !important;
  color: #ffffff !important;
}

.provider-chip {
  border-color: color-mix(in oklab, var(--provider-chip-color, #3d8bff) 60%, rgba(255, 255, 255, 0.22) 40%);
  background: color-mix(in oklab, var(--provider-chip-color, #3d8bff) 20%, rgba(8, 17, 32, 0.92) 80%);
  color: #f3fbff;
}

.bar-track,
.skill-track,
.roadmap-progress,
.method-track,
.legend-progress,
.filter-state-track,
.provider-feature-bar,
.lesson-progress {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
}

.skill-fill,
.bar-fill,
.roadmap-progress > span,
.method-track span,
.legend-progress span,
.lesson-progress span {
  background: linear-gradient(90deg, #3d8bff, #00e5ff, #22c55e);
}

.matrix-cell {
  border-color: rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  color: var(--sub);
}

.matrix-empty {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(154, 170, 194, 0.55);
}

.detail pre {
  border-color: rgba(0, 229, 255, 0.15);
  background: rgba(0, 0, 0, 0.28);
  color: #dff9ff;
}

.detail a {
  color: #67e8f9;
}

.roadmap-stage::after {
  border-left-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 640px) {
  .shell {
    padding: 12px;
  }

  .site-links {
    gap: 6px;
  }

  .site-links a {
    padding: 5px 8px;
    font-size: 11px;
  }

  .toolbar {
    padding: 8px;
  }
}

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