:root {
  --ink: #112520;
  --muted: #61736c;
  --line: #d7e5df;
  --paper: #f4fbf8;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-dark: #0f4f4a;
  --aqua: #1db8c3;
  --leaf: #70c77d;
  --gold: #b7791f;
  --sun: #f3b64a;
  --red: #b42318;
  --blue: #2563eb;
  --shadow: 0 18px 45px rgba(27, 50, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 11% 16%, rgba(112, 199, 125, 0.22), transparent 28rem),
    radial-gradient(circle at 87% 12%, rgba(29, 184, 195, 0.2), transparent 30rem),
    linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(228, 247, 239, 0.54) 45%, rgba(237, 248, 255, 0.72)),
    var(--paper);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-text-size-adjust: 100%;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(15, 79, 74, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 79, 74, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
}

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.icon-button,
select,
input {
  -webkit-tap-highlight-color: transparent;
}

body.modal-open {
  overflow: hidden;
}

.app-shell {
  width: min(1480px, calc(100vw - 32px));
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 0 max(32px, env(safe-area-inset-bottom));
}

.calculator-only .app-shell {
  width: min(1280px, calc(100vw - 32px));
}

.calculator-only .topbar {
  padding-top: 16px;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 120px));
  padding: 18px 0 28px;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  right: 2%;
  bottom: 5%;
  z-index: -1;
  width: min(520px, 42vw);
  aspect-ratio: 1;
  border: 1px solid rgba(15, 118, 110, 0.1);
  border-radius: 50%;
  content: "";
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.72) 0 24%, transparent 25%),
    conic-gradient(from 120deg, rgba(29, 184, 195, 0.16), rgba(243, 182, 74, 0.15), rgba(112, 199, 125, 0.18), rgba(29, 184, 195, 0.16));
  filter: blur(2px);
}

.hero-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 2px 34px;
}

.brand-lockup,
.nav-cta,
.primary-action,
.secondary-action {
  color: inherit;
  text-decoration: none;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(15, 118, 110, 0.26);
  border-radius: 10px;
  color: #063f3a;
  background: linear-gradient(145deg, #ffffff, #dff9ef);
  box-shadow: 0 12px 24px rgba(15, 79, 74, 0.12);
  font-size: 13px;
  letter-spacing: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 750;
  box-shadow: 0 10px 22px rgba(27, 50, 42, 0.08);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 0.78fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: center;
  min-height: 510px;
}

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

.hero h1 {
  max-width: 880px;
  font-size: clamp(44px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
}

.hero-lede {
  max-width: 680px;
  margin: 24px 0 0;
  color: #36534b;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-action-note {
  max-width: 620px;
  margin: 12px 0 0;
  color: #426058;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.55;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-action {
  padding: 0 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #1796a0);
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.24);
}

.secondary-action {
  padding: 0 18px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.66);
}

.hero-payment-note {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  color: #31564f;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 10px 24px rgba(27, 50, 42, 0.06);
}

.hero-payment-note span,
.payment-methods span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hero-payment-note strong,
.payment-methods b {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #075e54;
  background: #dff7ed;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 999px;
  color: #2f5149;
  background: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(27, 50, 42, 0.06);
}

.signal-board {
  position: relative;
  min-height: 520px;
}

.orbit-ring {
  position: absolute;
  inset: 42px 26px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(15, 118, 110, 0.13) 50%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgba(15, 118, 110, 0.13) 50%, transparent 50.5%),
    radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(224, 246, 238, 0.54) 48%, rgba(255, 255, 255, 0.15) 49%, transparent 70%);
  box-shadow: inset 0 0 60px rgba(29, 184, 195, 0.08);
}

.orbit-ring::before,
.orbit-ring::after {
  position: absolute;
  inset: 14%;
  border: 1px dashed rgba(15, 118, 110, 0.24);
  border-radius: 50%;
  content: "";
}

.orbit-ring::after {
  inset: 32%;
  border-style: solid;
  border-color: rgba(243, 182, 74, 0.38);
}

.signal-node,
.signal-card {
  position: absolute;
  box-shadow: 0 18px 38px rgba(27, 50, 42, 0.12);
}

.signal-node {
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent-dark);
  font-weight: 900;
  backdrop-filter: blur(14px);
}

.node-main {
  top: 214px;
  left: 50%;
  width: 86px;
  height: 86px;
  transform: translateX(-50%);
  color: #ffffff;
  background: linear-gradient(145deg, #0f766e, #1db8c3);
  font-size: 24px;
}

.node-hku,
.node-cuhk,
.node-hkust {
  width: 68px;
  height: 68px;
  font-size: 12px;
}

.node-hku {
  top: 64px;
  left: 16%;
}

.node-cuhk {
  right: 14%;
  top: 142px;
}

.node-hkust {
  right: 10%;
  bottom: 118px;
}

.signal-card {
  width: min(280px, 56%);
  padding: 16px;
  border: 1px solid rgba(215, 229, 223, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
}

.signal-card span {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-card strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.25;
}

.signal-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.42;
}

.score-card {
  top: 18px;
  right: 0;
}

.match-card {
  left: 0;
  bottom: 82px;
}

.insight-card {
  right: 4%;
  bottom: 8px;
}

.advantage-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.advantage-strip article {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(215, 229, 223, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 30px rgba(27, 50, 42, 0.08);
  backdrop-filter: blur(14px);
}

.advantage-strip span {
  color: var(--sun);
  font-size: 12px;
  font-weight: 900;
}

.advantage-strip h2 {
  margin-top: 8px;
  font-size: 18px;
}

.advantage-strip p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.complexity-strip {
  padding: 26px 0 38px;
}

.complexity-panel {
  display: grid;
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  padding: clamp(22px, 3.2vw, 38px);
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(224, 248, 240, 0.7)),
    var(--panel);
  box-shadow: 0 22px 56px rgba(27, 50, 42, 0.1);
}

.complexity-copy {
  min-width: 0;
}

.complexity-copy h2 {
  color: var(--ink);
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.05;
}

.complexity-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 16px 0 0;
  color: #426058;
  font-size: 17px;
  line-height: 1.68;
}

.complexity-copy a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 22px;
  padding: 0 14px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
}

.complexity-map {
  position: relative;
  min-height: 390px;
  border: 1px solid rgba(15, 118, 110, 0.13);
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(15, 118, 110, 0.1) 0 4rem, transparent 4.1rem),
    linear-gradient(rgba(15, 79, 74, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 79, 74, 0.045) 1px, transparent 1px),
    rgba(255, 255, 255, 0.56);
  background-size: auto, 32px 32px, 32px 32px, auto;
}

.map-axis,
.map-ring {
  position: absolute;
  pointer-events: none;
}

.map-axis-x {
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.22), transparent);
}

.map-axis-y {
  top: 10%;
  bottom: 10%;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(15, 118, 110, 0.2), transparent);
}

.map-ring {
  left: 50%;
  top: 50%;
  border: 1px dashed rgba(15, 118, 110, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-one {
  width: min(46vw, 330px);
  height: min(46vw, 330px);
}

.ring-two {
  width: min(31vw, 220px);
  height: min(31vw, 220px);
  border-style: solid;
  border-color: rgba(243, 182, 74, 0.34);
}

.map-core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(145deg, #0f766e, #1db8c3);
  box-shadow: 0 20px 42px rgba(15, 118, 110, 0.24);
  transform: translate(-50%, -50%);
  font-size: 22px;
  font-weight: 950;
}

.map-node {
  position: absolute;
  display: grid;
  min-width: 132px;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 10px;
  color: inherit;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(27, 50, 42, 0.1);
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.map-node span {
  color: var(--accent-dark);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.1;
}

.map-node small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}

.node-formula {
  left: 6%;
  top: 18%;
}

.node-band {
  right: 8%;
  top: 14%;
}

.node-planb {
  left: 8%;
  bottom: 16%;
}

.node-interview {
  right: 8%;
  bottom: 18%;
}

.node-overseas {
  left: 50%;
  bottom: 5%;
  transform: translateX(-50%);
}

.map-node:hover,
.map-node:focus-visible,
.complexity-copy a:hover,
.complexity-copy a:focus-visible {
  border-color: rgba(15, 118, 110, 0.38);
  box-shadow: 0 18px 42px rgba(15, 118, 110, 0.14);
}

.map-node:hover,
.map-node:focus-visible {
  transform: translateY(-2px);
}

.node-overseas:hover,
.node-overseas:focus-visible {
  transform: translate(-50%, -2px);
}

.decision-case-board {
  position: relative;
  min-height: 190px;
  margin-top: 26px;
}

.case-ticket {
  position: absolute;
  display: grid;
  width: min(45%, 320px);
  min-height: 86px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 34px rgba(27, 50, 42, 0.1);
}

.case-ticket span {
  color: var(--sun);
  font-size: 12px;
  font-weight: 950;
}

.case-ticket strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.16;
}

.case-ticket em {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.38;
}

.ticket-score {
  left: 0;
  top: 0;
  transform: rotate(-1deg);
}

.ticket-major {
  right: 8%;
  top: 14px;
  transform: rotate(1deg);
}

.ticket-path {
  left: 12%;
  bottom: 6px;
  transform: rotate(1.2deg);
}

.ticket-family {
  right: 0;
  bottom: 0;
  transform: rotate(-1.4deg);
}

.product-preview {
  display: grid;
  grid-template-columns: minmax(280px, 0.34fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 44px);
  align-items: stretch;
  scroll-margin-top: 24px;
  padding: 28px 0 52px;
}

.preview-copy {
  min-width: 0;
  align-self: stretch;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 42px rgba(27, 50, 42, 0.08);
  backdrop-filter: blur(14px);
}

.preview-copy h2 {
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.14;
}

.preview-copy p {
  max-width: 520px;
  margin: 16px 0 0;
  color: #426058;
  font-size: 16px;
  line-height: 1.7;
}

.preview-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.preview-note span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 6px;
  color: var(--accent-dark);
  background: rgba(223, 247, 237, 0.72);
  font-size: 13px;
  font-weight: 850;
}

