/* Topic browser, topic cards, and level progress styles. */

/* =========================
   8. TOPIC SELECTOR + BROWSER
   ========================= */

.topic-selector {
  margin-bottom: 20px;
  padding: 12px 16px;
  display: flex;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
}

.topic-selector select {
  max-width: 100%;
  box-sizing: border-box;
}

.reset-topic-btn {
  background: #ffc107;
  color: #1e3c72;
  border: none;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.7rem;
  cursor: pointer;
  margin-left: 10px;
  font-weight: bold;
}

.reset-topic-btn:hover {
  background: #e0a800;
}

.topic-browser {
  margin: 14px 0 18px;
}

.topic-category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.topic-category-tab {
  position: relative;
  overflow: visible;
  background: rgba(255,255,255,0.72);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 7px 13px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.topic-category-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.topic-category-tab:active {
  transform: scale(0.97);
}

.topic-category-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: transparent;
  box-shadow:
    0 10px 20px rgba(79,107,255,0.18),
    0 0 0 1px rgba(255,255,255,0.16) inset;
}

.topic-category-tab .category-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
}

.topic-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  align-items: stretch;
}

.topic-card {
  width: 100%;
  max-width: 100%;
  min-height: 68px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px 11px;
  cursor: pointer;
  box-shadow: none;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.topic-card.has-cover {
  display: grid;
  grid-template-columns: minmax(88px, 31%) minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
}

.topic-card-cover {
  display: block;
  min-height: 84px;
  background: #e9eef8;
}

.topic-card-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-card-copy {
  display: block;
  min-width: 0;
  padding: 9px 11px;
}

.topic-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.topic-card:active {
  transform: scale(0.97);
}

.topic-card.active {
  background: rgba(79,107,255,0.08);
  border: 1px solid rgba(79,107,255,0.28);
  box-shadow:
    0 10px 22px rgba(79,107,255,0.14),
    0 0 0 1px rgba(255,255,255,0.16) inset;
}

.topic-card.locked {
  opacity: 0.45;
  cursor: not-allowed;
}

.learning-course-cover-catalog {
  width: min(1180px, 100%);
  min-height: calc(100vh - 28px);
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(69, 92, 154, 0.18);
  border-radius: 8px;
  background: rgba(247, 250, 255, 0.98);
  box-shadow: 0 18px 46px rgba(38, 54, 105, 0.14);
}

.learning-course-cover-catalog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.learning-course-cover-catalog-header span {
  color: #4f63ac;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.learning-course-cover-catalog-header h2 {
  margin: 2px 0 0;
  color: var(--text);
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  letter-spacing: 0;
}

.learning-course-cover-catalog-header p {
  margin: 3px 0 0;
  color: var(--muted);
}

.learning-course-cover-catalog-close {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(69, 92, 154, 0.18);
  border-radius: 50%;
  background: #fff;
  color: #52617d;
  font-size: 1.8rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(38, 54, 105, 0.1);
}

.learning-course-cover-catalog-progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #52617d;
  font-size: 0.82rem;
}

.learning-course-cover-catalog-progress i {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe5f2;
}

.learning-course-cover-catalog-progress i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3150f5, #ecb63f);
}

.learning-course-cover-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.learning-course-cover-catalog-card.has-cover {
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  border-radius: 8px;
  background: #fff;
}

.learning-course-cover-catalog-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e9eef8;
}

.learning-course-cover-catalog-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.learning-course-cover-catalog-copy {
  position: relative;
  display: grid;
  min-height: 86px;
  gap: 6px;
  padding: 11px 12px 12px 46px;
}

.learning-course-cover-catalog-copy strong {
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.25;
}

.learning-course-cover-catalog-number {
  position: absolute;
  top: 11px;
  left: 12px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #edf1ff;
  color: #3150f5;
  font-size: 0.76rem;
  font-weight: 900;
}

.topic-card-title {
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.22;
  letter-spacing: 0;
  font-size: 0.9rem;
}

.topic-card-meta {
  font-size: 0.75rem;
}

.topic-browser-toggle {
  margin: 10px 0;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  color: #1e3c72;
}

.topic-journey-v2-open-btn {
  margin-left: 8px;
  border: 1px solid rgba(49, 80, 245, 0.24);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(238, 242, 255, 0.98));
  box-shadow: 0 8px 16px rgba(49, 80, 245, 0.08);
}

.topic-journey-v2-open-btn:hover {
  color: #1f36d5;
  transform: translateY(-1px);
}

.topic-search-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.topic-search-btn {
  border: 1px solid #ddd;
  background: #f1f3f5;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 16px;
}

.topic-journey-v2-entry {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(49, 80, 245, 0.24);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(238, 242, 255, 0.98));
  color: #1e3c72;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(49, 80, 245, 0.08);
}

.topic-journey-v2-entry:hover {
  border-color: rgba(49, 80, 245, 0.38);
  color: #1f36d5;
  transform: translateY(-1px);
}

.topic-search {
  width: 100%;
  flex: 1;
  padding: 6px 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.topic-back-btn {
  padding: 7px 12px;
  font-weight: 700;
  border-radius: 999px;
}

.topic-category-tab .category-label {
  position: relative;
  z-index: 2;
  display: inline-block;
}

.topic-category-tab .category-progress {
  z-index: 1;
}
.exercise-nav-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}

.exercise-nav-btn {
  background: rgba(255,255,255,0.82) !important;
  color: #1f2b49 !important;
  border: 1px solid rgba(130,148,190,0.18) !important;
  border-radius: 999px !important;
  padding: 8px 14px !important;
  font-size: 0.85rem !important;
  font-weight: 700;
  box-shadow: none !important;
}

.exercise-nav-btn:hover {
  background: rgba(79,107,255,0.06) !important;
  border-color: rgba(79,107,255,0.28) !important;
  transform: translateY(-1px);
}
.question-card {
  touch-action: pan-y;
}
.exercise-nav-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(79,107,255,0.08);
  color: #24345f;
  font-size: 0.85rem;
  font-weight: 800;
  border: 1px solid rgba(130,148,190,0.18);
}

.exercise-nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.exercise-progress-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin: 3px 0 5px;
}

.exercise-progress-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0;
  border: none;
  box-shadow: none;
  line-height: 1;
  opacity: 0.42;
}

.exercise-progress-chip.solved {
  background: rgba(46, 170, 92, 0.07);
  color: rgba(47, 138, 83, 0.88);
}

.exercise-progress-chip.skipped {
  background: rgba(255, 184, 77, 0.08);
  color: rgba(154, 101, 0, 0.82);
}

.stage-btn-label {
  position: relative;
  z-index: 1;
}

.stage-skipped-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 8px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 184, 77, 0.16);
  color: #9a6500;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.stage-btn.active .stage-skipped-badge {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.stage-btn.completed .stage-skipped-badge {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.topic-card-status {
  margin-top: 2px;
  font-size: 0.62rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 999px;
  opacity: 0.65;
}

.topic-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 22px;
}

.topic-card-stats {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: #70809f;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.topic-card-stats span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(130,148,190,0.16);
}

.topic-card-status--done {
  background: rgba(46, 170, 92, 0.08);
  color: #2f8a53;
}

.topic-card-status--progress {
  background: rgba(255, 184, 77, 0.10);
  color: #9a6500;
}

.topic-card-status--updated {
  background: rgba(112, 90, 255, 0.10);
  color: #5e4ce8;
  opacity: 0.9;
}

.topic-card-status--new {
  background: rgba(79,107,255,0.07);
  color: #4d5c7f;
}

.topic-card-status--locked {
  background: rgba(220, 53, 69, 0.08);
  color: #9f1d2d;
}

.guest-topic-level-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
  align-items: center;
  gap: 10px;
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.4;
}

.guest-topic-level-picker select {
  width: 100%;
  min-width: 0;
}

@media (max-width: 560px) {
  .guest-topic-level-picker {
    grid-template-columns: 1fr;
  }
}

.topic-level-complete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(46, 170, 92, 0.18);
  border-radius: 12px;
  background: rgba(46, 170, 92, 0.07);
  color: var(--text);
}

.topic-level-complete strong,
.topic-level-complete span {
  display: block;
}

.topic-level-complete strong {
  font-size: 0.86rem;
  margin-bottom: 2px;
}

.topic-level-complete span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.topic-level-complete button {
  flex: 0 0 auto;
  border: 1px solid rgba(46, 170, 92, 0.28);
  background: #fff;
  color: #236d42;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 800;
  font-size: 0.78rem;
}

