/* Consolidated from navigation-motion-final.css during frontend cleanup 2026-07-08. */
/* Final navigation consistency: one interaction rhythm across every view. */
:root {
  --nav-motion-duration: 180ms;
  --nav-motion-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nav-active-bg:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.62) 58%, rgba(255, 255, 255, 0.34)),
    rgba(255, 255, 255, 0.58);
  --nav-hover-bg: rgba(255, 255, 255, 0.28);
  --nav-active-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -12px 22px rgba(15, 23, 42, 0.055),
    0 14px 34px -26px rgba(15, 23, 42, 0.34);
}

html body .sidebar .nav-list {
  isolation: isolate !important;
}

html body .sidebar .nav-link,
html body .mobile-tab,
html body .mock-paper-tabs button,
html body .admin-tabs button,
html body .profile-tabs button,
html body .home-forum-tabs button,
html body .home-v2-tabs button,
html body .review-filter-tabs button,
html body .review-skill-tabs button,
html body .discussion-tabs button {
  transform: translateY(0) scale(1) !important;
  transition:
    background var(--nav-motion-duration) var(--nav-motion-ease),
    border-color var(--nav-motion-duration) var(--nav-motion-ease),
    box-shadow var(--nav-motion-duration) var(--nav-motion-ease),
    color var(--nav-motion-duration) var(--nav-motion-ease),
    opacity var(--nav-motion-duration) var(--nav-motion-ease),
    transform var(--nav-motion-duration) var(--nav-motion-ease) !important;
  will-change: transform, background, box-shadow !important;
}

html body .sidebar .nav-link:hover:not(.active),
html body .mobile-tab:hover:not(.active),
html body .mock-paper-tabs button:hover:not(.active),
html body .admin-tabs button:hover:not(.active),
html body .profile-tabs button:hover:not(.active),
html body .home-forum-tabs button:hover:not(.active),
html body .home-v2-tabs button:hover:not(.active),
html body .review-filter-tabs button:hover:not(.active),
html body .review-skill-tabs button:hover:not(.active),
html body .discussion-tabs button:hover:not(.active) {
  background: var(--nav-hover-bg) !important;
  color: rgba(20, 24, 32, 0.86) !important;
  transform: translateY(-1px) scale(1.01) !important;
}

html body .sidebar .nav-link:active,
html body .mobile-tab:active,
html body .mock-paper-tabs button:active,
html body .admin-tabs button:active,
html body .profile-tabs button:active,
html body .home-forum-tabs button:active,
html body .home-v2-tabs button:active,
html body .review-filter-tabs button:active,
html body .review-skill-tabs button:active,
html body .discussion-tabs button:active {
  transform: translateY(0) scale(0.98) !important;
}

html body .sidebar .nav-link.active,
html body .mobile-tab.active,
html body .mock-paper-tabs button.active,
html body .admin-tabs button.active,
html body .profile-tabs button.active,
html body .profile-tabs button[aria-selected="true"],
html body .home-forum-tabs button.active,
html body .home-v2-tabs button.active,
html body .review-filter-tabs button.active,
html body .review-skill-tabs button.active,
html body .discussion-tabs button.active {
  color: rgba(9, 12, 18, 0.94) !important;
  border-color: rgba(255, 255, 255, 0.78) !important;
  background: var(--nav-active-bg) !important;
  box-shadow: var(--nav-active-shadow) !important;
  transform: translateY(0) scale(1) !important;
}

html body .sidebar .nav-link.active::after,
html body .mock-paper-tabs button.active::after,
html body .admin-tabs button.active::after,
html body .profile-tabs button.active::after,
html body .home-forum-tabs button.active::after,
html body .home-v2-tabs button.active::after,
html body .review-filter-tabs button.active::after,
html body .review-skill-tabs button.active::after,
html body .discussion-tabs button.active::after {
  display: none !important;
}

html body .sidebar .nav-link.active .icon,
html body .sidebar .nav-link:hover .icon {
  color: currentColor !important;
  background: transparent !important;
}