.preview-frame {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.94), rgba(226, 249, 241, 0.88)),
    var(--panel);
  box-shadow: 0 24px 70px rgba(27, 50, 42, 0.15);
}

.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.12);
  background: rgba(255, 255, 255, 0.64);
}

.preview-toolbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8dd9c1;
}

.preview-toolbar span:nth-child(2) {
  background: #f3d36f;
}

.preview-toolbar span:nth-child(3) {
  background: #7ac9d1;
}

.preview-toolbar strong {
  margin-left: 8px;
  color: var(--accent-dark);
  font-size: 12px;
}

.preview-dashboard {
  display: grid;
  grid-template-columns: 0.94fr 1.22fr;
  gap: 12px;
  padding: clamp(14px, 2.4vw, 22px);
  background: linear-gradient(180deg, rgba(244, 251, 248, 0.92), rgba(255, 255, 255, 0.58));
}

.preview-overview-card,
.preview-filter-bar,
.preview-table {
  min-width: 0;
  border: 1px solid rgba(215, 229, 223, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.preview-overview-card {
  padding: 14px;
}

.preview-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.preview-card-head span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.preview-card-head strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.18;
}

.preview-card-head em {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: #0f4f4a;
  background: #dff7ed;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.preview-score-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 11px;
}

.preview-score-chips b {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 6px;
  align-items: center;
  min-height: 31px;
  padding: 5px 8px;
  border: 1px solid rgba(215, 229, 223, 0.92);
  border-radius: 8px;
  color: var(--accent-dark);
  background: #f8fcfa;
  font-size: 13px;
}

.preview-score-chips small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

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

.preview-metrics article {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: #edf9f5;
}

.preview-metrics span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.preview-metrics strong {
  display: block;
  margin-top: 5px;
  color: var(--accent-dark);
  font-size: 22px;
  line-height: 1;
}

.preview-prefs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.preview-prefs span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #1db8c3);
  font-size: 11px;
  font-weight: 900;
}

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

.preview-band-grid article {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(215, 229, 223, 0.92);
  border-radius: 8px;
  background: #fafdfe;
}

.preview-band-label {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--accent);
  font-size: 12px;
  font-weight: 950;
}

.preview-band-grid strong {
  display: block;
  min-height: 36px;
  margin-top: 8px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.preview-band-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.preview-filter-bar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px;
}

.preview-filter-bar span {
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.preview-filter-bar strong {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.preview-table {
  grid-column: 1 / -1;
  overflow: hidden;
}

.preview-table-head,
.preview-table-row {
  display: grid;
  grid-template-columns: 64px 76px minmax(0, 1fr) 72px 80px;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
  color: #234039;
}

.preview-table-head {
  min-height: 38px;
  color: var(--muted);
  background: #f7f6ef;
  font-size: 11px;
  font-weight: 900;
}

.preview-table-row + .preview-table-row {
  border-top: 1px solid rgba(215, 229, 223, 0.78);
}

.preview-table-row b,
.preview-table-row strong {
  color: var(--accent-dark);
}

.preview-table-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-table-row em {
  justify-self: end;
  padding: 5px 10px;
  border-radius: 999px;
  color: #075e54;
  background: #dff7ed;
  font-style: normal;
  font-weight: 800;
  font-size: 12px;
}

.preview-table-row.strong {
  background: rgba(223, 247, 237, 0.58);
}

.decision-pressure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
  margin: 0 0 52px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 10px;
  background:
    radial-gradient(circle at 92% 16%, rgba(243, 182, 74, 0.18), transparent 15rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(232, 249, 244, 0.82)),
    var(--panel);
  box-shadow: 0 22px 58px rgba(27, 50, 42, 0.12);
}

.decision-copy {
  min-width: 0;
}

.decision-copy h2 {
  max-width: 780px;
  margin-top: 8px;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.1;
}

.decision-copy p:not(.eyebrow) {
  max-width: 850px;
  margin: 14px 0 0;
  color: #426058;
  font-size: 17px;
  line-height: 1.68;
}

.decision-cta {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-left: 4px solid var(--sun);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 38px rgba(27, 50, 42, 0.1);
}

.decision-cta > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.decision-cta h3 {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.18;
}

.decision-cta p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.decision-cta div {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.decision-cta .primary-action,
.decision-cta .secondary-action {
  width: 100%;
}

.site-disclaimer {
  margin: 0 0 34px;
  padding: 18px 20px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 10px;
  color: #48645c;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 32px rgba(27, 50, 42, 0.07);
  backdrop-filter: blur(14px);
}

.school-seo-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.12);
}

.school-seo-links span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.school-seo-links a {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.school-seo-links a:hover,
.school-seo-links a:focus-visible {
  text-decoration: underline;
}

.site-disclaimer strong {
  display: block;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 900;
}

.site-disclaimer p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.68;
}

.example-hero {
  padding: 18px 0 32px;
}

.example-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(22px, 5vw, 72px);
  align-items: end;
  min-height: 360px;
}

.example-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.example-lede {
  max-width: 720px;
  margin: 22px 0 0;
  color: #36534b;
  font-size: clamp(17px, 1.8vw, 23px);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.example-score-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 10px;
  background:
    radial-gradient(circle at 82% 18%, rgba(29, 184, 195, 0.28), transparent 9rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(226, 249, 241, 0.88));
  box-shadow: 0 22px 54px rgba(27, 50, 42, 0.14);
}

.example-score-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.example-score-card strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 44px;
  line-height: 1;
}

.example-score-card p {
  margin: 12px 0 0;
  color: #426058;
  line-height: 1.55;
}

.example-result-shell {
  display: grid;
  gap: 18px;
  padding-bottom: 42px;
}

.example-only .result-overview {
  border: 1px solid rgba(215, 229, 223, 0.9);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.example-table-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.example-table-card .toolbar {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.example-table-card table {
  width: 100%;
  min-width: 0;
}

.example-disclaimer {
  padding: 16px 18px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 10px;
  color: #48645c;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 32px rgba(27, 50, 42, 0.07);
}

.example-disclaimer strong {
  display: block;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 900;
}

.example-disclaimer p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.68;
}

.next-step-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.32fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 40px);
  align-items: stretch;
  margin: 0 0 42px;
  padding-top: 8px;
}

.next-step-copy {
  min-width: 0;
}

.next-step-copy h2 {
  margin: 8px 0 12px;
  color: var(--ink);
  font-size: clamp(26px, 3.1vw, 42px);
  line-height: 1.1;
}

.next-step-copy p {
  max-width: 420px;
  color: #36534b;
  line-height: 1.65;
}

.next-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.next-step-card {
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 150px;
  padding: 16px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  color: inherit;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 28px rgba(27, 50, 42, 0.07);
  text-decoration: none;
}

.next-step-card span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
}

.next-step-card strong {
  display: block;
  margin-top: 10px;
  color: var(--accent-dark);
  font-size: 17px;
  line-height: 1.2;
}

.next-step-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}

.next-step-card:hover,
.next-step-card:focus-visible {
  border-color: rgba(15, 118, 110, 0.34);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 36px rgba(15, 118, 110, 0.1);
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  scroll-margin-top: 16px;
  padding: 42px 2px 22px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

h2 {
  font-size: 17px;
}

.scale-chip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar > div,
.score-panel,
.preference-panel,
.result-panel,
.toolbar,
.table-wrap,
.subject-field,
.subject-section,
.confirm-panel {
  min-width: 0;
}

.scale-chip span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 13px;
}

.workspace {
  display: grid;
  grid-template-columns: 336px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.flow-step {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.flow-step.active {
  border-color: rgba(15, 118, 110, 0.45);
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #1796a0);
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.18);
}

.flow-step.complete {
  border-color: rgba(112, 199, 125, 0.48);
  color: #0f4f4a;
  background: #e4f8eb;
}

.mode-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: -6px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  color: #28463f;
  background: rgba(255, 255, 255, 0.84);
}

.mode-notice strong {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 950;
}

.mode-notice span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.mode-notice.estimated-mode {
  border-left: 4px solid var(--sun);
}

.mode-notice.actual-mode {
  border-left: 4px solid var(--accent);
}

.workspace.input-mode,
.workspace.preference-mode,
.workspace.confirm-mode,
.workspace.loading-mode,
.workspace.results-mode {
  grid-template-columns: 1fr;
}

.workspace.input-mode .score-panel,
.workspace.preference-mode .preference-panel,
.workspace.confirm-mode .confirm-panel,
.workspace.loading-mode .loading-panel,
.workspace.results-mode .result-panel {
  grid-column: 1 / -1;
}

