:root {
  --ink: #102f42;
  --muted: #617486;
  --paper: #fffaf0;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --line: rgba(26, 77, 96, 0.13);
  --line-warm: rgba(205, 156, 67, 0.2);
  --teal: #0f8797;
  --teal-dark: #07576a;
  --red: #c85d4c;
  --gold: #eeb849;
  --green: #4e9a6d;
  --blue: #426fae;
  --sun: #ffd978;
  --cream: #fffdf7;
  --shadow: 0 22px 60px rgba(36, 56, 70, 0.12);
  --shadow-hover: 0 28px 76px rgba(30, 61, 78, 0.18);
  --ring: 0 0 0 4px rgba(15, 135, 151, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 217, 120, 0.42), transparent 22%),
    radial-gradient(circle at 86% 5%, rgba(15, 135, 151, 0.18), transparent 24%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.42), transparent 34%),
    linear-gradient(90deg, rgba(15, 135, 151, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(238, 184, 73, 0.055) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, auto, 38px 38px, 38px 38px;
  font-family:
    Inter, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  z-index: -1;
}

body.auth-pending > .topbar,
body.auth-pending > main,
body.auth-pending > .auth-screen {
  visibility: hidden;
}

body.auth-required {
  overflow: hidden;
}

body.auth-required > .topbar,
body.auth-required > main,
body.authenticated > .auth-screen {
  display: none;
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: auto;
  color: var(--ink);
  background: #f8f6ef;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 500px);
  min-height: 100%;
}

.auth-context {
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 64px max(7vw, 54px);
  color: #fff;
  background-color: #0b5d6d;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 52px 52px;
}

.auth-context::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 12%;
  width: 38%;
  height: 4px;
  background: var(--gold);
}

.auth-context-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 82px;
}

.institution-logo {
  display: block;
  object-fit: contain;
}

.auth-logo {
  width: 112px;
  height: auto;
  filter: brightness(0) invert(1);
}

.auth-brand strong,
.auth-brand small {
  display: block;
}

.auth-brand strong {
  font-size: 18px;
}

.auth-brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.auth-context .eyebrow {
  color: #ffd978;
}

.auth-context h1 {
  max-width: 720px;
  margin: 10px 0 34px;
  color: #fff;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: 50px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0;
}

.auth-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 26px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.auth-signals span,
.auth-signals strong {
  display: block;
}

.auth-signals span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.auth-signals strong {
  margin-bottom: 3px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
}

.auth-panel {
  display: grid;
  align-items: center;
  padding: 48px 52px;
  background: #fffdf7;
  border-left: 1px solid rgba(26, 77, 96, 0.12);
}

.auth-panel-inner {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
}

.auth-step {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
}

.auth-panel h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0;
}

.auth-subtitle {
  margin: 8px 0 26px;
  color: var(--muted);
  font-size: 14px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  background: rgba(16, 47, 66, 0.055);
  border: 1px solid rgba(26, 77, 96, 0.1);
  border-radius: 8px;
}

.auth-tabs button {
  min-height: 42px;
  color: var(--muted);
  background: transparent;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 800;
}

.auth-tabs button.active {
  color: var(--teal-dark);
  background: #fff;
  box-shadow: 0 6px 18px rgba(36, 56, 70, 0.09);
}

