/* =========================================================
   Самолет — Career Tracks Visualization
   main.css
   ========================================================= */

/* ---------------------------------------------------------
   1. Reset & Base
   --------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #1a1a2e;
  background-color: #f5f7fa;
  min-height: 100vh;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
textarea {
  font-family: inherit;
  font-size: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ---------------------------------------------------------
   2. Layout Shell
   --------------------------------------------------------- */

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------------------------------------------------------
   3. Screen 1 — Direction Select
   --------------------------------------------------------- */

.screen-direction {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 24px;
}

.direction-inner {
  width: 100%;
  max-width: 500px;
}

.direction-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}

.direction-logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: -0.01em;
}

.direction-logo-sub {
  font-size: 0.8rem;
  color: #6c757d;
  font-weight: 400;
}

.direction-heading {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.direction-subheading {
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 32px;
}

/* Search / Autocomplete Input */

.search-wrapper {
  position: relative;
  margin-bottom: 12px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  pointer-events: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  font-size: 1rem;
  line-height: 1.5;
  color: #1a1a2e;
  background: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.search-input::placeholder {
  color: #adb5bd;
}

.search-input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.search-input:focus + .search-icon,
.search-wrapper:focus-within .search-icon {
  color: #0d6efd;
}

/* Dropdown Suggestions */

.dropdown-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid #e2e6ea;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 100;
  max-height: 280px;
  overflow-y: auto;
}

.dropdown-list::-webkit-scrollbar {
  width: 4px;
}

.dropdown-list::-webkit-scrollbar-track {
  background: transparent;
}

.dropdown-list::-webkit-scrollbar-thumb {
  background: #dee2e6;
  border-radius: 4px;
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f2f5;
  transition: background-color 0.12s ease;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
  background-color: #f0f4ff;
  outline: none;
}

.dropdown-item-label {
  font-size: 0.925rem;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.3;
}

.dropdown-item-description {
  font-size: 0.8rem;
  color: #6c757d;
  line-height: 1.4;
}

/* Primary Button */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  font-size: 0.975rem;
  font-weight: 600;
  color: #fff;
  background-color: #0d6efd;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.12s ease;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.28);
  margin-top: 20px;
  letter-spacing: 0.01em;
}

.btn-primary:hover:not(:disabled) {
  background-color: #0b5ed7;
  box-shadow: 0 4px 16px rgba(13, 110, 253, 0.36);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  background-color: #0a58ca;
  box-shadow: 0 1px 4px rgba(13, 110, 253, 0.2);
  transform: translateY(0);
}

.btn-primary:disabled {
  background-color: #adb5bd;
  box-shadow: none;
  cursor: not-allowed;
}

/* ---------------------------------------------------------
   4. Screen 2 — Career Tracks
   --------------------------------------------------------- */

.screen-tracks {
  min-height: 100vh;
  padding-block: 32px 60px;
  animation: fadeIn 0.3s ease;
}

/* Header */

.tracks-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6c757d;
  background: #fff;
  border: 1.5px solid #dee2e6;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease,
    background-color 0.15s ease;
  flex-shrink: 0;
}

.btn-back:hover {
  color: #1a1a2e;
  border-color: #adb5bd;
  background-color: #f8f9fa;
}

.tracks-title-group {
  flex: 1;
  min-width: 0;
}

.tracks-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: -0.015em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tracks-subtitle {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 2px;
}

/* Tracks Grid */

.tracks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 960px) {
  .tracks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .tracks-grid {
    grid-template-columns: 1fr;
  }
}

/* Track Card */

.track-card {
  background: #fff;
  border: 1.5px solid #e9ecef;
  border-radius: 14px;
  padding: 24px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.track-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #c5d0de;
}

.track-card.active {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1),
    0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

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

.track-role {
  font-size: 1.025rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
  flex: 1;
}

.track-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.825rem;
  color: #6c757d;
}

.track-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.track-meta-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.65;
}

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

.track-gap-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.775rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  color: #fff;
}

.track-gap-chip.high {
  background-color: #dc3545;
}

.track-gap-chip.medium {
  background-color: #fd7e14;
}

.track-gap-chip.low {
  background-color: #28a745;
}

/* Badge — Transition Type */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
  flex-shrink: 0;
}

.badge-vertical {
  background-color: #0d6efd;
}

