:root {
  --ink: #0b0b0c;
  --ink-soft: #202023;
  --muted: #69696f;
  --muted-strong: #4f4f54;
  --paper: #f4f4f2;
  --card: #ffffff;
  --line: rgba(11, 11, 12, 0.1);
  --line-strong: rgba(11, 11, 12, 0.18);
  --yellow: #fdd000;
  --yellow-soft: #fff6bf;
  --yellow-pale: #fffbdf;
  --red: #b42318;
  --green: #147a45;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.03), 0 18px 50px rgba(0, 0, 0, 0.055);
  --shadow-lift: 0 12px 32px rgba(0, 0, 0, 0.12);
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background:
    radial-gradient(circle at 14% -10%, rgba(253, 208, 0, 0.13), transparent 27rem),
    linear-gradient(180deg, #fafaf8 0, var(--paper) 34rem);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font-family: inherit;
}

button,
a,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

.wrap {
  width: min(100%, 1220px);
  max-width: none;
  min-height: 100vh;
  padding: 26px clamp(22px, 4vw, 54px) 80px;
}

.nav {
  min-height: 54px;
  margin-bottom: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1;
  text-decoration: none;
}

.brand::before {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--yellow);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  content: "";
  transform: rotate(45deg);
}

.navright {
  gap: 8px;
}

.navright > a {
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 700;
  transition: background 150ms ease, color 150ms ease;
}