.auth-form {
  display: grid;
  gap: 17px;
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field > label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.phone-input,
.password-input {
  display: grid;
  min-width: 0;
  min-height: 50px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(26, 77, 96, 0.16);
  border-radius: 7px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.phone-input {
  grid-template-columns: 60px minmax(0, 1fr);
}

.password-input {
  grid-template-columns: minmax(0, 1fr) 58px;
}

.phone-input:focus-within,
.password-input:focus-within {
  border-color: var(--teal);
  box-shadow: var(--ring);
}

.phone-input > span {
  display: grid;
  place-items: center;
  color: var(--teal-dark);
  background: rgba(15, 135, 151, 0.07);
  border-right: 1px solid rgba(26, 77, 96, 0.1);
  font-size: 13px;
  font-weight: 900;
}

.phone-input input,
.password-input input {
  min-width: 0;
  padding: 0 14px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 15px;
}

.password-input button {
  color: var(--teal-dark);
  background: transparent;
  border-left: 1px solid rgba(26, 77, 96, 0.1);
  border-radius: 0;
  font-size: 12px;
  font-weight: 800;
}

.password-input button:hover {
  background: rgba(15, 135, 151, 0.07);
  transform: none;
}

.auth-submit {
  min-height: 50px;
  margin-top: 4px;
}

.auth-message {
  min-height: 20px;
  margin: 13px 0 0;
  color: #a04437;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.auth-privacy {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(255, 253, 247, 0.82);
  border-bottom: 1px solid rgba(26, 77, 96, 0.1);
  box-shadow: 0 12px 36px rgba(36, 56, 70, 0.06);
  backdrop-filter: blur(22px) saturate(1.22);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-logo {
  width: 58px;
  height: 48px;
  flex: 0 0 58px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 40%),
    linear-gradient(135deg, var(--teal), var(--blue));
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 12px 30px rgba(15, 135, 151, 0.22);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

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

.topbar-actions,
.account-menu {
  display: flex;
  align-items: center;
}

.topbar-actions {
  gap: 14px;
}

.account-menu {
  gap: 8px;
  padding-left: 14px;
  border-left: 1px solid rgba(26, 77, 96, 0.12);
}

.account-menu span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.account-menu button {
  padding: 8px 11px;
  font-size: 12px;
}

button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

button:hover {
  transform: translateY(-2px) scale(1.03);
}

button:active {
  transform: translateY(0) scale(0.97);
}

.ghost,
.secondary {
  padding: 10px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(26, 77, 96, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ghost.active,
.primary {
  padding: 11px 18px;
  color: #062f3b;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 36%),
    linear-gradient(135deg, var(--sun), #8be0d4);
  box-shadow:
    0 14px 28px rgba(238, 184, 73, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 64px;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: center;
  min-height: 430px;
  padding: 48px 0 34px;
}

.services-band {
  margin: 6px 0 58px;
  padding: 27px 0 0;
  background: rgba(255, 255, 255, 0.42);
  border-block: 1px solid rgba(26, 77, 96, 0.13);
}

.services-heading {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 0 24px 25px;
}

.services-logo {
  width: 108px;
  height: auto;
}

.services-heading .eyebrow {
  margin-bottom: 5px;
}

.services-heading h2 {
  margin: 0 0 6px;
  font-size: 25px;
  letter-spacing: 0;
}

.services-heading > div > p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(26, 77, 96, 0.11);
}

.service-item {
  min-width: 0;
  padding: 20px 18px 23px;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.service-item + .service-item {
  border-left: 1px solid rgba(26, 77, 96, 0.1);
}

.service-item:hover {
  background: rgba(255, 217, 120, 0.13);
  transform: translateY(-2px);
}

.service-item > span {
  display: block;
  min-height: 16px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.35;
}

.service-item h3 {
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: 17px;
}

.service-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.68;
}

.intro-copy h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
  background: linear-gradient(115deg, #102f42 18%, #0f8797 62%, #b47a16);
  background-clip: text;
  color: transparent;
}

.intro-copy p:last-child {
  max-width: 680px;
  color: #526a7a;
  font-size: 18px;
  line-height: 1.75;
}

.intro-modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 780px;
  margin-top: 24px;
}

.intro-module {
  position: relative;
  min-height: 152px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.28)),
    rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  box-shadow:
    0 16px 40px rgba(36, 56, 70, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  backdrop-filter: blur(12px) saturate(1.18);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.intro-module::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  border-radius: 0 0 999px 999px;
}

.intro-module:hover {
  transform: translateY(-5px) scale(1.015);
  border-color: rgba(238, 184, 73, 0.5);
  box-shadow: var(--shadow-hover);
}

.intro-module span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--teal-dark);
  background: rgba(231, 248, 245, 0.9);
  border: 1px solid rgba(15, 135, 151, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.intro-module h3 {
  margin: 14px 0 8px;
  font-size: 17px;
}

.intro-module p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  border-radius: 999px;
}

.major-map {
  position: relative;
  min-height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.16) 34%),
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.92), transparent 16%),
    radial-gradient(circle at 16% 18%, rgba(255, 217, 120, 0.42), transparent 20%),
    radial-gradient(circle at 84% 28%, rgba(139, 224, 212, 0.42), transparent 24%),
    radial-gradient(circle at 74% 82%, rgba(66, 111, 174, 0.12), transparent 22%),
    linear-gradient(145deg, #fffdf7, #fff5d8 54%, #e8fbf8);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.major-map:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-hover);
}

.major-map::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(15, 135, 151, 0.08),
    inset 0 18px 45px rgba(255, 255, 255, 0.34);
}

.major-map::after {
  content: "ACADEMIC FIT MAP";
  position: absolute;
  right: 22px;
  bottom: 16px;
  color: rgba(24, 48, 66, 0.18);
  font-size: 12px;
  font-weight: 900;
}

.map-orbit,
.map-axis,
.map-core,
.map-chip {
  position: absolute;
  z-index: 1;
}

.map-orbit {
  left: 50%;
  top: 50%;
  border: 1px solid rgba(15, 135, 151, 0.13);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 36px rgba(255, 255, 255, 0.42);
}

.orbit-a {
  width: 72%;
  aspect-ratio: 1.48;
}

.orbit-b {
  width: 48%;
  aspect-ratio: 1.42;
  border-style: dashed;
  border-color: rgba(238, 184, 73, 0.24);
}

.map-axis {
  left: 50%;
  top: 50%;
  width: 72%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 135, 151, 0.18), transparent);
  transform-origin: center;
}

.axis-x {
  transform: translate(-50%, -50%);
}

