* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f7fb;
  color: #1d2733;
}

a {
  color: inherit;
  text-decoration: none;
}

.navbar {
  background: #ffffff;
  padding: 18px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar a {
  margin-left: 18px;
  font-weight: 600;
}

.brand {
  font-size: 24px;
  font-weight: 800;
  color: #2447f9;
}

.nav-button,
.button,
button,
.small-button {
  background: #2447f9;
  color: white !important;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: bold;
  display: inline-block;
}

.small-button {
  padding: 9px 12px;
  font-size: 14px;
}

.hero {
  padding: 90px 8%;
  background: linear-gradient(135deg, #eaf0ff, #ffffff);
}

.hero-content {
  max-width: 760px;
}

.hero h1 {
  font-size: 46px;
  margin-bottom: 18px;
}

.hero p {
  font-size: 20px;
  line-height: 1.6;
  color: #506070;
}

.cards {
  padding: 40px 8%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card,
.result-card,
.empty-box,
.question-box,
.suggestion-box {
  background: white;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

.form-page {
  min-height: calc(100vh - 72px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 35px;
}

.auth-form {
  background: white;
  width: 420px;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

.auth-form input,
.question-form input {
  width: 100%;
}

.auth-form label {
  display: block;
  margin-top: 16px;
  margin-bottom: 7px;
  font-weight: bold;
}

.auth-form input {
  padding: 13px;
  border-radius: 8px;
  border: 1px solid #ccd4df;
}

.auth-form button,
.question-form button {
  width: 100%;
  margin-top: 22px;
  font-size: 16px;
}

.small-text {
  text-align: center;
  color: #607080;
}

.small-text a {
  color: #2447f9;
  font-weight: bold;
}

.container {
  padding: 40px 8%;
}

.narrow {
  max-width: 900px;
  margin: 0 auto;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.result-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.question-box {
  margin-bottom: 22px;
}

.options {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.options label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f7f9fd;
  border: 1px solid #dce3ed;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
}

.options input {
  width: auto;
}

.final-result {
  text-align: center;
  background: white;
  padding: 35px;
  border-radius: 18px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.result-label {
  color: #2447f9;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.score-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #2447f9;
  color: white;
  margin: 25px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.score-circle span {
  font-size: 42px;
  font-weight: bold;
}

.score-table {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
}

.score-table div {
  display: flex;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid #e4e9f0;
}

.message {
  background: #fff4d8;
  border-left: 5px solid #f2b400;
  padding: 12px;
  margin-bottom: 16px;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .cards,
  .result-list {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 34px;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar {
    flex-direction: column;
    gap: 12px;
  }
}

/* New colorful result page design */
.result-body {
  background:
    radial-gradient(circle at top left, rgba(36, 71, 249, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(175, 82, 222, 0.22), transparent 25%),
    linear-gradient(135deg, #f6f8ff 0%, #eef8ff 50%, #fff7fb 100%);
}

.glass-navbar {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(12px);
}

.result-page {
  max-width: 1180px;
  margin: 0 auto;
}

.result-hero-card {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 30px;
  align-items: center;
  padding: 42px;
  border-radius: 28px;
  color: white;
  background: linear-gradient(135deg, #2447f9, #7c3aed 52%, #ec4899);
  box-shadow: 0 24px 55px rgba(64, 74, 180, 0.28);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.result-hero-card::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  right: -80px;
  top: -80px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.result-hero-left,
.result-hero-right {
  position: relative;
  z-index: 1;
}

.result-hero-card h1 {
  font-size: 46px;
  margin: 8px 0 12px;
}

.result-description {
  font-size: 19px;
  line-height: 1.7;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
}

.result-hero-card .result-label {
  color: rgba(255, 255, 255, 0.84);
}

.result-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.badge {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  color: white;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
}

.badge-blue { background: rgba(59, 130, 246, 0.85); }
.badge-purple { background: rgba(168, 85, 247, 0.85); }
.badge-green { background: rgba(34, 197, 94, 0.85); }

.donut-card {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  position: relative;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.24);
}

.donut-chart {
  width: 180px;
  height: 180px;
  transform: rotate(-90deg);
}

.donut-bg,
.donut-progress {
  fill: none;
  stroke-width: 12;
}

.donut-bg {
  stroke: rgba(255,255,255,0.25);
}

.donut-progress {
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-dasharray: 314;
  transition: stroke-dashoffset 0.8s ease;
}

.donut-text {
  position: absolute;
  text-align: center;
}

.donut-text strong {
  display: block;
  font-size: 42px;
}

.donut-text span {
  font-weight: 700;
  color: rgba(255,255,255,0.86);
}

.donut-caption {
  text-align: center;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
}

.chart-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 24px;
  margin-bottom: 24px;
}

.chart-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.75);
  padding: 28px;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(64, 74, 180, 0.13);
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}

.mini-label {
  margin: 0;
  color: #7c3aed;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
}

.light-pill {
  background: #eef2ff;
  color: #4f46e5;
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.bar-chart {
  display: grid;
  gap: 20px;
}

.bar-row {
  display: grid;
  grid-template-columns: 150px 1fr 70px;
  align-items: center;
  gap: 16px;
}

.bar-name {
  font-weight: 900;
}

.bar-track {
  height: 18px;
  border-radius: 999px;
  background: #edf1f7;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  min-width: 8%;
}

.thinking-bar { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.communication-bar { background: linear-gradient(90deg, #7c3aed, #c084fc); }
.leadership-bar { background: linear-gradient(90deg, #16a34a, #86efac); }
.creativity-bar { background: linear-gradient(90deg, #db2777, #f9a8d4); }

.bar-value {
  font-weight: 900;
  color: #344054;
}

.summary-stat-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.summary-stat {
  color: white;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-stat span {
  font-weight: 800;
}

.summary-stat strong {
  font-size: 34px;
}

.stat-blue { background: linear-gradient(135deg, #2563eb, #38bdf8); }
.stat-purple { background: linear-gradient(135deg, #7c3aed, #d946ef); }
.stat-green { background: linear-gradient(135deg, #16a34a, #22c55e); }

.strength-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.strength-card {
  border-radius: 22px;
  padding: 22px;
  color: white;
  min-height: 185px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 30px rgba(0,0,0,0.12);
}

.strength-card h3,
.strength-card p {
  margin: 0;
}

.strength-card p {
  font-size: 42px;
  font-weight: 900;
}

.strength-card span {
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
}

.strength-thinking { background: linear-gradient(135deg, #1d4ed8, #60a5fa); }
.strength-communication { background: linear-gradient(135deg, #6d28d9, #c084fc); }
.strength-leadership { background: linear-gradient(135deg, #15803d, #86efac); }
.strength-creativity { background: linear-gradient(135deg, #be185d, #f9a8d4); }

.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.colorful-box {
  border-left: 8px solid #7c3aed;
}

.action-box {
  border-left: 8px solid #22c55e;
}

.action-box ul {
  line-height: 1.9;
  padding-left: 22px;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 30px 0 10px;
}

.secondary-button {
  background: #111827;
}

@media (max-width: 950px) {
  .result-hero-card,
  .chart-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .strength-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .result-hero-card {
    padding: 28px;
  }

  .result-hero-card h1 {
    font-size: 34px;
  }

  .strength-grid {
    grid-template-columns: 1fr;
  }

  .result-actions {
    flex-direction: column;
  }
}

/* Navigation helpers and dark mode button */
.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-links a {
  margin-left: 0;
}

.theme-toggle {
  width: auto !important;
  margin-top: 0 !important;
  padding: 10px 14px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.18);
}

.input-help {
  margin: 7px 0 0;
  color: #667085;
  font-size: 13px;
}

/* Colorful dashboard design */
.dashboard-body {
  background:
    radial-gradient(circle at top left, rgba(36, 71, 249, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.16), transparent 25%),
    linear-gradient(135deg, #f6f8ff 0%, #eef8ff 50%, #fff7fb 100%);
}

.dashboard-page {
  max-width: 1180px;
  margin: 0 auto;
}

.dashboard-hero-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 40px;
  border-radius: 28px;
  color: white;
  background: linear-gradient(135deg, #2447f9, #7c3aed 52%, #ec4899);
  box-shadow: 0 24px 55px rgba(64, 74, 180, 0.25);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.dashboard-hero-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  top: -80px;
  background: rgba(255,255,255,0.16);
  border-radius: 50%;
}

.dashboard-hero-card > * {
  position: relative;
  z-index: 1;
}

.dashboard-hero-card h1 {
  font-size: 44px;
  margin: 8px 0 10px;
}

.dashboard-hero-card p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
}

.dashboard-main-button {
  background: #ffffff !important;
  color: #2447f9 !important;
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.dashboard-title-row h2 {
  margin-top: 6px;
}

.dashboard-empty-box {
  border-left: 8px solid #7c3aed;
}

.dashboard-result-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dashboard-result-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(64, 74, 180, 0.13);
  position: relative;
  overflow: hidden;
}

.dashboard-result-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #ec4899, #22c55e);
}

.history-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.history-date,
.history-level {
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  padding: 8px 10px;
}

.history-date {
  background: #eef2ff;
  color: #4f46e5;
}

.history-level {
  background: #dcfce7;
  color: #15803d;
}

.dashboard-result-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.history-description {
  color: #52606d;
  line-height: 1.6;
  min-height: 52px;
}

.history-score-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 16px;
  margin: 18px 0;
}

.mini-donut {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#2447f9 var(--score-percent), #e8eef8 0);
  position: relative;
}

.mini-donut::before {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  background: #ffffff;
  border-radius: 50%;
}

.mini-donut span {
  position: relative;
  z-index: 1;
  font-weight: 900;
  color: #2447f9;
}

.mini-bars {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
}

.mini-bars div {
  height: 28px;
  background: #edf1f7;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.mini-bars span {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 6px;
  font-size: 12px;
  font-weight: 900;
  color: #1f2937;
}

.mini-bars b {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #60a5fa, #c084fc);
}

/* Full dark mode */
body.dark-mode {
  background: #080d1a;
  color: #e5e7eb;
}

body.dark-mode.dashboard-body,
body.dark-mode.result-body {
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.18), transparent 28%),
    linear-gradient(135deg, #070b16 0%, #101827 55%, #1c1022 100%);
}

body.dark-mode .navbar,
body.dark-mode .glass-navbar {
  background: rgba(13, 18, 32, 0.88);
  color: #e5e7eb;
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

body.dark-mode .brand,
body.dark-mode .small-text a {
  color: #93c5fd;
}

body.dark-mode .theme-toggle {
  background: #f8fafc;
  color: #111827 !important;
}

body.dark-mode .hero {
  background: linear-gradient(135deg, #101827, #0b1120);
}

body.dark-mode .hero p,
body.dark-mode .small-text,
body.dark-mode .input-help,
body.dark-mode .history-description,
body.dark-mode .bar-value {
  color: #b8c2d0;
}

body.dark-mode .card,
body.dark-mode .result-card,
body.dark-mode .empty-box,
body.dark-mode .question-box,
body.dark-mode .suggestion-box,
body.dark-mode .auth-form,
body.dark-mode .chart-card,
body.dark-mode .dashboard-result-card,
body.dark-mode .final-result,
body.dark-mode .score-table {
  background: rgba(15, 23, 42, 0.92);
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 18px 45px rgba(0,0,0,0.28);
}

body.dark-mode .auth-form input,
body.dark-mode .question-form input {
  background: #111827;
  color: #e5e7eb;
  border-color: #334155;
}

body.dark-mode .options label {
  background: #111827;
  border-color: #334155;
}

body.dark-mode .message {
  background: #3b2d0a;
  color: #fef3c7;
}

body.dark-mode .light-pill,
body.dark-mode .history-date {
  background: #1e293b;
  color: #bfdbfe;
}

body.dark-mode .history-level {
  background: #10291c;
  color: #86efac;
}

body.dark-mode .bar-track,
body.dark-mode .mini-bars div {
  background: #1e293b;
}

body.dark-mode .mini-bars span {
  color: #e5e7eb;
}

body.dark-mode .mini-donut {
  background: conic-gradient(#60a5fa var(--score-percent), #1e293b 0);
}

body.dark-mode .mini-donut::before {
  background: #0f172a;
}

body.dark-mode .mini-donut span {
  color: #bfdbfe;
}

body.dark-mode .donut-card {
  background: rgba(0,0,0,0.18);
}

body.dark-mode .secondary-button {
  background: #334155;
}

@media (max-width: 950px) {
  .dashboard-hero-card,
  .dashboard-result-list {
    grid-template-columns: 1fr;
  }

  .dashboard-hero-card h1 {
    font-size: 34px;
  }
}

/* Smoother 15-question questionnaire design */
.questionnaire-body {
  background:
    radial-gradient(circle at top left, rgba(36, 71, 249, 0.13), transparent 26%),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.12), transparent 24%),
    linear-gradient(135deg, #f7f9ff 0%, #eef7ff 48%, #fff8fb 100%);
}

.questionnaire-page {
  max-width: 1040px;
  margin: 0 auto;
}

.questionnaire-hero {
  padding: 42px;
  border-radius: 34px;
  background: linear-gradient(135deg, #2447f9, #7c3aed 52%, #ec4899);
  color: #ffffff;
  box-shadow: 0 24px 55px rgba(64, 74, 180, 0.24);
  margin-bottom: 28px;
  overflow: hidden;
  position: relative;
}

.questionnaire-hero::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -80px;
  top: -90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.questionnaire-hero h1,
.questionnaire-hero p,
.questionnaire-hero .question-progress-wrap {
  position: relative;
  z-index: 1;
}

.questionnaire-hero h1 {
  font-size: 46px;
  margin: 8px 0 12px;
}

.questionnaire-hero p {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.questionnaire-hero .result-label {
  color: rgba(255, 255, 255, 0.82);
}

.question-progress-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin-top: 26px;
}

.question-progress-track {
  height: 13px;
  background: rgba(255,255,255,0.22);
  border-radius: 999px;
  overflow: hidden;
}

.question-progress-fill {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
}

.question-progress-wrap span {
  font-weight: 900;
  background: rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 9px 12px;
}

.smooth-question-form {
  display: grid;
  gap: 18px;
}

.question-card-smooth {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 16px 38px rgba(64, 74, 180, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.question-card-smooth:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px rgba(64, 74, 180, 0.15);
}

.question-number-pill {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 12px;
}

.question-card-smooth h3 {
  font-size: 24px;
  margin: 0 0 18px;
  line-height: 1.35;
}

.smooth-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.smooth-option {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
  padding: 16px 10px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid #dde7f4;
  border-radius: 22px;
  cursor: pointer;
  font-weight: 800;
  color: #203047;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.65);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.smooth-option:hover {
  transform: translateY(-2px);
  border-color: #9db4ff;
  box-shadow: 0 12px 24px rgba(36, 71, 249, 0.12);
}

.smooth-option input {
  display: none;
}

.custom-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #a4b3c7;
  background: #ffffff;
  flex: 0 0 auto;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.smooth-option input:checked + .custom-radio {
  border-color: #ffffff;
  box-shadow: inset 0 0 0 4px #2447f9, 0 0 0 4px rgba(36, 71, 249, 0.2);
}

.smooth-option:has(input:checked) {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #2447f9, #7c3aed);
  box-shadow: 0 14px 30px rgba(36, 71, 249, 0.22);
}

.submit-card-smooth {
  text-align: center;
  padding: 32px;
  border-radius: 30px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 16px 38px rgba(64, 74, 180, 0.12);
}

.submit-card-smooth h2 {
  margin-top: 0;
}

.submit-card-smooth p {
  color: #52606d;
}

.submit-card-smooth button {
  max-width: 360px;
  border-radius: 999px;
  padding: 15px 22px;
  background: linear-gradient(135deg, #2447f9, #7c3aed, #ec4899);
  box-shadow: 0 16px 30px rgba(124, 58, 237, 0.24);
}

/* Fifth result category colors */
.adaptability-bar { background: linear-gradient(90deg, #ea580c, #fdba74); }
.strength-adaptability { background: linear-gradient(135deg, #c2410c, #fdba74); }
.mini-fill-thinking { background: linear-gradient(90deg, #2563eb, #60a5fa) !important; }
.mini-fill-communication { background: linear-gradient(90deg, #7c3aed, #c084fc) !important; }
.mini-fill-leadership { background: linear-gradient(90deg, #16a34a, #86efac) !important; }
.mini-fill-creativity { background: linear-gradient(90deg, #db2777, #f9a8d4) !important; }
.mini-fill-adaptability { background: linear-gradient(90deg, #ea580c, #fdba74) !important; }

.strength-grid-five {
  grid-template-columns: repeat(5, 1fr);
}

body.dark-mode.questionnaire-body {
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.14), transparent 26%),
    linear-gradient(135deg, #070b16 0%, #101827 55%, #1c1022 100%);
}

body.dark-mode .question-card-smooth,
body.dark-mode .submit-card-smooth {
  background: rgba(15, 23, 42, 0.92);
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 18px 45px rgba(0,0,0,0.28);
}

body.dark-mode .question-number-pill {
  background: #1e293b;
  color: #bfdbfe;
}

body.dark-mode .smooth-option {
  background: linear-gradient(180deg, #111827, #0f172a);
  border-color: #334155;
  color: #e5e7eb;
}

body.dark-mode .smooth-option:has(input:checked) {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

body.dark-mode .custom-radio {
  background: #0f172a;
  border-color: #64748b;
}

body.dark-mode .submit-card-smooth p {
  color: #b8c2d0;
}

@media (max-width: 1050px) {
  .smooth-options {
    grid-template-columns: 1fr;
  }

  .smooth-option {
    min-height: auto;
    justify-content: flex-start;
    text-align: left;
    padding: 15px 18px;
  }

  .strength-grid-five {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .questionnaire-hero,
  .question-card-smooth,
  .submit-card-smooth {
    padding: 24px;
    border-radius: 24px;
  }

  .questionnaire-hero h1 {
    font-size: 34px;
  }

  .question-progress-wrap {
    grid-template-columns: 1fr;
  }

  .strength-grid-five {
    grid-template-columns: 1fr;
  }
}


/* Sharp Mind Mirror polish */
:root {
  --mm-primary: #5b4dff;
  --mm-secondary: #00c2ff;
  --mm-accent: #ff5aa5;
  --mm-ink: #101828;
  --mm-muted: #667085;
  --mm-card: rgba(255, 255, 255, 0.88);
  --mm-border: rgba(91, 77, 255, 0.16);
  --mm-shadow: 0 24px 70px rgba(29, 41, 57, 0.12);
}

body {
  background:
    radial-gradient(circle at top left, rgba(91, 77, 255, 0.16), transparent 32%),
    radial-gradient(circle at top right, rgba(0, 194, 255, 0.16), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  color: var(--mm-ink);
}

.navbar,
.glass-navbar {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(91, 77, 255, 0.12);
  box-shadow: 0 14px 45px rgba(16, 24, 40, 0.08) !important;
}

.brand,
.brand a {
  color: var(--mm-primary) !important;
  letter-spacing: -0.6px;
}

.button,
.nav-button,
button,
.small-button,
.dashboard-main-button {
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--mm-primary), var(--mm-secondary)) !important;
  box-shadow: 0 14px 26px rgba(91, 77, 255, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.button:hover,
.nav-button:hover,
button:hover,
.small-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(91, 77, 255, 0.28);
}

.hero {
  background:
    linear-gradient(135deg, rgba(91,77,255,0.12), rgba(0,194,255,0.08)),
    #ffffff !important;
  border-bottom: 1px solid rgba(91,77,255,0.12);
}

.hero h1,
.dashboard-hero-card h1,
.questionnaire-hero h1,
.result-hero-card h1 {
  letter-spacing: -1.2px;
}

.card,
.auth-form,
.question-card-smooth,
.result-hero-card,
.chart-card,
.suggestion-box,
.dashboard-hero-card,
.dashboard-result-card,
.empty-box {
  border: 1px solid var(--mm-border) !important;
  border-radius: 28px !important;
  background: var(--mm-card) !important;
  box-shadow: var(--mm-shadow) !important;
  backdrop-filter: blur(16px);
}

.question-card-smooth {
  position: relative;
  overflow: hidden;
}

.question-card-smooth::before,
.dashboard-result-card::before,
.chart-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--mm-primary), var(--mm-secondary), var(--mm-accent));
}

.smooth-option {
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(91,77,255,0.14) !important;
  transition: transform 0.18s ease, background 0.18s ease, border 0.18s ease;
}

.smooth-option:hover {
  transform: translateX(6px);
  background: rgba(91, 77, 255, 0.08) !important;
  border-color: rgba(91,77,255,0.34) !important;
}

input,
select,
textarea {
  border-radius: 16px !important;
  border: 1px solid rgba(91,77,255,0.18) !important;
  box-shadow: 0 8px 24px rgba(16,24,40,0.04);
}

.theme-toggle {
  background: rgba(91, 77, 255, 0.08) !important;
  color: var(--mm-primary) !important;
  border: 1px solid rgba(91, 77, 255, 0.16) !important;
  box-shadow: none !important;
}

/* Chatbot */
.chatbot-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  font-family: Arial, Helvetica, sans-serif;
}

.chatbot-fab {
  width: 64px;
  height: 64px;
  border-radius: 50% !important;
  font-size: 26px;
  display: grid;
  place-items: center;
  border: none;
  background: linear-gradient(135deg, #5b4dff, #00c2ff, #ff5aa5) !important;
  box-shadow: 0 20px 46px rgba(91, 77, 255, 0.35) !important;
}

.chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 82px;
  width: 360px;
  max-width: calc(100vw - 32px);
  display: none;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(91,77,255,0.18);
  box-shadow: 0 30px 90px rgba(16,24,40,0.24);
  backdrop-filter: blur(18px);
}

.chatbot-panel.open {
  display: block;
  animation: botPop 0.2s ease-out;
}

@keyframes botPop {
  from { transform: translateY(16px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.chatbot-header {
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  background: linear-gradient(135deg, #1d1b70, #5b4dff, #00a7ff);
}

.chatbot-header strong {
  display: block;
  font-size: 18px;
}

.chatbot-header span {
  display: block;
  margin-top: 2px;
  opacity: 0.86;
  font-size: 13px;
}

.chatbot-header button {
  background: rgba(255,255,255,0.18) !important;
  box-shadow: none !important;
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 22px;
}

.chatbot-messages {
  height: 250px;
  overflow-y: auto;
  padding: 16px;
  background: linear-gradient(180deg, rgba(91,77,255,0.07), rgba(0,194,255,0.04));
}

.bot-message,
.user-message {
  max-width: 86%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 18px;
  line-height: 1.45;
  font-size: 14px;
}

.bot-message {
  background: white;
  color: #1d2733;
  border: 1px solid rgba(91,77,255,0.12);
  border-top-left-radius: 6px;
}

.user-message {
  margin-left: auto;
  color: white;
  background: linear-gradient(135deg, #5b4dff, #00a7ff);
  border-top-right-radius: 6px;
}

.quick-prompts {
  display: flex;
  gap: 8px;
  padding: 12px 14px 4px;
  flex-wrap: wrap;
}

.quick-prompts button {
  padding: 8px 10px;
  font-size: 12px;
  background: rgba(91,77,255,0.08) !important;
  color: #5b4dff !important;
  border: 1px solid rgba(91,77,255,0.16);
  box-shadow: none !important;
}

.chatbot-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
}

.chatbot-input-row input {
  flex: 1;
  min-width: 0;
  padding: 12px;
}

.chatbot-input-row button {
  padding: 12px 14px;
}

.chatbot-note {
  margin: 0;
  padding: 0 14px 14px;
  color: #667085;
  font-size: 11px;
  line-height: 1.35;
}

body.dark-mode {
  background:
    radial-gradient(circle at top left, rgba(91, 77, 255, 0.22), transparent 34%),
    radial-gradient(circle at top right, rgba(0, 194, 255, 0.16), transparent 34%),
    linear-gradient(180deg, #080b18 0%, #10172a 100%) !important;
  color: #eef4ff !important;
}

body.dark-mode .navbar,
body.dark-mode .glass-navbar,
body.dark-mode .card,
body.dark-mode .auth-form,
body.dark-mode .question-card-smooth,
body.dark-mode .result-hero-card,
body.dark-mode .chart-card,
body.dark-mode .suggestion-box,
body.dark-mode .dashboard-hero-card,
body.dark-mode .dashboard-result-card,
body.dark-mode .empty-box,
body.dark-mode .chatbot-panel {
  background: rgba(17, 24, 39, 0.86) !important;
  border-color: rgba(148, 163, 184, 0.20) !important;
  color: #eef4ff !important;
}

body.dark-mode .smooth-option,
body.dark-mode .bot-message,
body.dark-mode input {
  background: rgba(15, 23, 42, 0.9) !important;
  color: #eef4ff !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
}

body.dark-mode .hero {
  background: linear-gradient(135deg, rgba(91,77,255,0.16), rgba(0,194,255,0.08)), #10172a !important;
}

body.dark-mode p,
body.dark-mode .chatbot-note,
body.dark-mode .hero p {
  color: #cbd5e1 !important;
}

@media (max-width: 700px) {
  .chatbot-widget { right: 14px; bottom: 14px; }
  .chatbot-panel { width: calc(100vw - 28px); }
  .chatbot-messages { height: 220px; }
}

/* Dashboard hero visibility fix */
.dashboard-hero-card {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 45%, #06b6d4 100%) !important;
  border: 1px solid rgba(255,255,255,0.32) !important;
  box-shadow: 0 24px 60px rgba(29, 78, 216, 0.22) !important;
}

.dashboard-hero-card::before {
  background: rgba(255,255,255,0.14) !important;
}

.dashboard-hero-card h1,
.dashboard-hero-card .result-label,
.dashboard-hero-card p {
  color: #ffffff !important;
}

.dashboard-hero-card h1 {
  text-shadow: 0 8px 20px rgba(9, 30, 66, 0.18);
}

.dashboard-main-button {
  background: rgba(255,255,255,0.96) !important;
  color: #1d4ed8 !important;
  border: 1px solid rgba(255,255,255,0.6) !important;
}

body.dark-mode .dashboard-hero-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 45%, #0891b2 100%) !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.14) !important;
}

body.dark-mode .dashboard-hero-card h1,
body.dark-mode .dashboard-hero-card .result-label,
body.dark-mode .dashboard-hero-card p {
  color: #ffffff !important;
}

body.dark-mode .dashboard-main-button {
  background: rgba(255,255,255,0.94) !important;
  color: #1d4ed8 !important;
}


/* Side menu layout */
body.with-sidebar {
  min-height: 100vh;
}

.side-menu {
  position: fixed;
  inset: 0 auto 0 0;
  width: 270px;
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(18px);
  border-right: 1px solid rgba(91,77,255,0.12);
  box-shadow: 12px 0 40px rgba(16,24,40,0.06);
  z-index: 100;
}

.side-brand {
  font-size: 34px;
  font-weight: 900;
  color: var(--mm-primary);
  letter-spacing: -1px;
}

.side-tagline {
  margin: 8px 0 0;
  color: var(--mm-muted);
  font-size: 14px;
}

.side-nav {
  display: grid;
  gap: 8px;
  margin: 28px 0;
}

.side-nav a,
.side-secondary-link,
.side-primary-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 700;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.side-nav a:hover,
.side-secondary-link:hover,
.side-primary-link:hover {
  transform: translateX(4px);
}

.side-nav a.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--mm-primary), var(--mm-secondary));
  box-shadow: 0 18px 28px rgba(91,77,255,0.22);
}

.side-nav a:not(.active) {
  color: #233047;
  background: rgba(91,77,255,0.04);
}

.side-user-card {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(91,77,255,0.10), rgba(0,194,255,0.10));
  border: 1px solid rgba(91,77,255,0.10);
}

.side-user-card strong {
  display: block;
  margin-bottom: 4px;
}

.side-user-card span {
  color: var(--mm-muted);
  font-size: 14px;
}

.side-auth-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.side-secondary-link {
  margin-top: 10px;
  color: #233047;
  background: rgba(91,77,255,0.04);
}

.side-primary-link {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--mm-primary), var(--mm-secondary));
}

.main-with-sidebar {
  margin-left: 270px;
  min-height: 100vh;
}

.utility-navbar {
  padding-left: 40px;
  padding-right: 40px;
}

.page-section {
  max-width: 1100px;
  margin: 0 auto;
}

.info-hero-card {
  padding: 34px 36px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(91,77,255,0.14), rgba(0,194,255,0.10), rgba(255,90,165,0.10));
  border: 1px solid rgba(91,77,255,0.10);
  box-shadow: var(--mm-shadow);
  margin-bottom: 26px;
}

.info-hero-card h1 {
  margin: 10px 0 12px;
  font-size: 42px;
}

.info-hero-card p:last-child {
  max-width: 800px;
  line-height: 1.65;
}

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

.info-grid-two {
  grid-template-columns: 1fr 1fr;
}

.contact-note {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(91,77,255,0.06);
  color: #3c4a5f;
}

@media (max-width: 1080px) {
  .side-menu {
    position: static;
    width: auto;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(91,77,255,0.12);
    box-shadow: none;
  }

  .main-with-sidebar {
    margin-left: 0;
  }

  .side-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .utility-navbar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .side-nav {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
  }

  .info-hero-card h1 {
    font-size: 32px;
  }
}

body.dark-mode .side-menu {
  background: rgba(17, 24, 39, 0.90);
  border-color: rgba(148,163,184,0.16);
}

body.dark-mode .side-tagline,
body.dark-mode .side-user-card span,
body.dark-mode .contact-note {
  color: #cbd5e1;
}

body.dark-mode .side-nav a:not(.active),
body.dark-mode .side-secondary-link {
  background: rgba(255,255,255,0.04);
  color: #eef4ff;
}

body.dark-mode .side-user-card,
body.dark-mode .info-hero-card {
  background: rgba(30, 41, 59, 0.86);
  border-color: rgba(148,163,184,0.18);
}

/* Compact click-to-open sidebar */
.menu-toggle {
  width: 46px;
  height: 46px;
  padding: 0 !important;
  margin-right: 14px;
  display: inline-grid;
  place-items: center;
  font-size: 22px;
  background: linear-gradient(135deg, var(--mm-primary), var(--mm-secondary)) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 12px 24px rgba(91,77,255,0.22) !important;
}

.utility-navbar {
  justify-content: flex-start;
  gap: 10px;
}

.utility-navbar .brand {
  margin-right: auto;
}

.side-menu {
  width: 225px !important;
  padding: 22px 14px !important;
  position: fixed !important;
  inset: 0 auto 0 0 !important;
  height: 100vh !important;
  transform: translateX(-112%);
  transition: transform 0.24s ease;
  z-index: 1200 !important;
  border-right: 1px solid rgba(91,77,255,0.12) !important;
  border-bottom: none !important;
  box-shadow: 12px 0 40px rgba(16,24,40,0.12) !important;
}

.side-menu.open {
  transform: translateX(0);
}

.side-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 1100;
}

.side-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.side-brand {
  font-size: 28px !important;
}

.side-tagline {
  font-size: 13px !important;
}

.side-nav {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 7px !important;
  margin: 24px 0 !important;
}

.side-nav a,
.side-secondary-link,
.side-primary-link {
  padding: 11px 14px !important;
  border-radius: 14px !important;
  font-size: 15px;
  gap: 0 !important;
}

.side-nav a:hover,
.side-secondary-link:hover,
.side-primary-link:hover {
  transform: translateX(4px);
}

.side-user-card {
  padding: 13px !important;
  border-radius: 16px !important;
}

.side-user-card strong {
  font-size: 15px;
}

.side-user-card span {
  font-size: 12px !important;
}

.main-with-sidebar {
  margin-left: 0 !important;
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .menu-toggle {
    width: 42px;
    height: 42px;
    font-size: 20px;
    margin-right: 8px;
  }

  .side-menu {
    width: 210px !important;
  }
}

/* Refinement: readable result hero, accessible controls and responsive layout. */
.result-hero-card { background: linear-gradient(135deg, #233a85, #5930a0) !important; color: #fff; }
.result-hero-card h1, .result-hero-card p, .result-hero-card .donut-text { color: #fff !important; }
.chart-card { position: relative; overflow: hidden; }
.smooth-option:has(input:checked), body.dark-mode .smooth-option:has(input:checked) { background: #4338ca !important; color: #fff !important; }
.smooth-option input { display: block; position: absolute; width: 1px; height: 1px; opacity: 0; }
.smooth-option:focus-within, a:focus-visible, button:focus-visible { outline: 3px solid #0891b2; outline-offset: 4px; }
.logout-form { display: inline-block; margin: 0; }
.side-menu { overflow-y: auto; }
.auth-form { max-width: 100%; }
@media (max-width: 600px) { .container { padding: 24px 16px; } .utility-navbar { flex-direction: row; flex-wrap: wrap; } .hero { padding: 45px 20px; } .cards { padding: 24px 16px; } .history-card-top { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Fit answer choices to the available card width, not just the viewport. */
.smooth-options {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  min-width: 0;
}
.smooth-option {
  min-width: 0;
  max-width: 100%;
  height: auto;
  overflow-wrap: anywhere;
  white-space: normal;
}
.option-text { min-width: 0; overflow-wrap: anywhere; }
.smooth-option:hover { transform: none; }
.question-card-smooth { min-width: 0; }
.tests-menu { min-width: 0; }
.tests-menu-toggle {
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(91,77,255,0.06);
  color: #233047;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.tests-menu-toggle:focus-visible { outline: 3px solid #0891b2; outline-offset: 3px; }
.tests-submenu {
  display: grid;
  gap: 6px;
  margin: 8px 0 4px 9px;
  padding-left: 8px;
  border-left: 2px solid rgba(91,77,255,0.3);
}
.tests-submenu a { font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.side-menu { justify-content: flex-start; }
.side-menu-bottom { margin-top: auto; padding-top: 16px; }
body.dark-mode .tests-menu-toggle { color: #eef4ff; background: rgba(255,255,255,0.06); }
@media (max-width: 600px) {
  .smooth-options { grid-template-columns: 1fr; }
  .smooth-option { justify-content: flex-start; text-align: left; padding: 15px 18px; }
}

/* Square corners for content containers throughout the website. */
.container, .card, .result-card, .empty-box, .question-box,
.suggestion-box, .auth-form, .final-result, .score-table,
.result-hero-card, .chart-card, .strength-card, .summary-stat,
.dashboard-hero-card, .dashboard-result-card, .questionnaire-hero,
.question-card-smooth, .submit-card-smooth, .info-hero-card,
.side-user-card, .chatbot-panel, .contact-note, .support-card,
.assessment-question, .assessment-progress, .message {
  border-radius: 0 !important;
}

/* Full-width dashboard and personality test, with compact single-line choices. */
.dashboard-page,
.questionnaire-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px;
  box-sizing: border-box;
}
.questionnaire-page .smooth-options {
  grid-template-columns: repeat(5, minmax(max-content, 1fr));
}
.questionnaire-page .smooth-option {
  min-height: 56px;
  padding: 14px 16px;
  justify-content: center;
}
.questionnaire-page .option-text {
  white-space: nowrap;
  overflow-wrap: normal;
}
@media (max-width: 1199px) {
  .questionnaire-page .smooth-options { grid-template-columns: 1fr; }
  .questionnaire-page .smooth-option {
    justify-content: flex-start;
    text-align: left;
  }
}
@media (max-width: 600px) {
  .dashboard-page, .questionnaire-page { padding: 16px 12px; }
  .questionnaire-page .question-card-smooth { padding: 20px 16px; }
}

/* Motivation replaces the dashboard navigation test link. */
.dashboard-body .utility-navbar { gap: 20px; flex-wrap: wrap; }
.dashboard-body .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.nav-motivation { margin: 0; max-width: 440px; min-width: 0; text-align: center; }
.nav-motivation p { margin: 0; font-size: 14px; line-height: 1.5; }
.nav-motivation footer { margin-top: 3px; font-size: 12px; opacity: .8; }
@media (max-width: 700px) {
  .dashboard-body .nav-links { width: 100%; }
  .nav-motivation { order: 3; flex-basis: 100%; max-width: none; }
}

.result-page{max-width:none;width:100%;box-sizing:border-box}

/* Shared question design for all five tests. */
.test-question{width:100%;min-width:0;box-sizing:border-box;margin:0;padding:28px;border-radius:0!important;overflow:visible}
.test-question:hover{transform:none}
.test-question-legend{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.test-question h3{margin:4px 0 24px;font-size:clamp(20px,2vw,26px);line-height:1.4}
.test-item-kind{margin-left:12px;font-size:13px;color:var(--mm-text)}
.test-question .test-answer-options{display:grid;grid-template-columns:repeat(var(--answer-count),minmax(0,1fr));gap:14px}
.test-question .smooth-option{position:relative;min-width:0;min-height:64px;padding:16px 12px;box-sizing:border-box;justify-content:center;white-space:nowrap;font-size:16px;line-height:1.35}
.test-question .smooth-option:hover{transform:none}
.test-question .smooth-option:has(input:checked){outline:3px solid #0891b2;outline-offset:4px}
.test-section{display:grid;gap:24px;min-width:0}
.test-section>h2{margin:8px 0}
@media(max-width:1500px){.test-question .test-answer-options{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}}
@media(max-width:650px){.test-question{padding:24px 16px}.test-question .test-answer-options{grid-template-columns:1fr}.test-question .smooth-option{justify-content:flex-start;white-space:normal;overflow-wrap:anywhere}.test-question h3{font-size:20px}}

.test-question{container-type:inline-size}
@container(max-width:1150px){.test-question .test-answer-options{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}}

.chatbot-panel[hidden]{display:none!important}.chatbot-panel{width:430px;max-height:calc(100dvh - 116px);overflow-y:auto}.chatbot-toolbar{display:flex;align-items:center;gap:12px;padding:10px 16px;font-size:12px}.chatbot-toolbar button{font-size:12px;padding:8px 12px}.chatbot-messages{height:260px;overflow-y:auto}.bot-message,.user-message{white-space:pre-wrap;overflow-wrap:anywhere}.chatbot-input-row textarea{min-width:0;flex:1;width:100%;resize:vertical;max-height:120px;padding:12px;border:1px solid #a5b4cf;border-radius:10px;font:inherit}.chatbot-input-row{align-items:end}.chatbot-widget button:disabled{opacity:.55;cursor:wait}.chatbot-note{line-height:1.45}body.dark-mode .chatbot-input-row textarea{background:#17263f;color:#fff}@media(max-height:650px){.chatbot-messages{height:160px}}