.topic-level-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(99, 91, 255, 0.16);
  border-radius: 12px;
  background: rgba(79, 107, 255, 0.06);
  color: var(--text);
}

.topic-level-switch strong,
.topic-level-switch span {
  display: block;
}

.topic-level-switch strong {
  font-size: 0.86rem;
  margin-bottom: 2px;
}

.topic-level-switch span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.topic-level-switch button {
  flex: 0 0 auto;
  border: 1px solid rgba(99, 91, 255, 0.24);
  background: #fff;
  color: #4248a9;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 800;
  font-size: 0.78rem;
}

.topic-daily-goal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 8px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(99, 91, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
}

.topic-daily-goal.done {
  border-color: rgba(47, 191, 143, 0.24);
  background: rgba(47, 191, 143, 0.08);
}

.topic-daily-goal strong,
.topic-daily-goal span {
  display: block;
}

.topic-daily-goal strong {
  font-size: 0.86rem;
  margin-bottom: 2px;
}

.topic-daily-goal span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.topic-daily-goal-meter {
  min-width: 88px;
  display: grid;
  gap: 5px;
  justify-items: end;
}

.topic-daily-goal-meter b {
  color: #4248a9;
  font-size: 0.82rem;
  font-weight: 900;
}

.topic-daily-goal.done .topic-daily-goal-meter b {
  color: #24785d;
}

.topic-daily-goal-meter i {
  width: 86px;
  height: 5px;
  overflow: visible;
  border-radius: 999px;
  background: rgba(130, 148, 190, 0.16);
}

.topic-daily-goal-meter em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6f64ff, #2fbf8f);
}

.topic-continue-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 8px 0 12px;
  padding: 12px;
  border: 1px solid rgba(99, 91, 255, 0.20);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(99, 91, 255, 0.10), rgba(255, 255, 255, 0.82)),
    rgba(255, 255, 255, 0.74);
  color: var(--text);
}

.topic-continue-main,
.topic-continue-main strong,
.topic-continue-main span {
  display: block;
  min-width: 0;
}

.topic-continue-kicker {
  width: fit-content;
  margin-bottom: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(99, 91, 255, 0.12);
  color: #5247d8;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.topic-continue-main strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.2;
}

.topic-continue-main span:not(.topic-continue-kicker) {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.topic-continue-side {
  min-width: 112px;
  display: grid;
  gap: 6px;
  justify-items: end;
}

.topic-continue-side span {
  color: #4248a9;
  font-size: 0.82rem;
  font-weight: 900;
}

.topic-continue-side i {
  width: 96px;
  height: 5px;
  overflow: visible;
  border-radius: 999px;
  background: rgba(130, 148, 190, 0.16);
}

.topic-continue-side em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6f64ff, #2fbf8f);
}

.topic-continue-side button {
  min-height: 34px;
  border: 1px solid rgba(99, 91, 255, 0.28);
  border-radius: 10px;
  padding: 7px 10px;
  background: #fff;
  color: #4248a9;
  font-size: 0.78rem;
  font-weight: 900;
}

.topic-start-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 8px 0 12px;
  padding: 12px;
  border: 1px solid rgba(47, 191, 143, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(47, 191, 143, 0.10), rgba(99, 91, 255, 0.07)),
    rgba(255, 255, 255, 0.78);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(31, 41, 80, 0.06);
}

.topic-start-guide-main,
.topic-start-guide-main strong,
.topic-start-guide-main span {
  display: block;
  min-width: 0;
}

.topic-start-guide-kicker {
  width: fit-content;
  margin-bottom: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(47, 191, 143, 0.14);
  color: #24785d;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.topic-start-guide-main strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.2;
}

.topic-start-guide-main span:not(.topic-start-guide-kicker) {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.topic-start-guide-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.topic-start-guide-actions button {
  min-height: 36px;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

#topicStartGuideBeginBtn {
  border: 1px solid rgba(47, 191, 143, 0.36);
  background: #2fbf8f;
  color: #fff;
  box-shadow: 0 8px 18px rgba(47, 191, 143, 0.18);
}

#topicStartGuideLevelBtn {
  border: 1px solid rgba(99, 91, 255, 0.24);
  background: rgba(255, 255, 255, 0.9);
  color: #4248a9;
}

.topic-journey {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 8px 0 12px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(99, 91, 255, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.96), transparent 34%),
    linear-gradient(rgba(91, 111, 160, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 111, 160, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, transparent 0 78%, rgba(83, 112, 179, 0.10) 78% 80%, transparent 80%),
    linear-gradient(135deg, rgba(235, 240, 255, 0.96), rgba(255, 255, 255, 0.86) 45%, rgba(239, 253, 248, 0.82));
  background-size: auto, 22px 22px, 22px 22px, auto, auto;
  box-shadow: 0 14px 34px rgba(45, 56, 106, 0.08);
}