.axis-y {
  transform: translate(-50%, -50%) rotate(90deg);
}

.map-core {
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 126px;
  height: 126px;
  color: #082f3b;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), transparent 42%),
    linear-gradient(145deg, rgba(255, 217, 120, 0.92), rgba(145, 226, 216, 0.92));
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  box-shadow:
    0 18px 48px rgba(15, 135, 151, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%);
  z-index: 4;
}

.map-core strong,
.map-core small,
.node strong,
.node small {
  display: block;
}

.map-core strong {
  font-size: 20px;
}

.map-core small {
  margin-top: -22px;
  color: rgba(8, 47, 59, 0.68);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 116px;
  height: 78px;
  padding: 10px;
  color: var(--ink);
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.24)),
    rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    0 18px 38px rgba(23, 32, 42, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px) saturate(1.25);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
  z-index: 2;
}

.node:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow:
    0 22px 46px rgba(23, 32, 42, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  filter: saturate(1.08);
}

.node strong {
  font-size: 20px;
}

.node small {
  margin-top: -8px;
  color: rgba(24, 48, 66, 0.58);
  font-size: 12px;
}

.node::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--node-color);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--node-color), transparent 78%);
}

.node-engineering {
  --node-color: var(--teal);
  left: 34px;
  top: 44px;
}

.node-business {
  --node-color: var(--gold);
  right: 34px;
  top: 56px;
}

.node-humanities {
  --node-color: var(--red);
  left: 40px;
  bottom: 76px;
}

.node-science {
  --node-color: var(--green);
  right: 58px;
  bottom: 86px;
}

.node-design {
  --node-color: var(--blue);
  left: 50%;
  top: 34px;
  transform: translateX(-50%);
}

.node-design:hover {
  transform: translateX(-50%) translateY(-4px) scale(1.08);
}

.node-media {
  --node-color: #d07158;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
}

.node-media:hover {
  transform: translateX(-50%) translateY(-4px) scale(1.08);
}

.line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(15, 135, 151, 0.28), rgba(238, 184, 73, 0.14), transparent);
  transform-origin: left center;
  z-index: 2;
}

.line-a { width: 205px; left: 135px; top: 94px; transform: rotate(18deg); }
.line-b { width: 210px; left: 130px; bottom: 130px; transform: rotate(-20deg); }
.line-c { width: 190px; right: 136px; top: 116px; transform: rotate(156deg); }
.line-d { width: 190px; right: 126px; bottom: 134px; transform: rotate(204deg); }

.map-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  color: rgba(16, 47, 66, 0.72);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(36, 56, 70, 0.08);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  z-index: 3;
}

.chip-a {
  left: 26px;
  top: 22px;
}

.chip-b {
  right: 26px;
  bottom: 50px;
}

.chip-c {
  right: 26px;
  top: 22px;
}

.view {
  margin-top: 18px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0 16px;
}

.section-heading h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.16;
}

.section-heading > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  text-align: right;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}

.score-grid label,
.question-card,
.result-card,
.major-card,
.compare-column,
.empty-state {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow:
    0 14px 42px rgba(36, 56, 70, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.score-grid label:hover,
.question-card:hover,
.result-card:hover,
.major-card:hover,
.compare-column:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(238, 184, 73, 0.55);
  box-shadow: var(--shadow-hover);
  background: var(--cream);
}

.score-grid label {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  min-height: 94px;
  padding: 16px;
}

.score-grid label > span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.score-grid input,
.filters input,
.filters select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(26, 77, 96, 0.14);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 253, 247, 0.9);
  transition:
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.score-grid input:focus,
.filters input:focus,
.filters select:focus {
  outline: 0;
  border-color: var(--teal);
  box-shadow: var(--ring);
  transform: scale(1.02);
}

.score-grid label > input {
  font-size: 24px;
  font-weight: 800;
}

.score-grid small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.score-grid small input {
  width: 68px;
}

.question-stage {
  display: grid;
  gap: 14px;
  min-height: 280px;
}

.question-card {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(360px, 1.25fr);
  gap: 20px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.quiz-shell {
  display: grid;
  gap: 16px;
}

.question-nav {
  display: grid;
  grid-template-columns: repeat(12, minmax(34px, 1fr));
  gap: 8px;
  max-height: 156px;
  overflow-y: auto;
  padding: 12px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(36, 56, 70, 0.06);
  backdrop-filter: blur(12px);
  scrollbar-color: rgba(15, 135, 151, 0.34) transparent;
  scrollbar-width: thin;
}

.question-nav::-webkit-scrollbar {
  width: 7px;
}

.question-nav::-webkit-scrollbar-thumb {
  background: rgba(15, 135, 151, 0.3);
  border-radius: 999px;
}

.question-dot {
  min-height: 36px;
  padding: 0;
  color: var(--muted);
  background: rgba(255, 253, 247, 0.88);
  border: 1px solid rgba(26, 77, 96, 0.12);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.question-dot:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.08);
  border-color: rgba(15, 135, 151, 0.32);
  box-shadow: 0 12px 24px rgba(15, 135, 151, 0.12);
}