.badge-horizontal {
  background-color: #6f42c1;
}

.badge-expand {
  background-color: #20c997;
}

/* Expand Button */

.btn-expand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding: 7px 12px;
  font-size: 0.825rem;
  font-weight: 500;
  color: #0d6efd;
  background: #f0f4ff;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-expand:hover {
  background-color: #dde8ff;
  color: #0b5ed7;
}

.btn-expand .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
  font-style: normal;
}

.btn-expand.expanded .arrow {
  transform: rotate(180deg);
}

/* ---------------------------------------------------------
   5. Track Detail Panel
   --------------------------------------------------------- */

.track-detail {
  background: #fff;
  border: 1.5px solid #e9ecef;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease,
    margin-bottom 0.3s ease;
  opacity: 0;
  pointer-events: none;
  margin-bottom: 0;
}

.track-detail.open {
  max-height: 3000px;
  opacity: 1;
  pointer-events: auto;
  margin-bottom: 24px;
}

.track-detail-inner {
  padding: 32px;
}

.track-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f2f5;
}

.track-detail-role {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: -0.015em;
}

.track-detail-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: #f5f7fa;
  border-radius: 8px;
  color: #6c757d;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: background-color 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.track-detail-close:hover {
  background-color: #e9ecef;
  color: #1a1a2e;
}

/* Detail Sections */

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

.detail-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e9ecef;
}

/* ---------------------------------------------------------
   6. Gap Analysis Table
   --------------------------------------------------------- */

.gap-table-wrapper {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #e9ecef;
}

.gap-table {
  width: 100%;
  font-size: 0.875rem;
  border-collapse: separate;
  border-spacing: 0;
}

.gap-table th {
  position: sticky;
  top: 0;
  background-color: #f8f9fa;
  color: #6c757d;
  font-size: 0.775rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
  white-space: nowrap;
  z-index: 1;
}

.gap-table th:first-child {
  border-radius: 10px 0 0 0;
}

.gap-table th:last-child {
  border-radius: 0 10px 0 0;
}

.gap-table td {
  padding: 11px 14px;
  color: #1a1a2e;
  border-bottom: 1px solid #f0f2f5;
  vertical-align: middle;
  line-height: 1.45;
}

.gap-table tr:last-child td {
  border-bottom: none;
}

.gap-table tbody tr {
  transition: background-color 0.12s ease;
}

.gap-table tbody tr:hover {
  background-color: #fafbfd;
}

.gap-table td:first-child {
  font-weight: 500;
}

/* Priority Badges */

.priority-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
  color: #fff;
}

.priority-high {
  background-color: #dc3545;
}

.priority-medium {
  background-color: #fd7e14;
}

.priority-low {
  background-color: #28a745;
}

.priority-none {
  background-color: #6c757d;
}

/* Level indicator */

.level-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.level-dots {
  display: flex;
  gap: 3px;
}

.level-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #dee2e6;
  transition: background-color 0.15s ease;
}

.level-dot.filled {
  background-color: #0d6efd;
}

.level-label {
  font-size: 0.8rem;
  color: #6c757d;
}

/* ---------------------------------------------------------
   7. Recommendations — 70/20/10
   --------------------------------------------------------- */

.goals-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.goal-item {
  border: 1.5px solid #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.goal-item.open {
  border-color: #c5d0de;
}

.goal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  background: #fff;
  border: none;
  width: 100%;
  text-align: left;
  transition: background-color 0.15s ease;
}

.goal-header:hover {
  background-color: #fafbfd;
}

.goal-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.goal-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #f0f4ff;
  color: #0d6efd;
  font-size: 0.775rem;
  font-weight: 700;
  flex-shrink: 0;
}

.goal-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.goal-chevron {
  width: 16px;
  height: 16px;
  color: #adb5bd;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.goal-item.open .goal-chevron {
  transform: rotate(180deg);
}

.goal-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.goal-item.open .goal-content {
  max-height: 2000px;
}

.goal-content-inner {
  padding: 0 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Development Categories */

.dev-category {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 14px 16px;
}

.dev-category-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.825rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.dev-category-percent {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  color: #fff;
}

.dev-category-percent.p70 {
  background-color: #0d6efd;
}

.dev-category-percent.p20 {
  background-color: #6f42c1;
}

.dev-category-percent.p10 {
  background-color: #20c997;
}

.dev-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
}