.score-panel,
.preference-panel,
.confirm-panel,
.result-panel,
.loading-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.score-panel {
  position: sticky;
  top: 16px;
  padding: 18px;
}

.workspace.input-mode .score-panel {
  position: static;
}

.workspace.preference-mode .preference-panel {
  position: static;
}

.panel-head,
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent-dark);
  background: #fff;
  cursor: pointer;
}

.subject-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.subject-section {
  padding: 14px;
  border: 1px solid rgba(215, 229, 223, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(242, 250, 246, 0.9));
}

.subject-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.subject-section h3 {
  margin: 0;
  color: var(--accent-dark);
  font-size: 15px;
  line-height: 1.2;
}

.subject-section p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

.subject-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
  gap: 10px;
}

.subject-field {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
  min-height: 112px;
  padding: 12px;
  border: 1px solid rgba(215, 229, 223, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 18px rgba(27, 50, 42, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.subject-field.has-grade {
  border-color: rgba(15, 118, 110, 0.42);
  background: linear-gradient(145deg, #ffffff, #edf9f5);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.12);
}

.subject-field:focus-within {
  border-color: rgba(15, 118, 110, 0.5);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.12);
}

.subject-label {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  line-height: 1.2;
}

.subject-label span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.subject-label small {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 999px;
  color: var(--accent-dark);
  background: #eef9f4;
  font-size: 11px;
  font-weight: 800;
}

.grade-select-wrap {
  margin-top: auto;
}

.subject-grade-select {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 36px 0 12px;
  color: var(--accent-dark);
  background:
    linear-gradient(45deg, transparent 50%, var(--accent-dark) 50%) calc(100% - 18px) 18px / 6px 6px no-repeat,
    linear-gradient(135deg, var(--accent-dark) 50%, transparent 50%) calc(100% - 13px) 18px / 6px 6px no-repeat,
    #fbfdfb;
  appearance: none;
  cursor: pointer;
  font-weight: 900;
}

.subject-grade-select:disabled,
.preference-chip input:disabled + span {
  cursor: not-allowed;
  opacity: 0.72;
}

.preference-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.preference-panel p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.preference-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.preference-panel-head h2 {
  margin: 4px 0 0;
}

.preference-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
}

.preference-actions .secondary-button,
.preference-actions .analysis-button {
  min-width: 168px;
  margin: 0;
  white-space: nowrap;
}

.preference-block {
  display: grid;
  gap: 12px;
}

.preference-block h3 {
  margin: 0;
  color: #24453d;
  font-size: 18px;
  font-weight: 900;
}

.preference-block p {
  margin: 5px 0 0;
}

.preference-scope-hint {
  display: inline-flex;
  max-width: 720px;
  padding: 8px 10px;
  border: 1px solid rgba(219, 147, 43, 0.22);
  border-radius: 8px;
  color: #785218;
  background: #fff8e9;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.45;
}

.preference-step-card {
  padding: 16px;
  border: 1px solid rgba(196, 214, 207, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(17, 61, 54, 0.05);
}

.preference-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.preference-step-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  color: #0f766e;
  background: rgba(15, 118, 110, 0.09);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
}

.required-badge,
.optional-badge,
.pathway-overseas-drawer summary em {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #0f5b54;
  background: #e8f7ef;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.optional-badge {
  color: #5f6f6a;
  background: #eef5f2;
}

.preference-validation-error {
  margin: 2px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(220, 75, 52, 0.28);
  border-radius: 8px;
  color: #8b2e1e;
  background: #fff5ef;
  font-size: 13px;
  font-weight: 900;
}

.school-preference-board {
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

#schoolPreferenceInputs.preference-grid {
  display: block;
  width: 100%;
  min-width: 0;
}

.school-preference-group {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(215, 229, 223, 0.92);
  border-radius: 8px;
  background: #fbfdfb;
}

.school-preference-group-head {
  display: grid;
  gap: 3px;
}

.school-preference-group-head strong {
  color: #123f39;
  font-size: 13px;
  font-weight: 950;
}

.school-preference-group-head small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.school-preference-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  gap: 8px;
  max-height: 178px;
  min-width: 0;
  overflow-y: auto;
  padding: 2px 4px 8px 2px;
}

.school-preference-scroll .preference-chip {
  min-width: 0;
}

.school-preference-scroll .preference-chip span {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 8px;
  text-align: center;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: normal;
}

.custom-school-preference {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) minmax(180px, 1.1fr) minmax(140px, 200px) auto;
  gap: 10px;
  align-items: end;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px dashed rgba(15, 118, 110, 0.34);
  border-radius: 8px;
  background: #f4fbf7;
}

.custom-school-helper {
  display: grid;
  gap: 5px;
  align-self: center;
  min-width: 0;
}

.custom-school-helper strong {
  color: #123f39;
  font-size: 13px;
  font-weight: 950;
}

.custom-school-helper small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.4;
}

.custom-school-preference label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #24453d;
  font-size: 12px;
  font-weight: 900;
}

.custom-school-preference label small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.custom-school-preference input,
.custom-school-preference select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(196, 214, 207, 0.95);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--accent-dark);
  background: #ffffff;
}

.custom-school-preference .secondary-button {
  min-height: 42px;
  margin: 0;
  white-space: nowrap;
}

.pathway-preference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pathway-overseas-drawer {
  grid-column: 1 / -1;
  border: 1px solid rgba(196, 214, 207, 0.86);
  border-radius: 8px;
  background: #f8fcfa;
}

.pathway-overseas-drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.pathway-overseas-drawer summary::-webkit-details-marker,
.category-secondary-drawer summary::-webkit-details-marker {
  display: none;
}

.pathway-overseas-drawer summary span {
  display: grid;
  gap: 3px;
}

.pathway-overseas-drawer summary strong {
  color: #123f39;
  font-size: 14px;
  font-weight: 950;
}

.pathway-overseas-drawer summary small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.pathway-overseas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
}

.pathway-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(215, 229, 223, 0.92);
  border-radius: 8px;
  background: #fbfdfb;
}

.pathway-card.is-selected {
  border-color: rgba(15, 118, 110, 0.45);
  background: #f0fbf6;
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.08);
}

.mainland-location-inline-panel {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background: #f4fbf7;
}

.mainland-location-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mainland-location-inline-panel strong {
  color: #123f39;
  font-size: 14px;
  font-weight: 950;
}

.mainland-location-inline-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.multi-select-badge {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #0f5b54;
  background: #e8f7ef;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

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

.mainland-location-choice {
  cursor: pointer;
}

.mainland-location-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mainland-location-choice span {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  color: #24564f;
  background: #ffffff;
}

.mainland-location-choice small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.mainland-location-choice input:checked + span {
  border-color: rgba(15, 118, 110, 0.52);
  color: #ffffff;
  background: #0f766e;
}

.mainland-location-choice input:checked + span::after {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #0f766e;
  background: #ffffff;
  content: "✓";
  font-size: 12px;
  font-weight: 950;
  line-height: 18px;
  text-align: center;
}

.mainland-location-choice input:checked + span strong,
.mainland-location-choice input:checked + span small {
  color: #ffffff;
}

.pathway-card.is-disabled {
  border-color: rgba(215, 229, 223, 0.72);
  background: #f6f8f7;
}

.pathway-main-choice,
.pathway-channel-choice,
.risk-choice {
  cursor: pointer;
}

.pathway-main-choice input,
.pathway-channel-choice input,
.risk-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pathway-main-choice span {
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 11px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: #ffffff;
}

.pathway-main-choice strong {
  color: #153f39;
  font-size: 14px;
}

.pathway-main-choice small,
.pathway-channel-choice small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.pathway-main-choice input:checked + span {
  border-color: rgba(15, 118, 110, 0.58);
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #1db8c3);
}

.pathway-main-choice input:checked + span strong,
.pathway-main-choice input:checked + span small {
  color: #ffffff;
}

.pathway-channel-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.pathway-channel-choice span {
  display: inline-grid;
  gap: 1px;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  color: #24564f;
  background: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.pathway-channel-choice input:checked + span,
.risk-choice input:checked + span {
  border-color: rgba(15, 118, 110, 0.52);
  color: #ffffff;
  background: #0f766e;
}

.pathway-channel-choice input:disabled + span {
  opacity: 0.52;
  cursor: not-allowed;
}

.pathway-card.is-disabled .pathway-main-choice span,
.pathway-channel-choice.is-disabled span {
  color: #60736d;
  background: #f3f6f5;
}

.profile-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.permanent-resident-top {
  margin-bottom: 0;
}

.permanent-resident-top .permanent-resident-field {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.permanent-resident-field {
  grid-column: 1 / -1;
}

.permanent-resident-field small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.profile-detail-field {
  display: grid;
  gap: 7px;
  color: #24453d;
  font-size: 12px;
  font-weight: 900;
}

.profile-detail-field input {
  min-height: 42px;
  border: 1px solid rgba(215, 229, 223, 0.96);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
}

.risk-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.risk-choice span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background: #ffffff;
  color: #24564f;
  font-size: 12px;
  font-weight: 900;
}

.preference-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-preference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.category-preference-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(215, 229, 223, 0.92);
  border-radius: 8px;
  background: #fbfdfb;
}

.category-preference-card.is-selected {
  border-color: rgba(15, 118, 110, 0.4);
  background: #f0fbf6;
}

.category-primary-choice,
.category-secondary-choice {
  cursor: pointer;
}

.category-primary-choice input,
.category-secondary-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.category-primary-choice span {
  display: grid;
  gap: 3px;
  min-height: 52px;
  padding: 10px 11px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  color: var(--accent-dark);
  background: #ffffff;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.category-primary-choice strong {
  font-size: 14px;
  line-height: 1.15;
}

.category-primary-choice small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.category-primary-choice input:checked + span {
  border-color: rgba(15, 118, 110, 0.58);
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #1db8c3);
  box-shadow: 0 12px 22px rgba(15, 118, 110, 0.16);
}

.category-primary-choice input:checked + span small {
  color: rgba(255, 255, 255, 0.82);
}

.category-secondary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.category-secondary-drawer {
  margin-top: 8px;
}

.category-secondary-drawer summary {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(15, 118, 110, 0.15);
  border-radius: 999px;
  color: #24564f;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  list-style: none;
}

.category-preference-card.is-selected .category-secondary-drawer summary {
  border-color: rgba(15, 118, 110, 0.34);
  background: #e8f7ef;
}

.category-secondary-choice span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 999px;
  color: #24564f;
  background: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.category-secondary-choice small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.category-secondary-choice input:checked + span {
  border-color: rgba(15, 118, 110, 0.52);
  color: #ffffff;
  background: #0f766e;
}

.category-secondary-choice input:checked + span small {
  color: rgba(255, 255, 255, 0.78);
}

.category-preference-grid.compact {
  grid-template-columns: 1fr;
}

.category-preference-grid.compact .category-preference-card {
  padding: 8px;
}

.category-preference-grid.compact .category-primary-choice span {
  min-height: 42px;
  padding: 8px 10px;
}

.preference-chip {
  cursor: pointer;
}

.preference-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.preference-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  background: #f8fcfa;
  font-size: 13px;
  font-weight: 800;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.preference-chip input:checked + span {
  border-color: rgba(15, 118, 110, 0.56);
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #1db8c3);
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.16);
}