.question-dot.current {
  color: #062f3b;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 34%),
    linear-gradient(135deg, var(--sun), #9ce6dc);
  border-color: rgba(15, 135, 151, 0.48);
  box-shadow: 0 12px 28px rgba(238, 184, 73, 0.22);
}

.question-dot.answered:not(.current) {
  color: var(--teal-dark);
  background: rgba(231, 248, 245, 0.9);
}

.question-dot:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.single-question {
  grid-template-columns: 1fr;
  min-height: 270px;
  padding: clamp(20px, 4vw, 34px);
  animation: questionIn 0.22s ease-out;
}

.single-question h3 {
  max-width: 860px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.32;
}

.question-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.single-question .choice-row {
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  margin-top: 12px;
}

.single-question .choice-row label {
  min-height: 72px;
  padding: 12px;
  font-size: 15px;
}

.single-question .choice-row label span {
  position: relative;
  z-index: 1;
}

.quiz-controls {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

button:disabled:hover {
  transform: none;
  box-shadow: none;
}

@keyframes questionIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.question-card::before,
.major-card::before,
.result-card::before,
.compare-column::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.66), transparent 34%);
  opacity: 0.78;
}

.question-card h3 {
  position: relative;
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
}

.choice-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.choice-row label {
  display: grid;
  place-items: center;
  min-height: 46px;
  border: 1px solid rgba(26, 77, 96, 0.13);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.82);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.choice-row label:hover {
  transform: translateY(-2px) scale(1.045);
  border-color: rgba(19, 138, 158, 0.5);
  box-shadow: 0 12px 26px rgba(19, 135, 151, 0.13);
}

.choice-row input {
  position: absolute;
  opacity: 0;
}

.choice-row label:has(input:checked) {
  color: #103542;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), transparent 34%),
    linear-gradient(135deg, var(--sun), #9ce6dc);
  border-color: var(--teal);
  box-shadow: 0 12px 28px rgba(238, 184, 73, 0.25);
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 18px -4px 0;
  padding: 12px 4px;
  background: rgba(255, 250, 240, 0.74);
  backdrop-filter: blur(18px) saturate(1.2);
}

.results {
  margin-top: 24px;
  scroll-margin-top: 108px;
}

.result-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.result-card {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.result-card.top {
  border-top: 0;
  box-shadow:
    0 22px 64px rgba(15, 135, 151, 0.14),
    inset 0 0 0 1px rgba(15, 135, 151, 0.18),
    inset 0 5px 0 rgba(15, 135, 151, 0.9);
}

.plan-principle {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  margin: 22px 0 34px;
  padding: 15px 18px;
  color: var(--teal-dark);
  background: rgba(15, 135, 151, 0.07);
  border-left: 4px solid var(--teal);
}

.plan-principle strong {
  font-size: 14px;
}

.plan-principle p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.volunteer-plans {
  display: grid;
  gap: 46px;
}

.volunteer-plan {
  min-width: 0;
  scroll-margin-top: 108px;
}

.plan-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 15px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.plan-header > span {
  display: grid;
  flex: 0 0 70px;
  place-items: center;
  min-height: 34px;
  color: #5f4210;
  background: rgba(238, 184, 73, 0.2);
  border: 1px solid rgba(190, 137, 38, 0.26);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 900;
}

.plan-header h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 22px;
}

.plan-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.volunteer-list {
  display: grid;
  gap: 13px;
}

.volunteer-choice {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(26, 77, 96, 0.13);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(36, 56, 70, 0.07);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.volunteer-choice:hover {
  z-index: 1;
  border-color: rgba(15, 135, 151, 0.35);
  box-shadow: 0 22px 56px rgba(36, 56, 70, 0.12);
  transform: translateY(-2px);
}

.choice-index {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  color: var(--teal-dark);
  background: rgba(15, 135, 151, 0.07);
  border-right: 1px solid rgba(15, 135, 151, 0.12);
}

.volunteer-choice:nth-child(3) .choice-index {
  color: #245a3c;
  background: rgba(62, 148, 103, 0.1);
}

.choice-index span {
  font-size: 11px;
  font-weight: 800;
}

.choice-index strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 500;
  line-height: 1;
}

.choice-content {
  min-width: 0;
  padding: 20px 22px;
}

.choice-content > h3 {
  margin: 0 0 7px;
  font-size: 21px;
}

.requirement-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.requirement-badge.required {
  color: #744126;
  background: rgba(238, 184, 73, 0.2);
  border: 1px solid rgba(190, 137, 38, 0.24);
}

.requirement-badge.open {
  color: #245a3c;
  background: rgba(62, 148, 103, 0.12);
  border: 1px solid rgba(62, 148, 103, 0.22);
}

.recommendation-reasons {
  margin: 18px 0;
  padding: 16px 18px;
  background: rgba(255, 250, 237, 0.74);
  border-left: 3px solid var(--gold);
}

.recommendation-reasons h4 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 13px;
}