.dev-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: #344055;
  line-height: 1.45;
}

.dev-item::before {
  content: "—";
  color: #adb5bd;
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* ---------------------------------------------------------
   8. Inline Editing
   --------------------------------------------------------- */

.editable {
  position: relative;
  cursor: text;
  border-radius: 4px;
  transition: background-color 0.15s ease;
  padding: 2px 4px;
  margin: -2px -4px;
}

.editable:hover {
  background-color: #f0f4ff;
}

.editable:hover::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px dashed #0d6efd;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0.5;
}

.editable.editing {
  background-color: #fff;
  box-shadow: 0 0 0 2px #0d6efd;
  border-radius: 4px;
}

.editable.editing::after {
  display: none;
}

.edit-input {
  width: 100%;
  min-height: 80px;
  padding: 8px 10px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #1a1a2e;
  background: #fff;
  border: none;
  border-radius: 4px;
  outline: none;
  resize: vertical;
  display: block;
}

.edit-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.btn-save-edit {
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: #0d6efd;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-save-edit:hover {
  background: #0b5ed7;
}

.btn-cancel-edit {
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #6c757d;
  background: transparent;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-cancel-edit:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
}

/* ---------------------------------------------------------
   9. Secondary Button
   --------------------------------------------------------- */

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a1a2e;
  background: #fff;
  border: 1.5px solid #dee2e6;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.btn-secondary:hover {
  background-color: #f8f9fa;
  border-color: #adb5bd;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* ---------------------------------------------------------
   10. Loading / Empty States
   --------------------------------------------------------- */

.state-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px 24px;
  color: #6c757d;
  font-size: 0.9rem;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e9ecef;
  border-top-color: #0d6efd;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.state-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 60px 24px;
  color: #6c757d;
  font-size: 0.9rem;
  text-align: center;
}

.state-empty-icon {
  font-size: 2rem;
  opacity: 0.35;
}

.state-empty-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
}

/* ---------------------------------------------------------
   11. Toast / Notification
   --------------------------------------------------------- */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #1a1a2e;
  color: #fff;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  pointer-events: auto;
  animation: slideInRight 0.25s ease, fadeOut 0.3s ease 2.7s forwards;
  max-width: 320px;
}

.toast.success {
  background: #1b4332;
}

.toast.error {
  background: #7f1d1d;
}

/* ---------------------------------------------------------
   12. Utility Classes
   --------------------------------------------------------- */

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-muted {
  color: #6c757d;
}

.text-sm {
  font-size: 0.825rem;
}

.fw-semibold {
  font-weight: 600;
}

.fw-bold {
  font-weight: 700;
}

.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ---------------------------------------------------------
   13. Animations
   --------------------------------------------------------- */

.fade-in {
  animation: fadeIn 0.3s ease both;
}

.slide-down {
  animation: slideDown 0.3s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(4px);
  }
}

/* ---------------------------------------------------------
   14. Responsive Overrides
   --------------------------------------------------------- */

@media (max-width: 768px) {
  .container {
    padding-inline: 16px;
  }

  .screen-tracks {
    padding-block: 20px 40px;
  }

  .tracks-header {
    margin-bottom: 20px;
    gap: 10px;
  }

  .tracks-title {
    font-size: 1.2rem;
  }

  .track-detail-inner {
    padding: 20px 16px;
  }

  .direction-heading {
    font-size: 1.5rem;
  }

  .toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }

  .toast {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .direction-inner {
    max-width: 100%;
  }

  .track-card {
    padding: 18px;
  }

  .track-detail-header {
    flex-direction: column;
    gap: 10px;
  }
}

/* ---------------------------------------------------------
   15. Focus Visible (Accessibility)
   --------------------------------------------------------- */

:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible,
.dropdown-item:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

/* ---------------------------------------------------------
   16. JS Component Class Mappings
   (Bridging CSS ↔ JS naming conventions)
   --------------------------------------------------------- */

/* Screen 1: Direction Select (JS uses BEM naming) */
.screen--direction-select {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 24px;
}

.direction-select__heading {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  text-align: center;
}

.direction-select__subtitle {
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 32px;
  text-align: center;
}

.direction-select__form {
  width: 100%;
  max-width: 500px;
}

.direction-select__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.direction-select__input-wrapper {
  position: relative;
  margin-bottom: 12px;
}