.topic-journey::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  height: 28px;
  pointer-events: none;
  opacity: 0.18;
  background:
    linear-gradient(to top, #5267a7 0 100%) 0 16px / 18px 12px,
    linear-gradient(to top, #5267a7 0 100%) 24px 10px / 20px 18px,
    linear-gradient(to top, #5267a7 0 100%) 52px 4px / 16px 24px,
    linear-gradient(to top, #5267a7 0 100%) 76px 13px / 28px 15px,
    linear-gradient(to top, #5267a7 0 100%) 112px 8px / 18px 20px,
    linear-gradient(to top, #5267a7 0 100%) 140px 14px / 34px 14px;
  background-repeat: repeat-x;
  border-radius: 8px;
}

.topic-journey::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 130px;
  height: 70px;
  pointer-events: none;
  opacity: 0.2;
  background:
    linear-gradient(90deg, transparent 0 18%, #d23b3b 18% 82%, transparent 82%),
    linear-gradient(#2f3d78, #2f3d78);
  background-size: 100% 18px, 78px 32px;
  background-position: 0 38px, 26px 18px;
  background-repeat: no-repeat;
  border-radius: 18px;
}

.topic-journey-hero,
.topic-journey-copy,
.topic-journey-next {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.topic-journey-hero {
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
}

.topic-journey-hero img {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(69, 76, 122, 0.16));
}

.topic-journey-kicker,
.topic-journey-next span {
  width: fit-content;
  border-radius: 999px;
  color: #4248a9;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topic-journey-copy strong,
.topic-journey-next strong {
  overflow: hidden;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-journey-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.topic-journey-next {
  justify-items: stretch;
  text-align: left;
}

.topic-journey-next button {
  min-height: 34px;
  border: 1px solid rgba(99, 91, 255, 0.24);
  border-radius: 10px;
  padding: 7px 12px;
  background: linear-gradient(135deg, #5c6cff, #7b55f7);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(92, 108, 255, 0.18);
}

.topic-journey-track {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  height: 6px;
  overflow: visible;
  border-radius: 999px;
  background: rgba(130, 148, 190, 0.16);
}

.topic-journey-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5c6cff, #2fbf8f);
}

.topic-journey-bus-marker {
  position: absolute;
  top: 50%;
  width: 34px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(46, 61, 103, 0.2));
  transform: translate(-50%, -56%);
  transition: left 0.32s ease;
  animation: topicJourneyBusFloat 2.8s ease-in-out infinite;
}

.topic-journey-stats {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.topic-journey-stats span {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  padding: 6px 7px;
  border: 1px solid rgba(130, 148, 190, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.topic-journey-stats b {
  color: #4248a9;
  font-size: 0.78rem;
}

.topic-journey-nav-pair {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.topic-journey-next-stop {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid rgba(99, 91, 255, 0.16);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(92, 108, 255, 0.1), rgba(47, 191, 143, 0.08));
  text-align: center;
}

.topic-journey-next-stop span,
.topic-journey-next-stop small {
  color: #65718c;
  font-size: 0.6rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.topic-journey-next-stop strong {
  min-width: 0;
  overflow: hidden;
  color: #303b70;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-journey-next-stop small {
  color: #4248a9;
}

.topic-journey-segment {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 7px 10px;
  border: 1px solid rgba(130, 148, 190, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
  text-align: center;
}

.topic-journey-segment span {
  color: #687590;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.topic-journey-segment strong {
  min-width: 0;
  overflow: hidden;
  color: #33446f;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-journey-window {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(130, 148, 190, 0.13);
}

.topic-journey-window span {
  position: absolute;
  top: 0;
  bottom: 0;
  min-width: 18px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(92, 108, 255, 0.78), rgba(47, 191, 143, 0.78));
}

.topic-journey-finish {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 7px 10px;
  border: 1px solid rgba(47, 191, 143, 0.18);
  border-radius: 10px;
  background: rgba(235, 255, 247, 0.54);
  text-align: center;
}

.topic-journey-finish span {
  color: #148662;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.topic-journey-finish strong {
  min-width: 0;
  overflow: hidden;
  color: #245b4b;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .topic-journey-nav-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }
}

.topic-journey-hint {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  margin: -1px 0 -3px;
  color: #687590;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.topic-journey-zone-legend {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: -1px 0 -2px;
}

.topic-journey-zone-key {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid rgba(130, 148, 190, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #59647c;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
}

.topic-journey-zone-key i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #5c6cff;
}

.topic-journey-zone-key.zone-1 i { background: #d97706; }
.topic-journey-zone-key.zone-2 i { background: #0f9f75; }
.topic-journey-zone-key.zone-3 i { background: #2563eb; }
.topic-journey-zone-key.zone-4 i { background: #16a34a; }
.topic-journey-zone-key.zone-5 i { background: #0891b2; }
.topic-journey-zone-key.zone-6 i { background: #dc2626; }
.topic-journey-zone-key.zone-7 i { background: #7c3aed; }
.topic-journey-zone-key.zone-8 i { background: #64748b; }

.topic-journey-milestones {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: -6px;
  color: #74809b;
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.topic-journey-map-stage {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  min-height: 118px;
  display: grid;
  gap: 12px;
  padding: 18px 8px 10px;
  border: 1px solid rgba(130, 148, 190, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.3);
}

.topic-journey-expanded {
  position: relative;
  z-index: 2140;
  width: min(1360px, calc(100vw - 56px));
  max-width: calc(100vw - 56px);
  box-sizing: border-box;
  grid-template-columns: minmax(210px, 252px) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 16px;
}

.topic-journey-expanded::before {
  left: 18px;
  right: 18px;
  bottom: 12px;
  height: 54px;
  opacity: 0.24;
  background:
    linear-gradient(to top, rgba(82, 103, 167, 0.98) 0 100%) 0 34px / 26px 24px,
    linear-gradient(to top, rgba(82, 103, 167, 0.92) 0 100%) 34px 22px / 22px 36px,
    linear-gradient(to top, rgba(82, 103, 167, 0.9) 0 100%) 68px 10px / 18px 48px,
    linear-gradient(to top, rgba(82, 103, 167, 0.9) 0 100%) 98px 28px / 34px 30px,
    linear-gradient(to top, rgba(82, 103, 167, 0.88) 0 100%) 146px 18px / 24px 40px,
    linear-gradient(90deg, rgba(92, 108, 255, 0.32), rgba(8, 145, 178, 0.22), rgba(47, 191, 143, 0.26)) 0 56px / 100% 6px;
  background-repeat: repeat-x, repeat-x, repeat-x, repeat-x, repeat-x, no-repeat;
}

.topic-journey-expanded::after {
  right: 36px;
  bottom: 32px;
  width: 136px;
  height: 72px;
  opacity: 0.22;
  filter: drop-shadow(0 14px 16px rgba(54, 66, 118, 0.12));
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0 9px, rgba(255, 255, 255, 0.18) 9px 15px) 34px 27px / 68px 15px,
    linear-gradient(90deg, transparent 0 10%, rgba(210, 59, 59, 0.92) 10% 90%, transparent 90%) 0 45px / 100% 20px,
    linear-gradient(rgba(47, 61, 120, 0.78), rgba(47, 61, 120, 0.78)) 24px 20px / 86px 34px;
  background-repeat: no-repeat;
  border-radius: 20px;
}

body.journey-map-expanded-active #topicBrowser {
  position: relative;
  z-index: 2140;
  overflow: visible;
}

body.journey-map-expanded-active .trainer-panel {
  position: relative;
  z-index: 2140;
  min-height: 0;
  align-self: flex-start;
  overflow: visible;
}

body.journey-map-expanded-active #textPanel {
  opacity: 0;
  filter: saturate(0.45);
  pointer-events: none;
  transition: opacity 0.18s ease, filter 0.18s ease;
}

body.journey-map-expanded-active #topicBrowser > .topic-search-bar,
body.journey-map-expanded-active #topicBrowser > .topic-level-switch,
body.journey-map-expanded-active #topicBrowser > .topic-daily-goal,
body.journey-map-expanded-active #topicBrowser > .topic-continue-card,
body.journey-map-expanded-active #topicBrowser > .topic-start-guide,
body.journey-map-expanded-active #topicBrowser > .topic-category-tabs,
body.journey-map-expanded-active #topicBrowser > .guest-topic-level-picker,
body.journey-map-expanded-active #topicBrowser > .topic-level-complete,
body.journey-map-expanded-active #topicBrowser > .topic-card-list {
  display: none;
}

body.journey-map-expanded-active .trainer-panel > .app-heading-row,
body.journey-map-expanded-active #mainApp > .user-bar,
body.journey-map-expanded-active #mainApp > #toggleTopicBrowserBtn,
body.journey-map-expanded-active #mainApp > #openJourneyMapV2Btn {
  display: none;
}

body.journey-map-expanded-active .guest-soft-signup-prompt {
  display: none;
}

body.journey-map-expanded-active #mainApp > .practice-top-row,
body.journey-map-expanded-active #mainApp > #topicProgressContainer,
body.journey-map-expanded-active #mainApp > #mobileScrollHint,
body.journey-map-expanded-active #mainApp > #mainContent {
  display: none;
}

body.journey-map-expanded-active #mobileSplitHandle {
  display: none !important;
}

.topic-journey-expanded {
  overflow: visible;
}

.topic-journey-expanded .topic-journey-hero,
.topic-journey-expanded .topic-journey-next,
.topic-journey-expanded .topic-journey-track,
.topic-journey-expanded .topic-journey-stats,
.topic-journey-expanded .topic-journey-nav-pair,
.topic-journey-expanded .topic-journey-segment,
.topic-journey-expanded .topic-journey-window,
.topic-journey-expanded .topic-journey-hint,
.topic-journey-expanded .topic-journey-zone-legend,
.topic-journey-expanded .topic-journey-milestones {
  grid-column: 1;
}

.topic-journey-expanded .topic-journey-stats,
.topic-journey-expanded .topic-journey-nav-pair {
  grid-template-columns: minmax(0, 1fr);
}

.topic-journey-expanded .topic-journey-stats {
  position: relative;
  z-index: 2142;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  margin-top: -128px;
  padding: 7px 10px;
  border: 1px solid rgba(130, 148, 190, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(54, 66, 118, 0.09);
}

.topic-journey-expanded .topic-journey-stats span {
  position: relative;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.topic-journey-expanded .topic-journey-stats span::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #5c6cff;
  box-shadow: 0 5px 12px rgba(54, 66, 118, 0.16);
}

.topic-journey-expanded .topic-journey-stats span:nth-child(1)::before {
  background: linear-gradient(135deg, #2fbf8f, #16a34a);
}

.topic-journey-expanded .topic-journey-stats span:nth-child(2)::before {
  background: linear-gradient(135deg, #5c6cff, #7c3aed);
}

.topic-journey-expanded .topic-journey-stats span:nth-child(3)::before {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.topic-journey-expanded .topic-journey-stats b {
  font-size: 0.86rem;
}

.topic-journey-expanded .topic-journey-nav-pair,
.topic-journey-expanded .topic-journey-segment,
.topic-journey-expanded .topic-journey-window,
.topic-journey-expanded .topic-journey-hint,
.topic-journey-expanded .topic-journey-zone-legend,
.topic-journey-expanded .topic-journey-milestones {
  display: none;
}

.topic-journey-expanded .topic-journey-next {
  gap: 8px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(130, 148, 190, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(54, 66, 118, 0.09);
}

.topic-journey-expanded .topic-journey-next::before {
  content: "";
  display: block;
  height: 82px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(20, 32, 59, 0.12)),
    url("/icons/auth-welcome-london.webp") center 48% / cover no-repeat;
}

.topic-journey-expanded .topic-journey-next strong {
  min-height: 2.4em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: clip;
  white-space: normal;
}

.topic-journey-expanded .topic-journey-track {
  box-sizing: border-box;
  height: 28px;
  margin-top: -6px;
  padding: 10px 10px;
  border: 1px solid rgba(130, 148, 190, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 24px rgba(54, 66, 118, 0.08);
}

.topic-journey-expanded .topic-journey-track span {
  height: 8px;
  background: linear-gradient(90deg, #5c6cff, #2fbf8f);
}

.topic-journey-expanded .topic-journey-bus-marker {
  width: 40px;
  height: 28px;
  filter: drop-shadow(0 8px 12px rgba(46, 61, 103, 0.2));
}

.topic-journey-expanded .topic-journey-map-stage {
  position: relative;
  z-index: 2141;
  grid-column: 2;
  grid-row: 1 / span 10;
  width: 100%;
  max-width: 100%;
  min-height: clamp(528px, 66vh, 680px);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 18px 14px 28px;
  border-color: rgba(92, 108, 255, 0.14);
  background:
    radial-gradient(ellipse at 14% 78%, rgba(47, 191, 143, 0.14) 0 18%, transparent 38%),
    radial-gradient(ellipse at 86% 18%, rgba(14, 165, 233, 0.12) 0 16%, transparent 34%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.44) 0 18%, transparent 18% 55%, rgba(255, 255, 255, 0.34) 55% 72%, transparent 72% 100%),
    linear-gradient(135deg, rgba(252, 254, 255, 0.995), rgba(239, 247, 252, 0.988)),
    #f8fbff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.68),
    0 18px 42px rgba(54, 66, 118, 0.18);
}

.topic-journey-expanded .topic-journey-map-stage::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 0;
  border-radius: 10px;
  background-image:
    linear-gradient(32deg, transparent 0 46%, rgba(51, 68, 111, 0.06) 46% 48%, rgba(255, 255, 255, 0.42) 48% 49.5%, transparent 49.5% 100%),
    linear-gradient(-28deg, transparent 0 43%, rgba(8, 145, 178, 0.052) 43% 45%, rgba(255, 255, 255, 0.36) 45% 46.5%, transparent 46.5% 100%),
    linear-gradient(105deg, transparent 0 51%, rgba(217, 119, 6, 0.048) 51% 53%, rgba(255, 255, 255, 0.34) 53% 54.5%, transparent 54.5% 100%),
    repeating-linear-gradient(90deg, transparent 0 70px, rgba(255, 255, 255, 0.32) 70px 78px, transparent 78px 138px),
    repeating-linear-gradient(0deg, transparent 0 56px, rgba(255, 255, 255, 0.28) 56px 62px, transparent 62px 116px),
    linear-gradient(rgba(92, 108, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 108, 255, 0.075) 1px, transparent 1px);
  background-position: 0 0, 22px 18px, 8px 30px, 14px 0, 0 12px, 0 0, 0 0;
  background-size: 230px 142px, 196px 128px, 268px 156px, 156px 100%, 100% 132px, 42px 42px, 42px 42px;
  pointer-events: none;
}

.topic-journey-expanded .topic-journey-map-stage::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 0;
  border-radius: 10px;
  background-image:
    radial-gradient(ellipse at 15% 76%, rgba(47, 191, 143, 0.3) 0 7.5%, rgba(47, 191, 143, 0.11) 8% 12%, transparent 12.5%),
    radial-gradient(ellipse at 82% 24%, rgba(47, 191, 143, 0.2) 0 7%, rgba(47, 191, 143, 0.08) 7.5% 11%, transparent 11.5%),
    radial-gradient(ellipse at 58% 82%, rgba(8, 145, 178, 0.18) 0 9%, rgba(14, 165, 233, 0.08) 9.5% 13%, transparent 13.5%),
    radial-gradient(ellipse at 34% 91%, rgba(47, 191, 143, 0.16) 0 6%, rgba(47, 191, 143, 0.07) 6.5% 10%, transparent 10.5%),
    linear-gradient(90deg, transparent 0 7%, rgba(217, 119, 6, 0.055) 7% 15%, transparent 15% 32%, rgba(92, 108, 255, 0.05) 32% 44%, transparent 44% 68%, rgba(8, 145, 178, 0.052) 68% 78%, transparent 78% 100%),
    linear-gradient(180deg, transparent 0 17%, rgba(255, 255, 255, 0.42) 17% 27%, transparent 27% 58%, rgba(255, 255, 255, 0.34) 58% 68%, transparent 68% 100%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.58) 0 21%, transparent 21% 100%),
    linear-gradient(32deg, transparent 0 42%, rgba(255, 255, 255, 0.58) 42% 47%, transparent 47% 100%),
    repeating-linear-gradient(90deg, transparent 0 54px, rgba(51, 68, 111, 0.04) 54px 56px, transparent 56px 74px),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(51, 68, 111, 0.038) 34px 36px, transparent 36px 52px);
  opacity: 1;
  pointer-events: none;
}

.topic-journey-thames {
  display: none;
}

.topic-journey-map-bus {
  display: none;
}

.topic-journey-map-cab {
  display: none;
}

.topic-journey-map-phone {
  display: none;
}

.topic-journey-expanded .topic-journey-map-bus {
  position: absolute;
  left: 9%;
  bottom: 34px;
  z-index: 1;
  display: block;
  width: 126px;
  height: auto;
  opacity: 0.84;
  filter: drop-shadow(0 15px 18px rgba(54, 66, 118, 0.16));
  transform: rotate(-5deg);
  pointer-events: none;
}

.topic-journey-expanded .topic-journey-map-cab {
  position: absolute;
  right: 11%;
  bottom: 48px;
  z-index: 1;
  display: block;
  width: 92px;
  height: auto;
  opacity: 0.72;
  filter: drop-shadow(0 14px 18px rgba(54, 66, 118, 0.14));
  transform: rotate(4deg);
  pointer-events: none;
}

.topic-journey-expanded .topic-journey-map-phone {
  position: absolute;
  right: 18%;
  top: 190px;
  z-index: 1;
  display: block;
  width: 46px;
  height: auto;
  opacity: 0.56;
  filter: drop-shadow(0 10px 14px rgba(54, 66, 118, 0.12));
  transform: rotate(3deg);
  pointer-events: none;
}

.topic-journey-expanded .topic-journey-thames {
  position: absolute;
  left: -5%;
  right: -7%;
  bottom: 18px;
  z-index: 1;
  display: block;
  height: 92px;
  overflow: visible;
  color: transparent;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-align: right;
  text-transform: uppercase;
  text-shadow: none;
  transform: rotate(-4deg);
  opacity: 1;
  pointer-events: none;
}

.topic-journey-expanded .topic-journey-thames::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 24px;
  z-index: -1;
  height: 42px;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      transparent 0 6%,
      rgba(8, 145, 178, 0.3) 6% 16%,
      rgba(14, 165, 233, 0.5) 16% 29%,
      rgba(8, 145, 178, 0.34) 29% 42%,
      rgba(14, 165, 233, 0.52) 42% 58%,
      rgba(8, 145, 178, 0.32) 58% 72%,
      rgba(14, 165, 233, 0.5) 72% 91%,
      transparent 91% 100%);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.52),
    0 18px 28px rgba(8, 145, 178, 0.14),
    inset 0 0 18px rgba(255, 255, 255, 0.32);
  transform: skewX(-16deg) scaleY(0.98);
}

.topic-journey-expanded .topic-journey-thames::after {
  content: "";
  position: absolute;
  left: 9%;
  right: 7%;
  top: 45px;
  z-index: -1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 -17px 0 rgba(255, 255, 255, 0.28),
    0 15px 0 rgba(8, 145, 178, 0.28),
    0 25px 18px rgba(14, 165, 233, 0.12);
}

.topic-journey-london-layer {
  display: none;
}

.topic-journey-expanded .topic-journey-london-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
}

.topic-journey-expanded .topic-journey-london-layer::before,
.topic-journey-expanded .topic-journey-london-layer::after {
  content: "";
  position: absolute;
  display: block;
  border-radius: 5px 5px 3px 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(130, 148, 190, 0.18));
  opacity: 0.58;
  filter: drop-shadow(0 7px 9px rgba(54, 66, 118, 0.08));
}

.topic-journey-expanded .topic-journey-london-layer::before {
  left: 7%;
  top: 122px;
  width: 28px;
  height: 18px;
  box-shadow:
    42px -22px 0 rgba(255, 255, 255, 0.58),
    82px 14px 0 rgba(47, 191, 143, 0.14),
    132px -4px 0 rgba(217, 119, 6, 0.12),
    174px 28px 0 rgba(255, 255, 255, 0.52),
    224px -16px 0 rgba(92, 108, 255, 0.11);
}

.topic-journey-expanded .topic-journey-london-layer::after {
  right: 8%;
  top: 118px;
  width: 24px;
  height: 20px;
  box-shadow:
    -46px 22px 0 rgba(255, 255, 255, 0.56),
    -92px -8px 0 rgba(8, 145, 178, 0.12),
    -142px 18px 0 rgba(255, 255, 255, 0.5),
    -188px -22px 0 rgba(217, 119, 6, 0.12),
    -236px 10px 0 rgba(47, 191, 143, 0.13);
}

.topic-journey-expanded .topic-journey-landmark {
  position: absolute;
  display: block;
  opacity: 0.82;
  filter: drop-shadow(0 13px 16px rgba(54, 66, 118, 0.19));
}

.topic-journey-expanded .topic-journey-landmark b,
.topic-journey-expanded .topic-journey-landmark::before,
.topic-journey-expanded .topic-journey-landmark::after {
  content: "";
  position: absolute;
  display: block;
}

.topic-journey-expanded .landmark-big-ben {
  left: 11%;
  top: -5px;
  width: 48px;
  height: 118px;
}

.topic-journey-expanded .landmark-big-ben::before {
  left: 16px;
  top: 20px;
  width: 18px;
  height: 74px;
  border-radius: 4px 4px 2px 2px;
  background:
    radial-gradient(circle at 50% 18px, rgba(255, 255, 255, 0.98) 0 5px, rgba(217, 119, 6, 0.62) 5px 7px, transparent 7px),
    linear-gradient(180deg, rgba(217, 119, 6, 0.82), rgba(217, 119, 6, 0.44));
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.68), 0 15px 0 rgba(217, 119, 6, 0.24);
}

.topic-journey-expanded .landmark-big-ben::after {
  left: 22px;
  top: 0;
  width: 6px;
  height: 25px;
  border-radius: 999px 999px 0 0;
  background: rgba(217, 119, 6, 0.72);
}

.topic-journey-expanded .landmark-big-ben b {
  left: 8px;
  bottom: 9px;
  width: 34px;
  height: 10px;
  border-radius: 2px;
  background: rgba(217, 119, 6, 0.32);
}

.topic-journey-expanded .landmark-london-eye {
  left: 44%;
  top: -8px;
  width: 90px;
  height: 96px;
}

.topic-journey-expanded .landmark-london-eye::before {
  left: 5px;
  top: 0;
  width: 70px;
  height: 70px;
  border: 6px solid rgba(92, 108, 255, 0.68);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(92, 108, 255, 0.42) 0 4px, transparent 5px),
    repeating-conic-gradient(from 10deg, rgba(92, 108, 255, 0.3) 0 8deg, transparent 8deg 20deg);
  box-shadow: inset 0 0 0 9px rgba(255, 255, 255, 0.58), 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.topic-journey-expanded .landmark-london-eye::after {
  left: 40px;
  top: 68px;
  width: 4px;
  height: 22px;
  border-radius: 999px;
  background: rgba(92, 108, 255, 0.4);
  transform: rotate(15deg);
  box-shadow: 14px 0 0 rgba(92, 108, 255, 0.26);
}

.topic-journey-expanded .landmark-london-eye b {
  left: 20px;
  top: 84px;
  width: 58px;
  height: 8px;
  border-radius: 999px;
  background: rgba(92, 108, 255, 0.28);
}

.topic-journey-expanded .landmark-tower-bridge {
  right: 2%;
  top: 0;
  width: 128px;
  height: 92px;
}

.topic-journey-expanded .landmark-tower-bridge::before {
  left: 12px;
  top: 0;
  width: 21px;
  height: 66px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, rgba(8, 145, 178, 0.68), rgba(8, 145, 178, 0.36));
  box-shadow: 80px 0 0 rgba(8, 145, 178, 0.52), 0 0 0 2px rgba(255, 255, 255, 0.58), 80px 0 0 2px rgba(255, 255, 255, 0.48);
}

.topic-journey-expanded .landmark-tower-bridge::after {
  left: 7px;
  top: 50px;
  width: 114px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(8, 145, 178, 0.26), rgba(8, 145, 178, 0.46), rgba(8, 145, 178, 0.26));
  box-shadow: 0 10px 0 rgba(8, 145, 178, 0.18);
}

.topic-journey-expanded .landmark-tower-bridge b {
  left: 27px;
  top: 16px;
  width: 74px;
  height: 45px;
  border-top: 4px solid rgba(8, 145, 178, 0.38);
  border-radius: 50% 50% 0 0;
}

.topic-journey-expanded .topic-journey-stations {
  min-width: 960px;
  min-height: 236px;
  padding-top: 40px;
  grid-template-columns: repeat(var(--journey-station-count, 6), minmax(76px, 1fr));
  isolation: isolate;
}

.topic-journey-map-rail {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(92, 108, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(54, 66, 118, 0.08);
}

.topic-journey-expanded .topic-journey-map-rail {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 7px;
  padding: 4px 6px;
  border-color: rgba(130, 148, 190, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.topic-journey-expanded .topic-journey-map-rail strong {
  display: none;
}

.topic-journey-route-board {
  position: relative;
  z-index: 3;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.topic-journey-expanded .topic-journey-route-board {
  display: none;
  align-items: stretch;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(130, 148, 190, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.topic-journey-route-board span {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 6px 8px;
  border: 1px solid rgba(130, 148, 190, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: #33446f;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1.12;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-journey-expanded .topic-journey-route-board span {
  position: relative;
  min-height: 31px;
  gap: 2px;
  padding: 5px 8px 5px 31px;
  border-color: rgba(130, 148, 190, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  line-height: 1;
  box-shadow: none;
}

.topic-journey-expanded .topic-journey-route-board span::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  z-index: 1;
  width: 15px;
  height: 15px;
  border: 4px solid var(--route-color, #5c6cff);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.82), 0 4px 8px rgba(54, 66, 118, 0.08);
  transform: translateY(-50%);
}

.topic-journey-expanded .topic-journey-route-board span::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 8px;
  top: 50%;
  z-index: 0;
  height: 4px;
  border-radius: 999px;
  background: var(--route-color, #5c6cff);
  opacity: 0.14;
  transform: translateY(-50%);
}

.topic-journey-expanded .topic-journey-route-board .route-next { --route-color: #5c6cff; }
.topic-journey-expanded .topic-journey-route-board .route-terminal { --route-color: #2fbf8f; }
.topic-journey-expanded .topic-journey-route-board .route-segment { --route-color: #d97706; }

.topic-journey-expanded .topic-journey-route-board span > b,
.topic-journey-expanded .topic-journey-route-board span > strong {
  position: relative;
  z-index: 2;
}

.topic-journey-route-board b {
  color: #65718c;
  font-size: 0.52rem;
  line-height: 1;
  text-transform: uppercase;
}

.topic-journey-expanded .topic-journey-route-board b {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-bottom: 2px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--route-color, #33446f);
  font-size: 8px;
  line-height: 1;
}

.topic-journey-expanded .topic-journey-route-board strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: 9px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-journey-direction-strip {
  position: relative;
  z-index: 3;
  display: none;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: #65718c;
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.topic-journey-expanded .topic-journey-direction-strip {
  display: grid;
  opacity: 0.72;
}

.topic-journey-direction-strip i {
  position: relative;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(92, 108, 255, 0.16), rgba(47, 191, 143, 0.34));
}

.topic-journey-direction-strip i::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(47, 191, 143, 0.58);
  border-right: 2px solid rgba(47, 191, 143, 0.58);
  transform: translateY(-50%) rotate(45deg);
}

.topic-journey-direction-strip strong {
  color: #148662;
  font-size: inherit;
  line-height: inherit;
}

.topic-journey-map-rail span,
.topic-journey-map-rail small,
.topic-journey-service {
  color: #65718c;
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.topic-journey-service {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border: 1px solid rgba(47, 191, 143, 0.22);
  border-radius: 999px;
  background: rgba(235, 255, 247, 0.78);
  color: #148662;
  font-style: normal;
}

.topic-journey-service::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2fbf8f;
}

.topic-journey-map-rail button {
  min-width: 0;
  padding: 4px 7px;
  border: 1px solid rgba(92, 108, 255, 0.2);
  border-radius: 999px;
  background: rgba(92, 108, 255, 0.1);
  color: #3947c6;
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.topic-journey-map-rail button:hover {
  background: rgba(92, 108, 255, 0.16);
}

.topic-journey-map-rail span {
  color: #3947c6;
}

.topic-journey-expanded .topic-journey-map-rail span,
.topic-journey-expanded .topic-journey-map-rail small,
.topic-journey-expanded .topic-journey-service {
  font-size: 0.52rem;
}

.topic-journey-map-rail strong {
  min-width: 0;
  overflow: hidden;
  color: #33446f;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-journey-expanded .topic-journey-map-rail strong {
  color: #2f3d67;
  font-size: 0.62rem;
}

.topic-journey-expanded .topic-journey-service {
  padding: 3px 6px;
  border-color: rgba(47, 191, 143, 0.16);
  background: rgba(235, 255, 247, 0.58);
}

.topic-journey-expanded .topic-journey-map-rail button {
  padding: 4px 6px;
  border-color: rgba(92, 108, 255, 0.16);
  background: rgba(92, 108, 255, 0.08);
}

.topic-journey-stations {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 8px;
}

.topic-journey-stations::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 22px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(92, 108, 255, 0.34), rgba(47, 191, 143, 0.34));
}

.topic-journey-stations::after {
  content: "";
  position: absolute;
  left: 44px;
  right: 44px;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(217, 119, 6, 0.42), rgba(8, 145, 178, 0.38));
  transform: rotate(-5deg);
  transform-origin: center;
  opacity: 0.78;
}

.topic-journey-expanded .topic-journey-stations::before {
  left: 56px;
  right: 56px;
  top: 127px;
  height: 7px;
  background:
    repeating-linear-gradient(90deg, rgba(120, 132, 158, 0.17) 0 18px, rgba(120, 132, 158, 0.08) 18px 28px),
    linear-gradient(90deg, rgba(120, 132, 158, 0.14), rgba(120, 132, 158, 0.08));
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.72), 0 7px 13px rgba(54, 66, 118, 0.06);
}

.topic-journey-progress-route {
  display: none;
}

.topic-journey-route-sweep {
  display: none;
}

.topic-journey-expanded .topic-journey-route-sweep {
  position: absolute;
  left: 58px;
  right: 58px;
  top: 86px;
  z-index: 0;
  display: block;
  height: 86px;
  border-top: 11px solid rgba(217, 119, 6, 0.28);
  border-radius: 52% 48% 0 0 / 72% 64% 0 0;
  box-shadow:
    0 -3px 0 rgba(255, 255, 255, 0.78),
    0 8px 18px rgba(54, 66, 118, 0.08);
  transform: skewX(-8deg);
  transform-origin: center;
  pointer-events: none;
}

.topic-journey-expanded .topic-journey-route-sweep::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 8%;
  top: 15px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(47, 191, 143, 0.24), rgba(92, 108, 255, 0.18), rgba(8, 145, 178, 0.2));
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.58);
  transform: rotate(-2deg);
}

.topic-journey-expanded .topic-journey-progress-route {
  position: absolute;
  display: block;
  left: 56px;
  top: 126px;
  z-index: 1;
  width: calc(100% - 112px);
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(90deg, #16a34a, #2fbf8f 52%, #5c6cff);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.88),
    0 12px 22px rgba(34, 197, 94, 0.22),
    0 0 16px rgba(92, 108, 255, 0.12);
  transform: scaleX(var(--journey-route-progress-ratio, 0));
  transform-origin: left center;
  pointer-events: none;
}

.topic-journey-expanded .topic-journey-stations::after {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  height: auto;
  z-index: -1;
  border-radius: 12px;
  background:
    linear-gradient(90deg,
      rgba(92, 108, 255, 0.038) 0 16.66%,
      rgba(47, 191, 143, 0.038) 16.66% 33.33%,
      rgba(217, 119, 6, 0.038) 33.33% 50%,
      rgba(8, 145, 178, 0.038) 50% 66.66%,
      rgba(124, 58, 237, 0.034) 66.66% 83.33%,
      rgba(220, 38, 38, 0.03) 83.33% 100%);
  opacity: 0.84;
  transform: none;
}

.topic-journey-stations-zone-label {
  display: none;
}

.topic-journey-expanded .topic-journey-stations-zone-label.zone-band-1 { left: 0; color: rgba(92, 108, 255, 0.58); }
.topic-journey-expanded .topic-journey-stations-zone-label.zone-band-2 { left: 16.66%; color: rgba(47, 191, 143, 0.58); }
.topic-journey-expanded .topic-journey-stations-zone-label.zone-band-3 { left: 33.33%; color: rgba(217, 119, 6, 0.6); }
.topic-journey-expanded .topic-journey-stations-zone-label.zone-band-4 { left: 50%; color: rgba(8, 145, 178, 0.58); }
.topic-journey-expanded .topic-journey-stations-zone-label.zone-band-5 { left: 66.66%; color: rgba(124, 58, 237, 0.56); }
.topic-journey-expanded .topic-journey-stations-zone-label.zone-band-6 { left: 83.33%; color: rgba(220, 38, 38, 0.52); }

.topic-journey-map-pin {
  display: none;
}

.topic-journey-expanded .topic-journey-map-pin {
  position: absolute;
  z-index: 2;
  display: inline-grid;
  grid-template-columns: auto max-content;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: 172px;
  padding: 5px 9px 5px 6px;
  border: 1px solid rgba(51, 68, 111, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: rgba(38, 53, 88, 0.76);
  font-size: 0.52rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 9px 18px rgba(54, 66, 118, 0.11);
  pointer-events: none;
}

.topic-journey-expanded .topic-journey-map-pin i {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: var(--pin-color, #5c6cff);
  box-shadow: 0 0 0 2px rgba(54, 66, 118, 0.08), 0 7px 14px rgba(54, 66, 118, 0.14);
}

.topic-journey-expanded .topic-journey-map-pin i::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.topic-journey-expanded .topic-journey-map-pin b {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
}

.topic-journey-expanded .topic-journey-map-pin.pin-westminster {
  --pin-color: #d97706;
  left: 9%;
  top: 28px;
}

.topic-journey-expanded .topic-journey-map-pin.pin-kings-cross {
  --pin-color: #5c6cff;
  left: 36%;
  top: 28px;
}

.topic-journey-expanded .topic-journey-map-pin.pin-greenwich {
  --pin-color: #0f9f75;
  right: 2.5%;
  top: 28px;
}

.topic-journey-line-label {
  position: absolute;
  z-index: 3;
  right: 10px;
  top: -7px;
  max-width: 54%;
  overflow: hidden;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  color: #3947c6;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(54, 66, 118, 0.12);
  pointer-events: none;
}

.topic-journey-terminal {
  position: absolute;
  z-index: 3;
  top: 18px;
  padding: 3px 6px;
  border-radius: 999px;
  background: #fff;
  color: #65718c;
  font-size: 0.52rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 5px 12px rgba(54, 66, 118, 0.12);
  pointer-events: none;
}

.topic-journey-expanded .topic-journey-terminal {
  top: 101px;
}

.topic-journey-expanded .topic-journey-terminal.start {
  left: 8px;
  top: 62px;
  color: #3947c6;
  box-shadow: 0 6px 14px rgba(54, 66, 118, 0.11);
}

.topic-journey-terminal.start {
  left: 4px;
}

.topic-journey-terminal.end {
  right: 4px;
  color: #148662;
}

.topic-journey-expanded .topic-journey-terminal.end {
  right: 12px;
}

.topic-journey-interchange {
  position: absolute;
  z-index: 1;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #5c6cff;
  box-shadow: 0 0 0 1px rgba(70, 82, 130, 0.18);
  pointer-events: none;
}

.topic-journey-branch {
  position: absolute;
  z-index: 0;
  height: 4px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.68;
}

.topic-journey-expanded .topic-journey-branch {
  height: 7px;
  opacity: 0.9;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.72), 0 7px 14px rgba(54, 66, 118, 0.1);
}

.topic-journey-branch.branch-a {
  left: 19%;
  top: 36px;
  width: 54px;
  background: rgba(92, 108, 255, 0.38);
  transform: rotate(42deg);
}

.topic-journey-branch.branch-b {
  left: 46%;
  top: 36px;
  width: 58px;
  background: rgba(217, 119, 6, 0.42);
  transform: rotate(-38deg);
}

.topic-journey-branch.branch-c {
  right: 17%;
  top: 36px;
  width: 52px;
  background: rgba(8, 145, 178, 0.38);
  transform: rotate(38deg);
}

.topic-journey-expanded .topic-journey-branch.branch-a {
  top: 122px;
  width: 80px;
  background: rgba(92, 108, 255, 0.58);
}

.topic-journey-expanded .topic-journey-branch.branch-b {
  top: 122px;
  width: 84px;
  background: rgba(217, 119, 6, 0.6);
}

.topic-journey-expanded .topic-journey-branch.branch-c {
  top: 122px;
  width: 78px;
  background: rgba(8, 145, 178, 0.58);
}

.topic-journey-expanded .topic-journey-interchange.node-a,
.topic-journey-expanded .topic-journey-interchange.node-c {
  top: 107px;
}

.topic-journey-interchange.node-a {
  left: 22%;
  top: 18px;
}

.topic-journey-interchange.node-b {
  left: 49%;
  top: calc(50% - 5px);
  background: #d97706;
}

.topic-journey-interchange.node-c {
  right: 24%;
  top: 18px;
  background: #0891b2;
}

.topic-journey-interchange-label {
  position: absolute;
  z-index: 3;
  display: none;
  max-width: 74px;
  overflow: hidden;
  padding: 3px 6px;
  border: 1px solid rgba(130, 148, 190, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #65718c;
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 5px 12px rgba(54, 66, 118, 0.1);
  pointer-events: none;
}

.topic-journey-interchange-label.label-a {
  left: calc(22% + 8px);
  top: 4px;
}

.topic-journey-interchange-label.label-b {
  left: calc(49% + 8px);
  top: calc(50% - 24px);
}

.topic-journey-interchange-label.label-c {
  right: calc(24% + 8px);
  top: 4px;
}

.topic-journey-station {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: grid;
  gap: 5px;
  justify-items: center;
  padding: 8px 6px 9px;
  border: 1px solid rgba(130, 148, 190, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  color: #33446f;
  text-align: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  --journey-zone: #5c6cff;
  --journey-zone-soft: rgba(92, 108, 255, 0.12);
}

.topic-journey-expanded .topic-journey-station {
  min-height: 208px;
  align-content: start;
  gap: 0;
  padding: 166px 2px 0;
  border-color: transparent;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.topic-journey-expanded .topic-journey-station.current::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 34px;
  z-index: 3;
  width: 50px;
  height: 90px;
  background: url("/icons/coach-beefeater.webp") center bottom / contain no-repeat;
  filter: drop-shadow(0 12px 18px rgba(57, 71, 198, 0.28));
  pointer-events: none;
}

.topic-journey-expanded .topic-journey-station:not(.current)::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 31px;
  z-index: 2;
  width: 46px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 12px 12px 8px 8px;
  background:
    linear-gradient(90deg, transparent 0 22%, rgba(255, 255, 255, 0.72) 22% 30%, transparent 30% 48%, rgba(255, 255, 255, 0.64) 48% 56%, transparent 56% 100%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.82) 0 30%, transparent 30% 100%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), var(--journey-zone-soft));
  box-shadow:
    inset 0 5px 0 var(--journey-zone),
    0 10px 18px rgba(54, 66, 118, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.54);
  transform: translateX(-50%);
  pointer-events: none;
}

.topic-journey-expanded .topic-journey-station:not(.current):not(.done)::before {
  opacity: 0.7;
  filter: saturate(0.9);
}

.topic-journey-expanded .topic-journey-station.locked::before {
  opacity: 0.48;
  filter: grayscale(0.42);
}

@media (max-width: 920px) {
  .topic-journey-expanded {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-journey-expanded .topic-journey-map-stage {
    grid-column: 1;
    grid-row: auto;
    min-height: 420px;
  }
}

.topic-journey-station-code {
  position: absolute;
  right: 6px;
  top: 6px;
  max-width: 42px;
  overflow: hidden;
  padding: 2px 5px;
  border-radius: 999px;
  background: #fff;
  color: #3947c6;
  font-size: 0.5rem;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(54, 66, 118, 0.12);
  pointer-events: none;
}

.topic-journey-station:not(.current) .topic-journey-station-code {
  display: none;
}

.topic-journey-expanded .topic-journey-station-code {
  display: none;
}

.topic-journey-station::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 5px;
  height: 3px;
  border-radius: 999px;
  background: var(--journey-zone);
  opacity: 0.72;
}

.topic-journey-expanded .topic-journey-station::after {
  left: 50%;
  right: auto;
  top: 127px;
  width: 96px;
  height: 10px;
  z-index: 1;
  opacity: 0.42;
  transform: translateX(-50%);
}

.topic-journey-expanded .topic-journey-station:not(.done):not(.current):not(.locked)::after {
  background: rgba(120, 132, 158, 0.26);
  opacity: 0.24;
}

.topic-journey-station.zone-1 {
  --journey-zone: #d97706;
  --journey-zone-soft: rgba(217, 119, 6, 0.13);
}

.topic-journey-station.zone-2 {
  --journey-zone: #0f9f75;
  --journey-zone-soft: rgba(15, 159, 117, 0.13);
}

.topic-journey-station.zone-3 {
  --journey-zone: #2563eb;
  --journey-zone-soft: rgba(37, 99, 235, 0.12);
}

.topic-journey-station.zone-4 {
  --journey-zone: #16a34a;
  --journey-zone-soft: rgba(22, 163, 74, 0.13);
}

.topic-journey-station.zone-5 {
  --journey-zone: #0891b2;
  --journey-zone-soft: rgba(8, 145, 178, 0.13);
}

.topic-journey-station.zone-6 {
  --journey-zone: #dc2626;
  --journey-zone-soft: rgba(220, 38, 38, 0.11);
}

.topic-journey-station.zone-7 {
  --journey-zone: #7c3aed;
  --journey-zone-soft: rgba(124, 58, 237, 0.12);
}

.topic-journey-station.zone-8 {
  --journey-zone: #64748b;
  --journey-zone-soft: rgba(100, 116, 139, 0.13);
}

.topic-journey-station:not(.locked):hover {
  border-color: rgba(92, 108, 255, 0.34);
  box-shadow: 0 10px 20px rgba(45, 62, 105, 0.11);
  transform: translateY(-1px);
}

.topic-journey-station.done {
  border-color: rgba(47, 191, 143, 0.32);
  background: rgba(235, 255, 247, 0.9);
}

.topic-journey-station.current {
  border-color: rgba(99, 91, 255, 0.34);
  background: rgba(245, 246, 255, 0.98);
  box-shadow: 0 8px 20px rgba(99, 91, 255, 0.12);
  animation: topicJourneyCurrentPulse 3s ease-in-out infinite;
}

.topic-journey-expanded .topic-journey-station.current {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  transform: none;
  animation: none;
}

.topic-journey-station.locked {
  opacity: 0.58;
}

.topic-journey-expanded .topic-journey-station.locked {
  opacity: 0.72;
}

.topic-journey-dot {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #4248a9;
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(99, 91, 255, 0.18);
}

.topic-journey-expanded .topic-journey-dot {
  position: absolute;
  left: 50%;
  top: 79px;
  z-index: 2;
  width: 52px;
  height: 52px;
  border: 8px solid var(--journey-zone);
  background: #fff;
  color: var(--journey-zone);
  font-size: 0.8rem;
  transform: translateX(-50%);
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 7px rgba(54, 66, 118, 0.08),
    0 12px 22px rgba(54, 66, 118, 0.2);
}

.topic-journey-expanded .topic-journey-station:not(.done):not(.current):not(.locked) .topic-journey-dot {
  border-color: rgba(120, 132, 158, 0.32);
  background: rgba(255, 255, 255, 0.86);
  color: rgba(71, 85, 105, 0.66);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.78),
    0 0 0 6px rgba(54, 66, 118, 0.035),
    0 8px 14px rgba(54, 66, 118, 0.08);
}

.topic-journey-station.done .topic-journey-dot {
  background: #2fbf8f;
  color: #fff;
}

.topic-journey-expanded .topic-journey-station.done .topic-journey-dot {
  border-color: #2fbf8f;
  background: #2fbf8f;
  color: #fff;
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 7px rgba(47, 191, 143, 0.18),
    0 10px 18px rgba(20, 134, 98, 0.16);
}

.topic-journey-station.current .topic-journey-dot {
  background: #5c6cff;
  color: #fff;
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px rgba(92, 108, 255, 0.24);
}

.topic-journey-expanded .topic-journey-station.current .topic-journey-dot {
  border-color: #5c6cff;
  background: #fff;
  color: #3947c6;
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 12px rgba(92, 108, 255, 0.26),
    0 16px 26px rgba(57, 71, 198, 0.28);
}

.topic-journey-expanded .topic-journey-station.current .topic-journey-dot::before {
  content: "";
  position: absolute;
  inset: -18px -24px -15px;
  z-index: -1;
  border: 1px solid rgba(92, 108, 255, 0.2);
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 56%, rgba(92, 108, 255, 0.22) 0 48%, rgba(92, 108, 255, 0.08) 49% 68%, transparent 69%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(226, 232, 255, 0.52));
  box-shadow:
    0 18px 28px rgba(57, 71, 198, 0.16),
    inset 0 0 0 5px rgba(255, 255, 255, 0.58);
  pointer-events: none;
}

.topic-journey-expanded .topic-journey-station.current .topic-journey-dot::after {
  content: "Давай продолжим!";
  position: absolute;
  left: 28px;
  top: -58px;
  z-index: 4;
  width: max-content;
  max-width: 156px;
  padding: 8px 11px;
  border: 1px solid rgba(130, 148, 190, 0.2);
  border-radius: 12px 12px 12px 5px;
  background: rgba(255, 255, 255, 0.94);
  color: #33446f;
  box-shadow: 0 12px 24px rgba(54, 66, 118, 0.14);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.topic-journey-expanded .topic-journey-station.current::after {
  background: linear-gradient(90deg, #35b779, #5c6cff);
  opacity: 0.78;
}

@keyframes topicJourneyBusFloat {
  0%, 100% {
    transform: translate(-50%, -56%);
  }
  50% {
    transform: translate(-50%, -66%);
  }
}

@keyframes topicJourneyCurrentPulse {
  0%, 100% {
    box-shadow: 0 8px 20px rgba(99, 91, 255, 0.12);
  }
  50% {
    box-shadow: 0 10px 24px rgba(99, 91, 255, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .topic-journey-bus-marker,
  .topic-journey-station.current {
    animation: none;
  }
}

.topic-journey-station.locked .topic-journey-dot {
  background: #eef1f7;
  color: #7d879c;
}

.topic-journey-expanded .topic-journey-station.locked .topic-journey-dot {
  border-color: rgba(170, 179, 195, 0.7);
  background: rgba(255, 255, 255, 0.78);
  color: rgba(102, 112, 133, 0.7);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.72),
    0 0 0 6px rgba(54, 66, 118, 0.025),
    0 8px 14px rgba(54, 66, 118, 0.06);
}

.topic-journey-state {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(99, 91, 255, 0.08);
  color: #4854b8;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.topic-journey-expanded .topic-journey-state {
  min-width: 54px;
  justify-content: center;
  max-width: 100%;
  padding: 3px 7px;
  background: var(--journey-zone-soft);
  color: var(--journey-zone);
  white-space: nowrap;
}

.topic-journey-station.done .topic-journey-state {
  background: rgba(47, 191, 143, 0.13);
  color: #148662;
}

.topic-journey-station.current .topic-journey-state {
  background: rgba(92, 108, 255, 0.14);
  color: #3947c6;
}

.topic-journey-station.locked .topic-journey-state {
  background: rgba(114, 124, 145, 0.12);
  color: #667085;
}

.topic-journey-title {
  width: 100%;
  overflow: hidden;
  color: #33446f;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-journey-expanded .topic-journey-title {
  position: absolute;
  left: 50%;
  top: 122px;
  z-index: 4;
  width: min(132px, calc(100% + 52px));
  min-height: 0;
  display: block;
  overflow: hidden;
  padding: 5px 9px;
  border: 1px solid rgba(130, 148, 190, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #33446f;
  box-shadow: 0 7px 14px rgba(54, 66, 118, 0.1);
  font-size: 0.54rem;
  font-weight: 900;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
  transform: translateX(-50%);
}

.topic-journey-expanded .topic-journey-station:first-of-type .topic-journey-title {
  width: min(168px, calc(100% + 88px));
  transform: translateX(-34%);
}

.topic-journey-expanded .topic-journey-station:last-of-type .topic-journey-title {
  width: min(152px, calc(100% + 72px));
  transform: translateX(-66%);
}

.topic-journey-expanded .topic-journey-station.label-down .topic-journey-title {
  top: 154px;
}

.topic-journey-expanded .topic-journey-station.current .topic-journey-title {
  background: linear-gradient(135deg, #4255ff, #2438d8);
  border-color: rgba(255, 255, 255, 0.62);
  color: #fff;
  box-shadow: 0 14px 26px rgba(57, 71, 198, 0.3);
  width: min(190px, calc(100% + 108px));
}

.topic-journey-expanded .topic-journey-station.current .topic-journey-title,
.topic-journey-expanded .topic-journey-station:first-of-type .topic-journey-title,
.topic-journey-expanded .topic-journey-station:last-of-type .topic-journey-title {
  min-height: 28px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.topic-journey-expanded .topic-journey-station:not(.done):not(.current):not(.locked) .topic-journey-title {
  border-color: rgba(130, 148, 190, 0.1);
  background: rgba(255, 255, 255, 0.54);
  color: rgba(51, 68, 111, 0.55);
  box-shadow: 0 4px 8px rgba(54, 66, 118, 0.04);
}

.topic-journey-expanded .topic-journey-station.locked .topic-journey-title {
  border-color: rgba(130, 148, 190, 0.12);
  background: rgba(247, 249, 253, 0.72);
  color: rgba(102, 112, 133, 0.72);
  box-shadow: 0 4px 9px rgba(54, 66, 118, 0.045);
}

.topic-journey-expanded .topic-journey-position,
.topic-journey-expanded .topic-journey-zone {
  display: none;
}

.topic-journey-expanded .topic-journey-state {
  display: none;
}

.topic-journey-position {
  color: #7c88a1;
  font-size: 0.6rem;
  font-weight: 900;
  line-height: 1;
}

.topic-journey-zone {
  width: 100%;
  overflow: hidden;
  color: var(--journey-zone);
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-journey-station.done .topic-journey-zone {
  color: #148662;
}

.topic-journey-station.locked .topic-journey-zone {
  color: #7d879c;
}

@media (max-width: 620px) {
  .topic-journey-hero {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .topic-journey-hero img {
    width: 42px;
    height: 42px;
  }

  .topic-journey-milestones {
    font-size: 0.6rem;
  }

  .topic-journey-map-stage {
    min-height: 106px;
    padding: 16px 6px 8px;
  }

  .topic-journey-map-rail {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
  }

  .topic-journey-map-rail span {
    display: none;
  }

  .topic-journey-service {
    display: none;
  }

  .topic-journey-expanded .topic-journey-route-board {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-journey-direction-strip {
    font-size: 0.5rem;
  }

  .topic-journey-expanded .topic-journey-map-stage {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }

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

  .topic-journey-stats span {
    justify-content: flex-start;
  }

  .topic-journey-next button {
    width: 100%;
  }

  .topic-daily-goal {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-daily-goal-meter {
    width: 100%;
    justify-items: stretch;
  }

  .topic-daily-goal-meter i {
    width: 100%;
  }

  .topic-continue-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-continue-side {
    width: 100%;
    justify-items: stretch;
  }

  .topic-continue-side i {
    width: 100%;
  }

  .topic-continue-side button {
    width: 100%;
  }

  .topic-start-guide {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-start-guide-actions {
    justify-content: stretch;
  }

  .topic-start-guide-actions button {
    flex: 1 1 130px;
  }
}

.topic-card-progress {
  width: 100%;
  height: 5px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(130,148,190,0.12);
  overflow: hidden;
}

.topic-card-progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(79,107,255,0.96), rgba(124,92,255,0.96));
}

@media (max-width: 800px) {
.topic-browser {
  margin: 10px 0 12px;
  }

  .topic-category-tabs {
    margin-bottom: 8px;
  }

  .topic-search-bar {
    flex-wrap: wrap;
  }

  .topic-journey-v2-entry {
    flex: 1 1 auto;
  }

  .topic-card-list {
    gap: 7px;
  }

  .topic-card {
    min-height: 58px;
    padding: 8px 10px;
    border-radius: 12px;
  }

  .topic-card.has-cover {
    grid-template-columns: 104px minmax(0, 1fr);
    padding: 0;
  }

  .topic-card-copy {
    padding: 8px 10px;
  }

  .learning-course-cover-catalog {
    min-height: calc(100vh - 10px);
    padding: 10px;
  }

  .learning-course-cover-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .learning-course-cover-catalog-copy {
    min-height: 96px;
    padding: 9px 9px 10px 38px;
  }

  .learning-course-cover-catalog-copy strong {
    font-size: 0.78rem;
  }

  .learning-course-cover-catalog-number {
    top: 8px;
    left: 8px;
    width: 23px;
    height: 23px;
  }

  .topic-level-complete {
    align-items: stretch;
    flex-direction: column;
  }

  .topic-card-title {
    margin-bottom: 2px;
    font-size: 0.82rem;
    line-height: 1.18;
  }

  .topic-card-status {
    margin-top: 0;
    padding: 1px 6px;
    font-size: 0.58rem;
  }

  .topic-card-progress {
    height: 4px;
    margin-top: 5px;
  }
}