.analysis-button {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #1796a0);
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.22);
  cursor: pointer;
  font-weight: 900;
}

.analysis-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.secondary-button {
  min-height: 48px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  color: var(--accent-dark);
  background: #ffffff;
  cursor: pointer;
  font-weight: 900;
}

.contact-admin-button {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #b7791f, #ef8f2f 45%, #0f766e);
  box-shadow: 0 18px 36px rgba(80, 50, 16, 0.22), 0 0 0 4px rgba(255, 255, 255, 0.34);
  cursor: pointer;
  font-size: 14px;
  font-weight: 950;
}

.contact-admin-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 44px rgba(80, 50, 16, 0.26), 0 0 0 4px rgba(255, 255, 255, 0.42);
}

.ai-powered-admissions:not(.calculator-only) .contact-admin-button {
  top: auto;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  left: auto;
}

.contact-admin-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff7d6;
  box-shadow: 0 0 0 4px rgba(255, 247, 214, 0.18), 0 0 16px rgba(255, 247, 214, 0.85);
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 20px;
}

.contact-modal.is-open {
  display: grid;
}

.contact-modal[hidden] {
  display: none !important;
  pointer-events: none;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 34, 30, 0.52);
  backdrop-filter: blur(8px);
}

.contact-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(86vh, 720px);
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(215, 229, 223, 0.98);
  border-radius: 8px;
  background: #fbfefd;
  box-shadow: 0 26px 70px rgba(14, 43, 38, 0.26);
}

.contact-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.contact-form {
  display: grid;
  gap: 12px;
}

.rule-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 20px;
}

.rule-modal.is-open {
  display: grid;
}

.rule-modal[hidden] {
  display: none !important;
  pointer-events: none;
}

.rule-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 32, 28, 0.62);
  backdrop-filter: blur(10px);
}

.rule-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: min(86vh, 720px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(211, 227, 221, 0.98);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(240, 251, 246, 0.92), rgba(255, 255, 255, 0.98)),
    #ffffff;
  box-shadow: 0 30px 80px rgba(9, 43, 37, 0.32);
}

.rule-dialog h2 {
  margin: 4px 0 10px;
  color: #073f39;
  font-size: 23px;
  line-height: 1.2;
}

.rule-dialog-lead {
  margin: 0;
  color: #264940;
  font-size: 14px;
  line-height: 1.65;
}

.rule-dialog-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.rule-dialog-list li {
  position: relative;
  padding: 10px 12px 10px 32px;
  border: 1px solid rgba(215, 229, 223, 0.95);
  border-radius: 8px;
  color: #24453d;
  background: #fbfdfb;
  font-size: 13px;
  line-height: 1.55;
}

.rule-dialog-list li::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0f766e;
}

.rule-disclaimer {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(213, 138, 31, 0.28);
  border-left: 4px solid #d58a1f;
  border-radius: 8px;
  background: #fffaf1;
}

.rule-disclaimer strong {
  color: #5d3c10;
  font-size: 13px;
  font-weight: 950;
}

.rule-disclaimer p {
  margin: 0;
  color: #5f513f;
  font-size: 12px;
  line-height: 1.55;
}

.rule-dialog .analysis-button {
  margin-top: 18px;
}

.score-entry-notice,
.preference-lock-hint,
.final-lock-warning {
  margin: 12px 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-left: 4px solid #0f766e;
  border-radius: 8px;
  color: #28463f;
  background: #f3fbf7;
  font-size: 13px;
  line-height: 1.55;
}

.preference-lock-hint,
.final-lock-warning {
  display: grid;
  gap: 4px;
}

.preference-lock-hint strong,
.final-lock-warning strong {
  color: #073f39;
  font-size: 13px;
  font-weight: 950;
}

.preference-lock-hint span,
.final-lock-warning span {
  color: var(--muted);
}

.final-lock-warning {
  margin-top: 0;
  border-left-color: #d58a1f;
  background: #fffaf1;
}

.final-confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid rgba(215, 229, 223, 0.95);
  border-radius: 8px;
  color: #24453d;
  background: #fbfdfb;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.final-confirm-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #0f766e;
  flex: 0 0 auto;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
}

.contact-form textarea {
  resize: vertical;
  min-height: 132px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.22);
  border-color: var(--accent);
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.contact-actions .analysis-button,
.contact-actions .secondary-button {
  margin-top: 0;
}

.contact-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.contact-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.contact-status.success {
  color: var(--accent-dark);
}

.contact-status.error {
  color: var(--red);
}

.contact-replies {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.contact-reply-card {
  padding: 12px;
  border: 1px solid rgba(215, 229, 223, 0.92);
  border-radius: 8px;
  background: #f4fbf8;
}

.contact-reply-card time {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.contact-reply-card p {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}

.contact-reply-card strong {
  color: var(--accent-dark);
}

.confirm-panel {
  padding: clamp(14px, 2.4vw, 22px);
}

.confirm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}

.confirm-card,
.best5-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(215, 229, 223, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.confirm-note {
  margin: 10px 0 14px;
  color: var(--muted);
  line-height: 1.55;
}

.confirmed-subjects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px;
}

.confirmed-subject {
  display: grid;
  gap: 7px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(215, 229, 223, 0.9);
  border-radius: 8px;
  background: #fafdfe;
}

.confirmed-subject span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.confirmed-subject strong {
  color: var(--accent-dark);
  font-size: 18px;
  line-height: 1.1;
}

.confirmed-subject small {
  color: var(--muted);
  font-size: 12px;
}

.confirmed-subject.not-taken {
  background: #f4f7f6;
}

.confirmed-subject.not-taken strong {
  color: #7a8782;
  font-size: 14px;
}

.confirmed-subject-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(220, 75, 52, 0.22);
  border-radius: 8px;
  color: #8b2e1e;
  background: #fff7f2;
}

.confirmed-subject-empty strong {
  font-size: 14px;
}

.confirmed-subject-empty span {
  color: #8b5a4d;
  font-size: 12px;
  line-height: 1.45;
}

.best5-card {
  position: sticky;
  top: 16px;
}

.best5-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.best5-list li,
.best5-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f4fbf8;
}

.best5-list span,
.best5-total span {
  color: var(--muted);
  font-weight: 800;
}

.best5-list strong,
.best5-total strong {
  color: var(--accent-dark);
  font-size: 18px;
}

.best5-total {
  border: 1px solid rgba(15, 118, 110, 0.22);
  background: #e9f9f5;
}

.confirm-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--red);
  background: #ffe0dc;
  font-size: 13px;
  font-weight: 800;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.subject-grade-select:focus,
select:focus,
.toolbar input:focus {
  outline: 2px solid rgba(15, 118, 110, 0.22);
  border-color: var(--accent);
}

.result-panel {
  min-width: 0;
  overflow: visible;
}

.report-download-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.22);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(5, 56, 52, 0.98), rgba(11, 109, 101, 0.94) 58%, rgba(25, 148, 151, 0.96)),
    var(--accent-dark);
  overflow: hidden;
}

.report-download-hero::before {
  position: absolute;
  inset: auto -48px -92px auto;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
}