.direction-select__input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  line-height: 1.5;
  color: #1a1a2e;
  background: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.direction-select__input::placeholder {
  color: #adb5bd;
}

.direction-select__input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.direction-select__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid #e2e6ea;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 100;
  max-height: 280px;
  overflow-y: auto;
  list-style: none;
}

.direction-select__dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f2f5;
  transition: background-color 0.12s ease;
}

.direction-select__dropdown-item:last-child {
  border-bottom: none;
}

.direction-select__dropdown-item:hover,
.direction-select__dropdown-item--active {
  background-color: #f0f4ff;
}

.direction-select__dropdown-label {
  font-size: 0.925rem;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.3;
}

.direction-select__dropdown-desc {
  font-size: 0.8rem;
  color: #6c757d;
  line-height: 1.4;
}

.direction-select__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  font-size: 0.975rem;
  font-weight: 600;
  color: #fff;
  background-color: #0d6efd;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.28);
  margin-top: 20px;
}

.direction-select__btn:hover:not(:disabled) {
  background-color: #0b5ed7;
  box-shadow: 0 4px 16px rgba(13, 110, 253, 0.36);
  transform: translateY(-1px);
}

.direction-select__btn:disabled {
  background-color: #adb5bd;
  box-shadow: none;
  cursor: not-allowed;
}

/* Screen 2: Career Tracks (JS classes) */
.screen--career-tracks {
  min-height: 100vh;
  padding: 32px 24px 60px;
  max-width: 1200px;
  margin-inline: auto;
  animation: fadeIn 0.3s ease;
}

.tracks-header__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6c757d;
  background: #fff;
  border: 1.5px solid #dee2e6;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.tracks-header__back:hover {
  color: #1a1a2e;
  border-color: #adb5bd;
  background-color: #f8f9fa;
}

.tracks-header__title-wrap {
  flex: 1;
}

.tracks-header__title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.tracks-header__direction {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 2px;
  display: block;
}

.tracks-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  color: #6c757d;
  font-size: 0.9rem;
}

/* Track Card (JS BEM classes) */
.track-card--active {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1), 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.track-card__header {
  margin-bottom: 4px;
}

.track-card__title {
  font-size: 1.025rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
  margin-bottom: 4px;
}

.track-card__department {
  font-size: 0.825rem;
  color: #6c757d;
}

.track-card__badge-wrap {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.track-card__summary {
  font-size: 0.85rem;
  color: #344055;
  line-height: 1.45;
}

.track-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding: 7px 12px;
  font-size: 0.825rem;
  font-weight: 500;
  color: #0d6efd;
  background: #f0f4ff;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.track-card__btn:hover {
  background-color: #dde8ff;
  color: #0b5ed7;
}

/* Card metrics */
.track-card__metrics {
  display: flex;
  gap: 20px;
}

.track-card__metric {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.track-card__metric-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1;
}

.track-card__metric-label {
  font-size: 0.775rem;
  color: #6c757d;
}