@media (min-width: 981px) {
  html body .sidebar .nav-link,
  html body.view-dashboard .sidebar .nav-link,
  html body.view-practice .sidebar .nav-link,
  html body.view-mp3 .sidebar .nav-link,
  html body.view-mock .sidebar .nav-link,
  html body.view-profile .sidebar .nav-link,
  html body.view-admin .sidebar .nav-link {
    height: 40px !important;
    min-height: 40px !important;
    border-radius: 999px !important;
  }
}

@media (max-width: 980px) {
  html body.view-switching :is(
    .mobile-bank-rail,
    .mobile-bank-searchbar,
    .mobile-bank-segment,
    .mobile-bank-type-card,
    .mobile-bank-tabbar,
    .home-mobile-topbar,
    .home-mobile-hero,
    .home-mobile-metric,
    .home-mobile-task,
    .home-mobile-quick button,
    .profile-hero-card,
    .profile-today-card,
    .profile-guest-entry,
    .mobile-tabbar
  ) {
    -webkit-backdrop-filter: blur(10px) saturate(1.04) !important;
    backdrop-filter: blur(10px) saturate(1.04) !important;
    transition-duration: 90ms !important;
  }

  html body.view-switching :is(.mobile-bank-bg span, .home-mobile-bg span, .score-hit-orbit, .score-hit-core) {
    animation-play-state: paused !important;
  }

  html body .mobile-tabbar {
    gap: 6px !important;
    border-color: rgba(255, 255, 255, 0.68) !important;
  }

  html body .mobile-tab {
    min-height: 46px !important;
    border: 1px solid transparent !important;
    border-radius: 18px !important;
    color: rgba(82, 89, 101, 0.72) !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 760 !important;
  }

  html body .mobile-tab.active {
    color: rgba(8, 10, 14, 0.95) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .sidebar .nav-link,
  html body .mobile-tab,
  html body .mock-paper-tabs button,
  html body .admin-tabs button,
  html body .profile-tabs button,
  html body .home-forum-tabs button,
  html body .home-v2-tabs button,
  html body .review-filter-tabs button,
  html body .review-skill-tabs button,
  html body .discussion-tabs button {
    transition: none !important;
  }
}

/* Final recording layout lock: the recorder never changes size between states. */
html body #practice.practice-detail-mode .practice-panel.stage-practice.speech-mode .recorder,
html body #practice.practice-detail-mode .practice-panel.stage-practice.speech-mode .recorder.recording {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 54px 42px !important;
  align-items: stretch !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 126px !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 14px 16px !important;
  overflow: visible !important;
  border: 1px solid rgba(255, 255, 255, 0.64) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.64), rgba(250, 252, 253, 0.3)),
    rgba(255, 255, 255, 0.2) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18),
    0 16px 40px -34px rgba(15, 23, 42, 0.34) !important;
  backdrop-filter: blur(22px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.2) !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice.speech-mode .recorder::before,
html body #practice.practice-detail-mode .practice-panel.stage-practice.speech-mode .recorder .timer,
html body #practice.practice-detail-mode .practice-panel.stage-practice.speech-mode .recorder > .timer {
  display: none !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice.speech-mode .recorder .wave,
html body #practice.practice-detail-mode .practice-panel.stage-practice.speech-mode .recorder > .wave,
html body #practice.practice-detail-mode .practice-panel.stage-practice.speech-mode .recorder.recording .wave,
html body #practice.practice-detail-mode .practice-panel.stage-practice.speech-mode .recorder.recording > .wave {
  display: flex !important;
  visibility: visible !important;
  grid-row: 1 !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  margin: 0 !important;
  padding: 0 22px !important;
  gap: 8px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 50% 50%, rgba(52, 211, 153, 0.08), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(246, 248, 250, 0.5)),
    rgba(255, 255, 255, 0.22) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -1px 0 rgba(15, 23, 42, 0.035) !important;
  backdrop-filter: blur(16px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.2) !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice.speech-mode .recorder .wave span,