.recommendation-reasons ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
}

.recommendation-reasons li {
  padding-left: 3px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.72;
}

.choice-readiness {
  margin: 15px 0;
  padding: 13px 15px;
  border-left: 3px solid var(--green);
}

.choice-readiness.ready {
  background: rgba(62, 148, 103, 0.07);
}

.choice-readiness.warning {
  background: rgba(202, 91, 73, 0.07);
  border-left-color: #c85d4c;
}

.choice-readiness strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 13px;
}

.choice-readiness p,
.choice-readiness ul {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.68;
}

.choice-readiness ul {
  display: grid;
  gap: 4px;
  padding-left: 18px;
}

.major-caution {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.subject-warning-panel {
  margin-top: 48px;
  padding: 24px 26px;
  background: rgba(246, 231, 227, 0.7);
  border-block: 1px solid rgba(200, 93, 76, 0.2);
}

.subject-warning-panel.clear {
  background: rgba(231, 248, 245, 0.58);
  border-color: rgba(15, 135, 151, 0.16);
}

.subject-warning-panel > span,
.test-disclaimer > span {
  color: #a04437;
  font-size: 11px;
  font-weight: 900;
}

.subject-warning-panel.clear > span {
  color: var(--teal-dark);
}

.subject-warning-panel h3 {
  margin: 5px 0 8px;
  font-size: 21px;
}

.subject-warning-panel > p {
  max-width: 90ch;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.72;
}

.interest-risk-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin-top: 17px;
  border-top: 1px solid rgba(200, 93, 76, 0.16);
}

.interest-risk-list article {
  padding: 15px 0;
  border-bottom: 1px solid rgba(200, 93, 76, 0.16);
}

.interest-risk-list strong,
.interest-risk-list span {
  display: block;
}

.interest-risk-list strong {
  color: var(--ink);
  font-size: 14px;
}

.interest-risk-list span {
  margin: 2px 0 5px;
  color: #a04437;
  font-size: 12px;
  font-weight: 800;
}

.interest-risk-list p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.test-disclaimer {
  margin-top: 30px;
  padding: 25px 28px;
  color: #fff;
  background: #123e49;
  border-left: 6px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 22px 58px rgba(18, 62, 73, 0.2);
}

.test-disclaimer > span {
  color: #ffd56f;
}

.test-disclaimer h3 {
  margin: 5px 0 9px;
  color: #fff;
  font-size: 22px;
}

.test-disclaimer p {
  max-width: 98ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13.5px;
  line-height: 1.8;
}

.result-card h3,
.major-card h3,
.compare-column h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
}

.meta,
.tags,
.risk-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: var(--teal-dark);
  background: rgba(231, 248, 245, 0.86);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(15, 135, 151, 0.1);
  transition:
    transform 0.16s ease,
    background 0.16s ease;
}

.pill:hover {
  transform: translateY(-1px) scale(1.045);
  background: #fff1bf;
}

.pill.warn {
  color: #7a352c;
  background: rgba(246, 231, 227, 0.9);
  border-color: rgba(200, 93, 76, 0.18);
}

.meter {
  height: 11px;
  margin: 10px 0 14px;
  background: rgba(16, 47, 66, 0.08);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(16, 47, 66, 0.08);
}

.meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--teal), var(--green));
}

.filters {
  display: grid;
  grid-template-columns: 1fr 220px 220px;
  gap: 10px;
  margin-bottom: 14px;
}

.major-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.major-card {
  display: flex;
  flex-direction: column;
  min-height: 290px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.major-card p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  line-height: 1.6;
}

.result-card p,
.compare-column p,
.empty-state {
  position: relative;
  z-index: 1;
}

.english-name {
  position: relative;
  z-index: 1;
  margin: -2px 0 10px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.english-name.large {
  font-size: 15px;
}

.programme-details {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.programme-details.compact {
  grid-template-columns: 1fr;
}

.programme-details span {
  display: block;
  min-height: 58px;
  padding: 10px;
  color: var(--muted);
  background: rgba(255, 253, 247, 0.7);
  border: 1px solid rgba(26, 77, 96, 0.09);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.programme-details strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 12px;
}

.detail-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.detail-module {
  padding: clamp(16px, 2.6vw, 24px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.28)),
    rgba(255, 253, 247, 0.72);
  border: 1px solid rgba(26, 77, 96, 0.1);
  border-radius: 8px;
}

.detail-module h3 {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 20px;
  line-height: 1.35;
}

.detail-module h4 {
  margin: 16px 0 8px;
  font-size: 15px;
}

.detail-module p,
.detail-module li {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.86;
}

.detailed-content .detail-module {
  border-color: rgba(15, 135, 151, 0.14);
}

.source-text {
  display: grid;
  gap: 10px;
  max-width: 72ch;
}

.source-text p {
  margin: 0;
  word-break: break-word;
}

.source-text p:has(+ p) {
  padding-bottom: 2px;
}

.source-text p::first-letter {
  letter-spacing: 0;
}

.source-empty {
  padding: 12px;
  color: var(--teal-dark) !important;
  background: rgba(255, 241, 191, 0.58);
  border: 1px solid rgba(238, 184, 73, 0.22);
  border-radius: 8px;
}

.detailed-content .detail-module h3::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  border-radius: 999px;
}

