:root {
  --mm-bg: #f9fafb;
  --mm-text: #1f2937;
  --mm-surface: #ffffff;
  --mm-border: #e5e7eb;
  --mm-focus: #0b4aa2;
}

html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
  max-width: none;
  background-color: var(--mm-bg);
  color: var(--mm-text);
}

html {
  font-size: 100%;
  scroll-padding-top: 5rem;
}

@media (min-width: 768px) {
  html {
    font-size: 90%;
  }
}

.surface {
  background-color: var(--mm-surface);
  border-color: var(--mm-border);
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent horizontal scroll caused by blurred/absolute decorations */
html,
body {
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

/* Responsive media + long content safety */
img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

pre,
code {
  max-width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
}

.mm-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mm-break {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hidden {
  display: none;
}

.mm-job-status-badge {
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  width: fit-content;
  margin-top: 1rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 9999px;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.mm-job-status-badge--active {
  color: #166534;
  background: #dcfce7;
  border-color: #bbf7d0;
}

.mm-job-status-badge--historical {
  color: #334155;
  background: #f1f5f9;
  border-color: #cbd5e1;
}

#mm-question-count-nudge {
  color: #7c2d12;
  background: #fffbeb;
  border-color: #fbbf24;
}

#mm-question-count-nudge [data-mm-use-recommended-count] {
  color: #ffffff;
  background: #d97706;
  border: 1px solid #d97706;
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.18);
}

#mm-question-count-nudge [data-mm-use-recommended-count]:hover,
#mm-question-count-nudge [data-mm-use-recommended-count]:focus-visible {
  background: #b45309;
  border-color: #b45309;
}

.mm-popularity-meta {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mm-popularity-card--trending {
  border-color: #fde68a !important;
  box-shadow:
    0 0 0 2px rgba(250, 204, 21, 0.62),
    0 18px 36px rgba(15, 23, 42, 0.12),
    0 8px 22px rgba(202, 138, 4, 0.18) !important;
}

.popular-tag.mm-popularity-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border: 1px solid #fed7aa;
  border-radius: 9999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(154, 52, 18, 0.1);
  white-space: nowrap;
}

.popular-tag.mm-popularity-tag--trending {
  color: #9a3412;
  background: #ffedd5;
  border-color: #fed7aa;
  box-shadow: 0 8px 18px rgba(154, 52, 18, 0.1);
}

.popular-tag.mm-popularity-tag--high-interest {
  color: #1e40af;
  background: #dbeafe;
  border-color: #bfdbfe;
  box-shadow: 0 8px 18px rgba(30, 64, 175, 0.09);
}

.popular-tag.mm-popularity-tag--popular {
  color: #334155;
  background: #f1f5f9;
  border-color: #cbd5e1;
  box-shadow: 0 8px 18px rgba(51, 65, 85, 0.08);
}

.popular-support.mm-popularity-support {
  display: inline-flex;
  align-items: center;
  color: #475569;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
}

.filter-chip {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.filter-chip:focus-visible {
  outline: 2px solid #0851c0;
  outline-offset: 3px;
}

/* Keep editable controls aligned with browser caret/click hit-testing. */
input,
select,
textarea {
  box-sizing: border-box;
}

input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):focus,
input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):focus-visible,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible {
  transform: none !important;
}

/* Accessible focus styles across Tailwind + non-Tailwind pages */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--mm-focus);
  outline-offset: 2px;
}

/* Exam settings usability upgrades */
#settings-screen .max-w-lg {
  max-width: min(760px, calc(100vw - 2rem)) !important;
  margin-top: 1.25rem !important;
}

#settings-screen .max-w-lg > div {
  border-radius: 26px;
  border: 1px solid #dbe4f3;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

#settings-screen .max-w-lg > div > div {
  padding: clamp(1.25rem, 2vw, 2rem);
}

#settings-screen h2 {
  font-size: clamp(1.8rem, 2.9vw, 2.35rem) !important;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

#settings-screen label {
  font-size: 0.98rem !important;
  color: #1f2937 !important;
  letter-spacing: 0.005em;
}