html body #practice.practice-detail-mode .practice-panel.stage-practice.speech-mode .recorder.recording .wave span {
  display: block !important;
  flex: 0 0 8px !important;
  width: 8px !important;
  min-width: 8px !important;
  max-width: 8px !important;
  height: var(--wave-height, 10px) !important;
  min-height: 8px !important;
  max-height: 36px !important;
  border-radius: 999px !important;
  opacity: var(--wave-opacity, 0.32) !important;
  background:
    linear-gradient(180deg, rgba(134, 239, 172, 0.72), rgba(34, 197, 94, 0.48)) !important;
  box-shadow: none !important;
  transform: scaleY(var(--wave-scale, 1)) translateZ(0) !important;
  transform-origin: center !important;
  animation: none !important;
  transition:
    height 64ms linear,
    opacity 64ms linear,
    transform 64ms linear,
    background 120ms ease !important;
  will-change: height, opacity, transform !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice.speech-mode .recorder:not(.recording) .wave span {
  height: 10px !important;
  opacity: 0.34 !important;
  transform: none !important;
  background:
    linear-gradient(180deg, rgba(167, 243, 208, 0.68), rgba(74, 222, 128, 0.42)) !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice.speech-mode .recorder.recording .wave span {
  background:
    linear-gradient(180deg, #bbf7d0 0%, #34d399 48%, #10b981 100%) !important;
  box-shadow:
    0 0 calc(var(--wave-glow, 0) * 14px) rgba(34, 197, 94, calc(var(--wave-glow, 0) * 0.42)),
    0 6px 14px rgba(16, 185, 129, calc(var(--wave-glow, 0) * 0.16)) !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice.speech-mode .recorder-actions,
html body #practice.practice-detail-mode .practice-panel.stage-practice.speech-mode .recorder.recording .recorder-actions {
  grid-row: 2 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice.speech-mode .recorder-actions button,
html body #practice.practice-detail-mode .practice-panel.stage-practice.speech-mode .recorder.recording .recorder-actions button {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 760 !important;
  line-height: 42px !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice.speech-mode #submitButton:disabled {
  color: rgba(255, 255, 255, 0.78) !important;
  background: rgba(20, 24, 32, 0.42) !important;
  opacity: 1 !important;
}

@media (max-width: 760px) {
  html body #practice.practice-detail-mode .practice-panel.stage-practice.speech-mode .recorder,
  html body #practice.practice-detail-mode .practice-panel.stage-practice.speech-mode .recorder.recording {
    grid-template-rows: 50px auto !important;
    gap: 10px !important;
    min-height: 154px !important;
    padding: 12px !important;
    border-radius: 18px !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice.speech-mode .recorder .wave,
  html body #practice.practice-detail-mode .practice-panel.stage-practice.speech-mode .recorder > .wave,
  html body #practice.practice-detail-mode .practice-panel.stage-practice.speech-mode .recorder.recording .wave {
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 0 16px !important;
    gap: 6px !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice.speech-mode .recorder .wave span,
  html body #practice.practice-detail-mode .practice-panel.stage-practice.speech-mode .recorder.recording .wave span {
    flex-basis: 7px !important;
    width: 7px !important;
    min-width: 7px !important;
    max-width: 7px !important;
    max-height: 32px !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice.speech-mode .recorder-actions,
  html body #practice.practice-detail-mode .practice-panel.stage-practice.speech-mode .recorder.recording .recorder-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    min-height: 92px !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice.speech-mode .recorder-actions button,
  html body #practice.practice-detail-mode .practice-panel.stage-practice.speech-mode .recorder.recording .recorder-actions button {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    font-size: 13px !important;
  }
}

/* Consolidated from recording-controls-fixes.css during frontend cleanup 2026-07-08. */
html body #practice.practice-detail-mode .practice-panel.stage-practice .recorder.recording {
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-items: stretch !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice .recorder.recording .wave,
html body #practice.practice-detail-mode .practice-panel.stage-practice .recorder.recording > .wave {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 58px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.08), transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 250, 0.78)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.78),
    0 18px 42px rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: blur(18px) saturate(1.3) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.3) !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice .recorder.recording .wave span {
  max-width: 9px !important;
  min-width: 4px !important;
  min-height: 8px !important;
  max-height: 54px !important;
  background:
    linear-gradient(180deg, #86efac 0%, #22c55e 48%, #059669 100%) !important;
  box-shadow:
    0 0 calc(var(--wave-glow, 0) * 18px) rgba(34, 197, 94, calc(var(--wave-glow, 0) * 0.48)),
    0 7px 16px rgba(16, 185, 129, calc(var(--wave-glow, 0) * 0.2)) !important;
  transform: scaleY(var(--wave-scale, 1)) translateZ(0) !important;
  transition: height 46ms linear, opacity 46ms linear, transform 46ms linear, box-shadow 80ms ease !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice .recorder.recording .recorder-actions,
html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .recorder.recording .recorder-actions {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice .recorder.recording .recorder-actions button,
html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .recorder.recording .recorder-actions button {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 10px !important;
  font-size: 13px !important;
  line-height: 38px !important;
  white-space: nowrap !important;
}

@media (max-width: 980px) {
  html body #practice.practice-detail-mode .practice-panel.stage-practice .recorder.recording .recorder-actions,
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .recorder.recording .recorder-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Consolidated from word-popover-compact.css during frontend cleanup 2026-07-08. */
/* Last-loaded compact word popover patch. */
html body .dictionary-popover {
  width: min(300px, calc(100vw - 24px)) !important;
  max-width: min(300px, calc(100vw - 24px)) !important;
  max-height: min(430px, calc(100dvh - 28px)) !important;
  padding: 12px !important;
  border-radius: 20px !important;
  overflow: auto !important;
  overscroll-behavior: contain !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(15, 23, 42, 0.16) transparent !important;
  z-index: 5000 !important;
}

html body .dictionary-popover::-webkit-scrollbar {
  width: 5px !important;
}

html body .dictionary-popover::-webkit-scrollbar-thumb {
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.16) !important;
}

html body .dictionary-popover .dict-card-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  align-items: center !important;
  padding-bottom: 9px !important;
}

html body .dictionary-popover .dict-card-head strong {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  color: #17181c !important;
  font-size: 22px !important;
  font-weight: 820 !important;
  line-height: 1.06 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .dictionary-popover .dict-card-head span {
  display: block !important;
  margin-top: 3px !important;
  overflow: hidden !important;
  color: #8a5c00 !important;
  font-size: 14px !important;
  font-weight: 760 !important;
  line-height: 1.15 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .dictionary-popover .dict-pron-actions {
  display: grid !important;
  gap: 6px !important;
}

html body .dictionary-popover .dict-sound-btn {
  min-height: 30px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 760 !important;
  white-space: nowrap !important;
}

html body .dictionary-popover.scored-word-popover .dict-meaning {
  display: grid !important;
  gap: 3px !important;
  margin: 8px 0 0 !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(60, 60, 67, 0.08) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.34) !important;
}

html body .dictionary-popover.scored-word-popover .dict-meaning span,
html body .dictionary-popover.scored-word-popover .dict-meaning b {
  font-size: 11px !important;
  line-height: 1.35 !important;
}

html body .dictionary-popover.scored-word-popover .dict-meaning b {
  font-weight: 720 !important;
}

html body .dictionary-popover.scored-word-popover .word-speech-insight,
html body .dictionary-popover.scored-word-popover .word-diagnostic-panel,
html body .dictionary-popover.scored-word-popover .priority-practice-panel {
  display: grid !important;
  gap: 7px !important;
  margin-top: 10px !important;
  padding: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.26)),
    rgba(255, 255, 255, 0.32) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

html body .dictionary-popover.scored-word-popover .word-diagnostic-panel > span,
html body .dictionary-popover.scored-word-popover .priority-practice-panel > span,
html body .dictionary-popover.scored-word-popover .word-speech-insight > span {
  color: rgba(29, 29, 31, 0.68) !important;
  font-size: 11px !important;
  font-weight: 780 !important;
  line-height: 1.2 !important;
}

html body .dictionary-popover.scored-word-popover .word-diagnostic-panel > div {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

html body .dictionary-popover.scored-word-popover .word-diagnostic-panel b,
html body .dictionary-popover.scored-word-popover .word-speech-insight b {
  min-width: 0 !important;
  min-height: 48px !important;
  padding: 7px 8px !important;
  border-radius: 12px !important;
}

html body .dictionary-popover.scored-word-popover .word-diagnostic-panel em,
html body .dictionary-popover.scored-word-popover .word-diagnostic-panel small,
html body .dictionary-popover.scored-word-popover .word-speech-insight em,
html body .dictionary-popover.scored-word-popover .word-speech-insight p {
  font-size: 10px !important;
  line-height: 1.25 !important;
}

html body .dictionary-popover.scored-word-popover .word-diagnostic-panel strong,
html body .dictionary-popover.scored-word-popover .word-speech-insight strong {
  font-size: 16px !important;
  line-height: 1.05 !important;
}

html body .dictionary-popover.scored-word-popover .priority-practice-panel p {
  margin: 0 !important;
  color: rgba(45, 40, 34, 0.72) !important;
  font-size: 11px !important;
  font-weight: 680 !important;
  line-height: 1.45 !important;
}

html body .dictionary-popover.scored-word-popover .phoneme-feedback-summary,
html body .dictionary-popover.scored-word-popover .coach-phone-advice {
  display: grid !important;
  gap: 4px !important;
  margin: 0 0 8px !important;
  padding: 8px 9px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.34) !important;
}

html body .dictionary-popover.scored-word-popover .phoneme-feedback-summary strong,
html body .dictionary-popover.scored-word-popover .phoneme-feedback-summary span,
html body .dictionary-popover.scored-word-popover .coach-phone-advice strong,
html body .dictionary-popover.scored-word-popover .coach-phone-advice span {
  font-size: 10px !important;
  line-height: 1.35 !important;
}

html body .dictionary-popover.scored-word-popover .coach-word-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-top: 8px !important;
}

html body .dictionary-popover.scored-word-popover .coach-word-actions button,
html body .dictionary-popover.scored-word-popover .coach-word-actions a {
  min-height: 28px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 740 !important;
}

html body .dictionary-popover .popover-score-card {
  gap: 8px !important;
  margin-top: 10px !important;
  padding: 10px !important;
  border-radius: 16px !important;
}

html body .dictionary-popover .popover-score-head {
  gap: 8px !important;
}

html body .dictionary-popover .popover-score-card > span,
html body .dictionary-popover .popover-score-head span {
  font-size: 12px !important;
  font-weight: 760 !important;
}

html body .dictionary-popover .popover-score-head strong {
  font-size: 28px !important;
  font-weight: 840 !important;
}

html body .dictionary-popover .popover-score-meta {
  gap: 6px !important;
  min-height: 28px !important;
  padding: 0 9px !important;
}

html body .dictionary-popover .popover-score-meta b,
html body .dictionary-popover .popover-score-meta em {
  font-size: 12px !important;
  font-weight: 760 !important;
}

html body .dictionary-popover .phoneme-panel {
  margin-top: 10px !important;
  padding-top: 0 !important;
}

html body .dictionary-popover .phoneme-panel h4 {
  margin: 0 0 8px !important;
  color: rgba(29, 29, 31, 0.66) !important;
  font-size: 12px !important;
  font-weight: 780 !important;
}

html body .dictionary-popover .phoneme-row {
  gap: 6px !important;
}

html body .dictionary-popover .phoneme-row b {
  min-height: 43px !important;
  padding: 6px 4px !important;
  border-radius: 12px !important;
}

html body .dictionary-popover .phoneme-row b span {
  font-size: 15px !important;
}

html body .dictionary-popover .phoneme-row small {
  font-size: 10px !important;
  font-weight: 740 !important;
}

html body .dictionary-popover.mobile-sheet {
  position: fixed !important;
  left: 12px !important;
  right: 12px !important;
  top: auto !important;
  bottom: calc(12px + env(safe-area-inset-bottom)) !important;
  width: auto !important;
  max-width: none !important;
  max-height: min(56dvh, 420px) !important;
  border-radius: 22px !important;
  transform: translateZ(0) !important;
}

@media (max-width: 760px) {
  html body .dictionary-popover.mobile-sheet {
    padding: 12px !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.86),
      inset 0 -1px 0 rgba(255, 255, 255, 0.34),
      0 22px 64px -34px rgba(15, 23, 42, 0.66) !important;
  }

  html body .dictionary-popover.mobile-sheet .dict-card-head strong {
    font-size: 21px !important;
  }

  html body .dictionary-popover.mobile-sheet .phoneme-row {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