.report-download-hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent 74%);
}

.report-download-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.report-download-copy .eyebrow {
  color: rgba(209, 250, 229, 0.9);
}

.report-download-copy h2 {
  margin: 5px 0 6px;
  color: #ffffff;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
  letter-spacing: 0;
}

.report-download-copy p {
  max-width: 760px;
  margin: 0;
  color: rgba(236, 253, 245, 0.88);
  font-size: 14px;
  line-height: 1.65;
}

.report-download-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.report-download-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #ecfdf5;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 900;
}

.preference-fallback-notice[hidden] {
  display: none;
}

.preference-fallback-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid rgba(213, 138, 31, 0.26);
  border-left: 6px solid #d58a1f;
  color: #4f3c1c;
  background: linear-gradient(180deg, #fffaf1 0%, #ffffff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.preference-fallback-card h2 {
  margin: 4px 0 0;
  color: #633a07;
  font-size: 20px;
}

.preference-fallback-card p {
  margin: 7px 0 0;
  color: #6b5430;
  font-size: 13px;
  line-height: 1.65;
}

.preference-fallback-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.preference-fallback-card li {
  position: relative;
  padding: 10px 12px 10px 30px;
  border: 1px solid rgba(213, 138, 31, 0.2);
  border-radius: 8px;
  color: #4f3c1c;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.55;
}

.preference-fallback-card li::before {
  position: absolute;
  left: 10px;
  top: 11px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  color: #ffffff;
  background: #d58a1f;
  content: "!";
  font-size: 10px;
  font-weight: 950;
  line-height: 14px;
  text-align: center;
}

.result-overview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(244, 251, 248, 0.92), rgba(255, 255, 255, 0.72));
}

.course-compare-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfc;
}

.course-compare-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.course-compare-head h2 {
  margin: 3px 0 5px;
  color: var(--ink);
  font-size: 24px;
}

.course-compare-head p,
.course-compare-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.compare-clear-button {
  min-height: 38px;
  white-space: nowrap;
}

.course-compare-items {
  min-width: 0;
}

.course-compare-empty {
  padding: 14px;
  border: 1px dashed rgba(15, 118, 110, 0.26);
  border-radius: 8px;
  background: #ffffff;
}

.course-compare-empty strong,
.course-compare-count {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 950;
}

.course-compare-empty p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.comparison-table-wrap {
  max-width: 100%;
  margin-top: 8px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.comparison-table {
  width: max(760px, 100%);
  table-layout: fixed;
}

.comparison-table th,
.comparison-table td {
  vertical-align: top;
  width: auto;
  font-size: 12px;
  line-height: 1.45;
}

.comparison-table th:first-child {
  width: 148px;
  color: var(--accent-dark);
}

.compare-remove-button {
  display: block;
  min-height: 26px;
  margin-top: 7px;
  padding: 0 8px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 6px;
  color: var(--accent-dark);
  background: #ffffff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.overview-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(215, 229, 223, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.overview-head p:not(.eyebrow) {
  max-width: 560px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.overview-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #0f4f4a;
  background: #dff7ed;
  font-size: 12px;
  font-weight: 900;
}

.raw-score-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.raw-score-chip {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 7px;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(215, 229, 223, 0.92);
  border-radius: 8px;
  background: #f8fcfa;
}

.raw-score-chip small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.raw-score-chip strong {
  color: var(--accent-dark);
  font-size: 15px;
}

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

.score-metric {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: #edf9f5;
}

.score-metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.score-metric strong {
  display: block;
  margin-top: 5px;
  color: var(--accent-dark);
  font-size: 22px;
  line-height: 1.1;
}

.score-metric small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.locked-profile-summary,
.confirmed-profile {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  background: #f8fcfa;
  color: #24564f;
  font-size: 12px;
  line-height: 1.55;
}

.confirmed-profile h3,
.confirmed-profile p {
  margin: 0;
}

.confirmed-profile-list {
  display: grid;
  border-top: 1px solid rgba(15, 118, 110, 0.12);
}

.confirmed-profile-row {
  display: grid;
  grid-template-columns: minmax(96px, 0.34fr) minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(15, 118, 110, 0.12);
}

.confirmed-profile-row span,
.confirmed-profile-section > span {
  color: #60736d;
  font-size: 11px;
  font-weight: 950;
}

.confirmed-profile-row strong {
  min-width: 0;
  color: #123f39;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.45;
}

.confirmed-profile-section {
  display: grid;
  gap: 8px;
  padding-top: 10px;
}

.confirmed-profile-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.confirmed-profile-pill,
.confirmed-profile-empty {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.confirmed-profile-pill {
  color: #0f5b54;
  background: #e8f7ef;
}

.confirmed-profile-empty {
  color: #60736d;
  background: #eef4f2;
}

.confirmed-profile small {
  color: var(--muted);
}

.pathway-strategy-sections {
  display: grid;
  gap: 16px;
  margin: 18px 0;
}

.pathway-decision-board {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(215, 229, 223, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.pathway-board-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.pathway-board-head h2 {
  margin: 4px 0 0;
  color: #123f39;
  font-size: 22px;
}

.pathway-board-head > span {
  max-width: 360px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
  text-align: right;
}

.pathway-tab-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px;
  border: 1px solid rgba(215, 229, 223, 0.9);
  border-radius: 8px;
  background: #f8fcfa;
  scrollbar-width: thin;
}

.pathway-tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #31564e;
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.pathway-tab:hover {
  background: rgba(15, 118, 110, 0.08);
}

.pathway-tab.is-active {
  border-color: rgba(15, 118, 110, 0.28);
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.18);
}

.pathway-tab-panels {
  display: grid;
}

.pathway-tab-panel {
  min-width: 0;
}

.pathway-tab-panel[hidden] {
  display: none;
}

.pathway-section {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(215, 229, 223, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.consultant-pathway-section {
  background:
    linear-gradient(135deg, rgba(240, 251, 246, 0.92), rgba(255, 255, 255, 0.96) 42%),
    #ffffff;
}

.pathway-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.pathway-section-head h2 {
  margin: 4px 0 0;
  color: #123f39;
  font-size: 20px;
}

.pathway-section-head > span {
  max-width: 320px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
  text-align: right;
}

.pathway-judgement {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-left: 4px solid #0f766e;
  border-radius: 8px;
  background: #f8fcfa;
}

.pathway-judgement strong {
  color: #0f4f4a;
  font-size: 15px;
}

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

.pathway-lead-slot {
  display: grid;
}

.pathway-alternative-block {
  display: grid;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(215, 229, 223, 0.9);
}

.pathway-alternative-block summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.pathway-alternative-block summary strong {
  color: #123f39;
  font-size: 14px;
}

.pathway-alternative-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

.pathway-recommendation-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.13);
  border-radius: 8px;
  background: #fbfdfb;
}

.pathway-recommendation-card.is-lead {
  padding: 16px;
  border-color: rgba(15, 118, 110, 0.32);
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 118, 110, 0.1);
}

.pathway-recommendation-card.is-backup {
  background: rgba(255, 255, 255, 0.86);
}

.pathway-card-head,
.pathway-recommendation-card footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.pathway-badge-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.pathway-recommendation-card h3 {
  margin: 0;
  color: #123f39;
  font-size: 16px;
  line-height: 1.35;
}

.pathway-recommendation-card p {
  margin: 0;
  color: #304943;
  font-size: 13px;
  line-height: 1.65;
}

.pathway-consultant-line strong,
.pathway-risk strong,
.pathway-next strong {
  color: #123f39;
  font-weight: 950;
}

.manual-review-badge,
.data-confidence-badge,
.lead-choice-badge,
.backup-choice-badge,
.salary-undisclosed-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fef3c7;
  color: #8a4b00;
}

.salary-undisclosed-badge {
  background: #eef4f1;
  color: #5d6f69;
}

.lead-choice-badge {
  background: #dff7ed;
  color: #0f4f4a;
}

.backup-choice-badge {
  background: #eef4f1;
  color: #31564e;
}

.data-confidence-badge {
  background: #dff7ed;
  color: #0f4f4a;
}

.pathway-card-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.pathway-card-facts div {
  min-width: 0;
  padding: 9px;
  border-radius: 8px;
  background: #edf9f5;
}

.pathway-card-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.pathway-card-facts dd {
  margin: 4px 0 0;
  color: #133f39;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.pathway-risk {
  padding-left: 10px;
  border-left: 3px solid #f59e0b;
}

.pathway-next {
  padding-left: 10px;
  border-left: 3px solid #0f766e;
}

.pathway-detail-drawer {
  border-top: 1px solid rgba(215, 229, 223, 0.9);
  padding-top: 8px;
}

.pathway-detail-drawer summary {
  cursor: pointer;
  color: #0f766e;
  font-size: 12px;
  font-weight: 950;
}

.pathway-detail-drawer div {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  color: #304943;
  font-size: 12px;
  line-height: 1.55;
}

.pathway-detail-drawer p {
  font-size: 12px;
}

.pathway-detail-drawer a {
  color: #0f766e;
  font-weight: 900;
}

.pathway-empty {
  padding: 16px;
  border-radius: 8px;
  background: #f8fcfa;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.mainland-school-section {
  grid-column: 1 / -1;
}