.text-red { color: #dc3545; }
.text-orange { color: #fd7e14; }
.text-green { color: #28a745; }

/* Difficulty badges */
.difficulty--high { background-color: #dc3545; }
.difficulty--medium { background-color: #fd7e14; }
.difficulty--low { background-color: #28a745; }

/* Card skills chips */
.track-card__skills {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.track-card__skills-label {
  font-size: 0.775rem;
  color: #6c757d;
  font-weight: 500;
}

.track-card__skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.track-card__skill-chip {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.725rem;
  font-weight: 500;
  color: #0d6efd;
  background: #f0f4ff;
  border-radius: 12px;
  white-space: nowrap;
}
/* Readiness progress bar (track-card) */
.track-card__readiness {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.track-card__readiness-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
}

.track-card__readiness-label {
  font-size: 0.775rem;
  color: #6c757d;
}

.track-card__readiness-value {
  font-size: 0.9rem;
  font-weight: 700;
}

.track-card__readiness-bar {
  height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
}

.track-card__readiness-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}


/* Badge color variants (used by JS) */
.badge--blue { background-color: #0d6efd; }
.badge--purple { background-color: #6f42c1; }
.badge--teal { background-color: #20c997; }
.badge--gray { background-color: #6c757d; }
.badge--red { background-color: #dc3545; }
.badge--orange { background-color: #fd7e14; }
.badge--green { background-color: #28a745; }
.badge--small { font-size: 0.7rem; padding: 2px 6px; }

/* Track Detail (JS classes) */
.track-detail--visible {
  max-height: none;
  opacity: 1;
  pointer-events: auto;
  margin-bottom: 24px;
  padding: 32px;
  background: #fff;
  border: 1.5px solid #e9ecef;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  animation: fadeIn 0.3s ease;
}

.track-detail__header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f2f5;
}

.track-detail__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: -0.015em;
}

/* Current profile bar */
.current-profile-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #fff;
  border: 1.5px solid #e9ecef;
  border-radius: 10px;
  margin-bottom: 24px;
}

.current-profile-bar__label {
  font-size: 0.8rem;
  color: #6c757d;
  font-weight: 500;
  white-space: nowrap;
}

.current-profile-bar__info {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a2e;
}


/* ============================================================
   Comparison strip — gap count bars between profile bar and grid
   ============================================================ */

.comparison-strip {
  background: #fff;
  border: 1.5px solid #e9ecef;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 24px;
}

.comparison-strip__title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
}

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.comparison-table__corner {
  width: 140px;
}

.comparison-table__track-header {
  padding: 8px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.8rem;
  color: #1a1a2e;
  border-bottom: 2px solid #e9ecef;
}

.comparison-table__track-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.comparison-table__track-name {
  vertical-align: middle;
}

.comparison-table__category {
  padding: 10px 12px 10px 0;
  font-size: 0.8rem;
  color: #6c757d;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 1px solid #f0f2f5;
}

.comparison-table__cell {
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid #f0f2f5;
}

.comparison-table tbody tr:last-child td,
.comparison-table tbody tr:last-child .comparison-table__category {
  border-bottom: none;
}

.comparison-table__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.comparison-table__count {
  font-weight: 700;
  font-size: 0.9rem;
  color: #1a1a2e;
  vertical-align: middle;
}

/* Legend */
.comparison-table__legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0f2f5;
}

.comparison-table__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.725rem;
  color: #6c757d;
}

@media (max-width: 600px) {
  .comparison-table__track-name {
    display: none;
  }
  .comparison-table__corner {
    width: 100px;
  }
}

/* Transition block in detail panel */
.track-detail__transition {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.track-detail__from,
.track-detail__to {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 180px;
  padding: 14px 18px;
  border-radius: 10px;
}

.track-detail__from {
  background: #f5f7fa;
}

.track-detail__to {
  background: #f0f4ff;
}

.track-detail__pos-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c757d;
}

.track-detail__pos-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
}

.track-detail__pos-title--target {
  color: #0d6efd;
}

.track-detail__pos-dept {
  font-size: 0.8rem;
  color: #6c757d;
}

.track-detail__arrow {
  font-size: 1.5rem;
  color: #adb5bd;
  font-weight: 700;
  flex-shrink: 0;
}

.track-detail__summary {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 16px;
  line-height: 1.5;
}

/* Detail stats */
.detail-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.detail-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 20px;
  background: #f8f9fa;
  border-radius: 10px;
  min-width: 80px;
}

.detail-stat__number {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0d6efd;
  line-height: 1;
}

.detail-stat__label {
  font-size: 0.75rem;
  color: #6c757d;
  margin-top: 4px;
}

.detail-section__title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-section__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e9ecef;
}

.detail-section__subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: #344055;
  margin-bottom: 10px;
  margin-top: 16px;
}

.detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-list__item {
  font-size: 0.85rem;
  color: #344055;
  line-height: 1.45;
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* Gap Table (JS classes) */
.gap-table__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #344055;
  margin-bottom: 10px;
  margin-top: 16px;
}

.gap-table__empty {
  font-size: 0.85rem;
  color: #6c757d;
  padding: 8px 0;
}

.gap-table__scroll {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #e9ecef;
  margin-bottom: 16px;
}

.gap-table__table {
  width: 100%;
  font-size: 0.875rem;
  border-collapse: separate;
  border-spacing: 0;
}

.gap-table__th {
  position: sticky;
  top: 0;
  background-color: #f8f9fa;
  color: #6c757d;
  font-size: 0.775rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
  white-space: nowrap;
}

.gap-table__cell {
  padding: 11px 14px;
  color: #1a1a2e;
  border-bottom: 1px solid #f0f2f5;
  vertical-align: middle;
  line-height: 1.45;
}

.gap-table__cell--name {
  font-weight: 500;
}

.gap-table__table tbody tr:hover {
  background-color: #fafbfd;
}

.gap-table__table tbody tr:last-child .gap-table__cell {
  border-bottom: none;
}

/* Recommendations accordion (JS classes) */
.recommendations { display: flex; flex-direction: column; gap: 8px; }
.recommendations__empty { font-size: 0.85rem; color: #6c757d; }

.rec-accordion {
  border: 1.5px solid #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.rec-accordion--open {
  border-color: #c5d0de;
}

.rec-accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  background: #fff;
  border: none;
  width: 100%;
  text-align: left;
  font-size: inherit;
  transition: background-color 0.15s ease;
}

.rec-accordion__header:hover {
  background-color: #fafbfd;
}

.rec-accordion__goal-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.3;
  flex: 1;
}

.rec-accordion__chevron {
  font-size: 0.75rem;
  color: #adb5bd;
  flex-shrink: 0;
}

.rec-accordion__body {
  padding: 0 18px 18px;
}

.rec-accordion:not(.rec-accordion--open) .rec-accordion__body {
  display: none;
}

/* Rec sections (practice/experience/learning) */
.rec-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.rec-section:last-child {
  margin-bottom: 0;
}

.rec-section__title {
  font-size: 0.825rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.rec-section__empty {
  font-size: 0.825rem;
  color: #6c757d;
}

.rec-section__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rec-section__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: #344055;
  line-height: 1.45;
}

.rec-section__meta {
  display: block;
  font-size: 0.775rem;
  color: #6c757d;
  font-style: italic;
  margin-top: 2px;
}

/* Editable field (JS classes) */
.editable-field {
  cursor: text;
  border-radius: 4px;
  transition: background-color 0.15s ease;
  padding: 2px 4px;
  display: inline-block;
}

.editable-field:hover {
  background-color: #f0f4ff;
  outline: 1.5px dashed rgba(13, 110, 253, 0.4);
}

.editable-field__text {
  display: inline;
}

.editable-field__textarea {
  width: 100%;
  min-height: 60px;
  padding: 8px 10px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #1a1a2e;
  background: #fff;
  border: 1.5px solid #0d6efd;
  border-radius: 6px;
  outline: none;
  resize: vertical;
  display: block;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

/* ---------------------------------------------------------
   16b. Quick Wins
   --------------------------------------------------------- */

.quick-wins {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-win__item {
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 10px 14px;
  background: #f0fdf4;
  border-radius: 8px;
  align-items: flex-start;
}

.quick-win__icon {
  color: #28a745;
  font-weight: 700;
  flex-shrink: 0;
}

.quick-win__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quick-win__text {
  font-size: 0.875rem;
  color: #1a1a2e;
  font-weight: 500;
}

.quick-win__goal {
  font-size: 0.75rem;
  color: #6c757d;
  font-style: italic;
}

/* ---------------------------------------------------------
   Style Switcher (debug)
   --------------------------------------------------------- */

.style-switcher {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.95);
  border: 1.5px solid #e9ecef;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  backdrop-filter: blur(8px);
}

.style-switcher__label {
  font-size: 0.7rem;
  color: #6c757d;
  font-weight: 500;
  margin-right: 2px;
}

.style-switcher__btn {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6c757d;
  background: transparent;
  border: 1.5px solid #dee2e6;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.style-switcher__btn:hover {
  color: #1a1a2e;
  border-color: #adb5bd;
  background: #f8f9fa;
}

.style-switcher__btn--active {
  color: #fff;
  background: #0d6efd;
  border-color: #0d6efd;
}

.style-switcher__btn--active:hover {
  background: #0b5ed7;
  color: #fff;
}

/* ---------------------------------------------------------
   V2: Career Path Timeline
   --------------------------------------------------------- */

.screen--career-path {
  min-height: 100vh;
  padding: 32px 24px 60px;
  max-width: 1200px;
  margin-inline: auto;
  animation: fadeIn 0.3s ease;
}

.path-tracks {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.path-track {
  background: #fff;
  border: 1.5px solid #e9ecef;
  border-radius: 14px;
  padding: 24px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.path-track:hover {
  border-color: #c5d0de;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.path-track--active {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13,110,253,0.1);
}

.path-track__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.path-track__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
}

.path-track__subtitle {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 2px;
}

/* Timeline line */
.path-timeline {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 0 12px;
  overflow-x: auto;
}

.path-timeline::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 12px;
  right: 12px;
  height: 3px;
  background: #e9ecef;
  z-index: 0;
}

.path-timeline__progress {
  position: absolute;
  top: 20px;
  left: 12px;
  height: 3px;
  background: #0d6efd;
  z-index: 1;
  transition: width 0.3s ease;
}

/* Station on the timeline */
.path-station {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
}

.path-station--start {
  align-items: flex-start;
  text-align: left;
}

.path-station--end {
  align-items: flex-end;
  text-align: right;
}

.path-station__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e9ecef;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #e9ecef;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.path-station__dot--current {
  background: #0d6efd;
  box-shadow: 0 0 0 2px #0d6efd;
}

.path-station__dot--target {
  background: #28a745;
  box-shadow: 0 0 0 2px #28a745;
}

.path-station__dot--goal {
  background: #fd7e14;
  box-shadow: 0 0 0 2px #fd7e14;
}

.path-station__label {
  font-size: 0.7rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  margin-bottom: 4px;
}

.path-station__name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.3;
  max-width: 180px;
}

.path-station__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 8px;
  justify-content: center;
}