#settings-screen input[type="number"] {
  font-variant-numeric: tabular-nums;
  min-height: 56px;
  border-radius: 14px !important;
  border-color: #cfd8e3 !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

#settings-screen input[type="number"]:hover {
  border-color: #9fb6d4 !important;
}

#settings-screen input[type="number"]:focus-visible {
  border-color: #0b4aa2 !important;
  box-shadow: 0 0 0 4px rgba(11, 74, 162, 0.16) !important;
}

#max-questions-hint,
#gk-availability-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e40af;
  font-weight: 700;
  letter-spacing: 0.01em;
}

#max-questions-hint.mm-hint-empty,
#gk-availability-hint.mm-hint-empty {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

#settings-screen .filter-select {
  min-height: 52px;
  padding: 0.75rem 1rem !important;
  border-radius: 14px;
  font-size: 1rem !important;
  line-height: 1.2;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

#settings-screen .filter-select:hover {
  transform: translateY(-1px);
  border-color: #9fb6d4 !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

#settings-screen .filter-select:active {
  transform: translateY(0);
}

#settings-screen .filter-select.bg-blue-600 {
  box-shadow: 0 10px 22px rgba(29, 78, 216, 0.28);
}

#settings-screen .filter-select:focus-visible {
  outline: 3px solid rgba(11, 74, 162, 0.75);
  outline-offset: 2px;
}

#settings-screen button[onclick^="startQuiz"],
#settings-screen button[onclick^="startGkExam"] {
  min-height: 58px;
  padding-top: 0.9rem !important;
  padding-bottom: 0.9rem !important;
  border-radius: 16px;
  font-size: 1.125rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 22px rgba(29, 78, 216, 0.28), 0 1px 0 rgba(255, 255, 255, 0.25) inset;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

#settings-screen button[onclick^="startQuiz"]:hover,
#settings-screen button[onclick^="startGkExam"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(29, 78, 216, 0.32);
}

#settings-screen button[onclick^="startQuiz"]:active,
#settings-screen button[onclick^="startGkExam"]:active {
  transform: translateY(0);
}

#settings-screen button[onclick^="resetApp"] {
  min-height: 48px;
  margin-top: 0.9rem !important;
  padding: 0.65rem 1rem !important;
  border-radius: 12px;
  border: 1px solid #cdd7e5;
  background: #ffffff;
  color: #334155 !important;
  font-size: 0.97rem !important;
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

#settings-screen button[onclick^="resetApp"]:hover {
  background: #f8fafc;
  border-color: #9fb6d4;
  transform: translateY(-1px);
}

#settings-screen .mb-6 {
  margin-bottom: 1.5rem !important;
}

#settings-screen .text-xs.text-gray-500 {
  color: #64748b !important;
  font-size: 0.8rem !important;
}

@media (max-width: 640px) {
  #settings-screen .max-w-lg {
    max-width: calc(100vw - 1rem) !important;
    margin-top: 0.6rem !important;
  }

  #settings-screen .max-w-lg > div > div {
    padding: 1rem;
  }

  #settings-screen h2 {
    font-size: 1.7rem !important;
  }

  #settings-screen .filter-select {
    min-height: 48px;
    font-size: 0.95rem !important;
  }

  #settings-screen button[onclick^="startQuiz"],
  #settings-screen button[onclick^="startGkExam"] {
    min-height: 54px;
    font-size: 1.03rem !important;
  }
}