.detailed-content .detail-module p {
  text-align: justify;
}

.detail-module ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.year-grid,
.path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.year-grid div,
.path-grid div {
  padding: 12px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(26, 77, 96, 0.08);
  border-radius: 8px;
}

.year-grid strong,
.path-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
}

.year-grid p,
.path-grid p {
  margin: 0;
}

.planning-detail {
  gap: 22px;
  min-width: 0;
}

.planning-detail .detail-module {
  min-width: 0;
  padding: clamp(20px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(26, 77, 96, 0.14);
}

.detail-module-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.detail-module-heading > span {
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: var(--teal-dark);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.detail-module-heading h3 {
  margin: 0 0 4px;
  font-size: clamp(20px, 2.2vw, 26px);
}

.detail-module-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.detail-lead {
  padding: 2px 0 4px 18px;
  border-left: 4px solid var(--gold);
}

.detail-lead p {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.85;
}

.detail-kicker {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.positioning-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.positioning-grid section + section {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.positioning-grid h4,
.practice-strip h4,
.application-timeline h4 {
  margin-top: 0;
}

.detail-notice {
  margin: -4px 0 18px;
  padding: 10px 14px;
  color: var(--teal-dark) !important;
  background: rgba(15, 135, 151, 0.065);
  border-left: 3px solid var(--teal);
  font-size: 12.5px !important;
  line-height: 1.65 !important;
}

.module-overview,
.direction-context,
.route-guidance,
.career-overview,
.score-method {
  max-width: 92ch;
  color: var(--muted);
  font-size: 13.5px !important;
  line-height: 1.82 !important;
  text-align: justify;
}

.module-overview,
.career-overview {
  margin: -4px 0 22px;
  padding-left: 16px;
  border-left: 3px solid rgba(15, 135, 151, 0.42);
}

.direction-context {
  margin: 12px 0 22px;
}

.route-guidance {
  margin: 0 0 12px;
}

.score-method {
  margin: 10px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.year-timeline {
  position: relative;
}

.year-timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 20px;
  width: 1px;
  background: rgba(15, 135, 151, 0.22);
}

.year-plan {
  position: relative;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 22px;
  padding: 0 0 28px;
}

.year-plan:last-child {
  padding-bottom: 0;
}

.year-marker {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  grid-template-columns: 40px 1fr;
  gap: 2px 10px;
}

.year-marker > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--teal-dark);
  background: #fff;
  border: 2px solid var(--teal);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

.year-marker strong {
  padding-top: 2px;
  color: var(--ink);
  font-size: 15px;
}

.year-marker small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.year-plan-body {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.year-plan:last-child .year-plan-body {
  padding-bottom: 0;
  border-bottom: 0;
}

.year-plan-body h4 {
  margin: 0 0 9px;
  color: var(--teal-dark);
  font-size: 13px;
}

.course-list,
.direction-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.course-list span,
.direction-list span {
  padding: 6px 9px;
  color: var(--ink);
  background: rgba(238, 184, 73, 0.11);
  border: 1px solid rgba(205, 156, 67, 0.2);
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.35;
}

.year-plan dl {
  display: grid;
  gap: 6px;
  margin: 13px 0 0;
}

.year-plan dl div {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 10px;
}

.year-plan dt {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.year-plan dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.practice-strip {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.grade-bands {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
  border-block: 1px solid var(--line);
}

.grade-bands > div {
  padding: 16px;
}

.grade-bands > div + div {
  border-left: 1px solid var(--line);
}

.grade-bands strong,
.grade-bands span {
  display: block;
}

.grade-bands strong {
  color: var(--teal-dark);
  font-size: 21px;
}

.grade-bands span {
  margin: 3px 0 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.grade-bands p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.direction-list {
  margin-bottom: 20px;
}

.direction-list span {
  color: #fff;
  background: var(--blue);
  border-color: transparent;
}

.admission-routes {
  display: grid;
  min-width: 0;
  gap: 24px;
  margin-top: 24px;
}

.admission-route {
  min-width: 0;
}

.admission-route h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 16px;
}

.admission-table-wrap,
.career-table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  border-block: 1px solid var(--line);
}

.admission-table,
.career-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  table-layout: fixed;
}

.admission-table th,
.admission-table td,
.career-table th,
.career-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.58;
  text-align: left;
  vertical-align: top;
}

.admission-table thead th,
.career-table thead th {
  color: var(--teal-dark);
  background: rgba(15, 135, 151, 0.055);
  font-size: 11px;
}

.admission-table tbody th,
.career-table tbody th {
  color: var(--ink);
  font-size: 12px;
}

.admission-table tr:last-child > *,
.career-table tr:last-child > * {
  border-bottom: 0;
}

.application-timeline {
  margin-top: 28px;
}

.application-timeline ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-block: 1px solid var(--line);
}

.application-timeline li {
  padding: 15px;
}

.application-timeline li + li {
  border-left: 1px solid var(--line);
}

.application-timeline strong,
.application-timeline span {
  display: block;
}

.application-timeline strong {
  margin-bottom: 7px;
  color: var(--teal-dark);
}

.application-timeline span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.policy-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.policy-flow section {
  padding-left: 16px;
  border-left: 3px solid var(--gold);
}

.policy-flow section:nth-child(2) {
  border-color: var(--teal);
}

.policy-flow section:nth-child(3) {
  border-color: var(--green);
}

.policy-flow span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.policy-flow h4 {
  margin: 4px 0 8px;
  color: var(--ink);
  font-size: 15px;
}

.policy-flow p {
  margin: 0;
  font-size: 13px;
  line-height: 1.68;
}

.career-table {
  min-width: 820px;
}

.career-table th:first-child {
  width: 15%;
}

.career-table th:nth-child(2) {
  width: 29%;
}

.career-table th:nth-child(3) {
  width: 30%;
}

.degree-ladder {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
  border-block: 1px solid var(--line);
}

.degree-ladder > div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  padding: 15px;
}

.degree-ladder > div + div {
  border-left: 1px solid var(--line);
}

.degree-ladder span {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.degree-ladder p {
  margin: 0;
  font-size: 12px;
  line-height: 1.62;
}

.score-history {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.score-history > div {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 20px 12px;
  text-align: center;
}

.score-history > div + div {
  border-left: 1px solid var(--line);
}

.score-history span,
.score-history small {
  color: var(--muted);
  font-size: 11px;
}

.score-history strong {
  color: var(--teal-dark);
  font-size: 28px;
}

.score-history .no-score strong {
  color: #8c98a1;
  font-size: 17px;
}

.score-reading {
  margin: 16px 0 0;
  color: var(--ink) !important;
  font-size: 13px !important;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.card-actions button {
  flex: 1;
}

.compare-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.compare-column {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.compare-row {
  padding: 12px 0;
  border-top: 1px solid rgba(26, 77, 96, 0.1);
  position: relative;
  z-index: 1;
}

.compare-row strong {
  display: block;
  margin-bottom: 4px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

dialog {
  width: min(1180px, calc(100% - 28px));
  overflow-x: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  box-shadow: 0 32px 90px rgba(16, 47, 66, 0.24);
  background: rgba(255, 253, 247, 0.96);
  backdrop-filter: blur(16px);
}

dialog::backdrop {
  background: rgba(23, 32, 42, 0.48);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: #fff1bf;
}

.tilt-ready {
  will-change: transform;
}

#dialogContent {
  min-width: 0;
  overflow-x: hidden;
  padding: 22px 10px 4px;
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-context {
    min-height: 310px;
    padding: 34px 32px;
  }

  .auth-brand {
    margin-bottom: 32px;
  }

  .auth-logo {
    width: 94px;
  }

  .auth-context h1 {
    max-width: 650px;
    margin-bottom: 24px;
    font-size: 38px;
  }

  .auth-panel {
    min-height: 520px;
    padding: 48px 32px;
    border-top: 1px solid rgba(26, 77, 96, 0.12);
    border-left: 0;
  }

  .topbar,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .topbar-actions {
    align-items: stretch;
    width: 100%;
  }

  .nav-actions {
    flex: 1;
  }

  .intro-band,
  .intro-modules,
  .question-card,
  .result-summary,
  .filters,
  .major-grid,
  .compare-panel {
    grid-template-columns: 1fr;
  }

  .major-map {
    min-height: 360px;
  }

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

  .service-item {
    border-top: 1px solid rgba(26, 77, 96, 0.1);
  }

  .service-item:nth-child(odd) {
    border-left: 0;
  }

  .service-item:nth-child(5) {
    grid-column: 1 / -1;
  }

  .map-core {
    width: 104px;
    height: 104px;
  }

  .map-core strong {
    font-size: 17px;
  }

  .node {
    width: 96px;
    height: 68px;
  }

  .node strong {
    font-size: 17px;
  }

  .node small {
    font-size: 11px;
  }

  .node-engineering { left: 18px; top: 70px; }
  .node-business { right: 18px; top: 70px; }
  .node-humanities { left: 18px; bottom: 86px; }
  .node-science { right: 18px; bottom: 86px; }
  .node-design { top: 36px; }
  .node-media { bottom: 28px; }

  .line {
    opacity: 0.58;
  }

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

  .question-nav {
    grid-template-columns: repeat(8, minmax(32px, 1fr));
  }

  .single-question .choice-row {
    grid-template-columns: 1fr;
  }

  .year-grid,
  .path-grid,
  .programme-details {
    grid-template-columns: 1fr;
  }

  .section-heading > p {
    text-align: left;
  }

  .positioning-grid,
  .policy-flow {
    grid-template-columns: 1fr;
  }

  .positioning-grid section + section {
    padding: 20px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .grade-bands,
  .application-timeline ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grade-bands > div:nth-child(3),
  .grade-bands > div:nth-child(4),
  .application-timeline li:nth-child(3),
  .application-timeline li:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .grade-bands > div:nth-child(3),
  .application-timeline li:nth-child(3) {
    border-left: 0;
  }

  .degree-ladder {
    grid-template-columns: 1fr;
  }

  .interest-risk-list {
    grid-template-columns: 1fr;
  }

  .results,
  .volunteer-plan {
    scroll-margin-top: 150px;
  }

  .degree-ladder > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .auth-context {
    min-height: 278px;
    padding: 25px 20px 30px;
  }

  .auth-brand {
    margin-bottom: 22px;
  }

  .auth-logo {
    width: 78px;
  }

  .auth-brand strong {
    font-size: 16px;
  }

  .auth-context h1 {
    margin: 7px 0 20px;
    font-size: 30px;
    line-height: 1.25;
  }

  .auth-signals {
    gap: 12px;
    padding-top: 17px;
  }

  .auth-signals strong {
    font-size: 23px;
  }

  .auth-panel {
    min-height: 500px;
    padding: 34px 20px 44px;
  }

  .auth-panel h2 {
    font-size: 25px;
  }

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

  .topbar-logo {
    width: 52px;
    height: 43px;
    flex-basis: 52px;
  }

  .services-band {
    margin-bottom: 44px;
    padding-top: 22px;
  }

  .services-heading {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 14px;
    padding: 0 15px 20px;
  }

  .services-logo {
    width: 72px;
  }

  .services-heading h2 {
    font-size: 20px;
  }

  .services-heading > div > p:last-child {
    font-size: 12px;
  }

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

  .service-item,
  .service-item + .service-item,
  .service-item:nth-child(5) {
    grid-column: auto;
    padding: 16px;
    border-top: 1px solid rgba(26, 77, 96, 0.1);
    border-left: 0;
  }

  .account-menu {
    justify-content: space-between;
    padding: 8px 0 0;
    border-top: 1px solid rgba(26, 77, 96, 0.1);
    border-left: 0;
  }

  main {
    width: min(100% - 20px, 1180px);
  }

  .intro-copy h1 {
    font-size: 34px;
  }

  .score-grid,
  .choice-row {
    grid-template-columns: 1fr;
  }

  .question-nav {
    grid-template-columns: repeat(6, minmax(30px, 1fr));
  }

  .plan-principle {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .plan-header > span {
    flex-basis: 62px;
  }

  .plan-header h3 {
    font-size: 19px;
  }

  .volunteer-choice {
    grid-template-columns: 1fr;
  }

  .choice-index {
    grid-template-columns: auto auto;
    justify-content: start;
    gap: 6px;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(15, 135, 151, 0.12);
  }

  .choice-index strong {
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
  }

  .choice-content {
    padding: 17px 14px;
  }

  .choice-content > h3 {
    font-size: 19px;
  }

  .recommendation-reasons {
    padding: 14px;
  }

  .subject-warning-panel,
  .test-disclaimer {
    padding: 20px 16px;
  }

  .choice-row label {
    justify-content: start;
    padding-left: 14px;
  }

  .node {
    width: 88px;
    height: 62px;
    font-size: 14px;
  }

  .major-map {
    min-height: 330px;
  }

  .map-chip {
    display: none;
  }

  .map-core {
    width: 92px;
    height: 92px;
  }

  .map-core small {
    display: none;
  }

  .node small {
    display: none;
  }

  .node-engineering { left: 12px; top: 72px; }
  .node-business { right: 12px; top: 72px; }
  .node-humanities { left: 12px; bottom: 82px; }
  .node-science { right: 12px; bottom: 82px; }

  dialog {
    width: calc(100% - 12px);
    padding: 10px;
  }

  #dialogContent {
    padding-inline: 0;
  }

  .planning-detail .detail-module {
    padding: 18px 14px;
  }

  .detail-module-heading {
    gap: 10px;
    padding-right: 28px;
  }

  .detail-module-heading > span {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .detail-module-heading h3 {
    font-size: 19px;
  }

  .year-timeline::before {
    display: none;
  }

  .year-plan {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .year-marker {
    grid-template-columns: 36px 1fr;
  }

  .year-marker > span {
    width: 36px;
    height: 36px;
  }

  .year-plan dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .grade-bands,
  .application-timeline ol {
    grid-template-columns: 1fr;
  }

  .grade-bands > div + div,
  .grade-bands > div:nth-child(3),
  .application-timeline li + li,
  .application-timeline li:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .score-history strong {
    font-size: 22px;
  }

  .score-history .no-score strong {
    font-size: 13px;
  }
}