.mainland-first-choice-warning {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(181, 112, 23, 0.24);
  border-left: 5px solid #b7791f;
  border-radius: 8px;
  color: #4b2d08;
  background: #fff7e6;
  box-shadow: 0 12px 28px rgba(181, 112, 23, 0.08);
}

.mainland-first-choice-warning strong {
  color: #7c3d00;
  font-size: 14px;
}

.mainland-first-choice-warning p {
  margin: 0;
  color: #56330b;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.65;
}

.mainland-school-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.08);
}

.mainland-school-card-lead {
  padding: 18px;
  border-color: rgba(15, 118, 110, 0.34);
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf8 100%);
  box-shadow: 0 20px 44px rgba(15, 118, 110, 0.12);
}

.mainland-school-rank {
  color: #0f766e;
  font-size: 12px;
  font-weight: 950;
}

.mainland-school-card h3 {
  margin: 0;
  color: #123f39;
  font-size: 18px;
  line-height: 1.3;
}

.mainland-school-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.mainland-programme-list {
  display: grid;
  gap: 8px;
}

.mainland-programme-item {
  display: grid;
  gap: 5px;
  padding: 10px;
  border-radius: 8px;
  background: #f8fcfa;
}

.mainland-programme-item.is-lead-programme {
  border: 1px solid rgba(15, 118, 110, 0.2);
  background: #eefbf6;
}

.mainland-programme-item span {
  color: #0f766e;
  font-size: 11px;
  font-weight: 950;
}

.mainland-programme-item strong {
  color: #123f39;
  font-size: 13px;
  line-height: 1.35;
}

.mainland-programme-item small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.mainland-programme-item p {
  margin: 0;
  color: #304943;
  font-size: 12px;
  line-height: 1.55;
}

.mainland-programme-item em {
  color: #5d6f69;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.mainland-school-more {
  border-top: 1px solid rgba(215, 229, 223, 0.9);
  padding-top: 8px;
}

.mainland-school-more summary {
  cursor: pointer;
  color: #0f766e;
  font-size: 12px;
  font-weight: 950;
}

.mainland-school-more div {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.mainland-school-more p {
  display: grid;
  gap: 2px;
  margin: 0;
  color: #304943;
  font-size: 12px;
  line-height: 1.45;
}

.mainland-school-more span {
  color: var(--muted);
  font-size: 11px;
}

.mainland-backup-schools {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(215, 229, 223, 0.95);
  border-radius: 8px;
  background: #fbfdfb;
}

.mainland-backup-schools strong {
  display: block;
  color: #123f39;
  font-size: 13px;
  font-weight: 950;
}

.mainland-backup-schools p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.manual-review-section {
  background: #fffdf7;
}

.submission-checklist-section {
  background: #fffdf7;
}

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

.submission-checklist-item {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 8px;
  background: #fffaf0;
}

.submission-checklist-item > span {
  color: #8a4b00;
  font-size: 12px;
  font-weight: 950;
}

.submission-checklist-item h3 {
  margin: 0;
  color: #3b2f16;
  font-size: 14px;
  line-height: 1.35;
}

.submission-checklist-item p {
  margin: 0;
  color: #5c4520;
  font-size: 12px;
  line-height: 1.55;
}

.submission-checklist-item.primary {
  border-color: rgba(15, 118, 110, 0.22);
  background: #f7fffb;
}

.submission-checklist-item.primary > span {
  color: #0f766e;
}

.submission-checklist-item.neutral {
  border-color: rgba(93, 111, 105, 0.2);
  background: #f8faf9;
}

.result-preferences {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.preference-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preference-summary-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #1db8c3);
  font-size: 12px;
  font-weight: 900;
}

.result-preference-editor {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background: #f7fffb;
}

.result-preference-editor strong {
  color: var(--accent-dark);
  font-size: 13px;
}

.result-preference-editor p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.result-preference-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.result-preference-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  color: var(--accent-dark);
  background: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.result-preference-options input {
  accent-color: var(--accent);
}

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

.banda-card {
  position: relative;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(215, 229, 223, 0.92);
  border-radius: 8px;
  background: #fafdfe;
  overflow: visible;
}

.banda-empty-card {
  border-style: dashed;
  background: #fffefa;
}

.banda-empty-card p,
.banda-empty-card small {
  color: var(--muted);
  line-height: 1.5;
}

.banda-label {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--accent);
  font-weight: 950;
}

.banda-card strong {
  display: block;
  margin-top: 10px;
  min-height: 42px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.banda-card p {
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.banda-card .banda-meta {
  margin-bottom: 6px;
  color: var(--accent-dark);
  font-weight: 850;
}

.banda-description-wrap {
  position: relative;
  margin: 8px 0 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(215, 229, 223, 0.9);
}

.banda-card .banda-description {
  min-height: 64px;
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.banda-description-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 30;
  display: none;
  width: min(520px, 68vw);
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(27, 50, 42, 0.18);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.banda-description-wrap:hover,
.banda-description-wrap:focus {
  outline: none;
}

.banda-description-wrap:hover .banda-description-popover,
.banda-description-wrap:focus .banda-description-popover,
.banda-description-wrap:focus-within .banda-description-popover {
  display: block;
}

.banda-score-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.banda-card em {
  color: var(--accent-dark);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.banda-confidence {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 8px 0 0;
  padding: 5px 8px;
  border-radius: 8px;
  color: #0f4f4a;
  background: #e9f8f3;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.25;
}

.banda-confidence.medium {
  color: #6b4a08;
  background: #fff7dd;
}

.banda-confidence.low {
  color: #7a2e2e;
  background: #fff0ee;
}

.banda-faculty {
  margin: -4px 0 10px;
  color: #4f7567;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.banda-category,
.program-category-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 26px;
  margin-top: 2px;
  padding: 0 9px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  color: #0f4f4a;
  background: #edf9f5;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.banda-reference {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
  padding: 10px;
  border: 1px solid rgba(215, 229, 223, 0.92);
  border-radius: 8px;
  background: #f3fbf8;
}

.banda-reference div {
  min-width: 0;
  text-align: center;
}

.banda-reference dt,
.banda-reference dd {
  margin: 0;
}

.banda-reference dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.banda-reference dd {
  margin-top: 4px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.banda-places-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.banda-formula {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(215, 229, 223, 0.92);
}

.banda-formula span {
  display: block;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 950;
}

.banda-formula p {
  margin: 6px 0 0;
  color: #405d55;
  font-size: 12px;
  line-height: 1.45;
}

.banda-reasons {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  background: #f7fffb;
}

.banda-reasons span {
  display: block;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 950;
}

.banda-reasons ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 17px;
}

.banda-reasons li {
  color: #405d55;
  font-size: 12px;
  line-height: 1.42;
}

.admission-note {
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(183, 121, 31, 0.28);
  background: #fff8e8;
}

.admission-note span {
  display: block;
  color: #7a4c00;
  font-size: 11px;
  font-weight: 950;
}

.admission-note p {
  margin: 6px 0 0;
  color: #604616;
  font-size: 12px;
  line-height: 1.45;
}

.admission-note.unmet {
  border-color: rgba(180, 35, 24, 0.28);
  background: #ffecea;
}

.admission-note.unmet span,
.admission-note.unmet p {
  color: var(--red);
}

.loading-panel {
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 56px);
  overflow: hidden;
}

.ai-loader {
  width: min(680px, 100%);
  text-align: center;
}

.loader-core {
  position: relative;
  width: 128px;
  height: 128px;
  margin: 0 auto 24px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(29, 184, 195, 0.18), transparent 58%),
    rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 36px rgba(15, 118, 110, 0.08), 0 20px 46px rgba(27, 50, 42, 0.12);
}

.loader-core::before,
.loader-core::after {
  position: absolute;
  inset: 14px;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  border-radius: 50%;
  content: "";
  animation: spin 1.25s linear infinite;
}

.loader-core::after {
  inset: 30px;
  border-top-color: var(--sun);
  animation-duration: 1.9s;
  animation-direction: reverse;
}

.loader-core span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--leaf);
  transform-origin: -34px -34px;
  animation: pulse-node 1.8s ease-in-out infinite;
}

.loader-core span:nth-child(2) {
  background: var(--aqua);
  transform-origin: 38px -24px;
  animation-delay: 0.2s;
}

.loader-core span:nth-child(3) {
  background: var(--sun);
  transform-origin: -12px 42px;
  animation-delay: 0.4s;
}

.ai-loader h2 {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
}

.ai-loader > p:not(.eyebrow) {
  min-height: 28px;
  margin: 14px 0 24px;
  color: var(--muted);
  line-height: 1.55;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 999px;
  background: #e6f2ee;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #1db8c3, #70c77d);
  transition: width 120ms linear;
}