/* Site-wide scroll edge button */
.mm-back-to-top {
  position: fixed;
  right: max(0.9rem, env(safe-area-inset-right, 0px));
  bottom: max(0.9rem, env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: linear-gradient(135deg, #2563eb 0%, #0f56b3 100%);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 63, 151, 0.32);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.mm-back-to-top:hover,
.mm-back-to-top:focus-visible {
  background: linear-gradient(135deg, #1d4ed8 0%, #0b4aa2 100%);
  box-shadow: 0 22px 52px rgba(15, 63, 151, 0.38);
  outline: none;
}

.mm-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mm-back-to-top i,
.mm-back-to-top .mm-scroll-arrow {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

/* Live Aspirant Momentum bento layout */
.mm-momentum-grid {
  grid-template-columns: 1fr;
  grid-auto-flow: row dense;
}

.mm-momentum-grid .mm-tile {
  border-radius: 16px;
  padding: 14px 16px !important;
  min-height: 82px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.mm-momentum-grid .mm-tile::before {
  content: "";
  position: absolute;
  top: -26px;
  right: -26px;
  width: 92px;
  height: 92px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.45);
  opacity: 0.7;
  transform: scale(1);
  transition: transform 280ms ease, opacity 280ms ease;
  pointer-events: none;
}

.mm-momentum-grid .mm-tile:hover,
.mm-momentum-grid .mm-tile.mm-tile-active {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
}

.mm-momentum-grid .mm-tile:hover::before,
.mm-momentum-grid .mm-tile.mm-tile-active::before {
  transform: scale(1.2);
  opacity: 0.95;
}

.mm-momentum-grid .mm-tile > div {
  word-break: break-word;
}

.mm-emoji {
  display: inline-block;
  margin-right: 6px;
  transform-origin: center;
  transition: transform 180ms ease, filter 180ms ease;
}

.mm-tile:hover .mm-emoji {
  transform: translateY(-1px) scale(1.08) rotate(-6deg);
  filter: saturate(1.2);
}

.mm-tile:active .mm-emoji,
.mm-emoji.is-pop {
  animation: mm-emoji-pop 360ms ease;
}

@keyframes mm-emoji-pop {
  0% {
    transform: scale(1) rotate(0deg);
  }
  35% {
    transform: scale(1.26) rotate(-10deg);
  }
  70% {
    transform: scale(0.94) rotate(8deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@media (min-width: 768px) {
  .mm-momentum-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .mm-momentum-grid .mm-tile--attempts {
    grid-column: 1 / span 4;
    grid-row: 1;
  }

  .mm-momentum-grid .mm-tile--top-exam {
    grid-column: 5 / span 8;
    grid-row: 1;
  }

  .mm-momentum-grid .mm-tile--top-tests {
    grid-column: 1 / span 4;
    grid-row: 5;
  }

  .mm-momentum-grid .mm-tile--active {
    grid-column: 1 / span 3;
    grid-row: 2;
  }

  .mm-momentum-grid .mm-tile--learning {
    grid-column: 4 / span 4;
    grid-row: 2;
  }

  .mm-momentum-grid .mm-tile--high {
    grid-column: 8 / span 5;
    grid-row: 2;
  }

  .mm-momentum-grid .mm-tile--latest {
    grid-column: 1 / span 6;
    grid-row: 3;
  }

  .mm-momentum-grid .mm-tile--mastered {
    grid-column: 7 / span 3;
    grid-row: 3;
  }

  .mm-momentum-grid .mm-tile--mastery {
    grid-column: 10 / span 3;
    grid-row: 3;
  }

  .mm-momentum-grid .mm-tile--repeaters {
    grid-column: 1 / span 4;
    grid-row: 4;
  }

  .mm-momentum-grid .mm-tile--trend {
    grid-column: 5 / span 4;
    grid-row: 4;
  }

  .mm-momentum-grid .mm-tile--improvers {
    grid-column: 9 / span 4;
    grid-row: 4;
  }

  .mm-momentum-grid .mm-tile--leaderboard {
    grid-column: 5 / span 4;
    grid-row: 5;
  }

  .mm-momentum-grid .mm-tile--time-leaderboard {
    grid-column: 9 / span 4;
    grid-row: 5;
  }
}

.mm-momentum-grid .mm-tile--attempts {
  background: #e9f2ff !important;
  border-color: #bfdbfe !important;
}

.mm-momentum-grid .mm-tile--top-exam,
.mm-momentum-grid .mm-tile--top-tests {
  background: #fff1d6 !important;
  border-color: #fcd9a5 !important;
}

.mm-momentum-grid .mm-tile--active {
  background: #eaf6f9 !important;
  border-color: #b7e8f2 !important;
}

.mm-momentum-grid .mm-tile--learning {
  background: #e8f8ef !important;
  border-color: #b9ebcd !important;
}

.mm-momentum-grid .mm-tile--time-leaderboard {
  background: #e8f8ef !important;
  border-color: #b9ebcd !important;
}

.mm-momentum-grid .mm-tile--high {
  background: #fcebff !important;
  border-color: #f7c9ff !important;
}

.mm-momentum-grid .mm-tile--improvers {
  background: #fcebff !important;
  border-color: #f7c9ff !important;
}

.mm-momentum-grid .mm-tile--leaderboard {
  background: #eef0ff !important;
  border-color: #cfd5ff !important;
}

.mm-momentum-grid .mm-tile--latest,
.mm-momentum-grid .mm-tile--repeaters,
.mm-momentum-grid .mm-tile--trend {
  background: #eef0ff !important;
  border-color: #cfd5ff !important;
}

.mm-momentum-grid .mm-tile--mastered,
.mm-momentum-grid .mm-tile--mastery {
  background: #fff1d6 !important;
  border-color: #fcd9a5 !important;
}

@media (min-width: 768px) {
  .mm-back-to-top {
    right: 1.35rem;
    bottom: 1.35rem;
    width: 56px;
    height: 56px;
  }
}

/* Icon-only buttons in the top navbar */
.mm-icon-btn {
  min-width: 44px;
  min-height: 44px;
}

.mm-brand-logo {
  width: auto;
  height: 1.5rem;
  max-width: min(12rem, 70vw);
  aspect-ratio: auto;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Keep navbar brand logo readable while preserving navbar balance */
nav .mm-brand-logo {
  height: 2.6rem;
  width: auto;
  max-width: min(11rem, 48vw);
}

/* Footer logo should remain clearly visible for side-text marks */
footer .mm-brand-logo {
  height: 2rem;
  width: auto;
  max-width: min(240px, 70vw);
}

.mm-icon-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 3px;
}

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

/* Footer readability + spacing (applies across all pages) */
footer .text-gray-400 {
  color: #64748b;
}

footer .mt-8 {
  margin-top: 1.5rem;
}

footer .pt-6 {
  padding-top: 1.25rem;
}

/* Footer brand: keep logo and tagline on one line with logo leading */
footer .text-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

footer .text-left p {
  margin-top: 0;
}

@media (min-width: 768px) {
  footer .max-w-6xl {
    max-width: min(90rem, calc(100vw - 2rem)) !important;
    align-items: center;
    gap: 1.5rem;
  }

  footer .text-left {
    flex: 0 0 auto;
    min-width: max-content;
    flex-wrap: nowrap;
  }

  footer .text-left p {
    white-space: nowrap;
  }

  footer .text-gray-600.text-sm.font-medium {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  footer .text-left {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 0.55rem;
  }

  footer .text-left span,
  footer .text-left p {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

#quiz-screen {
  padding: 0 1.25rem;
}

/* Job Alerts page refinements */
.job-alerts-hero {
  background: linear-gradient(180deg, rgba(29, 78, 216, 0.12), rgba(59, 130, 246, 0.03));
}

.job-alerts-summary {
  max-width: 720px;
}

.job-alerts-kpi {
  min-width: 180px;
  box-shadow: 0 14px 30px -24px rgba(29, 78, 216, 0.55);
}

.job-alerts-updated {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.job-alerts-hero-actions .job-alert-btn {
  width: auto;
}

/* General page hero & card utilities */
.page-hero {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.02));
  border: 1px solid rgba(191, 219, 254, 0.7);
  border-radius: 24px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 18px 40px -32px rgba(15, 23, 42, 0.5);
}

.search-panel input:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.7);
  outline-offset: 3px;
}

.role-grid > * {
  min-height: 190px;
}

.role-card {
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 10px 28px -24px rgba(15, 23, 42, 0.6);
}

.role-card--soon {
  position: relative;
}

.role-card--soon::after {
  content: \"Coming soon\";
  position: absolute;
  top: 18px;
  right: 18px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 4px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

.role-card--soon span {
  display: none;
}

.gk-card {
  min-height: 220px;
}

.gk-level-card {
  min-height: 140px;
}

.gk-level-card:focus-visible,
.gk-year-card:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.7);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .page-hero {
    padding: 1.4rem 1.1rem;
  }

  #step-root {
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  #step-root .gk-card {
    min-height: 156px;
    padding: 1rem 5.1rem 1.1rem 1.1rem !important;
    border-radius: 1rem !important;
    transform: none !important;
    overflow: hidden;
  }

  #step-root .gk-card > .relative.z-10.mb-4 {
    position: absolute;
    top: 3.05rem;
    right: 1rem;
    z-index: 12;
    margin-bottom: 0 !important;
  }

  #step-root .gk-card > .relative.z-10.mb-4 > div {
    width: 3.25rem !important;
    height: 3.25rem !important;
    border-radius: 0.9rem !important;
  }

  #step-root .gk-card h3 {
    position: relative;
    z-index: 10;
    max-width: 100%;
    margin-top: 0.35rem;
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
  }

  #step-root .gk-card p {
    position: relative;
    z-index: 10;
    max-width: 100%;
    margin-top: 0.45rem !important;
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
  }

  #step-root .gk-card:hover {
    transform: none !important;
  }

  #step-root .gk-card > .absolute {
    width: 5rem !important;
    height: 5rem !important;
    max-width: 45%;
    max-height: 45%;
    right: -1.9rem !important;
    top: -1.9rem !important;
  }

  #step-root .mm-popularity-meta {
    width: calc(100% + 4rem);
    max-width: calc(100% + 4rem);
    gap: 0.35rem;
    margin-bottom: 1rem;
    padding-right: 0;
  }

  #step-root .popular-tag.mm-popularity-tag,
  #step-root .popular-support.mm-popularity-support {
    max-width: 100%;
    white-space: normal;
    line-height: 1.2;
    overflow-wrap: anywhere;
    font-size: 0.68rem;
  }

  #step-root .popular-support.mm-popularity-support {
    display: block;
  }

  #step-root .mm-update-badge.mm-update-gk-root {
    display: inline-flex !important;
    width: auto !important;
    max-width: calc(100% + 4rem) !important;
    margin-top: 0.65rem;
    white-space: normal;
    line-height: 1.15;
    overflow-wrap: anywhere;
    font-size: 0.66rem;
  }
}

