.header-inner {
  position: relative;
}

.mobile-menu-toggle,
.mobile-navigation {
  display: none;
}

.interaction-status {
  margin: 12px 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
}

.interaction-status[hidden] {
  display: none;
}

.analysis-line.complete {
  opacity: 1;
  color: var(--navy);
}

.quiz-result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.quiz-result-badge.high {
  background: #dcfce7;
  color: #166534;
}

.quiz-result-badge.medium {
  background: #fef3c7;
  color: #92400e;
}

.quiz-result-badge.low {
  background: #e2e8f0;
  color: #334155;
}

.assessment-box.medium {
  border-color: #fbbf24;
}

.assessment-box.low {
  border-color: #cbd5e1;
}

.video-nav:disabled {
  opacity: 0.45;
  cursor: default;
}

.video-scroll {
  scroll-behavior: smooth;
  touch-action: pan-x pan-y;
}

.mobile-navigation a {
  display: block;
  padding: 12px 16px;
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
}

.mobile-navigation a + a {
  border-top: 1px solid #e2e8f0;
}

.mobile-navigation a:hover,
.mobile-navigation a:focus-visible {
  background: #f1f5f9;
}

@media (min-width: 768px) {
  .video-nav {
    display: flex !important;
  }
}

@media (max-width: 767px) {
  .header-inner {
    gap: 12px;
    min-width: 0;
  }

  .logo {
    min-width: 0;
  }

  .logo-text-mobile {
    min-width: 0;
  }

  .logo-text-mobile .bot:empty {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #0f172a;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .menu-open .mobile-menu-toggle span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .menu-open .mobile-menu-toggle span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-navigation {
    position: absolute;
    top: 100%;
    right: 12px;
    z-index: 60;
    display: block;
    width: min(280px, calc(100vw - 24px));
    overflow: hidden;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 36px rgb(15 23 42 / 16%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .menu-open .mobile-navigation {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu-toggle span,
  .mobile-navigation,
  .video-scroll {
    scroll-behavior: auto;
    transition: none;
  }
}