.path-station__skill {
  font-size: 0.675rem;
  padding: 2px 6px;
  background: #f0f4ff;
  color: #0d6efd;
  border-radius: 10px;
  white-space: nowrap;
}

/* Path detail (expanded) */
.path-detail {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f0f2f5;
  animation: fadeIn 0.3s ease;
}

.path-goal-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.path-goal {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 16px;
}

.path-goal__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.path-goal__number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0d6efd;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.path-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
}

.path-step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.825rem;
  color: #344055;
  line-height: 1.4;
}

.path-step__icon {
  flex-shrink: 0;
  font-size: 0.7rem;
  margin-top: 3px;
}

.path-step__icon--practice { color: #0d6efd; }
.path-step__icon--experience { color: #6f42c1; }
.path-step__icon--learning { color: #20c997; }

.path-step__type {
  font-size: 0.675rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  min-width: 65px;
  flex-shrink: 0;
}

/* ---------------------------------------------------------
   V3: Kanban Board
   --------------------------------------------------------- */

.screen--kanban {
  min-height: 100vh;
  padding: 32px 24px 60px;
  max-width: 1200px;
  margin-inline: auto;
  animation: fadeIn 0.3s ease;
}

.kanban-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.kanban-selector__btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6c757d;
  background: #fff;
  border: 1.5px solid #dee2e6;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.kanban-selector__btn--active {
  color: #fff;
  background: #0d6efd;
  border-color: #0d6efd;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  min-height: 400px;
}

@media (max-width: 768px) {
  .kanban-board {
    grid-template-columns: 1fr;
  }
}

.kanban-column {
  background: #f5f7fa;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kanban-column__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 4px;
}

.kanban-column__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1a2e;
}

.kanban-column__count {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  color: #fff;
}

.kanban-column--ready .kanban-column__count { background: #28a745; }
.kanban-column--improve .kanban-column__count { background: #fd7e14; }
.kanban-column--learn .kanban-column__count { background: #dc3545; }

.kanban-column--ready { border-top: 3px solid #28a745; }
.kanban-column--improve { border-top: 3px solid #fd7e14; }
.kanban-column--learn { border-top: 3px solid #dc3545; }

.kanban-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 12px;
  transition: box-shadow 0.15s ease;
}

.kanban-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.kanban-card__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.kanban-card__category {
  font-size: 0.7rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 500;
}

.kanban-card__gap {
  font-size: 0.775rem;
  color: #344055;
  margin-top: 6px;
  line-height: 1.4;
}

.kanban-card__rec {
  font-size: 0.725rem;
  color: #0d6efd;
  margin-top: 6px;
  font-style: italic;
}

/* ---------------------------------------------------------
   17. Print
   --------------------------------------------------------- */

@media print {
  .btn-back,
  .btn-expand,
  .btn-primary,
  .btn-secondary,
  .toast-container {
    display: none !important;
  }

  .track-detail {
    max-height: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body {
    background: #fff;
  }
}