.job-alerts-list {
  display: grid;
  gap: 1.5rem;
}

.job-alert-card {
  border: 1px solid #dbe6ff;
  border-left: 5px solid #2563eb;
  border-radius: 1.25rem;
  background: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 14px 30px -24px rgba(15, 23, 42, 0.45);
  transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.job-alert-card--open {
  border-left-color: #16a34a;
  background: linear-gradient(90deg, rgba(240, 253, 244, 0.78) 0, #ffffff 22%);
}

.job-alert-card--closed {
  border-color: #e5e7eb;
  border-left-color: #dc2626;
  background: linear-gradient(90deg, rgba(254, 242, 242, 0.78) 0, #ffffff 24%);
}

.job-alert-card--closed .job-alert-snippet,
.job-alert-card--closed .job-alert-meta-value {
  color: #64748b;
}

.job-alert-state-note {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
}

.job-alert-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 24px 42px -32px rgba(15, 23, 42, 0.52);
  transform: translateY(-1px);
}

.job-alert-snippet {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 72ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-alert-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.job-alert-meta-item {
  border-radius: 1rem;
  background: #f8fbff;
  border: 1px solid #e5edff;
  padding: 0.75rem 0.9rem;
}

.job-alert-meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #64748b;
}

.job-alert-meta-value {
  margin-top: 0.25rem;
  font-weight: 700;
  color: #0f172a;
}

.job-alert-actions a {
  min-height: 44px;
}

.job-alert-actions a:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.7);
  outline-offset: 3px;
}