.progress-text {
  margin-top: 10px;
  color: var(--accent-dark);
  font-weight: 900;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-node {
  0%,
  100% {
    opacity: 0.62;
    transform: translate(-50%, -50%) scale(0.82);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

.toolbar {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.filters {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(240px, 320px) 156px minmax(190px, 240px);
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}

.university-filter {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 8px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f6fbf8);
}

.filter-group-head {
  display: grid;
  gap: 1px;
  padding: 0 8px 0 2px;
  border-right: 1px solid rgba(15, 118, 110, 0.14);
  color: var(--accent-dark);
  font-weight: 950;
  white-space: nowrap;
}

.filter-group-head span {
  font-size: 13px;
}

.filter-group-head small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.university-filter-options {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.category-filter {
  position: relative;
  min-width: 0;
  z-index: 4;
}

.category-filter-menu {
  position: relative;
}

.category-filter-menu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  color: var(--accent-dark);
  background: linear-gradient(180deg, #ffffff, #f6fbf8);
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 950;
}

.category-filter-menu summary::-webkit-details-marker {
  display: none;
}

.category-filter-menu summary strong {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.category-filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(720px, calc(100vw - 40px));
  max-height: min(620px, calc(100vh - 220px));
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 44px rgba(15, 56, 49, 0.16);
  overflow: auto;
}

.category-filter-group {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid rgba(215, 229, 223, 0.8);
}

.category-filter-group:first-of-type {
  border-top: 0;
}

.category-filter-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.category-filter-chip {
  cursor: pointer;
}

.category-filter-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.category-filter-chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  color: var(--accent-dark);
  background: #f8fcfa;
  font-size: 12px;
  font-weight: 900;
}

.category-filter-chip small {
  color: var(--muted);
  font-size: 10px;
}

.category-filter-chip.is-selected span,
.category-filter-chip input:checked + span {
  border-color: rgba(15, 118, 110, 0.54);
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #1db8c3);
}

.category-filter-chip.is-selected small,
.category-filter-chip input:checked + span small {
  color: rgba(255, 255, 255, 0.78);
}

.university-filter-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 7px;
  color: var(--accent-dark);
  background: #ffffff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.university-filter-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.university-filter-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.1);
}

.university-filter-chip.is-selected {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #15949b);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
}

.university-filter-chip.is-selected::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: #fff7d6;
  box-shadow: 0 0 0 3px rgba(255, 247, 214, 0.16);
}

select,
.toolbar input {
  height: 42px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 0 10px;
  color: var(--ink);
}

.toolbar input {
  width: 100%;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}

.export-report-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #1796a0);
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.16);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.export-report-button-primary {
  min-height: 58px;
  padding: 0 22px;
  border-color: rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  color: #083b37;
  background: linear-gradient(135deg, #ffffff, #d9fff1);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.82);
  font-size: 16px;
}

.export-report-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

.export-report-button:hover {
  background: linear-gradient(135deg, #0d625c, #137e86);
}

.export-report-button-primary:hover {
  color: #062f2b;
  background: linear-gradient(135deg, #ffffff, #bff7e4);
}

.export-report-button:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.28);
  outline-offset: 2px;
}

.export-report-status {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  min-height: 22px;
  margin: -6px 0 0;
  color: rgba(236, 253, 245, 0.92);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.export-report-status:empty {
  display: none;
}

.export-report-status.is-error {
  color: #fff7ed;
}

.download-fallback-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-left: 8px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
  color: #063b35;
  background: #ffffff;
  text-decoration: none;
}

.download-fallback-link:hover {
  background: #ecfdf5;
}

.summary {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.table-wrap {
  overflow: auto;
  max-height: calc(100vh - 150px);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 1660px;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.col-school,
th:nth-child(1),
td:nth-child(1) {
  width: 68px;
}

.col-code,
th:nth-child(2),
td:nth-child(2) {
  width: 76px;
}

.col-compare,
th:nth-child(3),
td:nth-child(3) {
  width: 90px;
}

.col-program,
th:nth-child(4),
td:nth-child(4) {
  width: 220px;
}

.col-faculty,
th:nth-child(5),
td:nth-child(5) {
  width: 130px;
}

.col-score,
th:nth-child(6),
td:nth-child(6) {
  width: 82px;
}

.col-ref,
th:nth-child(7),
td:nth-child(7),
th:nth-child(8),
td:nth-child(8),
th:nth-child(9),
td:nth-child(9) {
  width: 62px;
}

.col-places,
th:nth-child(10),
td:nth-child(10) {
  width: 90px;
}

.col-chance,
th:nth-child(11),
td:nth-child(11) {
  width: 100px;
}

.col-description,
.col-requirements,
th:nth-child(12),
td:nth-child(12),
th:nth-child(13),
td:nth-child(13) {
  width: 116px;
}

.col-method,
th:nth-child(14),
td:nth-child(14) {
  width: 376px;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f1f7f4;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid rgba(215, 229, 223, 0.72);
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf2ef;
  border-right: 1px solid rgba(237, 242, 239, 0.7);
  vertical-align: top;
  font-size: 13px;
}

tbody tr:hover {
  background: #f8fbf9;
}

.code {
  font-weight: 700;
  color: var(--accent-dark);
}

.compare-row-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 7px;
  color: var(--accent-dark);
  background: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.compare-row-button.is-selected {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #0f766e, #1aa3a8);
}

.compare-row-button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.program {
  font-weight: 650;
  overflow-wrap: anywhere;
}

.method {
  color: var(--muted);
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.description-cell {
  width: 180px;
  position: relative;
  overflow: visible;
}

.program-description {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  background: #f4fbf8;
  cursor: pointer;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.program-description-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 20;
  display: none;
  width: min(420px, 62vw);
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(27, 50, 42, 0.18);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  white-space: normal;
}

.program-description:hover .program-description-popover,
.program-description:focus .program-description-popover,
.program-description:focus-within .program-description-popover {
  display: block;
}

.score {
  font-weight: 800;
  font-size: 15px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  border-radius: 6px;
  padding: 5px 8px;
  font-weight: 800;
  font-size: 12px;
}

.very-high {
  color: #075e54;
  background: #dff7ed;
}

.high {
  color: #125a25;
  background: #e7f8dc;
}

.medium {
  color: #7a4c00;
  background: #fff0c7;
}

.reach {
  color: #8a3a0a;
  background: #ffe3ca;
}

.low {
  color: var(--red);
  background: #ffe0dc;
}

.ineligible {
  color: var(--red);
  background: #ffe0dc;
}

.requirement-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 4px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.requirement-status.met {
  color: #0f4f4a;
  background: #dff7ed;
}

.requirement-status.review {
  color: #7a4c00;
  background: #fff0c7;
}

.requirement-status.unmet {
  color: var(--red);
  background: #ffe0dc;
}

.requirement-unmet-row {
  background: rgba(255, 236, 234, 0.48);
}

.unknown {
  color: #4b5563;
  background: #e9edf1;
}

@media (max-width: 980px) {
  .app-shell {
    width: min(100% - 24px, 920px);
  }

  .hero {
    min-height: auto;
    padding-bottom: 18px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    max-width: 820px;
  }

  .signal-board {
    min-height: 420px;
  }

  .orbit-ring {
    inset: 22px 11%;
  }

  .score-card {
    right: 5%;
  }

  .match-card {
    left: 6%;
    bottom: 42px;
  }

  .insight-card {
    right: 10%;
    bottom: 0;
  }

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

  .complexity-panel {
    grid-template-columns: 1fr;
  }

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

  .product-preview {
    grid-template-columns: 1fr;
    padding: 28px 0 44px;
  }

  .decision-pressure {
    grid-template-columns: 1fr;
  }

  .decision-cta {
    max-width: 640px;
  }

  .next-step-section,
  .next-step-grid {
    grid-template-columns: 1fr;
  }

  .example-hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .example-score-card {
    max-width: 520px;
  }

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

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

  .confirm-layout {
    grid-template-columns: 1fr;
  }

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

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

  .export-report-button-primary {
    width: 100%;
  }

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

  .best5-card {
    position: static;
  }

  .score-panel {
    position: static;
  }

  .preference-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .preference-actions .analysis-button,
  .preference-actions .secondary-button {
    width: 100%;
  }

  .preference-step-card {
    padding: 14px;
  }

  .preference-block-head,
  .mainland-location-head,
  .pathway-overseas-drawer summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .custom-school-preference {
    grid-template-columns: 1fr;
  }

  .subject-cards {
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  }

  .subject-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .subject-section p {
    max-width: none;
    text-align: left;
  }

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

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

  .summary {
    white-space: normal;
  }

  .toolbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .toolbar input {
    width: min(100%, 320px);
  }

  .contact-admin-button {
    top: auto;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    min-height: 46px;
  }

  .ai-powered-admissions:not(.calculator-only) .contact-admin-button {
    top: auto;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    left: auto;
  }
}

@media (max-width: 900px) {
  .result-panel {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .toolbar {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(247, 250, 247, 0.96);
    box-shadow: 0 10px 26px rgba(27, 50, 42, 0.1);
    backdrop-filter: blur(10px);
  }

  .filters {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .university-filter {
    grid-column: 1 / -1;
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .category-filter {
    grid-column: 1 / -1;
  }

  .category-filter-panel {
    width: 100%;
  }

  .filter-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0 2px 2px;
    border-right: 0;
    border-bottom: 1px solid rgba(15, 118, 110, 0.14);
  }

  .university-filter-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  select,
  .toolbar input {
    width: 100%;
    min-width: 0;
    height: 44px;
    border-radius: 7px;
    font-size: 15px;
  }

  .toolbar input {
    grid-column: 1 / -1;
  }

  .summary {
    width: 100%;
    font-size: 12px;
  }

  .toolbar-actions {
    align-items: stretch;
  }

  .export-report-button {
    width: 100%;
    min-height: 44px;
  }

  .report-download-hero {
    padding: 16px;
  }

  .report-download-copy h2 {
    font-size: 25px;
  }

  .table-wrap {
    max-height: none;
    overflow: visible;
    margin-top: 10px;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  table {
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
  }

  thead {
    display: none;
  }

  tbody tr {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 10px 24px rgba(27, 50, 42, 0.08);
  }

  tbody tr:hover {
    background: var(--panel);
  }

  .comparison-table,
  .comparison-table thead,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table th,
  .comparison-table td {
    display: revert;
  }

  .comparison-table th,
  .comparison-table td {
    width: auto;
    padding: 9px 10px;
    border-bottom: 1px solid #edf2ef;
    border-right: 1px solid rgba(237, 242, 239, 0.7);
  }

  .comparison-table td::before {
    content: none;
  }

  td {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
    padding: 6px 2px;
    border: 0;
    font-size: 13px;
  }

  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 700;
  }

  .program {
    min-width: 0;
    font-size: 15px;
    line-height: 1.35;
  }

  .score {
    font-size: 18px;
  }

  .method {
    max-width: none;
    line-height: 1.45;
  }

  .description-cell {
    width: auto;
  }

  .program-description-popover {
    left: auto;
    right: 0;
    width: min(420px, calc(100vw - 44px));
  }

  .badge {
    min-height: 30px;
  }
}

@media (max-width: 760px) {
  body {
    background:
      linear-gradient(180deg, rgba(225, 248, 240, 0.92), rgba(246, 251, 248, 0.98) 34%),
      var(--paper);
  }

  .app-shell {
    width: 100%;
    padding: max(14px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  }

  .hero {
    padding-top: 0;
  }

  .hero::after {
    display: none;
  }

  .hero-nav {
    padding-bottom: 28px;
  }

  .brand-lockup {
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .nav-cta {
    display: none;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(34px, 9vw, 40px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .hero-lede {
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.58;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-action-note {
    font-size: 13px;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
    min-height: 46px;
  }

  .ai-powered-admissions:not(.calculator-only) .contact-admin-button {
    top: auto;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: auto;
  }

  .signal-board {
    display: grid;
    gap: 10px;
    min-height: 0;
    margin-top: 4px;
    overflow: visible;
  }

  .orbit-ring,
  .signal-node {
    display: none;
  }

  .signal-card {
    position: static;
    width: 100%;
    padding: 14px;
  }

  .advantage-strip {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .advantage-strip article {
    padding: 16px;
  }

  .complexity-strip {
    padding: 20px 0 24px;
  }

  .complexity-panel {
    padding: 16px;
  }

  .complexity-copy h2 {
    font-size: 27px;
    line-height: 1.16;
  }

  .complexity-copy p:not(.eyebrow) {
    font-size: 15px;
    line-height: 1.62;
  }

  .complexity-map {
    position: relative;
    display: block;
    min-height: 360px;
    padding: 12px;
    background:
      radial-gradient(circle at 50% 50%, rgba(15, 118, 110, 0.1) 0 3.1rem, transparent 3.2rem),
      linear-gradient(rgba(15, 79, 74, 0.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(15, 79, 74, 0.045) 1px, transparent 1px),
      rgba(255, 255, 255, 0.56);
    background-size: auto, 28px 28px, 28px 28px, auto;
  }

  .map-axis,
  .map-ring {
    display: block;
  }

  .map-core {
    display: inline-grid;
    width: 68px;
    height: 68px;
    font-size: 17px;
  }

  .ring-one {
    width: 260px;
    height: 260px;
  }

  .ring-two {
    width: 170px;
    height: 170px;
  }

  .map-node {
    position: absolute;
    min-width: 0;
    width: min(124px, 36vw);
    padding: 9px 10px;
  }

  .map-node span {
    font-size: 13px;
  }

  .map-node small {
    font-size: 10px;
  }

  .node-formula {
    left: 5%;
    top: 10%;
  }

  .node-band {
    right: 5%;
    top: 15%;
  }

  .node-planb {
    left: 5%;
    bottom: 22%;
  }

  .node-interview {
    right: 5%;
    bottom: 22%;
  }

  .node-overseas {
    left: 50%;
    bottom: 6%;
    transform: translateX(-50%);
  }

  .map-node:hover,
  .map-node:focus-visible,
  .node-overseas:hover,
  .node-overseas:focus-visible {
    transform: translateX(-50%);
  }

  .product-preview {
    padding: 22px 0 24px;
  }

  .decision-pressure {
    margin-bottom: 28px;
    padding: 16px;
  }

  .decision-copy h2 {
    font-size: 27px;
    line-height: 1.16;
  }

  .decision-copy p:not(.eyebrow) {
    font-size: 15px;
    line-height: 1.62;
  }

  .decision-case-board {
    display: flex;
    gap: 10px;
    min-height: 0;
    margin-top: 18px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scroll-snap-type: x proximity;
  }

  .case-ticket,
  .ticket-score,
  .ticket-major,
  .ticket-path,
  .ticket-family {
    position: static;
    flex: 0 0 220px;
    width: 220px;
    min-height: 0;
    transform: none;
    scroll-snap-align: start;
  }

  .decision-cta {
    padding: 16px;
  }

  .decision-cta h3 {
    font-size: 21px;
  }

  .example-hero {
    padding-top: 0;
  }

  .example-hero h1 {
    font-size: clamp(30px, 8vw, 36px);
    line-height: 1.1;
  }

  .example-lede {
    font-size: 16px;
    line-height: 1.62;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .example-score-card {
    padding: 18px;
  }

  .example-score-card strong {
    font-size: 36px;
  }

  .example-only .result-overview {
    padding: 12px;
  }

  .example-only .banda-reference {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .example-only .banda-card strong,
  .example-only .banda-meta,
  .example-only .banda-faculty,
  .example-only .banda-reference dd {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .preview-copy {
    padding: 16px;
    border-left-width: 3px;
  }

  .preview-copy h2 {
    font-size: 25px;
  }

  .preview-copy p {
    font-size: 15px;
    line-height: 1.62;
    word-break: break-all;
  }

  .preview-dashboard {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .preview-overview-card,
  .preview-filter-bar,
  .preview-table {
    border-radius: 8px;
  }

  .preview-band-grid {
    grid-template-columns: 1fr;
  }

  .preview-filter-bar strong {
    width: 100%;
    margin-left: 0;
  }

  .preview-table-head {
    display: none;
  }

  .preview-table-row {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 58px;
  }

  .preview-table-row span:nth-of-type(1),
  .preview-table-row strong {
    display: none;
  }

  .preview-table-row em {
    justify-self: start;
    grid-column: 2;
  }

  .site-disclaimer {
    margin: 0 0 20px;
    padding: 14px;
  }

  .site-disclaimer p,
  .advantage-strip p {
    word-break: break-all;
  }

  .topbar {
    gap: 14px;
    padding: 28px 2px 16px;
  }

  .topbar h1 {
    font-size: 25px;
    line-height: 1.18;
  }

  .scale-chip {
    width: 100%;
    justify-content: flex-start;
  }

  .scale-chip span {
    padding: 7px 9px;
  }

  .workspace {
    gap: 12px;
  }

  .score-panel {
    padding: 13px;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(27, 50, 42, 0.1);
  }

  .icon-button {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .subject-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

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

  .result-overview {
    padding: 10px;
  }

  .score-metrics,
  .banda-grid {
    grid-template-columns: 1fr;
  }

  .subject-field {
    min-width: 0;
    min-height: 112px;
    padding: 11px;
  }

  .subject-section {
    padding: 11px;
  }

  .subject-label {
    min-height: 34px;
  }

  .subject-label span {
    font-size: 13px;
  }

  .subject-grade-select {
    height: 44px;
    padding: 0 36px 0 10px;
    font-size: 16px;
    border-radius: 7px;
  }
}

@media (max-width: 430px) {
  .ai-powered-admissions .app-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .app-shell {
    padding-left: 8px;
    padding-right: 8px;
  }

  .subject-grid {
    gap: 8px;
  }

  .subject-cards {
    grid-template-columns: 1fr;
  }

  .confirmed-subjects {
    grid-template-columns: 1fr;
  }

  .confirmed-profile-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .category-preference-grid {
    grid-template-columns: 1fr;
  }

  .pathway-preference-grid,
  .pathway-overseas-grid,
  .mainland-location-grid,
  .profile-detail-grid,
  .pathway-card-facts,
  .pathway-alternative-grid,
  .submission-checklist-grid {
    grid-template-columns: 1fr;
  }

  .pathway-tab-list {
    margin-inline: -2px;
    padding-bottom: 6px;
  }

  .pathway-tab {
    min-height: 40px;
    padding: 0 13px;
    font-size: 12px;
  }

  .pathway-board-head,
  .pathway-section-head {
    display: grid;
  }

  .pathway-board-head > span,
  .pathway-section-head > span {
    max-width: none;
    text-align: left;
  }

  .pathway-alternative-block summary {
    display: grid;
  }

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

  .university-filter-chip {
    min-height: 34px;
    font-size: 11px;
  }

  .university-filter-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .toolbar input {
    grid-column: auto;
  }

  .contact-dialog {
    width: 100%;
    padding: 14px;
  }

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