.navright > a:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.button {
  min-height: 46px;
  border-radius: 13px;
  padding: 13px 18px;
  background: var(--ink);
  box-shadow: none;
  color: white;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover:not(:disabled) {
  box-shadow: var(--shadow-lift);
  transform: translateY(-1px);
}

.button:active:not(:disabled) {
  box-shadow: none;
  transform: translateY(0);
}

.button.yellow {
  background: var(--yellow);
  color: var(--ink);
}

.button.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.button:focus-visible,
.option:focus-visible,
.radar-label-target:focus-visible,
.radar-dot:focus-visible,
.skill-detail-close:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.eyebrow {
  padding: 8px 11px;
  background: var(--yellow);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.title {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.055em;
}

.lede {
  color: var(--muted);
  font-size: 16px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
}

.card h2 {
  font-weight: 800;
  letter-spacing: -0.045em;
}

.section-kicker {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.hero {
  max-width: 790px;
  margin-bottom: 48px;
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 800;
}

.hero h1 em {
  color: var(--ink);
  background: linear-gradient(transparent 64%, rgba(253, 208, 0, 0.72) 64%);
}

.auth {
  width: min(100%, 490px);
  margin: 0 auto;
  padding: 34px;
}

.field input {
  min-height: 48px;
  border-color: var(--line-strong);
  border-radius: 12px;
  background: #fff;
}

.field input:focus {
  border-color: var(--ink);
  outline: 3px solid rgba(253, 208, 0, 0.52);
}

.preview-banner {
  margin: -24px 0 32px;
  border-color: rgba(160, 129, 0, 0.25);
  border-radius: 16px;
  background: var(--yellow-pale);
  color: #4b3c00;
}

.dashboard-hero {
  margin-bottom: 30px;
}

.dashboard-hero .title {
  max-width: 760px;
  margin-top: 16px;
  font-size: clamp(46px, 5.6vw, 72px);
  line-height: 0.94;
}

.dashboard-hero .lede {
  max-width: 620px;
  margin-top: 15px;
  font-size: 16px;
}

.member-metrics {
  gap: clamp(20px, 3.5vw, 44px);
  margin: 0 0 28px;
  padding: 24px 2px;
  border-color: var(--line);
}

.member-metrics > div:not(.metric-divider) {
  flex: 1 1 0;
  min-width: 0;
}

.member-metrics strong {
  margin: 9px 0 6px;
  color: var(--ink);
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 800;
}

.member-metrics span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.member-metrics p {
  max-width: 29ch;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.52fr) minmax(315px, 0.76fr);
  gap: 22px;
  margin-top: 0;
}

.dashboard-rail {
  gap: 22px;
}

.skill-map-card {
  min-height: 760px;
  padding: clamp(24px, 3vw, 36px);
  overflow: hidden;
}

.skill-map-card .section-head h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
}

.skill-radar {
  display: block;
  width: 100%;
  margin-top: 16px;
}

.radar-key {
  display: flex;
  justify-content: flex-start;
  gap: 12px 22px;
  margin-bottom: 10px;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 750;
}

.radar-key span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.radar-key i {
  display: block;
  width: 24px;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: rgba(253, 208, 0, 0.62);
}

.radar-key .legend-dotted {
  height: 0;
  border: 0;
  border-top: 2px dashed #7b7b80;
  border-radius: 0;
  background: transparent;
}

.radar-interaction {
  width: 100%;
}

.radar-canvas {
  width: min(100%, 620px);
  max-width: none;
  margin: 0 auto;
}

.radar-canvas svg {
  width: 100%;
  overflow: visible;
}

.radar-ring {
  fill: none;
  stroke: rgba(11, 11, 12, 0.13) !important;
  stroke-width: 1 !important;
}

.radar-spoke {
  stroke: rgba(11, 11, 12, 0.08) !important;
  stroke-width: 1 !important;
}

.radar-reference {
  fill: rgba(80, 80, 84, 0.025);
  stroke: #78787d !important;
  stroke-width: 2 !important;
  stroke-dasharray: 4 7 !important;
  stroke-linejoin: round;
}

.radar-fill {
  fill: rgba(253, 208, 0, 0.58);
  stroke: var(--ink) !important;
  stroke-width: 2.4 !important;
  stroke-linejoin: round;
  filter: none;
}

.radar-label-target {
  cursor: pointer;
  outline: none;
}

.radar-label-target .radar-label {
  pointer-events: all;
  fill: var(--muted-strong);
  font: 760 11px Inter, -apple-system, sans-serif;
  letter-spacing: -0.015em;
  transition: fill 140ms ease;
}

.radar-label-target:hover .radar-label,
.radar-label-target:focus .radar-label,
.radar-label-target.active .radar-label {
  fill: var(--ink);
  text-decoration: none;
}

.radar-dot {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 2;
  cursor: pointer;
  outline: none;
  transition: fill 140ms ease, r 140ms ease;
}

.radar-dot:hover,
.radar-dot:focus,
.radar-dot.active {
  fill: var(--yellow);
  r: 7px;
}

.skill-detail {
  width: 100%;
  margin-top: 4px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f8f8f6;
  animation: detail-in 160ms ease both;
}

.skill-detail[hidden] {
  display: none;
}

@keyframes detail-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.skill-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.skill-detail-kicker,
.skill-detail-tip > span,
.skill-detail-scores span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skill-detail h3 {
  margin: 6px 0 0;
  font-size: 22px;
  letter-spacing: -0.045em;
}

.skill-detail-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.skill-detail-scores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.skill-detail-scores > div {
  min-width: 0;
  padding-right: 12px;
  border-right: 1px solid var(--line);
}

.skill-detail-scores > div:last-child {
  border-right: 0;
}

.skill-detail-scores strong {
  display: block;
  margin-top: 6px;
  font-size: 25px;
  letter-spacing: -0.05em;
}

.skill-detail-scores small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.skill-detail-tip {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.skill-detail-tip > span {
  color: #796300;
}

.skill-detail-tip p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.map-note {
  margin-top: auto !important;
  padding-top: 18px;
  color: var(--muted) !important;
  font-size: 11px !important;
  line-height: 1.55 !important;
}

.next-card {
  padding: 28px;
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: none;
}

.next-card .section-kicker,
.next-meta span:last-child {
  color: var(--yellow);
}

.next-card h2 {
  margin-top: 4px;
  color: #fff;
  font-size: clamp(25px, 2.8vw, 33px);
}

.next-card p {
  color: #c8c8cc;
}

.next-card .button {
  min-height: 50px;
}

.ranking-card {
  padding: 26px;
}

.trophy-mark {
  background: var(--yellow-soft);
}

.mini-leaderboard li {
  min-height: 44px;
  border-color: var(--line);
}

.mini-leaderboard li.is-you {
  background: var(--yellow-pale);
  box-shadow: inset 3px 0 0 var(--yellow);
}

.leaderboard-all summary {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.rank-motivation {
  color: var(--muted);
}

.library-link {
  background: transparent !important;
}

.baseline-welcome {
  max-width: 720px !important;
  margin-top: clamp(58px, 9vh, 110px) !important;
}

.baseline-welcome > div:first-child {
  background: var(--yellow) !important;
  box-shadow: 0 18px 38px rgba(151, 123, 0, 0.18) !important;
}

.baseline-welcome .baseline-cta {
  min-width: 210px;
  box-shadow: none !important;
}

.assessment-nav {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.quiz-page .assessment-nav,
.quiz-page .nav {
  margin-bottom: 44px;
}

.question {
  width: min(100%, 920px);
  max-width: none;
}

.quiz-topline {
  align-items: center;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-color: var(--line);
}

.back-dashboard {
  color: var(--muted-strong);
}

.question-progress {
  width: min(100%, 360px);
  min-width: 300px;
}

.question-progress-copy {
  margin-bottom: 12px;
}

.question-progress-copy b {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.question-progress-copy span {
  color: var(--muted);
  font-size: 12px;
}

.progress-dots {
  grid-template-columns: repeat(14, 1fr);
  gap: 5px;
}

.progress-dots i {
  height: 5px;
  background: rgba(11, 11, 12, 0.1);
}

.progress-dots i.done {
  background: var(--ink);
}

.question-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 26px;
}

.question-kicker,
.question-skill {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.question-heading h1 {
  max-width: 770px;
  margin: 10px 0 0;
  font-size: clamp(29px, 3.8vw, 43px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.06;
}

.question-skill {
  max-width: 180px;
  padding-bottom: 6px;
  text-align: right;
}

.quiz-hint {
  display: flex;
  gap: 12px;
  margin: -6px 0 18px;
  padding: 13px 15px;
  border: 1px solid rgba(160, 129, 0, 0.22);
  border-radius: 14px;
  background: var(--yellow-pale);
  color: #554500;
  font-size: 13px;
  line-height: 1.45;
}

.quiz-hint b {
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.question-card {
  padding: 13px;
  border-radius: 28px;
}

.option-list {
  display: grid;
  gap: 9px;
}

.quiz,
.review,
.leader,
.report,
.curriculum-row {
  border-color: var(--line);
}

.option {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 24px;
  gap: 13px;
  align-items: center;
  min-height: 58px;
  margin: 0;
  padding: 15px 16px;
  border-color: var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.option:hover,
.option.active {
  border-color: var(--ink);
  background: var(--yellow-pale);
  box-shadow: inset 4px 0 0 var(--yellow);
  transform: translateX(2px);
}

.option-key {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #f7f7f5;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 900;
}

.option.active .option-key {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.option-copy {
  text-align: left;
}

.option-check {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  text-align: right;
}

.quiz-validation {
  min-height: 30px;
  padding: 10px 5px 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 750;
}

.quiz-actions {
  margin: 4px 0 0;
  padding: 14px 2px 2px;
  border-top: 1px solid var(--line);
}

.quiz-actions .button {
  min-width: 132px;
}

.result-page .nav {
  margin-bottom: 48px;
}

.result {
  width: min(100%, 900px);
  max-width: none;
}

.result-hero {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}

.result-score {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 132px;
  padding: 25px 12px;
  border-radius: 30px;
  background: var(--yellow);
  box-shadow: 0 20px 42px rgba(151, 123, 0, 0.15);
}

.result-score strong {
  font-size: 55px;
  font-weight: 850;
  letter-spacing: -0.08em;
  line-height: 1;
}

.result-score span {
  margin: 4px 0 0 3px;
  font-size: 16px;
  font-weight: 900;
}

.result-hero .title {
  margin: 14px 0 10px;
  font-size: clamp(40px, 5vw, 62px);
}

.result-journey {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 36px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
  list-style: none;
}

.result-journey li {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 84px;
  padding: 17px;
  background: #fff;
}

.result-journey li > b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #efefec;
  font-size: 11px;
}

.result-journey li.complete > b {
  background: var(--yellow);
}

.result-journey strong,
.result-journey small {
  display: block;
}

.result-journey strong {
  font-size: 13px;
}

.result-journey small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.result-actions {
  display: flex;
  gap: 10px;
  margin: 24px 0 38px;
}

.review-card,
.result-note {
  padding: clamp(24px, 4vw, 38px);
}

.review-card > h2 {
  margin: 0 0 20px;
  font-size: 28px;
}

.review {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
}

.review-number {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.review h3 {
  margin: 8px 0 12px;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.review p {
  margin: 8px 0 0;
}

.review-answer {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f5f5f2;
  color: var(--ink) !important;
}

.result-note b {
  font-size: 18px;
}

.result-note p {
  margin-bottom: 0;
}

.progress-dots i.current {
  background: var(--yellow);
}

.lesson-player {
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.reading-body {
  padding: clamp(28px, 5vw, 50px);
}

.admin-grid {
  gap: 22px;
}

.admin-wrap .admin-hero {
  max-width: 760px;
  margin-bottom: 30px;
}

.admin-wrap .admin-hero .title {
  font-size: clamp(46px, 5.5vw, 70px);
}

.admin-stats .stat {
  min-height: 126px;
  padding: 24px;
}

.preview-tools {
  margin: 22px 0;
  padding: clamp(24px, 3vw, 34px);
}

.preview-tools-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}

.preview-tools-head h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
}

.preview-tools-head p {
  max-width: 690px;
  margin: 9px 0 0;
}

.preview-tools-actions {
  display: flex;
  gap: 8px;
}

.preview-tools-notice {
  min-height: 20px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.preview-tools-notice.success {
  padding: 11px 13px;
  border-radius: 11px;
  background: #eaf7ef;
  color: var(--green);
}

.preview-tools-notice.error {
  padding: 11px 13px;
}

.preview-reset-list {
  margin-top: 6px;
  border-top: 1px solid var(--line);
}

.preview-reset-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.preview-reset-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #efefec;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.preview-reset-mark.has-progress {
  background: var(--yellow);
  color: var(--ink);
}

.preview-reset-title {
  display: flex;
  gap: 8px;
  align-items: center;
}

.preview-reset-title b {
  font-size: 14px;
}

.preview-reset-title span {
  padding: 4px 6px;
  border-radius: 999px;
  background: var(--yellow-pale);
  color: #6f5900;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-reset-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.preview-reset-button {
  min-width: 136px;
}

.inventory-grid > div {
  border-color: var(--line);
  background: #f8f8f6;
}

.zoom-hud {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(11, 11, 12, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.zoom-hud.show {
  opacity: 1;
  transform: translateY(0);
}

html[data-zoom-mode="large"] body {
  overflow-x: auto;
}

html[data-zoom-mode="fit"] body {
  overflow-x: hidden;
}

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

  .skill-map-card {
    min-height: 0;
  }

  .dashboard-rail {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

@media (max-width: 720px) {
  body {
    background: linear-gradient(180deg, #fafaf8 0, var(--paper) 26rem);
  }

  .wrap {
    padding: 18px 16px 54px;
  }

  .nav {
    align-items: center;
    margin-bottom: 42px;
  }

  .navright {
    flex-wrap: nowrap;
  }

  .navright > a {
    display: none;
  }

  .navright .button {
    min-height: 42px;
    padding: 10px 12px;
  }

  .dashboard-hero .title {
    font-size: clamp(42px, 13vw, 58px);
    overflow-wrap: normal;
  }

  .dashboard-hero .lede {
    font-size: 15px;
  }

  .member-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 20px 0;
  }

  .metric-divider {
    display: none;
  }

  .member-metrics strong {
    font-size: clamp(29px, 9vw, 38px);
  }

  .member-metrics p {
    font-size: 10px;
  }

  .dashboard-grid {
    display: grid;
    gap: 14px;
  }

  .dashboard-rail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    order: initial;
  }

  .skill-map-card,
  .next-card,
  .ranking-card {
    padding: 20px;
  }

  .skill-map-card .section-head h2 {
    font-size: 27px;
  }

  .radar-key {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    margin-top: 15px;
  }

  .radar-canvas {
    width: calc(100% + 12px);
    margin-left: -6px;
  }

  .radar-label-target .radar-label {
    font-size: 13px;
  }

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

  .skill-detail-scores > div:nth-child(2) {
    border-right: 0;
  }

  .skill-detail-scores > div:last-child {
    grid-column: 1 / -1;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .ranking-card {
    max-height: none;
  }

  .quiz {
    flex-direction: column;
  }

  .quiz .button,
  .next-card .button,
  .ranking-card .button {
    width: 100%;
  }

  .quiz-topline {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .question-progress {
    width: 100%;
    min-width: 0;
  }

  .question-heading {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }

  .question-heading h1 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .question-skill {
    display: none;
  }

  .question-card {
    padding: 9px;
    border-radius: 22px;
  }

  .option {
    grid-template-columns: 33px minmax(0, 1fr) 20px;
    gap: 10px;
    min-height: 66px;
    padding: 13px 12px;
  }

  .result-hero {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 20px;
  }

  .result-score {
    min-height: 106px;
    padding: 22px 8px;
    border-radius: 24px;
  }

  .result-score strong {
    font-size: 43px;
  }

  .result-journey {
    grid-template-columns: 1fr;
  }

  .result-journey li {
    min-height: 68px;
  }

  .preview-tools-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .preview-tools-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .preview-tools-actions .button {
    width: 100%;
  }

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

  .admin-grid,
  .stats,
  .inventory-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 430px) {
  .brand {
    max-width: 156px;
    font-size: 11px;
    line-height: 1.25;
  }

  .dashboard-hero .title {
    font-size: 44px;
  }

  .member-metrics {
    grid-template-columns: 1fr;
  }

  .member-metrics > div:not(.metric-divider) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3px 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .member-metrics > div:not(.metric-divider):last-child {
    border-bottom: 0;
  }

  .member-metrics strong {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
  }

  .member-metrics p {
    grid-column: 1;
  }

  .skill-map-card {
    overflow: visible;
  }

  .radar-canvas {
    width: calc(100% + 24px);
    margin-left: -12px;
  }

  .radar-label-target .radar-label {
    font-size: 15px;
  }

  .admin-grid,
  .stats,
  .inventory-grid {
    grid-template-columns: 1fr;
  }

  .quiz-page .assessment-nav,
  .quiz-page .nav {
    margin-bottom: 30px;
  }

  .progress-dots {
    gap: 3px;
  }

  .result-hero {
    grid-template-columns: 1fr;
  }

  .result-score {
    width: 104px;
  }

  .result-actions,
  .preview-tools-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .result-actions .button {
    width: 100%;
  }

  .preview-reset-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .preview-reset-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