.job-alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.job-alert-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  border-radius: 999px;
  padding: 0.6rem 0.95rem;
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.job-alert-btn:hover {
  transform: translateY(-1px);
}

.job-alert-btn i {
  font-size: 0.92rem;
}

.job-alert-btn--primary {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 10px 20px -16px rgba(37, 99, 235, 0.95);
}

.job-alert-btn--primary:hover {
  background: #1d4ed8;
  color: #ffffff;
}

.job-alert-btn--secondary {
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 10px 20px -16px rgba(15, 118, 110, 0.85);
}

.job-alert-btn--secondary:hover {
  background: #0d9488;
  color: #ffffff;
}

.job-alert-btn--ghost {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

.job-alert-btn--ghost:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}


.job-alert-btn--wa {
  background: #16a34a;
  color: #ffffff;
  box-shadow: 0 10px 20px -16px rgba(22, 163, 74, 0.85);
}

.job-alert-btn--wa:hover {
  background: #15803d;
  color: #ffffff;
}

.job-alert-status {
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border: 1px solid transparent;
}

.job-alert-status-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}

.job-alert-status--open {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.job-alert-status--closed {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.job-alert-deadline {
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  line-height: 1;
}

.job-alert-deadline--open {
  background: #dbeafe;
  color: #1d4ed8;
}

.job-alert-deadline--today {
  background: #fef3c7;
  color: #b45309;
}

.job-alert-deadline--closed {
  background: #fee2e2;
  color: #b91c1c;
}

.job-alert-deadline--neutral {
  background: #e2e8f0;
  color: #475569;
}

@media (max-width: 640px) {
  .job-alert-card {
    padding: 1rem;
  }
  .job-alert-status-stack {
    align-items: flex-start;
  }
  .job-alert-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .job-alert-actions a,
  .job-alert-btn {
    width: 100%;
    justify-content: center;
  }
  .job-alerts-kpi {
    width: 100%;
  }
  .job-alerts-hero {
    background: linear-gradient(180deg, rgba(29, 78, 216, 0.13), rgba(59, 130, 246, 0.04));
  }
  .job-alerts-summary h1 {
    font-size: 1.7rem;
    line-height: 1.2;
  }
  .job-alerts-summary p {
    font-size: 0.97rem;
  }
}

/* general quiz card padding */
#quiz-screen .bg-gray-50 {
  padding: 1rem 1.25rem;
  border-radius: 1.5rem 1.5rem 0 0;
  min-height: 90px;
}

.option-btn {
  min-height: 60px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid #e2e8f0;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.option-btn span:last-child {
  color: #0f172a;
}

.option-btn:hover {
  transform: translateY(-1px);
  border-color: #bfdbfe;
  box-shadow: 0 12px 18px rgba(15, 23, 42, 0.1);
}

@media (min-width: 768px) {
  #quiz-screen {
    padding-inline: 1.75rem;
  }
}

@media (min-width: 1024px) {
  #quiz-screen {
    padding-inline: 2.5rem;
  }
  #quiz-screen .bg-gray-50 {
    padding-left: 3.5rem;
    padding-right: 3.5rem;
    padding-top: 1.25rem;
    padding-bottom: 1rem;
    min-height: 90px;
  }
  #quiz-screen .p-6 {
    padding: 2.25rem;
  }
  #quiz-screen .text-lg {
    padding-top: 0.75rem;
  }
  #quiz-screen .w-full.max-w-3xl {
    padding-top: 1rem;
  }
  #quiz-screen .flex.flex-wrap.justify-between {
    gap: 1.25rem;
  }
  #quiz-screen .bg-white.p-4.rounded-2xl {
    border-width: 1px;
    border-color: #dbeafe;
    transition: transform .2s ease, box-shadow .2s ease;
  }
  #quiz-screen .bg-white.p-4.rounded-2xl:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  }
  #quiz-screen .bg-white.p-4.rounded-2xl span:last-child {
    font-size: 1.02rem;
  }
  #quiz-screen .header-title {
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
  }
  #quiz-screen .timer-box {
    padding: 0.65rem 1rem;
  }
  .option-btn {
    padding: 1.15rem 1.75rem;
    border-radius: 20px;
    font-size: 1.05rem;
  }
}

@media (max-width: 640px) {
  #quiz-screen {
    padding-inline: 1rem;
  }
  #quiz-screen .bg-gray-50 {
    padding: 1.5rem 1.25rem 1rem;
  }
  #quiz-screen .flex.flex-wrap.justify-between {
    flex-direction: column;
    align-items: flex-start;
  }
  .option-btn {
    padding: 1rem 1.25rem;
    min-height: 56px;
  }
}

/* Universal active mock question screen polish */
#quiz-screen .mm-active-quiz-card {
  border-radius: 1.5rem;
}

#quiz-screen .mm-active-quiz-header {
  border-radius: 1.5rem 1.5rem 0 0;
}

#quiz-screen .mm-active-quiz-body {
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

#quiz-screen .mm-active-question-text {
  padding-top: 0;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

#quiz-screen .mm-active-options {
  display: grid;
  gap: 1rem;
}

#quiz-screen .mm-active-option {
  align-items: flex-start;
}

#quiz-screen .mm-active-option-marker {
  flex: 0 0 2.25rem;
  margin-top: 0.05rem;
}

#quiz-screen .mm-active-option-text {
  min-width: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#quiz-screen .mm-active-feedback {
  padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1rem, 3vw, 2rem) clamp(1.25rem, 3vw, 1.75rem);
}

#quiz-screen .mm-active-feedback-card {
  margin: 0;
  border-radius: 1rem;
  border-color: #dbeafe;
  line-height: 1.55;
}

#quiz-screen .mm-active-next-row {
  padding-top: 1rem;
}

#quiz-screen .mm-active-next-button {
  min-height: 3.25rem;
  border-radius: 0.9rem;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
  letter-spacing: 0;
}

#quiz-screen .mm-active-next-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.25);
}

@media (max-width: 640px) {
  #quiz-screen .mm-active-quiz-body {
    padding: 1.5rem;
  }

  #quiz-screen .mm-active-question-text {
    font-size: 1.2rem;
    line-height: 1.55;
    margin-bottom: 1.35rem;
  }

  #quiz-screen .mm-active-feedback {
    padding: 1rem 1rem 1.25rem;
  }

  #quiz-screen .mm-active-feedback-card {
    padding: 1.1rem;
  }

  #quiz-screen .mm-active-next-button {
    min-height: 3rem;
    border-radius: 0.85rem;
  }
}


/* SEO and CLS stability */
.mm-brand-logo,
nav img.mm-brand-logo,
footer img.mm-brand-logo {
  width: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.rolling-notice {
  --mm-job-alert-loop-duration: 120s;
  min-height: 2.75rem;
}

.rolling-notice .notice-track {
  min-height: 2.75rem;
  animation-duration: var(--mm-job-alert-loop-duration);
}

#homepage-cards > a,
#universal-results > a {
  min-height: 15.5rem;
  contain: layout paint;
}

#job-alerts-fallback-links,
.job-alerts-fallback-surface {
  min-height: 12rem;
}

#job-alerts-list {
  min-height: 12rem;
}

.job-alerts-list article,
.job-alerts-fallback-surface article {
  min-height: 10.5rem;
}

#mm-board-seo-surface {
  min-height: 10rem;
}

#mm-board-seo-surface details {
  min-height: 5.5rem;
}

[data-board-context-footer] {
  min-height: 8rem;
}

/* Production Tailwind CDN replacement helpers */
.z-\[9999\] { z-index: 9999; }
.z-\[9998\] { z-index: 9998; }
.max-w-\[92vw\] { max-width: 92vw; }
.min-h-\[44px\] { min-height: 44px; }
.mt-0\.5 { margin-top: 0.125rem; }
.min-w-0 { min-width: 0; }
.shrink-0 { flex-shrink: 0; }
.border-blue-200 { border-color: rgb(191 219 254); }
.text-slate-900 { color: rgb(15 23 42); }
.text-slate-800 { color: rgb(30 41 59); }
.text-slate-700 { color: rgb(51 65 85); }
.text-slate-600 { color: rgb(71 85 105); }
.text-blue-800 { color: rgb(30 64 175); }
.bg-slate-50 { background-color: rgb(248 250 252); }
.hover\:bg-slate-50:hover { background-color: rgb(248 250 252); }
.hover\:bg-blue-700:hover { background-color: rgb(29 78 216); }
.font-\[850\] { font-weight: 850; }
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
