:root {
  --bg: #f5f8f7;
  --surface: #ffffff;
  --surface-soft: #eef6f3;
  --surface-sage: #e8f1eb;
  --ink: #18212c;
  --text: #2e3a45;
  --muted: #6d7782;
  --line: #dce5e3;
  --teal: #058b82;
  --teal-dark: #036e69;
  --coral: #ef766c;
  --amber: #f1b74b;
  --blue: #4e80d8;
  --violet: #7562c8;
  --green: #5d9b73;
  --shadow: 0 18px 50px rgba(28, 43, 58, 0.07);
  --shadow-soft: 0 10px 28px rgba(28, 43, 58, 0.055);
  --radius: 8px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(5, 139, 130, 0.035), transparent 34%),
    linear-gradient(180deg, #ffffff 0, #f7faf9 44%, #f2f6f4 100%);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(5, 139, 130, 0.32);
  outline-offset: 3px;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 34px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}

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

.brand-sun {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: linear-gradient(135deg, #eaf7f3, #ffffff);
  border: 1px solid #cfe4df;
  color: var(--teal-dark);
  box-shadow: 0 10px 24px rgba(5, 139, 130, 0.1);
}

.brand-mark .small-icon {
  width: 21px;
  height: 21px;
}

.login-mark {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
}

.login-mark .small-icon {
  width: 28px;
  height: 28px;
}

.brand strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
}

.brand span:last-child {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  color: var(--text);
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.nav button.active {
  color: var(--teal-dark);
  border-bottom-color: var(--teal);
}

.more-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.more-trigger::after {
  content: "⌄";
  display: inline-block;
  margin-left: 6px;
  color: var(--muted);
  font-size: 13px;
}

.more-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 150px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(31, 60, 56, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.more-menu:hover .more-panel,
.more-menu:focus-within .more-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav .more-panel button {
  min-height: 38px;
  width: 100%;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: var(--text);
  text-align: left;
}

.nav .more-panel button:hover {
  background: var(--surface-soft);
  color: var(--teal-dark);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.icon-button svg,
.small-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.logout-button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #dce8e5;
  border-radius: 8px;
  background: #f8fbfa;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.logout-button:hover {
  border-color: #b8d7d0;
  background: #eef7f4;
}

.avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--teal-dark);
  font-size: 14px;
}

.profile-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #d4e4df;
  border-radius: 50%;
  background: linear-gradient(135deg, #eaf7f3, #ffffff);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-avatar,
.avatar-choice,
.preview-avatar {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.layout {
  flex: 1;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 360px;
  min-height: calc(100vh - 72px);
}

.left-panel,
.right-panel {
  padding: 28px 16px;
  background: rgba(255, 255, 255, 0.74);
}

.left-panel {
  border-right: 1px solid var(--line);
}

.right-panel {
  border-left: 1px solid var(--line);
}

.panel-title {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.module-rail {
  position: relative;
  display: grid;
  gap: 14px;
}

.module-rail::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 38px;
  bottom: 38px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7cc9bc, #d9e8e4 72%, #edf3f1);
}

.module-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  min-height: 104px;
  padding: 16px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.module-card:hover {
  transform: translateX(3px);
  border-color: #d7e8e4;
  background: rgba(244, 251, 249, 0.9);
}

.module-card.active {
  background: linear-gradient(135deg, #eaf8f5, #f8fcfa);
  border-color: #cce7e2;
  box-shadow: 0 10px 22px rgba(23, 111, 104, 0.08);
}

.module-card.next {
  background: rgba(246, 252, 250, 0.82);
  border-color: #e1eeeb;
}

.module-card.done {
  background: rgba(255, 255, 255, 0.88);
  border-color: #e1ebe8;
}

.module-index {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  border: 1px solid #c9d9d5;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 12px rgba(54, 91, 88, 0.09);
  color: #738687;
  font-weight: 800;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.module-index::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(77, 132, 127, 0.16);
  border-radius: inherit;
}

.module-card.active .module-index {
  border-color: var(--teal);
  background: linear-gradient(135deg, var(--teal), #43b8a4);
  box-shadow: 0 0 0 5px rgba(16, 155, 144, 0.12), 0 8px 16px rgba(16, 121, 114, 0.18);
  color: #fff;
}

.module-card.next .module-index {
  border-color: #72bdb2;
  background: #effaf7;
  color: var(--teal-dark);
}

.module-card.done .module-index {
  border-color: #8bc9aa;
  background: #e9f8ef;
  color: #28714f;
}

.module-card.active .module-index::after {
  border-color: rgba(255, 255, 255, 0.46);
}

.module-card.next .module-index::after,
.module-card.done .module-index::after {
  border-color: rgba(38, 125, 104, 0.2);
}

.module-copy {
  display: grid;
  align-content: start;
  gap: 2px;
}

.module-card strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.module-copy > span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.module-state {
  display: block;
  margin-top: 6px;
  color: #819291;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.module-card.next .module-state,
.module-card.active .module-state {
  color: var(--teal-dark);
}

.module-card.done .module-state {
  color: #327456;
}

.side-progress {
  margin-top: 42px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.progress-bar {
  height: 8px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ecea;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: var(--value, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #41b8a4);
}

.trust-note {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  margin: 28px 4px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.workspace {
  padding: 34px 44px 96px;
  min-width: 0;
}

.screen-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.screen-header h1,
.screen-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.3;
  font-weight: 850;
}

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

.question-count {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.question-count strong {
  color: var(--teal);
  font-size: 18px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.intro-brief {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 20px;
  align-items: stretch;
  margin-top: 26px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
}

.intro-brief h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.4;
}

.intro-brief p {
  margin: 12px 0 0;
  color: var(--text);
  line-height: 1.8;
}

.formula-card {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 20px;
  border: 1px solid #d4e5df;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #edf8f5, #ffffff);
}

.formula-card strong {
  color: var(--ink);
  font-size: 16px;
}

.formula-card span {
  color: var(--teal-dark);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 850;
}

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

.feature-card {
  min-height: 156px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.feature-card .small-icon {
  color: var(--teal-dark);
}

.feature-card h3 {
  margin: 12px 0 8px;
  color: var(--ink);
  font-size: 17px;
}

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

.intro-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.intro-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 20px;
}

.intro-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.intro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.meta-tag {
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.compact-progress .module-rail {
  gap: 10px;
}

.compact-progress .module-rail::before {
  left: 26px;
  top: 30px;
  bottom: 30px;
}

.compact-progress .module-card {
  grid-template-columns: 36px 1fr;
  min-height: 78px;
  padding: 12px 10px;
}

.compact-progress .module-index {
  width: 30px;
  height: 30px;
  font-size: 13px;
}

.compact-progress .module-card strong {
  font-size: 15px;
}

.compact-progress .module-copy > span {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.45;
}

.compact-progress .module-state {
  margin-top: 4px;
}

.compact-progress .side-progress {
  margin-top: 22px;
  padding: 14px;
}

.home-dashboard {
  display: grid;
  align-content: start;
  gap: 26px;
}

.home-primary-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.62fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
  padding: clamp(26px, 4.4vw, 54px);
  border: 1px solid rgba(207, 229, 223, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.96) 0 54%, rgba(238, 247, 244, 0.88) 54% 100%),
    radial-gradient(circle at 88% 14%, rgba(241, 183, 75, 0.18), transparent 23%),
    #fff;
  box-shadow: 0 24px 58px rgba(35, 86, 79, 0.095);
}

.home-primary-card::before {
  content: "";
  position: absolute;
  left: clamp(24px, 4.4vw, 54px);
  right: clamp(24px, 4.4vw, 54px);
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--amber));
}

.home-primary-card::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: min(34vw, 430px);
  height: 100%;
  border-left: 1px solid rgba(5, 139, 130, 0.12);
  background: repeating-linear-gradient(135deg, rgba(5, 139, 130, 0.045) 0 1px, transparent 1px 24px);
  pointer-events: none;
}

.home-primary-card > * {
  position: relative;
  z-index: 1;
}

.home-paper-main {
  min-width: 0;
}

.home-paper-aside {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 4px 0 0;
  background: transparent;
}

.home-kicker-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.home-kicker-line span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(207, 229, 223, 0.78);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
}

.home-kicker-line .eyebrow {
  background: #173f36;
  color: #fff;
}

.home-primary-card h1 {
  max-width: 720px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
  font-weight: 900;
}

.home-primary-card p {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
}

.track-first-card .track-picker {
  margin-top: 30px;
}

.track-first-card .track-card {
  min-height: 172px;
  border-color: rgba(207, 229, 223, 0.78);
  background: rgba(255, 255, 255, 0.94);
}

.track-first-card .track-card strong {
  font-size: 18px;
}

.track-card em,
.track-card small {
  display: block;
}

.track-card em {
  width: fit-content;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #eef7f4;
  color: var(--teal-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.track-card small {
  margin-top: 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.55;
}

.track-status {
  display: grid;
  gap: 6px;
  margin-top: 0;
  padding: 18px;
  border: 1px solid rgba(207, 229, 223, 0.86);
  border-top: 4px solid var(--teal);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

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

.track-status strong {
  color: var(--teal-dark);
  font-size: 18px;
}

.track-status p {
  max-width: none;
  margin: 0;
  font-size: 14px;
}

.home-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.home-action-row .btn {
  min-height: 46px;
  padding-inline: 20px;
}

.home-status-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 0;
  padding: 18px;
  border: 1px solid rgba(207, 229, 223, 0.86);
  border-top: 4px solid var(--blue);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.home-status-strip span {
  display: block;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
}

.home-status-strip strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

.home-progress {
  display: grid;
  gap: 8px;
}

.home-progress > span {
  text-align: left;
}

.home-progress .progress-bar {
  margin-top: 0;
}

.home-advisor-note {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(239, 210, 160, 0.72);
  border-top: 4px solid var(--amber);
  border-radius: 8px;
  background: rgba(255, 248, 232, 0.9);
  color: #72551f;
  box-shadow: var(--shadow-soft);
}

.home-advisor-note b {
  color: #5d4316;
  font-size: 14px;
}

.home-advisor-note small {
  font-size: 12px;
  line-height: 1.65;
}

.home-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-block: 1px solid #dbe9e5;
  background: rgba(255, 255, 255, 0.62);
}

.home-insight-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 112px;
  padding: 20px;
  border-right: 1px solid #dbe9e5;
  background: transparent;
}

.home-insight-card:last-child {
  border-right: 0;
}

.home-insight-card .small-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--teal-dark);
}

.home-insight-card strong,
.home-insight-card span {
  display: block;
}

.home-insight-card strong {
  color: var(--ink);
  font-size: 15px;
}

.home-insight-card span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(220, 229, 227, 0.88);
}

.home-section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

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

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

.home-flow {
  position: relative;
  gap: 0;
  padding: 6px 0 0;
}

.home-flow::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 29px;
  height: 1px;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--amber));
}

.logic-chip,
.flow-step {
  min-height: 116px;
  padding: 18px;
  border: 1px solid rgba(220, 229, 227, 0.78);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(43, 81, 76, 0.06);
}

.logic-chip {
  position: relative;
  padding-left: 22px;
  box-shadow: none;
}

.logic-chip::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 999px;
  background: var(--teal);
}

.logic-chip:nth-child(2)::before {
  background: var(--blue);
}

.logic-chip:nth-child(3)::before {
  background: var(--amber);
}

.logic-chip .small-icon {
  color: var(--teal-dark);
}

.logic-chip strong,
.flow-step span {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
}

.logic-chip span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.flow-step {
  position: relative;
  min-height: 92px;
  padding-top: 42px;
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, rgba(5, 139, 130, 0.25), rgba(78, 128, 216, 0.2)) border-box;
  box-shadow: none;
}

.flow-step small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.flow-step strong {
  position: absolute;
  top: 12px;
  left: 18px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px #cfe4df, 0 8px 18px rgba(43, 81, 76, 0.08);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.home-path-grid article {
  position: relative;
  min-height: 116px;
  padding: 20px 18px 18px;
  border: 0;
  border-top: 3px solid var(--teal);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 251, 0.96));
  box-shadow: 0 10px 22px rgba(43, 81, 76, 0.055);
}

.home-path-grid article:nth-child(2) {
  border-top-color: var(--blue);
}

.home-path-grid article:nth-child(3) {
  border-top-color: var(--amber);
}

.home-path-grid b,
.home-path-grid span {
  display: block;
}

.home-path-grid b {
  color: var(--ink);
  font-size: 15px;
}

.home-path-grid span {
  margin-top: 8px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
}

.home-outcome-panel {
  align-content: start;
}

.home-outcome-panel .score-card {
  margin-bottom: 16px;
}

.outcome-card h3 {
  margin-top: 0;
  line-height: 1.45;
}

.outcome-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.outcome-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid #e2eeea;
  border-radius: 8px;
  background: #fbfdfc;
}

.outcome-row .small-icon {
  color: var(--teal-dark);
}

.outcome-row strong,
.outcome-row small {
  display: block;
}

.outcome-row strong {
  color: var(--ink);
  font-size: 14px;
}

.outcome-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.home-note-card p {
  margin-bottom: 0;
}

.track-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  counter-reset: track;
}

.track-card {
  counter-increment: track;
  position: relative;
  min-height: 116px;
  padding: 18px 18px 18px 20px;
  border: 1px solid rgba(220, 229, 227, 0.9);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.track-card::before {
  content: counter(track, decimal-leading-zero);
  position: absolute;
  right: 16px;
  top: 14px;
  color: rgba(3, 110, 105, 0.12);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.track-card::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: var(--teal);
}

.track-card:nth-child(2)::after {
  background: var(--blue);
}

.track-card:nth-child(3)::after {
  background: var(--amber);
}

.track-card:hover,
.track-card.active {
  transform: translateY(-2px);
  border-color: #9ed3c8;
  background: linear-gradient(135deg, #f2fbf8, #ffffff);
  box-shadow: 0 16px 32px rgba(31, 112, 103, 0.105);
}

.track-card strong,
.track-card span {
  display: block;
}

.track-card strong {
  color: var(--ink);
  font-size: 16px;
}

.track-card span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.track-card.active {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px rgba(5, 139, 130, 0.2), 0 18px 36px rgba(31, 112, 103, 0.13);
}

.us-profile-section {
  border-color: rgba(207, 228, 223, 0.95);
  background: #fbfefd;
}

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

.section-title-row h3 {
  margin-bottom: 0;
}

.section-title-row > strong {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--teal-dark);
  font-size: 12px;
}

.us-recommendation-card {
  border-color: #cfe4df;
}

.us-ceiling-card {
  border-color: #cfe4df;
  background:
    linear-gradient(90deg, rgba(238, 247, 244, 0.92), rgba(255, 255, 255, 0.98) 38%),
    #fff;
}

.us-activity-evidence-card {
  border-color: #ead9b8;
  background:
    linear-gradient(90deg, rgba(255, 248, 235, 0.92), rgba(255, 255, 255, 0.96) 42%),
    #fff;
}

.activity-evidence-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.activity-evidence-summary span {
  display: grid;
  gap: 4px;
  padding: 13px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(234, 217, 184, 0.9);
}

.activity-evidence-summary b {
  color: #a26200;
  font-size: 22px;
}

.activity-evidence-summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.activity-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.activity-report-grid section {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(234, 217, 184, 0.84);
}

.activity-report-grid section > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.activity-report-grid strong {
  color: var(--ink);
  font-size: 14px;
}

.activity-report-grid b {
  color: #a26200;
  font-size: 12px;
}

.activity-report-grid p,
.activity-report-grid small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.compact-tags {
  gap: 6px;
}

.compact-tags span {
  padding: 5px 8px;
  font-size: 11px;
}

.activity-major-support {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(234, 217, 184, 0.85);
}

.activity-major-support b {
  margin-right: 4px;
  color: var(--ink);
  font-size: 13px;
}

.activity-major-support span {
  padding: 7px 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.activity-major-support em {
  color: #a26200;
  font-style: normal;
}

.ceiling-summary {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  border: 0;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
}

.ceiling-summary div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.ceiling-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.ceiling-summary b {
  color: var(--teal-dark);
  font-size: 28px;
}

.ceiling-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6f2ee;
}

.ceiling-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #8bc8aa);
}

.evidence-level-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 14px;
  border: 1px solid #d9e9e4;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.evidence-level-item {
  display: grid;
  gap: 6px;
  min-height: 72px;
  padding: 12px;
  border-right: 1px solid #d9e9e4;
  border-bottom: 1px solid #d9e9e4;
  background: #fff;
}

.evidence-level-item:nth-child(3n) {
  border-right: 0;
}

.evidence-level-item:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.evidence-level-item b {
  color: var(--ink);
  font-size: 13px;
}

.evidence-level-item em {
  color: var(--teal-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.5;
}

.evidence-gap-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  background: #eef7f4;
}

.evidence-gap-box > b {
  color: var(--ink);
  font-size: 14px;
}

.us-cuilu-panel {
  border-color: #d6e7e1;
  background: #fbfefd;
}

.recommendation-bucket {
  margin-top: 20px;
}

.recommendation-bucket h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0;
}

.recommendation-bucket > p {
  margin: -2px 0 12px;
  max-width: 860px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.us-rec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.recommendation-bucket .us-rec-grid {
  margin-top: 0;
}

.us-rec-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 18px 18px 18px 20px;
  border: 0;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fbfdfc);
  box-shadow: 0 12px 28px rgba(43, 81, 76, 0.07);
}

.us-rec-card:nth-child(2n) {
  border-left-color: var(--blue);
}

.us-rec-card:nth-child(3n) {
  border-left-color: var(--amber);
}

.us-rec-head {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
}

.us-rec-head b {
  display: grid;
  min-height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #eef7f4;
  color: var(--teal-dark);
  font-size: 13px;
}

.us-rec-head strong,
.us-rec-head span,
.us-rec-card small {
  display: block;
}

.us-rec-head strong {
  color: var(--ink);
  font-size: 15px;
}

.us-rec-head span,
.us-rec-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.us-rec-card p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
}

.us-rec-card .plan-tier-note {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f3f8f6;
  color: var(--teal-dark);
  font-weight: 850;
}

.recommendation-path-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(5, 139, 130, 0.16);
  border-radius: 8px;
  background: #fbfdfc;
}

.recommendation-path-summary span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.recommendation-path-summary b {
  color: var(--teal-dark);
  font-size: 16px;
}

.recommendation-path-summary small {
  flex-basis: 100%;
  color: var(--muted);
  line-height: 1.55;
}

.reality-badges .path-primary {
  background: #eef7f4;
  color: var(--teal-dark);
}

.reality-badges .path-adjacent {
  background: #fff5dc;
  color: #9a6400;
}

.recommendation-path-panel {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(211, 154, 30, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffaf0, #fbfdfc);
}

.recommendation-path-panel b {
  color: var(--ink);
  font-size: 13px;
}

.recommendation-path-panel span,
.recommendation-path-panel small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.official-review-panel {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #dbeae5;
  border-radius: 8px;
  background: #fbfefd;
}

.official-review-panel > b {
  color: var(--ink);
  font-size: 13px;
}

.official-review-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.official-review-panel div span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef7f4;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 850;
}

.official-review-panel small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.official-review-panel small strong {
  margin-right: 6px;
  color: var(--ink);
}

.admission-source-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e5ece9;
  border-radius: 8px;
  background: #fcfefd;
}

.admission-source-panel.compact {
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  background: #fbfdfc;
}

.admission-source-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admission-source-head b {
  color: var(--ink);
  font-size: 13px;
}

.admission-source-head span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.admission-source-panel section {
  display: grid;
  gap: 7px;
  padding-top: 9px;
  border-top: 1px solid #edf3f1;
}

.admission-source-panel section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.admission-source-panel strong {
  color: var(--ink);
  font-size: 12px;
}

.admission-source-panel strong em {
  margin-left: 6px;
  color: var(--teal-dark);
  font-size: 11px;
  font-style: normal;
}

.admission-source-panel small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.admission-source-panel.compact small:not(.source-gap-note) {
  display: none;
}

.admission-source-panel.compact .source-mini-list a {
  min-height: 26px;
  padding: 0 8px;
  font-size: 11px;
}

.source-gap-note {
  padding-top: 4px;
  color: #a26200 !important;
  font-weight: 850;
}

.school-library-page {
  max-width: 1460px;
}

.school-library-hero {
  display: grid;
  gap: 8px;
  margin: 6px auto 18px;
  text-align: center;
}

.school-library-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: 36px;
  letter-spacing: 0;
}

.school-library-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.school-filter-panel {
  display: grid;
  grid-template-columns: minmax(360px, 1.55fr) repeat(4, minmax(150px, 1fr)) 112px;
  gap: 14px;
  align-items: end;
  max-width: 1280px;
  margin: 0 auto 22px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.top30-audit-panel {
  display: grid;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto 22px;
  padding: 18px;
  border: 1px solid #d8e8e4;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 249, 0.95)),
    #fff;
  box-shadow: 0 14px 34px rgba(43, 81, 76, 0.06);
}

.top30-audit-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
}

.top30-audit-head h2 {
  margin: 4px 0 6px;
  color: var(--ink);
  font-size: 22px;
  letter-spacing: 0;
}

.top30-audit-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.top30-audit-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 8px;
}

.top30-audit-stats span {
  display: grid;
  gap: 2px;
  min-width: 76px;
  padding: 10px;
  border-radius: 8px;
  background: #f4faf8;
  border: 1px solid #dcebe6;
  text-align: center;
}

.top30-audit-stats b {
  color: var(--teal-dark);
  font-size: 19px;
}

.top30-audit-stats small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.top30-audit-table {
  display: grid;
  gap: 0;
  overflow: auto;
  border: 1px solid #e2ece9;
  border-radius: 8px;
  background: #fff;
}

.top30-audit-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.05fr) 126px 150px 170px minmax(250px, 1.25fr) 120px minmax(160px, 0.8fr);
  gap: 0;
  min-width: 1240px;
  border-top: 1px solid #edf3f1;
}

.top30-audit-row:first-child {
  border-top: 0;
}

.top30-audit-row.head {
  background: #f3faf7;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.top30-audit-row > span {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 62px;
  padding: 10px 12px;
  border-left: 1px solid #edf3f1;
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
}

.top30-audit-row > span:first-child {
  border-left: 0;
}

.top30-audit-row b {
  color: var(--ink);
  font-size: 12px;
}

.top30-audit-row small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.top30-audit-row em {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef7f4;
  color: var(--teal-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.top30-audit-row a {
  display: inline-flex;
  width: max-content;
  margin-right: 6px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.school-filter-panel label {
  display: grid;
  gap: 0;
  padding: 0;
  border-right: 0;
}

.school-filter-panel label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.school-filter-panel input,
.school-filter-panel select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #d9e4e1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  box-shadow: 0 8px 20px rgba(43, 81, 76, 0.04);
}

.school-filter-panel .btn {
  min-height: 48px;
  align-self: end;
  margin: 0;
  white-space: nowrap;
}

.school-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.school-directory-card {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 274px;
  padding: 24px 18px 0;
  border: 1px solid #d8e8e4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(43, 81, 76, 0.06);
  overflow: hidden;
}

.school-rank-badge {
  position: absolute;
  top: 0;
  left: 18px;
  display: grid;
  width: 26px;
  height: 28px;
  place-items: center;
  border-radius: 0 0 3px 3px;
  background: #d99a19;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.school-directory-card:nth-child(n + 4) .school-rank-badge {
  background: #899099;
}

.school-directory-head {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  align-items: start;
  padding-top: 14px;
}

.school-crest {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid #d8e8e4;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 143, 128, 0.12), rgba(217, 154, 25, 0.1)),
    #fff;
  color: var(--teal-dark);
  font-size: 20px;
  font-weight: 950;
}

.school-directory-head strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

.school-directory-head span,
.school-directory-head small,
.school-directory-card p,
.school-directory-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.school-directory-head small {
  display: block;
  margin-top: 4px;
}

.school-directory-card p {
  margin: 0;
}

.school-directory-meta,
.school-major-row,
.school-fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.school-directory-meta span,
.school-major-row em,
.school-fact-row small {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f0f7f5;
  color: var(--teal-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.school-major-row em {
  background: #fff7e5;
  color: #8a5a0a;
}

.school-fact-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 2px -18px 0;
  border-top: 1px solid #e2eeea;
  border-bottom: 1px solid #e2eeea;
}

.school-fact-row small {
  display: grid;
  gap: 3px;
  min-height: 58px;
  align-items: center;
  justify-items: center;
  padding: 8px 6px;
  border-right: 1px solid #e2eeea;
  border-radius: 0;
  background: #fbfdfc;
  color: var(--ink);
  text-align: center;
  line-height: 1.25;
}

.school-fact-row small:last-child {
  border-right: 0;
}

.school-fact-row small b {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.school-directory-card .source-mini-list {
  margin: 0 -18px;
  padding: 10px 18px;
  border-top: 0;
  background: #fff;
  justify-content: space-between;
}

.school-directory-card .source-mini-list a {
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  font-weight: 850;
}

.admit-rate-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admit-rate-line span,
.admit-rate-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #d9e9e4;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.admit-rate-line small {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
}

.reality-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reality-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  background: #eef7f4;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
}

.reality-badges span:first-child {
  background: #173f36;
  color: #fff;
}

.major-group-cloud {
  margin-top: 0;
}

.cuilu-pill {
  border-color: #cfe4df;
  background: #f2faf7;
  color: var(--teal-dark);
}

.cuilu-source-list {
  margin-top: 0;
}

.source-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.source-link-grid a,
.source-mini-list a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #d8e8e4;
  border-radius: 8px;
  background: #fff;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.source-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.us-school-table .source-mini-list {
  grid-column: 1 / -1;
}

.us-school-table {
  display: grid;
  gap: 8px;
}

.us-school-table section {
  display: grid;
  grid-template-columns: 54px minmax(180px, 1fr) minmax(140px, 0.55fr) minmax(150px, 0.65fr) minmax(220px, 1fr) minmax(220px, 0.9fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.us-school-table b {
  color: var(--teal-dark);
}

.us-school-table strong {
  color: var(--ink);
}

.us-school-table span,
.us-school-table small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.question-stage {
  position: relative;
  z-index: 2;
  max-width: 920px;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(220, 229, 227, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.question-workspace {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100vh - 72px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(247, 250, 249, 0.86)),
    repeating-linear-gradient(90deg, rgba(5, 139, 130, 0.025) 0 1px, transparent 1px 44px);
}

.question-copy {
  margin-top: 44px;
}

.question-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.5;
  letter-spacing: 0;
  font-weight: 850;
}

.question-copy p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.scale-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.scale-button {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 10px;
  border: 1px solid rgba(220, 229, 227, 0.96);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.scale-button:hover {
  transform: translateY(-2px);
  border-color: rgba(5, 139, 130, 0.35);
  box-shadow: 0 12px 26px rgba(20, 32, 45, 0.06);
}

.scale-button.selected {
  border-color: var(--teal);
  background: linear-gradient(180deg, #eefaf7, #ffffff);
  color: var(--teal-dark);
  box-shadow: inset 0 -4px 0 rgba(5, 139, 130, 0.18), 0 14px 28px rgba(5, 139, 130, 0.1);
}

.scale-button b {
  font-size: 32px;
  line-height: 1;
}

.scale-button span {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.question-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding-top: 34px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: #b9cbc7;
}

.btn:active,
.track-card:active,
.module-card:active,
.scale-button:active {
  transform: translateY(0) scale(0.99);
}

.btn.primary {
  border-color: var(--teal);
  background: linear-gradient(135deg, var(--teal), #13a494);
  color: #fff;
  box-shadow: 0 16px 28px rgba(5, 139, 130, 0.2);
}

.btn.secondary {
  background: #f8fbfa;
}

.btn.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--text);
}

.btn:disabled {
  cursor: not-allowed;
  transform: none;
  opacity: 0.48;
}

.report-save-state {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: #eef8f6;
  color: var(--teal-strong);
  font-size: 13px;
  font-weight: 800;
}

.report-save-state.error {
  background: #fff5f4;
  color: #a33d34;
}

.report-save-state.saving {
  background: #fff8ee;
  color: #9a6a1f;
}

.report-save-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.report-save-copy { min-width: 0; }
.report-draft-notice { margin: 20px auto; max-width: 1100px; padding: 20px; background: #fff8ee; border-left: 3px solid #9a6a1f; }
.report-draft-notice p { margin: 0 0 12px; }
.report-draft-notice .btn { margin: 4px 0; }
.report-save-copy small { display: block; margin-top: 6px; color: #a33d34; overflow-wrap: anywhere; }
.report-save-control .report-save-state { padding: 0; background: transparent !important; border-radius: 0; line-height: 1.5; }
.report-save-control .btn { flex-shrink: 0; min-height: 44px; }

@media screen and (max-width: 700px) {
  .workspace:has(> .report-save-control) { padding-bottom: calc(240px + env(safe-area-inset-bottom)) !important; }
  .report-save-control {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    margin: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 0;
    box-shadow: 0 -3px 16px rgb(0 0 0 / 6%);
  }
  .report-save-control .report-save-state { font-size: 12px; }
  .report-save-control .btn { padding: 10px 12px; font-size: 13px; }
  .report-save-copy small { font-size: 11px; line-height: 1.5; }
}

@media print { .report-save-control { display: none !important; } }

.campaign-page {
  min-height: 100vh;
  background: #f8fbfa;
  color: var(--ink);
}

.campaign-topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.campaign-topbar > span {
  color: var(--muted);
  font-weight: 800;
}

.campaign-hero,
.campaign-test-panel,
.campaign-lead-card,
.campaign-report {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(44px, 7vw, 86px) 0;
}

.campaign-hero h1,
.campaign-lead-card h1 {
  max-width: 760px;
  margin: 10px 0 16px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
}

.campaign-hero p,
.campaign-lead-card > p {
  max-width: 700px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.8;
}

.campaign-hero-actions,
.campaign-nav-row,
.campaign-lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.campaign-promise-grid,
.campaign-result-grid,
.campaign-locked-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.campaign-promise-grid article,
.campaign-result-grid article,
.campaign-locked-grid article,
.campaign-question-card,
.campaign-report-section,
.campaign-lead-card-admin {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.campaign-promise-grid article,
.campaign-result-grid article,
.campaign-locked-grid article {
  padding: 22px;
}

.campaign-promise-grid b,
.campaign-result-grid strong {
  display: block;
  color: var(--teal-strong);
  font-size: 28px;
}

.campaign-promise-grid span,
.campaign-result-grid span,
.campaign-locked-grid span {
  color: var(--muted);
  font-weight: 800;
}

.campaign-question-card {
  margin-top: 28px;
  padding: clamp(24px, 4vw, 42px);
}

.campaign-question-card > span {
  color: var(--muted);
  font-weight: 800;
}

.campaign-question-card h2 {
  margin: 14px 0 28px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.25;
}

.campaign-scale-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.campaign-scale-grid button {
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfa;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.campaign-scale-grid button.selected,
.campaign-scale-grid button:hover {
  border-color: var(--teal);
  background: #eef8f6;
}

.campaign-scale-grid b {
  display: block;
  margin-bottom: 8px;
  font-size: 34px;
}

.campaign-scale-grid span {
  color: var(--text);
}

.campaign-lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.campaign-lead-form label,
.campaign-admin-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
}

.campaign-lead-form input,
.campaign-lead-form select,
.campaign-lead-form textarea,
.campaign-admin-form select,
.campaign-admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.campaign-lead-form .wide {
  grid-column: 1 / -1;
}

.campaign-report-section {
  margin-top: 18px;
  padding: 24px;
}

.campaign-major-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.campaign-major-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #eef8f6;
  color: var(--teal-strong);
  font-weight: 900;
}

.campaign-lock-note {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.campaign-detail-list,
.campaign-lead-list {
  display: grid;
  gap: 14px;
}

.campaign-detail-list article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfa;
}

.campaign-detail-list h3 {
  margin: 0 0 8px;
}

.campaign-detail-list p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

.campaign-lead-card-admin {
  padding: 18px;
}

.campaign-lead-main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
  gap: 16px;
}

.campaign-lead-main h3 {
  margin: 8px 0;
}

.campaign-lead-main p,
.campaign-lead-main small,
.campaign-lead-result span {
  display: block;
  color: var(--muted);
  line-height: 1.6;
}

.campaign-lead-card-admin blockquote {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 4px solid var(--teal);
  background: #f8fbfa;
  color: var(--text);
}

.campaign-admin-form {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
}

.right-panel .score-card {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  border: 1px solid rgba(220, 229, 227, 0.74);
}

.score-card h3 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 15px;
}

.bar-list {
  display: grid;
  gap: 11px;
}

.bar-item {
  display: grid;
  grid-template-columns: 24px 56px 1fr 30px;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.bar-item b {
  color: var(--ink);
}

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

.bar-track span {
  display: block;
  width: var(--value, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color, var(--teal));
}

.axis-list {
  display: grid;
  gap: 12px;
}

.axis-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.axis-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.letter {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #edf1f0;
  color: var(--muted);
  font-weight: 850;
}

.letter.active {
  background: linear-gradient(135deg, var(--teal), #16a494);
  color: #fff;
}

.consult-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 8px;
  background: linear-gradient(145deg, #f0f9f5, #ffffff 72%);
  border: 1px solid #d6e9e1;
  box-shadow: 0 12px 24px rgba(37, 104, 91, 0.07);
}

.consult-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), #77c8aa 62%, rgba(119, 200, 170, 0));
}

.consult-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -44px;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(104, 186, 157, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 14px rgba(104, 186, 157, 0.05), 0 0 0 28px rgba(104, 186, 157, 0.03);
  pointer-events: none;
}

.consult-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 16px;
}

.consult-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text);
  line-height: 1.8;
  font-size: 14px;
}

.consult-person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e0ece7;
}

.person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.person .advisor-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), #54b991);
  box-shadow: 0 7px 16px rgba(24, 126, 111, 0.2);
  color: #fff;
}

.advisor-avatar .small-icon {
  display: grid;
  margin-top: 0;
}

.advisor-avatar .small-icon svg {
  width: 20px;
  height: 20px;
}

.person strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.person .advisor-copy {
  display: block;
  margin-top: 0;
}

.person .advisor-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.consult-person .btn {
  min-height: 38px;
  padding: 0 11px;
  font-size: 12px;
}

.consult-person .btn .small-icon svg {
  width: 14px;
  height: 14px;
}

.report {
  display: grid;
  gap: 20px;
  margin-top: 26px;
}

.strategy-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 26px;
  border: 1px solid #b9dcd6;
  border-top: 5px solid var(--teal);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f2fbf8, #ffffff);
  box-shadow: var(--shadow-soft);
}

.strategy-card span {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 850;
}

.strategy-card h2 {
  margin: 8px 0;
  color: var(--ink);
  font-size: 22px;
}

.strategy-card p {
  max-width: 900px;
  margin: 0;
  color: var(--text);
  line-height: 1.8;
}

.strategy-card > strong {
  display: grid;
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 28px;
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 20px;
}

.report-section-stack {
  display: grid;
  gap: 14px;
}

.report-disclosure {
  overflow: hidden;
  border: 1px solid rgba(205, 222, 218, 0.92);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.report-disclosure summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
}

.report-disclosure summary::-webkit-details-marker {
  display: none;
}

.report-disclosure summary::after {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-right: 2px solid var(--teal-dark);
  border-bottom: 2px solid var(--teal-dark);
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.report-disclosure[open] summary::after {
  transform: rotate(225deg);
}

.report-disclosure summary span {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.report-disclosure summary strong {
  color: var(--ink);
  font-size: 18px;
}

.report-disclosure summary small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.report-disclosure summary b {
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef8f6;
  color: var(--teal-dark);
  font-size: 12px;
  white-space: nowrap;
}

.report-disclosure-body {
  display: grid;
  gap: 18px;
  padding: 0 18px 18px;
}

.report-disclosure-body > .detail-card,
.report-disclosure-body > .report-grid {
  box-shadow: none;
}

.report-card,
.detail-card {
  padding: 24px;
  border: 1px solid rgba(220, 229, 227, 0.94);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.report-card h3,
.detail-card h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 18px;
}

.report-card p,
.detail-card p,
.result-list li {
  color: var(--text);
  line-height: 1.8;
}

.commonwealth-feasibility-card {
  display: grid;
  gap: 18px;
}

.commonwealth-warning-box,
.commonwealth-source-box {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(215, 164, 46, 0.28);
  border-radius: 10px;
  background: #fff8eb;
}

.commonwealth-warning-box b,
.commonwealth-source-box b {
  color: #7a4b00;
  font-size: 15px;
}

.commonwealth-warning-box span,
.commonwealth-source-box small {
  color: #6b5a3e;
  line-height: 1.7;
}

.commonwealth-library-section {
  display: grid;
  gap: 18px;
}

.school-library-section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.school-library-section-head h2 {
  margin: 4px 0 8px;
  color: var(--ink);
  font-size: 24px;
}

.school-library-section-head p {
  max-width: 920px;
  margin: 0;
  color: var(--text);
  line-height: 1.75;
}

.school-library-section-head > strong {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: #eef8f6;
  color: var(--teal-dark);
}

.commonwealth-library-warning {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(215, 164, 46, 0.28);
  border-radius: 12px;
  background: #fff8eb;
}

.commonwealth-library-warning b {
  color: #7a4b00;
}

.commonwealth-library-warning span {
  color: #6b5a3e;
  line-height: 1.7;
}

.commonwealth-program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.commonwealth-program-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

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

.commonwealth-program-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.commonwealth-program-head h3 {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 18px;
}

.commonwealth-program-head a {
  flex: 0 0 auto;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.commonwealth-program-card > p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

.commonwealth-competitive-note {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 10px;
  background: #f6faf8;
}

.commonwealth-competitive-note b {
  color: var(--teal-dark);
}

.commonwealth-competitive-note span {
  color: var(--text);
  line-height: 1.65;
}

.commonwealth-program-list {
  display: grid;
  gap: 10px;
}

.commonwealth-program-list section {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #e2ecea;
  border-radius: 10px;
  background: #fbfdfc;
}

.commonwealth-program-list strong {
  color: var(--ink);
}

.commonwealth-program-list small {
  color: var(--teal-dark);
  font-weight: 900;
}

.commonwealth-program-list p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

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

.commonwealth-prereq-grid section {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdfc;
}

.commonwealth-prereq-grid section > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.commonwealth-prereq-grid strong {
  color: var(--ink);
}

.commonwealth-prereq-grid b {
  color: var(--teal-dark);
  font-size: 13px;
  text-align: right;
}

.commonwealth-prereq-grid small {
  color: var(--muted);
  line-height: 1.6;
}

.compact-tags span.ready {
  background: #eaf8f2;
  color: #0a7c53;
}

.compact-tags span.missing {
  background: #fff0ec;
  color: #a33e25;
}

.compact-tags span.weak {
  background: #fff8e3;
  color: #8b6200;
}

.big-result {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 14px 0;
}

.big-result strong {
  color: var(--teal-dark);
  font-size: 44px;
  letter-spacing: 0;
}

.big-result span {
  color: var(--muted);
  font-weight: 800;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.tag-cloud span {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.result-list {
  margin: 14px 0 0;
  padding-left: 18px;
}

.result-list li + li {
  margin-top: 8px;
}

.subdirection-stack {
  display: grid;
  gap: 14px;
}

.subdirection-stack section {
  display: grid;
  gap: 8px;
}

.subdirection-stack h4,
.week-plan-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.subdirection-stack div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.subdirection-stack strong {
  color: var(--teal-dark);
  font-size: 13px;
}

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

.subdirection-stack small {
  grid-column: 1 / -1;
  color: var(--text);
  line-height: 1.6;
}

.adjacent-major-card {
  grid-column: 1 / -1;
}

.adjacent-major-card > p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.adjacent-major-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.adjacent-major-grid section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(211, 154, 30, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 252, 245, 0.96), rgba(250, 254, 252, 0.94)),
    radial-gradient(circle at 94% 8%, rgba(211, 154, 30, 0.12), transparent 28%);
}

.adjacent-major-grid section > div {
  display: grid;
  gap: 4px;
}

.adjacent-major-grid span {
  color: #a46a00;
  font-size: 12px;
  font-weight: 900;
}

.adjacent-major-grid strong {
  color: var(--ink);
  font-size: 17px;
}

.adjacent-major-grid em {
  color: var(--teal-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.adjacent-major-grid p,
.adjacent-major-grid small {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
}

.adjacent-major-grid small {
  color: var(--muted);
}

.adjacent-major-grid ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.6;
}

.adjacent-school-examples {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  background: #f8fbfa;
}

.adjacent-school-examples b {
  color: var(--ink);
  font-size: 14px;
}

.adjacent-school-examples div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.adjacent-school-examples span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
  box-shadow: inset 0 0 0 1px rgba(5, 139, 130, 0.14);
}

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

.priority-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.week-plan-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 208px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.priority-action-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 188px;
  padding: 16px;
  border: 1px solid #c9e2dd;
  border-radius: var(--radius);
  background: #f5fbf9;
}

.week-plan-card b {
  color: var(--teal-dark);
  font-size: 13px;
}

.priority-action-card b {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.priority-action-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.week-plan-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.priority-action-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.week-plan-card span {
  align-self: end;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.priority-action-card span {
  align-self: end;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
}

.growth-guidance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.growth-guidance-card {
  --growth-accent: var(--teal);
  --growth-ink: var(--teal-dark);
  --growth-bg: #f2fbf8;
  padding: 16px;
  border: 1px solid #dce8e4;
  border-top: 3px solid var(--growth-accent);
  border-radius: var(--radius);
  background: var(--growth-bg);
}

.growth-guidance-card.tone-talk {
  --growth-accent: #4e80d8;
  --growth-ink: #325f9f;
  --growth-bg: #f4f7fc;
}

.growth-guidance-card.tone-habit {
  --growth-accent: #d49a2d;
  --growth-ink: #906619;
  --growth-bg: #fffbf3;
}

.growth-guidance-card.tone-boundary {
  --growth-accent: #7562c8;
  --growth-ink: #5e4dad;
  --growth-bg: #f7f5fc;
}

.growth-guidance-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.growth-guidance-heading > .small-icon {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--growth-accent);
  box-shadow: 0 3px 12px rgba(28, 43, 58, 0.08);
}

.growth-guidance-heading > .small-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.growth-guidance-heading span {
  display: block;
  margin-bottom: 2px;
  color: var(--growth-ink);
  font-size: 11px;
  font-weight: 850;
}

.growth-guidance-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.growth-guidance-card > strong {
  display: block;
  margin-top: 14px;
  color: var(--growth-ink);
  font-size: 15px;
  line-height: 1.55;
}

.growth-guidance-card p {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.78;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.resource-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 178px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.resource-card > span,
.resource-card small {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
}

.resource-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.resource-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.resource-task {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid #dbe8e5;
  border-radius: var(--radius);
  background: #f6faf9;
}

.resource-task strong {
  color: var(--ink);
  font-size: 12px;
}

.resource-task p {
  line-height: 1.65;
}

.resource-task em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.6;
}

.resource-card a {
  align-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.resource-card .small-icon {
  width: 15px;
  height: 15px;
}

.resource-library-page {
  max-width: 1440px;
}

.resource-library-hero {
  display: grid;
  gap: 12px;
  padding: 34px;
  border: 1px solid #dce8e5;
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 18%, rgba(217, 154, 25, 0.14), transparent 24%),
    linear-gradient(135deg, #f7fbfa 0%, #fffdf8 100%);
  box-shadow: 0 18px 44px rgba(43, 81, 76, 0.08);
}

.resource-library-hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
}

.resource-library-hero p {
  max-width: 900px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.resource-library-hero > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.resource-library-hero > div span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 6px 16px rgba(43, 81, 76, 0.07);
}

.resource-library-hero > div b {
  color: var(--teal-dark);
  font-size: 18px;
}

.resource-library-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(180px, 0.8fr) minmax(160px, 0.7fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid #dce8e5;
  border-radius: 8px;
  background: #fff;
}

.resource-library-filters label {
  display: grid;
  gap: 7px;
}

.resource-library-filters label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.resource-library-filters input,
.resource-library-filters select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.resource-category-rail {
  display: flex;
  gap: 8px;
  margin: 18px 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.resource-category-rail button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #dce8e5;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.resource-category-rail button.active {
  border-color: rgba(5, 139, 130, 0.45);
  background: #edf8f5;
  color: var(--teal-dark);
}

.resource-category-rail small {
  color: var(--muted);
  font-size: 11px;
}

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

.library-resource-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 260px;
  padding: 20px;
  border: 1px solid #dce8e5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(43, 81, 76, 0.06);
}

.library-resource-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.library-resource-meta span,
.library-resource-meta small {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.library-resource-meta span {
  background: rgba(5, 139, 130, 0.1);
  color: var(--teal-dark);
}

.library-resource-card.data-analysis {
  border-color: rgba(217, 154, 25, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 240, 0.92)),
    radial-gradient(circle at 95% 8%, rgba(217, 154, 25, 0.14), transparent 25%);
}

.library-resource-card.data-analysis .library-resource-meta span {
  background: rgba(217, 154, 25, 0.12);
  color: #9b6d12;
}

.library-resource-meta small {
  background: #f8f4ea;
  color: #8d6411;
}

.library-resource-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.library-resource-card p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.75;
}

.library-resource-task {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding: 10px;
  border-radius: 8px;
  background: #f6faf9;
}

.library-resource-task b,
.library-resource-task span {
  font-size: 12px;
}

.library-resource-task b {
  color: var(--ink);
}

.library-resource-task span {
  color: var(--muted);
  line-height: 1.55;
}

.library-resource-card a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.inline-message {
  margin: 14px 0;
  padding: 12px;
  border-radius: var(--radius);
  background: #f0f8f5;
  color: var(--teal-dark);
  line-height: 1.7;
}

.reflection-form,
.admin-resource-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.reflection-form label,
.admin-resource-form label {
  display: grid;
  gap: 7px;
}

.reflection-form .wide,
.admin-resource-form .wide {
  grid-column: 1 / -1;
}

.reflection-form span,
.admin-resource-form span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.reflection-form select,
.reflection-form textarea,
.admin-resource-form input,
.admin-resource-form select,
.admin-resource-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
  color: var(--ink);
  outline: none;
}

.reflection-form textarea,
.admin-resource-form textarea {
  resize: vertical;
  line-height: 1.7;
}

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

.category-mini {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.category-mini strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 8px;
}

.category-mini p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.module-warning {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid #f1d2aa;
  border-radius: var(--radius);
  background: #fff8ee;
  color: #7c5621;
  line-height: 1.7;
}

.module-warning.error {
  border-color: #efb8b1;
  border-left: 5px solid #ef766c;
  background: #fff5f4;
  color: #7d302a;
  font-weight: 800;
}

.background-missing-notice {
  display: grid;
  gap: 8px;
  padding: 15px 16px;
  border: 1px solid #efb8b1;
  border-left: 5px solid #ef766c;
  border-radius: var(--radius);
  background: #fff5f4;
  color: #7d302a;
}

.background-missing-notice strong {
  color: #7d302a;
  font-size: 15px;
}

.background-missing-notice span {
  color: #9b514a;
  font-size: 13px;
}

.background-missing-notice div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.background-missing-notice em {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #ffe5e2;
  color: #8b352f;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

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

.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.form-section {
  position: relative;
  padding: 22px 24px;
  border: 1px solid rgba(220, 229, 227, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(43, 81, 76, 0.045);
}

.form-section:nth-of-type(2n) {
  border-color: rgba(220, 229, 227, 0.92);
}

.form-section:nth-of-type(3n) {
  border-color: rgba(220, 229, 227, 0.92);
}

.form-section h3 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 18px;
}

.form-section h3::after {
  content: none;
}

.form-help {
  margin: -6px 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.background-track-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: -2px 0 18px;
  padding: 9px 12px;
  border: 1px solid rgba(217, 233, 228, 0.9);
  border-radius: 8px;
  background: #fbfdfc;
}

.background-track-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.background-track-summary strong {
  color: var(--teal-dark);
  font-size: 14px;
}

.background-track-summary small {
  flex: 1 1 320px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.55;
}

.us-evidence-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 18px;
  border: 1px solid #d9e9e4;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.us-evidence-guide span {
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 14px;
  border-right: 1px solid #d9e9e4;
  background: transparent;
}

.us-evidence-guide span:last-child {
  border-right: 0;
}

.us-evidence-guide b {
  color: var(--ink);
  font-size: 13px;
}

.us-evidence-guide small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.us-activity-section {
  margin: 22px 0 18px;
  padding: 18px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(239, 247, 244, 0.92), rgba(255, 252, 246, 0.86)),
    #fff;
  border: 1px solid rgba(207, 228, 223, 0.95);
}

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

.activity-section-head h4 {
  margin: 0 0 4px;
  font-size: 17px;
}

.activity-section-head > span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15, 135, 126, 0.1);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

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

.us-activity-card {
  display: grid;
  gap: 12px;
  padding: 15px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(211, 226, 222, 0.95);
  box-shadow: 0 10px 26px rgba(23, 46, 42, 0.04);
}

.activity-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.activity-card-title b {
  color: var(--ink);
  font-size: 14px;
}

.activity-card-title em {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f6ead2;
  color: #9a6100;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

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

.activity-mini-grid .form-field,
.us-activity-card .form-field {
  gap: 6px;
}

.activity-major-block {
  display: grid;
  gap: 8px;
}

.activity-major-block > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.activity-major-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.activity-major-checkboxes label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 999px;
  background: #f6faf8;
  border: 1px solid rgba(207, 228, 223, 0.9);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.activity-major-checkboxes input {
  width: 13px;
  height: 13px;
  accent-color: var(--teal);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

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

.form-field,
.subject-field {
  display: grid;
  gap: 9px;
}

.form-field.wide {
  grid-column: 1 / -1;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.checkbox-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.checkbox-field legend {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.checkbox-field .form-help {
  margin: 0;
}

.curriculum-subject-section {
  border-color: rgba(207, 228, 223, 0.95);
  background: #fbfefd;
}

.us-evidence-guide {
  margin-top: 18px;
  margin-bottom: 14px;
}

.us-evidence-guide span {
  background: linear-gradient(180deg, #ffffff, #f8fcfb);
}

.curriculum-checkbox-field + .curriculum-checkbox-field {
  margin-top: 18px;
}

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

.subject-choice-grid {
  margin-top: 10px;
}

.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
  cursor: pointer;
}

.checkbox-option:hover {
  border-color: rgba(5, 139, 130, 0.42);
}

.checkbox-option input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--teal);
}

.checkbox-option span {
  line-height: 1.55;
}

.form-field span,
.subject-field span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.form-field span em {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: #ffe5e2;
  color: #9b322b;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.form-field input,
.form-field textarea,
.form-field select,
.subject-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

.form-field textarea {
  resize: vertical;
  line-height: 1.7;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus,
.subject-field select:focus {
  border-color: rgba(5, 139, 130, 0.55);
  box-shadow: 0 0 0 3px rgba(5, 139, 130, 0.1);
}

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

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

.weight-grid span {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.weight-grid strong {
  color: var(--ink);
  font-size: 20px;
}

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

.match-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.match-card.has-warning {
  border-color: #efc891;
  background: #fffaf2;
}

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

.match-head strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}

.match-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.match-head b {
  color: var(--teal-dark);
  font-size: 28px;
  line-height: 1;
}

.component-bars {
  display: grid;
  gap: 9px;
}

.component-row {
  display: grid;
  grid-template-columns: 104px 1fr 34px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.component-row strong {
  color: var(--ink);
  text-align: right;
}

.mini-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ece9;
}

.mini-track span {
  display: block;
  width: var(--value, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #43b7a3);
}

.match-card p {
  margin: 14px 0 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
}

.print-report {
  display: none;
}

.footer {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.login-page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 460px);
  gap: 36px;
  align-items: center;
  padding: 48px clamp(20px, 6vw, 96px);
}

.login-brand {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.login-sun {
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  object-fit: contain;
}

.login-brand h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.12;
  letter-spacing: 0;
}

.login-brand p {
  max-width: 560px;
  margin: 22px 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.8;
}

.login-brand ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 2;
}

.login-panel {
  position: relative;
  z-index: 3;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.login-bouquet {
  position: absolute;
  z-index: 1;
  right: -28px;
  bottom: -52px;
  width: clamp(220px, 27vw, 390px);
  max-height: 58vh;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
  user-select: none;
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.login-tabs button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f6faf8;
  color: var(--text);
  font-weight: 800;
}

.login-tabs button.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

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

.account-type-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.account-type-picker legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.account-type-picker label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border: 1px solid #dce8e5;
  border-radius: 8px;
  background: #fbfdfc;
  cursor: pointer;
}

.account-type-picker input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.account-type-picker span {
  display: grid;
  gap: 3px;
}

.account-type-picker b {
  color: var(--ink);
  font-size: 13px;
}

.account-type-picker small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.auth-form + .auth-form {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.auth-form h2 {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 20px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.auth-form input,
.auth-form select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
  color: var(--ink);
  outline: none;
}

.auth-form input:focus,
.auth-form select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(5, 139, 130, 0.12);
}

[data-registration-teacher-code] { min-width: 0; }
[data-registration-teacher-code][hidden] { display: none; }
.auth-form select { max-width: 100%; min-width: 0; font: inherit; }
[data-registration-teacher-status] { display: block; margin-top: 6px; color: var(--text); }
[data-registration-teacher-status]:empty { display: none; }

.avatar-picker {
  min-width: 0;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
}

.avatar-picker legend {
  margin-bottom: 9px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.avatar-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.avatar-option {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  padding: 6px 2px 5px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.avatar-option:hover {
  transform: translateY(-2px);
  background: #f1faf7;
}

.avatar-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.avatar-choice {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid #d7e5e1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.95), transparent 28%),
    linear-gradient(135deg, #eaf7f3, #ffffff);
  color: var(--teal-dark);
  font-size: 25px;
  font-weight: 900;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.avatar-choice img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.avatar-option small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-option:has(input:checked) {
  border-color: #b7ddd6;
  background: #edf9f6;
  box-shadow: 0 5px 12px rgba(35, 128, 116, 0.09);
}

.avatar-option:has(input:checked) .avatar-choice {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 159, 143, 0.13);
}

.avatar-option:has(input:focus-visible) {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.auth-message {
  margin: 18px 0 0;
  padding: 12px;
  border-radius: var(--radius);
  background: #fff8ee;
  color: #7c5621;
  line-height: 1.6;
}

.permission-panel {
  max-width: 720px;
  margin: 80px auto;
  padding: 34px;
  border: 1px solid #dce8e5;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 44px rgba(43, 81, 76, 0.08);
}

.permission-panel h1 {
  margin: 6px 0 10px;
  color: var(--ink);
}

.permission-panel p {
  color: var(--muted);
  line-height: 1.8;
}

.admin-layout {
  min-height: calc(100vh - 72px);
  background: #f5f8f7;
}

.admin-workspace {
  display: grid;
  gap: 20px;
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 34px;
}

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

.admin-stat-grid article,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-stat-grid article {
  display: grid;
  gap: 6px;
  padding: 20px;
}

.admin-stat-grid span,
.admin-panel p,
.admin-table span,
.admin-table small {
  color: var(--muted);
  font-size: 12px;
}

.admin-stat-grid strong {
  color: var(--teal-dark);
  font-size: 30px;
}

.teacher-approval-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.teacher-approval-card {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #dce8e5;
  border-radius: 8px;
  background: #fff;
}

.teacher-approval-card.pending {
  border-color: #ead8aa;
  background: #fffaf0;
}

.teacher-approval-card > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.teacher-approval-card strong,
.teacher-approval-card small {
  display: block;
}

.teacher-approval-card strong {
  color: var(--ink);
  font-size: 14px;
}

.teacher-approval-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.teacher-approval-card > em {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef7f4;
  color: var(--teal-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.teacher-approval-card.pending > em {
  background: #f8e8bd;
  color: #9a6100;
}

.teacher-code-editor { margin-top: 8px; }
.teacher-identity-copy { min-width: 0; flex: 1; }
.teacher-code-editor summary { cursor: pointer; color: var(--ink); font-size: 13px; min-height: 28px; }
.teacher-code-editor form { margin-top: 8px; max-width: 360px; }
.teacher-code-editor fieldset { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.teacher-code-editor label { display: grid; gap: 4px; min-width: 0; flex: 1 1 160px; font-size: 12px; }
.teacher-code-editor input { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 4px; padding: 8px; font: inherit; }
.teacher-code-editor [data-teacher-code-message] { color: #a33d34; white-space: normal; }
.teacher-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-panel {
  min-width: 0;
  padding: 20px;
}

.admin-panel-header,
.admin-password-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.admin-panel p {
  margin: 5px 0 0;
  line-height: 1.6;
}

.admin-filter-bar {
  display: grid;
  grid-template-columns: minmax(210px, 1.5fr) repeat(5, minmax(118px, 0.8fr)) auto;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #dce9e6;
  border-radius: 8px;
  background: #f7fbfa;
}

.admin-filter-bar label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-filter-bar label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.admin-filter-bar input,
.admin-filter-bar select {
  width: 100%;
  min-height: 38px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.admin-filter-bar input:focus,
.admin-filter-bar select:focus {
  border-color: rgba(5, 139, 130, 0.62);
  box-shadow: 0 0 0 3px rgba(5, 139, 130, 0.1);
}

.admin-filter-reset {
  align-self: end;
  min-height: 38px;
  padding: 0 12px;
}

.admin-filter-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.admin-filter-summary strong {
  color: var(--teal-dark);
}

.admin-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin-top: 18px;
}

.admin-table {
  width: 100%;
  min-width: 1240px;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-table td {
  color: var(--text);
  font-size: 13px;
}

.admin-table td > span,
.admin-table td > strong,
.admin-table td > b {
  display: block;
}

.admin-student {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 150px;
}

.admin-student-avatar {
  width: 36px;
  height: 36px;
}

.admin-student strong,
.admin-student span span {
  display: block;
}

.admin-progress {
  width: 130px;
  height: 7px;
  margin-bottom: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #e5ecea;
}

.admin-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.status-badge {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 6px;
  font-weight: 800;
}

.status-badge.active {
  color: #176442;
  background: #e9f7ef;
}

.status-badge.disabled {
  color: #a0463d;
  background: #fff0ed;
}

.admin-actions,
.admin-actions form,
.admin-password-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-actions input,
.admin-password-form input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  outline: none;
}

.admin-actions input {
  width: 112px;
}

.admin-report-download {
  min-height: 38px;
  padding: 0 12px;
}

.admin-report-download .small-icon {
  width: 16px;
  height: 16px;
}

.admin-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 178px;
}

.admin-report-download.consultant {
  border-color: #b9dcd5;
  background: #eef9f6;
  color: var(--teal-dark);
}

.admin-password-form input {
  width: 180px;
}

.admin-empty {
  padding: 34px !important;
  color: var(--muted) !important;
  text-align: center;
}

.admin-resource-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.admin-resource-list article {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
}

.admin-resource-list b,
.admin-resource-list span {
  display: block;
}

.admin-resource-list b {
  color: var(--ink);
  font-size: 14px;
}

.admin-resource-list span {
  margin-top: 4px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.admin-resource-list p {
  margin: 6px 0 0;
}

.admin-resource-list .admin-resource-task {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.admin-resource-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn.danger {
  color: #a0463d;
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  body {
    min-width: 0;
    background: #fff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .topbar,
  .layout,
  .admin-layout,
  .footer {
    display: none !important;
  }

  .print-report {
    display: block;
    color: #152130;
    background: #fff;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  }

  .pdf-page {
    position: relative;
    width: 210mm;
    height: 297mm;
    overflow: hidden;
    padding: 18mm 16mm 17mm;
    break-after: page;
    page-break-after: always;
    background: #fff;
  }

  .pdf-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .pdf-page::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4mm;
    background: #078b82;
  }

  .pdf-cover {
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    padding: 20mm 20mm 16mm 24mm;
    background: #f6fbfa;
  }

  .pdf-cover-top {
    display: grid;
    gap: 3mm;
    color: #087b75;
    letter-spacing: 3px;
    font-size: 12pt;
    font-weight: 800;
  }

  .pdf-cover-top b {
    color: #5d7476;
    letter-spacing: 2px;
    font-size: 7.5pt;
  }

  .pdf-cover-main {
    align-self: center;
    max-width: 150mm;
  }

  .pdf-cover-main > p:first-child {
    color: #078b82;
    font-size: 10pt;
    font-weight: 800;
  }

  .pdf-cover-main h1 {
    margin: 5mm 0 2mm;
    color: #162536;
    font-size: 30pt;
    letter-spacing: 2px;
  }

  .pdf-cover-main h2 {
    margin: 0;
    color: #617478;
    font-size: 12pt;
    letter-spacing: 1px;
  }

  .pdf-cover-line {
    width: 38mm;
    height: 1.4mm;
    margin: 8mm 0 6mm;
    background: #ef766c;
  }

  .pdf-cover-copy {
    color: #52636b;
    font-size: 10pt;
    line-height: 2;
  }

  .pdf-cover-pillars,
  .pdf-cover-results {
    display: flex;
    gap: 4mm;
    margin-top: 8mm;
  }

  .pdf-cover-pillars span {
    min-width: 34mm;
    padding: 4mm;
    border: 0.4mm solid #cce2de;
    color: #087b75;
    font-size: 8pt;
    line-height: 1.7;
  }

  .pdf-cover-pillars b {
    color: #20303e;
    font-size: 10pt;
  }

  .pdf-cover-results {
    gap: 14mm;
    color: #087b75;
    font-size: 20pt;
  }

  .pdf-cover-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4mm 10mm;
    max-width: 150mm;
    padding-top: 6mm;
    border-top: 0.4mm solid #d9e5e3;
  }

  .pdf-cover-info div {
    display: grid;
    gap: 1mm;
  }

  .pdf-cover-info span,
  .pdf-cover-info b {
    font-size: 8pt;
  }

  .pdf-cover-info span {
    color: #758286;
  }

  .pdf-cover-info b {
    color: #1d2b38;
  }

  .pdf-page-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1mm 4mm;
    align-items: center;
    margin-bottom: 9mm;
    padding-bottom: 4mm;
    border-bottom: 0.5mm solid #cddfdd;
  }

  .pdf-page-header span {
    grid-row: 1 / 3;
    color: #078b82;
    font-size: 24pt;
    font-weight: 900;
  }

  .pdf-page-header b {
    color: #6a7a7e;
    font-size: 7pt;
    letter-spacing: 1px;
  }

  .pdf-page-header strong {
    color: #1b2a38;
    font-size: 16pt;
  }

  .pdf-section {
    margin-bottom: 5mm;
    padding: 5mm;
    border: 0.35mm solid #d9e5e3;
    background: #fbfdfd;
  }

  .pdf-section h2 {
    margin: 0 0 3mm;
    color: #15303a;
    font-size: 12pt;
  }

  .pdf-section h2 small {
    margin-left: 2mm;
    color: #7d898b;
    font-size: 7pt;
  }

  .pdf-section p,
  .pdf-section li {
    margin: 0;
    color: #40515b;
    font-size: 8.5pt;
    line-height: 1.85;
  }

  .pdf-code-row,
  .pdf-axis-row {
    display: flex;
    flex-wrap: wrap;
    gap: 3mm;
    margin-bottom: 4mm;
  }

  .pdf-code-row span,
  .pdf-axis-row span {
    display: flex;
    align-items: center;
    gap: 2mm;
    padding: 2.5mm 3mm;
    border: 0.35mm solid #cfe2df;
    background: #eef8f6;
    color: #40515b;
    font-size: 8pt;
  }

  .pdf-code-row b {
    color: #078b82;
    font-size: 16pt;
  }

  .pdf-axis-row b {
    color: #078b82;
    font-size: 10pt;
  }

  .pdf-profile-grid,
  .pdf-explore-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5mm;
  }

  .pdf-mbti {
    display: flex;
    align-items: baseline;
    gap: 3mm;
    margin-bottom: 3mm;
  }

  .pdf-mbti strong {
    color: #078b82;
    font-size: 22pt;
  }

  .pdf-mbti span {
    color: #586a70;
    font-size: 9pt;
    font-weight: 800;
  }

  .pdf-list {
    margin: 0;
    padding-left: 5mm;
  }

  .pdf-formula-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3mm;
    margin-top: 5mm;
  }

  .pdf-formula-grid span {
    display: grid;
    gap: 1mm;
    min-height: 22mm;
    align-content: center;
    padding: 3mm;
    border: 0.35mm solid #cfe2df;
    background: #eef8f6;
    color: #50636a;
    font-size: 8pt;
  }

  .pdf-formula-grid b {
    color: #078b82;
    font-size: 17pt;
  }

  .pdf-tier {
    display: grid;
    grid-template-columns: 40mm 1fr;
    gap: 4mm;
    padding: 3mm 0;
    border-bottom: 0.3mm solid #e1e9e8;
    color: #43545c;
    font-size: 8.5pt;
    line-height: 1.65;
  }

  .pdf-tier b,
  .pdf-cross {
    color: #087b75;
  }

  .pdf-cross {
    margin-top: 4mm;
    font-size: 9pt;
    font-weight: 800;
  }

  .pdf-highlight {
    display: grid;
    gap: 2mm;
    margin-top: 8mm;
    padding: 8mm;
    background: #087b75;
    color: #fff;
  }

  .pdf-highlight span {
    font-size: 8pt;
  }

  .pdf-highlight strong {
    font-size: 19pt;
  }

  .pdf-highlight small {
    color: rgba(255, 255, 255, 0.82);
    font-size: 8pt;
    line-height: 1.6;
  }

  .pdf-top-five {
    display: grid;
    gap: 4mm;
  }

  .pdf-top-five section {
    padding: 5mm;
    border: 0.35mm solid #d9e5e3;
    background: #fbfdfd;
  }

  .pdf-top-five div:first-child {
    display: flex;
    align-items: baseline;
    gap: 3mm;
  }

  .pdf-top-five b {
    color: #078b82;
    font-size: 16pt;
  }

  .pdf-top-five strong {
    color: #20313d;
    font-size: 11pt;
  }

  .pdf-top-five span {
    color: #7b888b;
    font-size: 7pt;
  }

  .pdf-top-five p {
    margin: 2mm 0;
    color: #43545c;
    font-size: 8pt;
    line-height: 1.7;
  }

  .pdf-score-bar {
    height: 1.5mm;
    overflow: hidden;
    background: #e2ecea;
  }

  .pdf-score-bar span {
    display: block;
    width: var(--value, 0%);
    height: 100%;
    background: #078b82;
  }

  .pdf-major-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5mm;
  }

  .pdf-major-grid section {
    display: grid;
    grid-template-columns: 10mm 1fr;
    gap: 3mm;
    min-height: 38mm;
    align-content: start;
    padding: 5mm;
    border: 0.35mm solid #d9e5e3;
    background: #fbfdfd;
  }

  .pdf-major-grid b {
    color: #078b82;
    font-size: 18pt;
  }

  .pdf-major-grid h3 {
    margin: 0 0 2mm;
    color: #20313d;
    font-size: 11pt;
  }

  .pdf-major-grid p {
    margin: 0;
    color: #607077;
    font-size: 8pt;
    line-height: 1.75;
  }

  .pdf-growth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4mm;
    margin-top: 4mm;
  }

  .pdf-growth-grid article {
    --growth-accent: #078b82;
    min-height: 43mm;
    padding: 4mm;
    border: 0.35mm solid #d9e5e3;
    border-top: 1.2mm solid var(--growth-accent);
    background: #fbfdfd;
  }

  .pdf-growth-grid .tone-talk {
    --growth-accent: #4e80d8;
  }

  .pdf-growth-grid .tone-habit {
    --growth-accent: #d49a2d;
  }

  .pdf-growth-grid .tone-boundary {
    --growth-accent: #7562c8;
  }

  .pdf-growth-grid span {
    display: block;
    margin-bottom: 1mm;
    color: var(--growth-accent);
    font-size: 7pt;
    font-weight: 800;
  }

  .pdf-growth-grid h3 {
    margin: 0 0 2mm;
    color: #20313d;
    font-size: 10pt;
  }

  .pdf-growth-grid strong {
    display: block;
    margin-bottom: 2mm;
    color: #304851;
    font-size: 8.5pt;
    line-height: 1.55;
  }

  .pdf-growth-grid p {
    margin: 0;
    color: #50636a;
    font-size: 8pt;
    line-height: 1.75;
  }

  .pdf-consultant ol {
    margin: 0;
    padding-left: 5mm;
  }

  .pdf-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2mm;
    margin-top: 4mm;
  }

  .pdf-steps span {
    display: grid;
    gap: 1mm;
    justify-items: center;
    padding: 3mm 1mm;
    background: #eef8f6;
    color: #456067;
    font-size: 7.5pt;
    text-align: center;
  }

  .pdf-steps b {
    width: 7mm;
    height: 7mm;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #078b82;
    color: #fff;
    font-size: 8pt;
  }

  .pdf-week-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3mm;
  }

  .pdf-week-grid article {
    display: grid;
    align-content: start;
    gap: 1.5mm;
    min-height: 43mm;
    padding: 3.5mm;
    border: 0.35mm solid #d9e5e3;
    background: #f6fbfa;
  }

  .pdf-week-grid b {
    color: #078b82;
    font-size: 8pt;
  }

  .pdf-week-grid h3 {
    margin: 0;
    color: #20313d;
    font-size: 10pt;
  }

  .pdf-week-grid p {
    margin: 0;
    color: #43545c;
    font-size: 7.8pt;
    line-height: 1.65;
  }

  .pdf-week-grid span {
    color: #087b75;
    font-size: 7.5pt;
    font-weight: 800;
  }

  .pdf-resource-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3mm;
    margin-top: 3mm;
  }

  .pdf-priority-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3mm;
    margin-top: 3mm;
  }

  .pdf-resource-list article {
    display: grid;
    align-content: start;
    gap: 1.5mm;
    min-height: 33mm;
    padding: 3mm;
    border: 0.35mm solid #d9e5e3;
    background: #f6fbfa;
  }

  .pdf-priority-list article {
    display: grid;
    align-content: start;
    gap: 1.5mm;
    min-height: 30mm;
    padding: 3mm;
    border: 0.35mm solid #c9e2dd;
    background: #f3faf8;
  }

  .pdf-resource-list b,
  .pdf-resource-list span,
  .pdf-priority-list b,
  .pdf-priority-list span {
    color: #087b75;
    font-size: 7pt;
    overflow-wrap: anywhere;
  }

  .pdf-resource-list h3,
  .pdf-priority-list h3 {
    margin: 0;
    color: #20313d;
    font-size: 9pt;
  }

  .pdf-resource-list p,
  .pdf-priority-list p {
    margin: 0;
    color: #43545c;
    font-size: 7.5pt;
    line-height: 1.55;
  }

  .pdf-learning-resources {
    padding: 3mm;
  }

  .pdf-learning-resources > p {
    font-size: 7.4pt;
    line-height: 1.5;
  }

  .pdf-resource-list.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2mm;
    margin-top: 2mm;
  }

  .pdf-resource-list.compact article {
    min-height: 22mm;
    padding: 2.2mm;
    gap: 1mm;
  }

  .pdf-resource-list.compact b,
  .pdf-resource-list.compact span {
    font-size: 6.4pt;
  }

  .pdf-resource-list.compact h3 {
    font-size: 7.6pt;
    line-height: 1.25;
  }

  .pdf-resource-list.compact p {
    font-size: 6.8pt;
    line-height: 1.4;
  }

  .pdf-us-hero {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6mm;
    margin-bottom: 3mm;
    padding: 4mm;
    background: #eef8f6;
    color: #20313d;
  }

  .pdf-us-hero strong {
    color: #078b82;
    font-size: 16pt;
  }

  .pdf-us-hero span {
    color: #52666c;
    font-size: 8pt;
    font-weight: 800;
  }

  .pdf-us-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4mm;
  }

  .pdf-us-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5mm;
    margin-bottom: 3mm;
  }

  .pdf-us-facts span {
    display: grid;
    gap: 1mm;
    min-height: 15mm;
    align-content: start;
    padding: 2.8mm;
    border: 0.3mm solid #cfe2df;
    background: #f6fbfa;
    color: #43545c;
    font-size: 7.5pt;
    line-height: 1.45;
  }

  .pdf-us-facts b {
    color: #078b82;
    font-size: 7.2pt;
  }

  .pdf-us-note-list li {
    font-size: 7.5pt;
    line-height: 1.6;
  }

  .pdf-activity-mini {
    display: grid;
    gap: 1.5mm;
    margin-top: 2mm;
  }

  .pdf-activity-mini p {
    padding: 2mm 0;
    border-top: 0.25mm solid #e1ecea;
    font-size: 7.5pt;
  }

  .pdf-activity-mini b {
    margin-right: 2mm;
    color: #20313d;
  }

  .pdf-us-rec-buckets {
    display: grid;
    gap: 3mm;
  }

  .pdf-us-rec-bucket {
    padding: 4mm;
    border: 0.35mm solid #d9e5e3;
    background: #fbfdfd;
  }

  .pdf-us-rec-bucket h2 {
    margin: 0 0 1.5mm;
    color: #078b82;
    font-size: 10pt;
  }

  .pdf-us-rec-bucket > p {
    margin: 0 0 2mm;
    color: #66767a;
    font-size: 7pt;
    line-height: 1.5;
  }

  .pdf-us-rec-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5mm;
  }

  .pdf-us-rec-list article {
    display: grid;
    align-content: start;
    gap: 1.4mm;
    min-height: 38mm;
    padding: 2.5mm;
    border: 0.3mm solid #cfe2df;
    background: #f6fbfa;
  }

  .pdf-us-rec-list div {
    display: grid;
    gap: 0.8mm;
  }

  .pdf-us-rec-list strong {
    color: #20313d;
    font-size: 8.2pt;
    line-height: 1.25;
  }

  .pdf-us-rec-list b {
    color: #078b82;
  }

  .pdf-us-rec-list div b,
  .pdf-us-rec-list small {
    color: #66767a;
    font-size: 6.7pt;
    line-height: 1.45;
  }

  .pdf-us-rec-list p {
    margin: 0;
    color: #43545c;
    font-size: 6.9pt;
    line-height: 1.45;
  }

  .consultant-us-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4mm;
  }

  .consultant-evidence-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5mm;
  }

  .consultant-evidence-grid span {
    display: grid;
    gap: 1mm;
    padding: 3mm;
    border-left: 1mm solid #078b82;
    background: #f3faf8;
  }

  .consultant-evidence-grid b {
    color: #20313d;
    font-size: 7.8pt;
  }

  .consultant-evidence-grid small {
    color: #66767a;
    font-size: 7pt;
  }

  .consultant-us-rec-buckets {
    display: grid;
    gap: 3mm;
  }

  .consultant-us-rec-buckets section {
    padding: 3.2mm;
    border: 0.35mm solid #d9e5e3;
    background: #fbfdfd;
  }

  .consultant-us-rec-buckets h2 {
    margin: 0 0 1.5mm;
    color: #078b82;
    font-size: 9.5pt;
  }

  .consultant-us-rec-buckets section > p {
    margin: 0 0 2mm;
    color: #66767a;
    font-size: 6.8pt;
    line-height: 1.45;
  }

  .consultant-us-rec-buckets section > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.2mm;
  }

  .consultant-us-rec-buckets article {
    display: grid;
    gap: 1.2mm;
    min-height: 30mm;
    padding: 2.5mm;
    border: 0.3mm solid #cfe2df;
    background: #f6fbfa;
  }

  .consultant-us-rec-buckets strong {
    color: #20313d;
    font-size: 7.8pt;
    line-height: 1.3;
  }

  .consultant-us-rec-buckets small {
    color: #078b82;
    font-size: 6.5pt;
  }

  .consultant-us-rec-buckets p {
    margin: 0;
    color: #43545c;
    font-size: 6.8pt;
    line-height: 1.45;
  }

  .consultant-us-rec-buckets b {
    color: #20313d;
  }

  .pdf-footer {
    position: absolute;
    right: 16mm;
    bottom: 7mm;
    left: 16mm;
    display: flex;
    justify-content: space-between;
    gap: 4mm;
    padding-top: 2mm;
    border-top: 0.3mm solid #dbe6e4;
    color: #7f8b8e;
    font-size: 6.5pt;
  }

  .pdf-footer strong {
    color: #078b82;
  }

  .consultant-pdf-cover {
    display: grid;
    grid-template-rows: auto 1fr auto auto auto;
    padding: 20mm 18mm 17mm 24mm;
    background: #f4faf8;
  }

  .consultant-pdf-cover::before {
    background: #155c58;
  }

  .consultant-cover-label {
    width: max-content;
    padding: 2.5mm 4mm;
    background: #155c58;
    color: #fff;
    font-size: 8pt;
    font-weight: 850;
    letter-spacing: 1px;
  }

  .consultant-cover-main {
    display: grid;
    align-content: center;
    gap: 3mm;
  }

  .consultant-cover-main p,
  .consultant-cover-main h1,
  .consultant-cover-main h2 {
    margin: 0;
  }

  .consultant-cover-main p {
    color: #32736d;
    font-size: 11pt;
    font-weight: 850;
  }

  .consultant-cover-main h1 {
    color: #17363a;
    font-size: 30pt;
  }

  .consultant-cover-main h2 {
    color: #71908f;
    font-size: 13pt;
    font-weight: 600;
  }

  .consultant-cover-main strong {
    margin-top: 8mm;
    color: #155c58;
    font-size: 22pt;
  }

  .consultant-cover-main span {
    color: #566e70;
    font-size: 10pt;
  }

  .consultant-cover-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3mm;
    margin-bottom: 6mm;
  }

  .consultant-cover-grid div {
    display: grid;
    gap: 1mm;
    padding: 4mm;
    border: 0.35mm solid #cfe0dd;
    background: #fff;
  }

  .consultant-cover-grid span {
    color: #77908f;
    font-size: 7pt;
  }

  .consultant-cover-grid b {
    color: #23484a;
    font-size: 9pt;
  }

  .consultant-cover-note {
    margin-bottom: 7mm;
    padding: 4mm;
    border-left: 1mm solid #d3a64a;
    background: #fff8e9;
    color: #6d5a30;
    font-size: 8pt;
    line-height: 1.7;
  }

  .consultant-signal-grid,
  .consultant-axis-grid {
    display: grid;
    gap: 3mm;
  }

  .consultant-signal-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .consultant-axis-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .consultant-signal-grid span,
  .consultant-axis-grid span {
    display: grid;
    gap: 1mm;
    padding: 3mm;
    border: 0.35mm solid #d7e5e3;
    background: #f5fbfa;
  }

  .consultant-signal-grid b,
  .consultant-axis-grid b {
    color: #087b75;
    font-size: 12pt;
  }

  .consultant-signal-grid strong,
  .consultant-axis-grid strong {
    color: #334e55;
    font-size: 8pt;
  }

  .consultant-signal-grid small,
  .consultant-axis-grid small {
    color: #748789;
    font-size: 7pt;
  }

  .consultant-category-list {
    display: grid;
    gap: 3mm;
  }

  .consultant-category-list section {
    padding: 4mm;
    border: 0.35mm solid #d9e5e3;
    background: #fbfdfd;
  }

  .consultant-category-list section > div:first-child {
    display: flex;
    align-items: baseline;
    gap: 3mm;
  }

  .consultant-category-list b {
    color: #087b75;
    font-size: 15pt;
  }

  .consultant-category-list strong {
    color: #20313d;
    font-size: 10pt;
  }

  .consultant-category-list span,
  .consultant-category-list p {
    color: #66777c;
    font-size: 7.5pt;
  }

  .consultant-category-list p {
    margin: 1.5mm 0;
    line-height: 1.55;
  }

  .consultant-component-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2mm;
  }

  .consultant-component-row small {
    padding: 1mm 2mm;
    background: #eef7f5;
    color: #3d6a67;
    font-size: 7pt;
  }

  .consultant-caution-box {
    margin-top: 5mm;
    border-left: 1mm solid #d3a64a;
    background: #fffaf0;
  }

  .consultant-highlight {
    margin: 0 0 5mm;
    background: #155c58;
  }

  .consultant-reflection-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3mm;
  }

  .consultant-reflection-grid div {
    min-height: 18mm;
    padding: 3mm;
    border: 0.35mm solid #dbe6e4;
    background: #fbfdfd;
  }

  .consultant-reflection-grid span {
    display: block;
    margin-bottom: 1mm;
    color: #087b75;
    font-size: 7pt;
    font-weight: 850;
  }

  .consultant-reflection-grid p {
    margin: 0;
    color: #4f6166;
    font-size: 8pt;
    line-height: 1.55;
  }

  .consultant-checklist {
    margin: 0;
    padding-left: 5mm;
  }

  .consultant-checklist li {
    min-height: 9mm;
    padding: 1.5mm 0 1.5mm 2mm;
    border-bottom: 0.3mm solid #e0e9e7;
    color: #43545c;
    font-size: 8.5pt;
    line-height: 1.55;
  }

  .consultant-note-area {
    min-height: 38mm;
    background: repeating-linear-gradient(#fbfdfd, #fbfdfd 8mm, #e1e9e8 8.3mm);
  }

  .consultant-pdf-footer span {
    color: #7b6751;
  }
}

@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .right-panel {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .right-panel .score-card,
  .right-panel .consult-card {
    margin-bottom: 0;
  }
}

@media (max-width: 860px) {
  .login-page {
    grid-template-columns: 1fr;
    padding: 28px 18px;
  }

  .login-brand p {
    font-size: 16px;
  }

  .admin-workspace {
    padding: 24px;
  }

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

  .admin-filter-search,
  .admin-filter-reset {
    grid-column: 1 / -1;
  }

  .topbar {
    height: auto;
    flex-wrap: wrap;
    padding: 16px;
  }

  .brand {
    min-width: 0;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .more-panel {
    left: auto;
    right: 0;
  }

  .top-actions {
    display: none;
  }

  .layout {
    display: block;
  }

  .left-panel,
  .right-panel,
  .workspace {
    padding: 18px;
  }

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

  .module-rail::before {
    display: none;
  }

  .module-card {
    grid-template-columns: 36px 1fr;
    min-height: 96px;
  }

  .compact-progress .module-card {
    min-height: 74px;
  }

  .side-progress,
  .trust-note {
    display: none;
  }

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

  .home-primary-card {
    grid-template-columns: 1fr;
  }

  .home-paper-aside {
    padding: 0;
    border-left: 0;
    background: transparent;
  }

  .question-copy {
    margin-top: 38px;
  }

  .scale-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 34px;
  }

  .scale-button {
    min-height: 112px;
  }

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

  .question-actions .btn.primary {
    order: -1;
  }

  .report-disclosure summary {
    align-items: flex-start;
    min-height: 0;
    padding: 16px;
  }

  .report-disclosure summary b {
    display: none;
  }

  .report-disclosure-body {
    padding: 0 12px 12px;
  }

  .intro-grid,
  .report-grid,
  .category-grid,
  .commonwealth-prereq-grid,
  .commonwealth-program-grid,
  .intro-brief,
  .feature-grid,
  .form-grid,
  .form-grid.compact,
  .checkbox-grid,
  .subject-grid,
  .weight-grid,
  .priority-action-grid,
  .week-plan-grid,
  .growth-guidance-grid,
    .resource-grid,
    .reflection-form,
    .admin-resource-form,
    .match-list,
    .right-panel,
    .home-status-strip,
    .home-insight-grid,
    .home-logic-grid,
    .home-path-grid,
    .home-flow,
    .track-picker,
    .us-evidence-guide,
    .evidence-level-grid,
    .us-rec-grid,
    .school-filter-panel,
    .school-directory-grid,
    .resource-library-filters,
    .resource-library-grid,
    .us-school-table section {
    grid-template-columns: 1fr;
  }

  .home-primary-card {
    padding: 24px;
  }

  .home-primary-card h1 {
    font-size: 30px;
  }

  .home-status-strip {
    gap: 12px;
  }

  .home-insight-card,
  .us-evidence-guide span {
    border-right: 0;
    border-bottom: 1px solid #d9e9e4;
  }

  .home-insight-card:last-child,
  .us-evidence-guide span:last-child {
    border-bottom: 0;
  }

  .home-flow {
    gap: 14px;
  }

  .home-flow::before {
    display: none;
  }

  .evidence-level-item,
  .evidence-level-item:nth-child(3n),
  .evidence-level-item:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid #d9e9e4;
  }

  .evidence-level-item:last-child {
    border-bottom: 0;
  }

  .home-progress > span {
    text-align: left;
  }

  .home-section-heading {
    display: grid;
    gap: 6px;
  }

  .section-title-row {
    display: grid;
    gap: 10px;
  }

  .section-title-row > strong {
    width: max-content;
  }

  .us-school-table section {
    align-items: start;
  }

  .form-actions {
    width: 100%;
    justify-content: stretch;
  }

  .form-actions .btn {
    flex: 1 1 180px;
  }
}

/* Entry choice proportion fix: three equal routes, stable rhythm, no awkward split columns. */
.track-first-card {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.36fr);
  gap: clamp(30px, 4vw, 52px);
}

.track-first-card .home-paper-main {
  max-width: 880px;
}

.track-first-card .track-picker {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid #dbe9e5;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.track-first-card .track-card {
  min-height: 188px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 22px 20px 24px;
  border: 0;
  border-right: 1px solid #dbe9e5;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: none;
}

.track-first-card .track-card:last-child {
  border-right: 0;
}

.track-first-card .track-card::before {
  top: auto;
  right: 18px;
  bottom: 14px;
  color: rgba(3, 110, 105, 0.14);
  font-size: 24px;
}

.track-first-card .track-card::after {
  left: 20px;
  right: 20px;
  top: auto;
  bottom: 0;
  width: auto;
  height: 3px;
}

.track-first-card .track-card em,
.track-first-card .track-card strong,
.track-first-card .track-card span,
.track-first-card .track-card small {
  grid-column: auto;
}

.track-first-card .track-card em {
  width: fit-content;
  margin-bottom: 16px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef7f4;
  color: var(--teal-dark);
  font-size: 11px;
  line-height: 1;
}

.track-first-card .track-card strong {
  min-height: 48px;
  font-size: 18px;
  line-height: 1.35;
}

.track-first-card .track-card span {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.65;
}

.track-first-card .track-card small {
  margin-top: auto;
  padding-top: 16px;
  padding-right: 30px;
  color: var(--ink);
}

.track-first-card .track-card:hover,
.track-first-card .track-card.active {
  transform: none;
  background: rgba(238, 247, 244, 0.76);
  box-shadow: inset 0 0 0 1px rgba(5, 139, 130, 0.12);
}

.track-first-card .track-card:nth-child(2):hover,
.track-first-card .track-card:nth-child(2).active {
  background: rgba(238, 243, 252, 0.82);
}

.track-first-card .track-card:nth-child(3):hover,
.track-first-card .track-card:nth-child(3).active {
  background: rgba(255, 248, 232, 0.78);
}

@media (max-width: 1180px) {
  .track-first-card {
    grid-template-columns: 1fr;
  }

  .track-first-card .home-paper-aside {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    display: grid;
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 860px) {
  .track-first-card .track-picker {
    grid-template-columns: 1fr;
  }

  .track-first-card .track-card {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #dbe9e5;
  }

  .track-first-card .track-card:last-child {
    border-bottom: 0;
  }

  .track-first-card .track-card strong {
    min-height: 0;
  }

  .track-first-card .home-paper-aside {
    grid-template-columns: 1fr;
  }
}

/* Question page-turn motion: fast, directional, and disabled for reduced-motion users. */
.question-workspace {
  perspective: 1400px;
}

.question-stage {
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transform-origin: center left;
  will-change: transform, opacity, filter;
}

.question-page-enter-forward {
  animation: questionPageEnterForward 260ms cubic-bezier(0.22, 0.72, 0.22, 1) both;
}

.question-page-enter-backward {
  transform-origin: center right;
  animation: questionPageEnterBackward 260ms cubic-bezier(0.22, 0.72, 0.22, 1) both;
}

.question-page-exit-forward {
  animation: questionPageExitForward 170ms cubic-bezier(0.4, 0, 1, 1) both;
  pointer-events: none;
}

.question-page-exit-backward {
  transform-origin: center right;
  animation: questionPageExitBackward 170ms cubic-bezier(0.4, 0, 1, 1) both;
  pointer-events: none;
}

@keyframes questionPageEnterForward {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: translateX(28px) rotateY(7deg) scale(0.985);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0) rotateY(0) scale(1);
  }
}

@keyframes questionPageEnterBackward {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: translateX(-28px) rotateY(-7deg) scale(0.985);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0) rotateY(0) scale(1);
  }
}

@keyframes questionPageExitForward {
  from {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0) rotateY(0) scale(1);
  }

  to {
    opacity: 0;
    filter: blur(3px);
    transform: translateX(-20px) rotateY(-6deg) scale(0.988);
  }
}

@keyframes questionPageExitBackward {
  from {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0) rotateY(0) scale(1);
  }

  to {
    opacity: 0;
    filter: blur(3px);
    transform: translateX(20px) rotateY(6deg) scale(0.988);
  }
}

@media (prefers-reduced-motion: reduce) {
  .question-stage,
  .question-page-enter-forward,
  .question-page-enter-backward,
  .question-page-exit-forward,
  .question-page-exit-backward {
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Report generation thinking state. */
.report-thinking-workspace {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 250, 249, 0.94)),
    repeating-linear-gradient(90deg, rgba(5, 139, 130, 0.035) 0 1px, transparent 1px 48px);
}

.report-thinking-panel {
  width: min(760px, 100%);
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(28px, 5vw, 54px);
  text-align: center;
  border-block: 1px solid #dbe9e5;
}

.thinking-orbit {
  position: relative;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
}

.thinking-orbit::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 139, 130, 0.18), rgba(5, 139, 130, 0.04));
}

.thinking-orbit span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(5, 139, 130, 0.24);
  border-radius: 50%;
  animation: thinkingOrbit 1.45s ease-in-out infinite;
}

.thinking-orbit span:nth-child(2) {
  inset: 10px;
  border-color: rgba(78, 128, 216, 0.28);
  animation-delay: -0.45s;
}

.thinking-orbit span:nth-child(3) {
  inset: 20px;
  border-color: rgba(241, 183, 75, 0.34);
  animation-delay: -0.9s;
}

.thinking-kicker {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.report-thinking-panel h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.22;
}

.report-thinking-panel p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.thinking-progress {
  width: min(520px, 100%);
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ece9;
}

.thinking-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--amber));
  animation: thinkingProgress 1.15s ease-in-out infinite;
}

.thinking-step-list {
  width: min(640px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 10px;
  border-top: 1px solid #dbe9e5;
}

.thinking-step-list div {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px 12px;
  border-right: 1px solid #dbe9e5;
}

.thinking-step-list div:last-child {
  border-right: 0;
}

.thinking-step-list b {
  color: var(--ink);
  font-size: 13px;
}

.thinking-step-list span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

@keyframes thinkingOrbit {
  0% {
    opacity: 0.38;
    transform: rotate(0deg) scale(0.9);
  }

  50% {
    opacity: 1;
    transform: rotate(120deg) scale(1.04);
  }

  100% {
    opacity: 0.38;
    transform: rotate(240deg) scale(0.9);
  }
}

@keyframes thinkingProgress {
  0% {
    transform: translateX(-105%);
  }

  55% {
    transform: translateX(76%);
  }

  100% {
    transform: translateX(245%);
  }
}

@media (max-width: 860px) {
  .thinking-step-list {
    grid-template-columns: 1fr;
  }

  .thinking-step-list div {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #dbe9e5;
  }

  .thinking-step-list div:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .thinking-orbit span,
  .thinking-progress span {
    animation: none !important;
  }
}

@media (max-width: 520px) {
  .brand strong {
    font-size: 16px;
  }

  .workspace {
    padding: 16px;
  }

  .admin-workspace {
    padding: 16px;
  }

  .admin-stat-grid {
    grid-template-columns: 1fr;
  }

  .admin-filter-bar {
    grid-template-columns: 1fr;
  }

  .admin-filter-search,
  .admin-filter-reset {
    grid-column: auto;
  }

  .admin-password-panel,
  .admin-password-form {
    display: grid;
    align-items: stretch;
  }

  .admin-password-form input {
    width: 100%;
  }

  .module-rail,
  .scale-grid {
    grid-template-columns: 1fr;
  }

  .question-copy h2 {
    font-size: 22px;
  }

  .big-result strong {
    font-size: 34px;
  }

  .strategy-card {
    align-items: flex-start;
  }

  .strategy-card > strong {
    width: 58px;
    height: 58px;
    font-size: 22px;
  }

  .form-section,
  .match-card {
    padding: 16px;
  }

  .component-row {
    grid-template-columns: 88px 1fr 30px;
  }

  .admin-resource-list article,
  .admin-resource-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Less-card product theme: use lines, rhythm, and larger surfaces instead of stacked boxes. */
.home-dashboard {
  gap: 34px;
}

.home-primary-card {
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.92) 0 62%, rgba(232, 241, 235, 0.78) 62% 100%),
    repeating-linear-gradient(90deg, rgba(5, 139, 130, 0.035) 0 1px, transparent 1px 52px);
  box-shadow: none;
}

.home-primary-card::before {
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
}

.home-primary-card::after {
  display: none;
}

.home-paper-aside {
  gap: 22px;
  padding-left: clamp(18px, 3vw, 34px);
  border-left: 1px solid rgba(5, 139, 130, 0.16);
}

.track-first-card .track-picker,
.track-picker {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid #dbe9e5;
}

.track-first-card .track-card,
.track-card {
  min-height: 0;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  column-gap: 20px;
  align-items: start;
  padding: 22px 72px 22px 0;
  border: 0;
  border-bottom: 1px solid #dbe9e5;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.track-card::before {
  right: 0;
  top: 22px;
  color: rgba(3, 110, 105, 0.18);
  font-size: 28px;
}

.track-card::after {
  left: 0;
  right: auto;
  top: 22px;
  bottom: auto;
  width: 3px;
  height: 28px;
}

.track-card em {
  grid-column: 1;
  grid-row: 1 / span 3;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--teal-dark);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.track-card strong,
.track-card span,
.track-card small {
  grid-column: 2;
}

.track-card:hover,
.track-card.active {
  transform: translateX(4px);
  border-color: rgba(5, 139, 130, 0.34);
  background: transparent;
  box-shadow: none;
}

.track-card.active {
  box-shadow: none;
}

.track-status,
.home-status-strip,
.home-advisor-note {
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid rgba(207, 229, 223, 0.92);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-advisor-note {
  color: #72551f;
}

.home-insight-grid {
  border-block: 1px solid #dbe9e5;
  background: transparent;
}

.logic-chip,
.flow-step,
.home-path-grid article {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.logic-chip {
  min-height: 0;
  padding: 6px 18px 6px 18px;
  border-left: 1px solid #dbe9e5;
}

.logic-chip::before {
  left: -1px;
  top: 6px;
  bottom: 6px;
  width: 3px;
}

.home-path-grid article {
  min-height: 0;
  padding: 18px 0 0;
  border-top: 2px solid var(--teal);
}

.flow-step {
  min-height: 0;
  padding: 42px 18px 4px 0;
}

.flow-step strong {
  left: 0;
  box-shadow: 0 0 0 1px #cfe4df;
}

.question-stage {
  max-width: 960px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.question-workspace {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 250, 249, 0.9)),
    linear-gradient(90deg, transparent 0 72px, rgba(5, 139, 130, 0.045) 72px 73px, transparent 73px 100%);
}

.scale-grid {
  gap: 0;
  margin-top: 36px;
  border-block: 1px solid #cfe0dc;
}

.scale-button {
  min-height: 112px;
  border: 0;
  border-right: 1px solid #dbe9e5;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.scale-button:last-child {
  border-right: 0;
}

.scale-button:hover {
  transform: none;
  background: rgba(238, 247, 244, 0.58);
  box-shadow: none;
}

.scale-button.selected {
  border-color: transparent;
  background: linear-gradient(180deg, rgba(238, 250, 247, 0.92), rgba(255, 255, 255, 0.1));
  box-shadow: inset 0 -4px 0 var(--teal);
}

.background-form {
  gap: 0;
}

.form-section,
.curriculum-subject-section,
.us-profile-section {
  padding: 30px 0;
  border: 0;
  border-top: 1px solid #dbe9e5;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.form-section:first-of-type {
  border-top: 0;
}

.background-track-summary,
.us-evidence-guide {
  border: 0;
  border-block: 1px solid #dbe9e5;
  border-radius: 0;
  background: transparent;
}

.background-track-summary {
  padding: 12px 0;
}

.us-evidence-guide span {
  background: transparent;
}

.checkbox-option {
  border-color: #dbe9e5;
  border-radius: 999px;
  background: #fff;
}

.form-field input,
.form-field textarea,
.form-field select,
.subject-field select {
  border-color: #ccdcd8;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.84);
}

.strategy-card {
  border: 0;
  border-top: 2px solid var(--teal);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 24px 0;
}

.report-card,
.detail-card,
.match-card,
.week-plan-card,
.priority-action-card,
.growth-guidance-card,
.us-rec-card,
.us-recommendation-card {
  border: 0;
  border-top: 1px solid #dbe9e5;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 22px 0;
}

.weight-grid span,
.tag-cloud span,
.reality-badges span {
  border-radius: 999px;
}

.us-school-table section {
  border: 0;
  border-bottom: 1px solid #dbe9e5;
  border-radius: 0;
  background: transparent;
}

@media (max-width: 860px) {
  .home-primary-card {
    grid-template-columns: 1fr;
  }

  .home-paper-aside {
    padding-left: 0;
    border-left: 0;
  }

  .track-first-card .track-card,
  .track-card {
    grid-template-columns: 1fr;
    padding: 20px 44px 20px 0;
  }

  .track-card em,
  .track-card strong,
  .track-card span,
  .track-card small {
    grid-column: 1;
  }

  .scale-grid {
    border-block: 0;
  }

  .scale-button {
    min-height: 74px;
    flex-direction: row;
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid #dbe9e5;
    padding-inline: 0;
  }

  .scale-button:last-child {
    border-bottom: 0;
  }
}

/* Route-first homepage: keep the first screen focused on two clear choices. */
.standalone-layout {
  display: block;
  min-height: calc(100vh - 72px);
}

.standalone-layout .workspace {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 68px) 0 96px;
}

.route-home {
  display: grid;
  gap: clamp(28px, 4vw, 46px);
}

.route-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(26px, 4vw, 54px);
  align-items: end;
  padding-bottom: clamp(24px, 4vw, 42px);
  border-bottom: 1px solid rgba(207, 229, 223, 0.95);
}

.route-hero-copy h1,
.test-intro-hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.05;
  font-weight: 900;
}

.route-hero-copy p,
.test-intro-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--text);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.8;
}

.route-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.route-hero-meta strong {
  display: inline-grid;
  min-width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: #173f36;
  color: #fff;
  font-size: 14px;
}

.route-intro-link {
  display: grid;
  gap: 8px;
  align-content: end;
  min-height: 156px;
  padding: 0 0 18px 22px;
  border: 0;
  border-left: 3px solid var(--teal);
  background: transparent;
  text-align: left;
}

.route-intro-link span {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.route-intro-link b {
  max-width: 280px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.45;
}

.route-intro-link:hover b {
  color: var(--teal-dark);
}

.route-home .dual-entry-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
  border: 0;
  background: transparent;
}

.route-home .track-card {
  position: relative;
  min-height: clamp(300px, 34vw, 420px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 4vw, 44px);
  overflow: hidden;
  border: 1px solid rgba(207, 229, 223, 0.98);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.94) 62%),
    linear-gradient(135deg, rgba(238, 247, 244, 0.92), rgba(255, 255, 255, 0.92));
  box-shadow: 0 22px 54px rgba(35, 86, 79, 0.08);
  text-align: left;
}

.route-home .track-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.94) 62%),
    linear-gradient(135deg, rgba(238, 243, 252, 0.95), rgba(255, 252, 244, 0.94));
}

.route-home .track-card::before {
  content: "";
  position: absolute;
  inset: 22px 22px auto auto;
  width: clamp(88px, 11vw, 140px);
  height: clamp(88px, 11vw, 140px);
  border: 1px solid rgba(5, 139, 130, 0.18);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49%, rgba(5, 139, 130, 0.14) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(5, 139, 130, 0.14) 50%, transparent 51%);
  opacity: 0.72;
}

.route-home .track-card:nth-child(2)::before {
  border-color: rgba(78, 128, 216, 0.22);
  background:
    linear-gradient(90deg, transparent 49%, rgba(78, 128, 216, 0.16) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(78, 128, 216, 0.16) 50%, transparent 51%);
}

.route-home .track-card::after {
  content: "开始";
  position: absolute;
  right: clamp(26px, 4vw, 44px);
  bottom: clamp(26px, 4vw, 44px);
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.route-home .track-card:nth-child(2)::after {
  background: var(--blue);
}

.route-home .track-card em,
.route-home .track-card strong,
.route-home .track-card span,
.route-home .track-card small {
  position: relative;
  z-index: 1;
  display: block;
  max-width: calc(100% - 86px);
}

.route-home .track-card em {
  width: fit-content;
  margin-bottom: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--teal-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.route-home .track-card:nth-child(2) em {
  color: #335eab;
}

.route-home .track-card strong {
  color: var(--ink);
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.15;
}

.route-home .track-card span {
  margin-top: 14px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
}

.route-home .track-card small {
  margin-top: 22px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.6;
}

.route-home .track-card:hover,
.route-home .track-card.active {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(35, 86, 79, 0.13);
}

.test-intro-page {
  display: grid;
  gap: clamp(28px, 4vw, 42px);
}

.test-intro-hero {
  padding-bottom: clamp(28px, 4vw, 46px);
  border-bottom: 1px solid rgba(207, 229, 223, 0.95);
}

.test-intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-block: 1px solid rgba(207, 229, 223, 0.95);
}

.test-intro-band article {
  min-height: 190px;
  padding: 26px 24px;
  border-right: 1px solid rgba(207, 229, 223, 0.95);
}

.test-intro-band article:last-child {
  border-right: 0;
}

.test-intro-band b,
.test-intro-band strong,
.test-intro-band span {
  display: block;
}

.test-intro-band b {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.test-intro-band strong {
  margin-top: 22px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
}

.test-intro-band span {
  margin-top: 10px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.75;
}

.test-intro-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 34px);
}

.test-intro-columns section {
  padding: 28px 0 0;
  border-top: 3px solid var(--teal);
}

.test-intro-columns section:nth-child(2) {
  border-top-color: var(--blue);
}

.test-intro-columns h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
}

.test-intro-columns p {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
}

.test-intro-note {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0;
  border-block: 1px solid rgba(207, 229, 223, 0.95);
}

.test-intro-note strong {
  color: var(--ink);
  font-size: 18px;
}

.test-intro-note span {
  color: var(--text);
  font-size: 14px;
  line-height: 1.75;
}

@media (max-width: 860px) {
  .standalone-layout .workspace {
    width: min(100% - 32px, 1180px);
    padding-top: 28px;
  }

  .route-hero,
  .route-home .dual-entry-picker,
  .test-intro-band,
  .test-intro-columns,
  .test-intro-note {
    grid-template-columns: 1fr;
  }

  .route-intro-link {
    min-height: 0;
    padding: 18px 0 0;
    border-left: 0;
    border-top: 3px solid var(--teal);
  }

  .route-home .track-card {
    min-height: 260px;
  }

  .route-home .track-card em,
  .route-home .track-card strong,
  .route-home .track-card span,
  .route-home .track-card small {
    max-width: 100%;
  }

  .route-home .track-card::after {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 22px;
  }

  .test-intro-band article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(207, 229, 223, 0.95);
  }

  .test-intro-band article:last-child {
    border-bottom: 0;
  }
}

/* Imagegen v2 homepage direction: centered welcome, two illustrated route cards, tiny footer status. */
.brand-sun-mark {
  position: relative;
  border: 0;
  border-radius: 50%;
  background: #f5c62e;
  box-shadow: none;
}

.brand-sun-mark::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, #f5c62e 0 8deg, transparent 8deg 22deg);
  z-index: -1;
}

.standalone-layout {
  background:
    radial-gradient(circle at 50% 12%, rgba(5, 139, 130, 0.05), transparent 30%),
    linear-gradient(180deg, #ffffff 0, #fbfdfc 52%, #f7fbfa 100%);
}

.standalone-layout .workspace.route-home {
  width: min(1250px, calc(100% - 72px));
  padding-top: clamp(42px, 7vh, 86px);
}

.route-home {
  gap: clamp(26px, 4vw, 44px);
}

.route-welcome {
  display: grid;
  justify-items: center;
  text-align: center;
}

.route-welcome .eyebrow {
  margin-bottom: 14px;
  color: var(--teal-dark);
}

.route-welcome h1 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 800;
}

.route-welcome p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.75;
}

.route-home .dual-entry-picker {
  gap: clamp(28px, 4vw, 46px);
}

.route-home .track-card {
  min-height: clamp(360px, 34vw, 430px);
  justify-content: center;
  align-items: flex-start;
  padding: clamp(42px, 5vw, 58px);
  border-color: rgba(197, 222, 217, 0.95);
  background:
    linear-gradient(90deg, rgba(5, 139, 130, 0.04), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 253, 252, 0.94));
  box-shadow: 0 18px 46px rgba(34, 84, 78, 0.09);
}

.route-home .track-card:nth-child(2) {
  border-color: rgba(226, 199, 151, 0.92);
  background:
    linear-gradient(90deg, rgba(213, 151, 22, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 252, 246, 0.95));
}

.route-home .track-card::before,
.route-home .track-card::after {
  content: none;
}

.route-card-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  background: var(--teal);
}

.route-home .track-card:nth-child(2) .route-card-accent {
  background: #d99a19;
}

.route-art {
  position: absolute;
  right: clamp(26px, 4vw, 52px);
  bottom: clamp(22px, 3vw, 38px);
  width: min(46%, 350px);
  height: 72%;
  opacity: 0.22;
  pointer-events: none;
}

.route-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;
}

.route-art-commonwealth::before {
  background-image: url("./assets/route-commonwealth.png");
}

.route-art-us_undergrad::before {
  background-image: url("./assets/route-northamerica.png");
}

.route-home .track-card em,
.route-home .track-card strong,
.route-home .track-card span,
.route-home .track-card small {
  max-width: min(430px, 68%);
}

.route-home .track-card .route-card-accent {
  position: absolute;
  z-index: 0;
  max-width: none;
}

.route-home .track-card .route-art {
  position: absolute;
  z-index: 0;
  display: block;
  max-width: none;
}

.route-home .track-card em {
  margin-bottom: 18px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--teal-dark);
  font-size: 13px;
  letter-spacing: 0;
}

.route-home .track-card:nth-child(2) em {
  color: #9b6d12;
}

.route-home .track-card strong {
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(34px, 4.2vw, 48px);
  font-weight: 800;
}

.route-home .track-card span:not(.route-card-accent):not(.route-art):not(.route-start):not(.small-icon) {
  margin-top: 18px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.85;
}

.route-home .track-card small {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.route-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 190px;
  min-height: 58px;
  margin-top: 34px;
  padding: 0 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), #057d77);
  color: #fff;
  box-shadow: 0 14px 26px rgba(5, 139, 130, 0.23);
  font-size: 17px;
  font-weight: 900;
}

.route-home .track-card:nth-child(2) .route-start {
  background: linear-gradient(135deg, #d99a19, #c5820d);
  box-shadow: 0 14px 26px rgba(194, 126, 18, 0.24);
}

.route-start .small-icon {
  width: 18px;
  height: 18px;
}

.route-home .track-card:hover,
.route-home .track-card.active {
  transform: translateY(-5px);
}

.route-bottom-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  margin-top: 8px;
  color: var(--muted);
}

.route-mini-status,
.route-guide-link {
  display: inline-grid;
  grid-template-columns: 50px auto;
  column-gap: 14px;
  row-gap: 2px;
  align-items: center;
  border: 0;
  background: transparent;
  text-align: left;
}

.route-guide-link {
  cursor: pointer;
}

.route-mini-icon {
  grid-row: 1 / span 2;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf7f3;
  color: var(--teal-dark);
}

.route-mini-icon.amber {
  background: #fff3d9;
  color: #b47910;
}

.route-mini-status span:not(.route-mini-icon),
.route-guide-link span:not(.route-mini-icon) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.route-mini-status strong,
.route-guide-link strong {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--teal-dark);
  font-size: 15px;
  line-height: 1.3;
}

.route-bottom-strip::before {
  content: "";
  width: 1px;
  height: 42px;
  order: 2;
  background: #dbe9e5;
}

.route-guide-link {
  order: 3;
}

@media (max-width: 860px) {
  .standalone-layout .workspace.route-home {
    width: min(100% - 32px, 1250px);
    padding-top: 34px;
  }

  .route-home .track-card {
    min-height: 330px;
    padding: 34px 28px;
  }

  .route-art {
    width: 58%;
    opacity: 0.16;
  }

  .route-home .track-card em,
  .route-home .track-card strong,
  .route-home .track-card span,
  .route-home .track-card small {
    max-width: 100%;
  }

  .route-start {
    min-width: 168px;
  }

  .route-bottom-strip {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .route-bottom-strip::before {
    display: none;
  }
}

/* 1:1 replica of the selected imagegen route-entry screen. */
.topbar {
  height: 94px;
  padding: 0 28px 0 42px;
  border-bottom: 1px solid rgba(229, 234, 236, 0.95);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(31, 45, 48, 0.045);
}

.brand {
  min-width: 330px;
  gap: 18px;
}

.brand-sun-mark {
  width: 28px;
  height: 28px;
  overflow: visible;
}

.brand-sun-mark::before {
  inset: -9px;
}

.brand strong {
  font-size: 26px;
  letter-spacing: 0;
  font-weight: 900;
}

.nav {
  flex: 1;
  justify-content: center;
  gap: 42px;
}

.nav button {
  position: relative;
  min-height: 94px;
  padding: 0 3px;
  border-radius: 0;
  background: transparent;
  color: #111827;
  font-size: 21px;
  font-weight: 850;
}

.nav button:hover,
.nav button.active {
  background: transparent;
  color: var(--teal-dark);
}

.nav button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  border-radius: 999px 999px 0 0;
  background: var(--teal);
}

.more-menu {
  height: 94px;
  display: inline-flex;
  align-items: center;
}

.top-actions {
  min-width: 290px;
  justify-content: flex-end;
  gap: 18px;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #1f2937;
}

.icon-button .small-icon svg {
  width: 27px;
  height: 27px;
  stroke-width: 1.9;
}

.preview-user-chip {
  height: 58px;
  padding: 7px 14px 7px 8px;
  gap: 12px;
  border: 1px solid #e7ecec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(31, 45, 48, 0.035);
  color: #1f2937;
  font-size: 17px;
  font-weight: 750;
}

.preview-user-chip .small-icon {
  width: 18px;
  height: 18px;
  color: #58616b;
}

.preview-user-chip .small-icon svg {
  width: 18px;
  height: 18px;
}

.preview-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff0d7;
  font-size: 27px;
  line-height: 1;
}

.standalone-layout {
  min-height: calc(100vh - 94px);
  background:
    radial-gradient(circle at 50% 24%, rgba(5, 139, 130, 0.035), transparent 28%),
    linear-gradient(180deg, #ffffff 0, #ffffff 54%, #fbfdfc 100%);
}

.standalone-layout .workspace.route-home {
  width: min(1405px, calc(100% - 120px));
  padding: 74px 0 60px;
}

.route-home {
  gap: 0;
}

.route-welcome {
  margin-bottom: 54px;
}

.route-welcome .eyebrow {
  display: none;
}

.route-welcome h1 {
  color: #151d2b;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 44px;
  line-height: 1.15;
  font-weight: 800;
}

.route-welcome h1 span {
  color: #e3a31f;
  font-family: inherit;
  font-size: 38px;
}

.route-welcome p {
  margin-top: 20px;
  color: #6b7280;
  font-size: 21px;
  line-height: 1.5;
}

.route-home .dual-entry-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.route-home .track-card {
  min-height: 510px;
  justify-content: flex-start;
  padding: 116px 58px 58px 64px;
  border-radius: 8px;
  border: 1px solid #d8e5e3;
  background:
    radial-gradient(circle at 84% 15%, rgba(5, 139, 130, 0.09), transparent 12%),
    linear-gradient(90deg, rgba(5, 139, 130, 0.035), transparent 28%),
    #ffffff;
  box-shadow: 0 18px 34px rgba(22, 51, 48, 0.1);
}

.route-home .track-card:nth-child(2) {
  border-color: #ecd9b6;
  background:
    radial-gradient(circle at 84% 15%, rgba(217, 154, 25, 0.09), transparent 12%),
    linear-gradient(90deg, rgba(217, 154, 25, 0.05), transparent 28%),
    #fffdf8;
}

.route-card-accent {
  width: 8px;
  border-radius: 8px 0 0 8px;
}

.route-home .track-card strong {
  max-width: 390px;
  color: var(--teal-dark);
  font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
  font-size: 44px;
  line-height: 1.2;
  font-weight: 850;
}

.route-home .track-card:nth-child(2) strong {
  color: #2d2418;
}

.route-subtitle {
  display: block;
  position: relative;
  z-index: 1;
  margin-top: 24px;
  color: #2d2418;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 900;
}

.route-home .track-card span:not(.route-card-accent):not(.route-art):not(.route-start):not(.small-icon):not(.route-mini-icon) {
  max-width: 390px;
  margin-top: 24px;
  color: #5d6978;
  font-size: 19px;
  line-height: 1.72;
  font-weight: 600;
}

.route-home .track-card .route-art {
  right: 8px;
  bottom: 0;
  width: 53%;
  height: 79%;
  opacity: 1;
}

.route-home .track-card:nth-child(2) .route-art {
  width: 55%;
  opacity: 1;
}

.route-home .track-card .route-start {
  position: relative;
  z-index: 2;
  max-width: none;
  min-width: 240px;
  width: 240px;
  min-height: 70px;
  margin-top: 42px;
  border-radius: 10px;
  font-size: 22px;
  letter-spacing: 0;
  box-shadow: 0 12px 22px rgba(5, 139, 130, 0.24);
}

.route-home .track-card:nth-child(2) .route-start {
  box-shadow: 0 12px 22px rgba(194, 126, 18, 0.23);
}

.route-start .small-icon {
  width: 23px;
  height: 23px;
  margin-left: 8px;
}

.route-start .small-icon svg {
  width: 23px;
  height: 23px;
  stroke-width: 2.4;
}

.route-bottom-strip {
  margin-top: 56px;
  gap: 38px;
}

.route-mini-status,
.route-guide-link {
  grid-template-columns: 54px auto;
  column-gap: 14px;
}

.route-mini-icon {
  width: 54px;
  height: 54px;
}

.route-mini-icon .small-icon svg {
  width: 25px;
  height: 25px;
}

.route-mini-status span:not(.route-mini-icon),
.route-guide-link span:not(.route-mini-icon) {
  color: #6b7280;
  font-size: 15px;
  font-weight: 650;
}

.route-mini-status strong,
.route-guide-link strong {
  color: var(--teal-dark);
  font-size: 17px;
  font-weight: 850;
}

.route-bottom-strip::before {
  height: 46px;
  margin: 0 6px;
  background: #d8dedf;
}

@media (max-width: 980px) {
  .topbar {
    height: auto;
    padding: 16px;
  }

  .brand,
  .top-actions {
    min-width: 0;
  }

  .nav {
    gap: 20px;
  }

  .nav button,
  .more-menu {
    min-height: 48px;
    height: 48px;
    font-size: 16px;
  }

  .standalone-layout .workspace.route-home {
    width: min(100% - 32px, 1405px);
    padding-top: 42px;
  }

  .route-home .dual-entry-picker {
    grid-template-columns: 1fr;
  }

  .route-home .track-card {
    min-height: 420px;
    padding: 70px 34px 40px 38px;
  }

  .route-home .track-card .route-art {
    opacity: 0.18;
  }

  .route-bottom-strip {
    align-items: center;
  }
}

/* Track-specific assessment UI: Commonwealth and US share the engine but use different planning language. */
.layout.test-layout {
  grid-template-columns: 280px minmax(0, 1fr);
}

.test-layout .question-workspace {
  min-height: calc(100vh - 94px);
  padding: clamp(28px, 4vw, 52px);
}

.question-workspace {
  background:
    radial-gradient(circle at 84% 12%, rgba(5, 139, 130, 0.055), transparent 24%),
    linear-gradient(180deg, #ffffff 0, #f8fbfa 100%);
}

.question-workspace.question-track-us {
  background:
    radial-gradient(circle at 86% 14%, rgba(217, 154, 25, 0.085), transparent 25%),
    linear-gradient(180deg, #ffffff 0, #fffdf8 100%);
}

.question-stage {
  max-width: 1180px;
  min-height: 680px;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(216, 229, 226, 0.96);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
    repeating-linear-gradient(90deg, rgba(5, 139, 130, 0.025) 0 1px, transparent 1px 52px);
  box-shadow: 0 24px 54px rgba(32, 71, 66, 0.09);
}

.question-track-us .question-stage {
  border-color: rgba(238, 218, 184, 0.96);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 253, 248, 0.92)),
    repeating-linear-gradient(90deg, rgba(217, 154, 25, 0.026) 0 1px, transparent 1px 52px);
}

.question-screen-header {
  align-items: flex-start;
  padding-bottom: 22px;
}

.question-module-copy {
  max-width: 760px;
}

.question-module-pill {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #eaf7f3;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.question-track-us .question-module-pill {
  background: #fff2d7;
  color: #9b6d12;
}

.question-screen-header h1 {
  font-size: clamp(25px, 2.5vw, 34px);
  font-weight: 900;
}

.question-screen-header p {
  max-width: 760px;
  font-size: 15px;
}

.question-count {
  padding: 11px 14px;
  border: 1px solid #dbe9e5;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
}

.question-count strong {
  color: var(--teal-dark);
}

.question-track-us .question-count {
  border-color: #efdcb9;
}

.question-track-us .question-count strong {
  color: #b47910;
}

.question-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 20px;
}

.question-progress-row strong {
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 900;
}

.question-track-us .question-progress-row strong {
  color: #b47910;
}

.question-progress {
  height: 9px;
  margin-top: 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eeee;
}

.question-progress span {
  background: linear-gradient(90deg, var(--teal), #24b6a6);
}

.question-track-us .question-progress span {
  background: linear-gradient(90deg, #d99a19, #f0bf4f);
}

.question-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
  gap: clamp(24px, 3vw, 36px);
  align-items: stretch;
  margin-top: 34px;
}

.question-main-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.question-copy {
  margin-top: 0;
}

.question-copy > span {
  display: inline-flex;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.question-copy h2 {
  max-width: 780px;
  margin-top: 16px;
  font-size: clamp(26px, 3.1vw, 42px);
  line-height: 1.32;
  font-weight: 900;
}

.question-copy p {
  font-size: 16px;
  line-height: 1.7;
}

.scale-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 32px;
  border: 0;
}

.scale-button {
  min-height: 76px;
  display: grid;
  grid-template-columns: 54px minmax(120px, 0.5fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  justify-content: stretch;
  padding: 14px 18px;
  border: 1px solid #dbe9e5;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  text-align: left;
  box-shadow: 0 8px 20px rgba(24, 55, 50, 0.035);
}

.scale-button:hover {
  transform: translateY(-1px);
  border-color: rgba(5, 139, 130, 0.42);
  background: #f7fcfb;
  box-shadow: 0 14px 28px rgba(24, 55, 50, 0.055);
}

.question-track-us .scale-button:hover {
  border-color: rgba(217, 154, 25, 0.5);
  background: #fffaf0;
}

.scale-button.selected {
  border-color: var(--teal);
  background: linear-gradient(90deg, #eaf7f3, #ffffff);
  box-shadow: inset 4px 0 0 var(--teal), 0 14px 30px rgba(5, 139, 130, 0.08);
}

.question-track-us .scale-button.selected {
  border-color: #d99a19;
  background: linear-gradient(90deg, #fff2d7, #ffffff);
  box-shadow: inset 4px 0 0 #d99a19, 0 14px 30px rgba(217, 154, 25, 0.08);
}

.scale-button b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef7f4;
  color: var(--teal-dark);
  font-size: 20px;
  font-weight: 900;
}

.question-track-us .scale-button b {
  background: #fff2d7;
  color: #9b6d12;
}

.scale-button span {
  font-size: 16px;
  font-weight: 900;
}

.scale-button small {
  color: var(--muted);
  font-size: 13px;
}

.question-tip {
  margin-top: 22px;
  padding: 14px 0 0;
  border-top: 1px solid #dbe9e5;
  font-size: 14px;
}

.question-track-us .question-tip {
  border-top-color: #efdcb9;
}

.question-actions {
  grid-template-columns: minmax(130px, 0.35fr) auto minmax(180px, 0.65fr);
  gap: 14px;
  padding-top: 28px;
}

.question-actions .btn {
  min-height: 56px;
  border-radius: 8px;
}

.question-actions .btn.primary {
  font-size: 16px;
}

.question-track-us .question-actions .btn.primary {
  border-color: #d99a19;
  background: linear-gradient(135deg, #d99a19, #c5820d);
  box-shadow: 0 16px 28px rgba(194, 126, 18, 0.2);
}

.question-track-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
  border: 1px solid #dbe9e5;
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 12%, rgba(5, 139, 130, 0.12), transparent 24%),
    rgba(248, 252, 251, 0.86);
}

.question-track-us .question-track-panel {
  border-color: #efdcb9;
  background:
    radial-gradient(circle at 88% 12%, rgba(217, 154, 25, 0.16), transparent 24%),
    rgba(255, 250, 240, 0.88);
}

.question-track-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
}

.question-track-panel p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.75;
}

.question-track-chips {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.question-track-chips span {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.question-track-us .question-track-chips span {
  color: #9b6d12;
}

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

  .test-layout .left-panel {
    display: none;
  }
}

@media (max-width: 860px) {
  .test-layout .question-workspace {
    padding: 18px;
  }

  .question-stage {
    min-height: 0;
    padding: 22px;
  }

  .question-screen-header {
    gap: 14px;
  }

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

  .question-track-panel {
    order: -1;
  }

  .scale-button {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .scale-button small {
    grid-column: 2;
  }

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

/* Logic audit and recommendation guardrails. */
.logic-audit-card {
  border-top-color: rgba(5, 139, 130, 0.42);
}

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

.logic-layer-grid span {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid #dbe9e5;
  border-radius: 8px;
  background: rgba(248, 252, 251, 0.86);
}

.logic-layer-grid b {
  color: var(--ink);
  font-size: 15px;
}

.logic-layer-grid small {
  color: var(--text);
  font-size: 13px;
  line-height: 1.65;
}

.review-reason-list {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.review-reason-list li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.review-reason-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

.major-opportunity-panel,
.china-applicant-note,
.china-applicant-audit,
.market-calibration-panel,
.china-calibration-panel,
.regional-school-fit-panel,
.academic-resource-panel {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(5, 139, 130, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 252, 250, 0.9)),
    radial-gradient(circle at 94% 10%, rgba(5, 139, 130, 0.1), transparent 24%);
}

.us-rec-card .major-opportunity-panel b,
.china-applicant-note b,
.china-applicant-audit b,
.market-calibration-panel b,
.china-calibration-panel b,
.regional-school-fit-panel b,
.academic-resource-panel b {
  color: var(--ink);
  font-size: 14px;
}

.major-opportunity-panel span,
.china-applicant-note span,
.china-applicant-audit span,
.market-calibration-panel span,
.china-calibration-panel span,
.regional-school-fit-panel span,
.academic-resource-panel span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.major-opportunity-panel small,
.china-applicant-note small,
.china-applicant-audit small,
.market-calibration-panel small,
.china-calibration-panel small,
.regional-school-fit-panel small,
.academic-resource-panel small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.major-opportunity-panel div,
.china-calibration-panel div,
.academic-resource-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.major-opportunity-panel em,
.china-calibration-panel em,
.academic-resource-panel em,
.academic-resource-panel a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(5, 139, 130, 0.08);
  color: var(--teal-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-decoration: none;
}

.china-applicant-note {
  border-color: rgba(217, 154, 25, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 250, 240, 0.88)),
    radial-gradient(circle at 92% 12%, rgba(217, 154, 25, 0.16), transparent 24%);
}

.china-applicant-note span {
  color: #9b6d12;
}

.market-calibration-panel {
  border-color: rgba(5, 139, 130, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 250, 247, 0.92)),
    radial-gradient(circle at 92% 12%, rgba(5, 139, 130, 0.12), transparent 24%);
}

.china-calibration-panel {
  border-color: rgba(217, 154, 25, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 240, 0.92)),
    radial-gradient(circle at 92% 12%, rgba(217, 154, 25, 0.16), transparent 24%);
}

.china-calibration-panel span,
.china-calibration-panel em {
  color: #9b6d12;
}

.china-calibration-panel em {
  background: rgba(217, 154, 25, 0.1);
}

.regional-school-fit-panel {
  border-color: rgba(117, 98, 200, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 247, 255, 0.92)),
    radial-gradient(circle at 92% 12%, rgba(117, 98, 200, 0.13), transparent 24%);
}

.regional-school-fit-panel span {
  color: #5d4bb0;
}

.academic-resource-panel {
  border-color: rgba(78, 128, 216, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.92)),
    radial-gradient(circle at 92% 12%, rgba(78, 128, 216, 0.12), transparent 24%);
}

.academic-resource-panel span,
.academic-resource-panel a {
  color: #315fba;
}

.academic-resource-panel a,
.academic-resource-panel em {
  background: rgba(78, 128, 216, 0.09);
}

.standardized-note {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(78, 128, 216, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.9)),
    radial-gradient(circle at 92% 12%, rgba(78, 128, 216, 0.12), transparent 24%);
}

.standardized-note b {
  color: var(--ink);
  font-size: 14px;
}

.standardized-note span {
  color: #315fba;
  font-size: 12px;
  font-weight: 900;
}

.standardized-note small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.report-standardized-note {
  margin-top: 16px;
}

.testing-source-grid {
  margin-top: 10px;
}

.china-calibration-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.china-calibration-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(5, 139, 130, 0.08);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.china-applicant-audit {
  margin-top: 16px;
}

/* Login visual restoration: no external image dependency. */
.login-page {
  isolation: isolate;
  background:
    radial-gradient(circle at 12% 18%, rgba(245, 184, 38, 0.18), transparent 16%),
    radial-gradient(circle at 82% 76%, rgba(5, 139, 130, 0.13), transparent 22%),
    linear-gradient(135deg, #fbfdfb 0%, #f5faf8 48%, #fff9ee 100%);
}

.login-page::before,
.login-page::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.login-page::before {
  left: clamp(24px, 6vw, 92px);
  top: clamp(28px, 7vh, 82px);
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(245, 184, 38, 0.7) 0deg 8deg, transparent 8deg 18deg),
    radial-gradient(circle, #f5bd2e 0 31%, transparent 32%);
  opacity: 0.28;
}

.login-page::after {
  right: clamp(18px, 7vw, 110px);
  bottom: clamp(24px, 7vh, 86px);
  width: clamp(230px, 30vw, 420px);
  height: clamp(160px, 22vw, 300px);
  border-radius: 46% 54% 42% 58%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(5, 139, 130, 0.08)),
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(5, 139, 130, 0.08) 14px 15px);
  opacity: 0.72;
}

.login-brand::after {
  content: "测评 · 背景 · 报告 · 规划";
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 18px;
  padding: 0 14px;
  border: 1px solid rgba(5, 139, 130, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.login-mark {
  border-radius: 50%;
  border-color: rgba(245, 184, 38, 0.35);
  background:
    radial-gradient(circle, #f6c23a 0 44%, transparent 45%),
    repeating-conic-gradient(from 0deg, rgba(245, 184, 38, 0.95) 0deg 9deg, transparent 9deg 20deg);
  color: #fff;
  box-shadow: 0 18px 34px rgba(245, 184, 38, 0.22);
}

.login-panel {
  border-color: rgba(207, 228, 223, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

/* Background completion warning states. */
.background-form .field-missing input,
.background-form .field-missing textarea,
.background-form .field-missing select {
  border-color: #ef766c;
  background: #fff8f7;
  box-shadow: 0 0 0 3px rgba(239, 118, 108, 0.08);
}

.background-form .field-missing > span {
  color: #8b352f;
}

.background-form .section-missing {
  border-top-color: #ef766c;
  background: linear-gradient(180deg, rgba(255, 245, 244, 0.7), transparent 82%);
}

.background-form .section-missing h3 {
  color: #8b352f;
}

.background-form .section-missing .form-help b {
  display: inline-flex;
  margin-left: 8px;
  color: #9b322b;
  font-weight: 900;
}

/* Minimal home fix after reverting the heavier polish pass. */
.route-home .track-card {
  overflow: hidden;
}

.route-bottom-strip {
  flex-wrap: wrap;
}

.route-mini-status,
.route-guide-link {
  min-width: 220px;
}

@media (max-width: 980px) {
  .route-home .dual-entry-picker {
    grid-template-columns: 1fr;
  }

  .route-home .track-card {
    min-height: 390px;
  }

  .route-home .track-card .route-art,
  .route-home .track-card:nth-child(2) .route-art {
    opacity: 0.26;
  }
}

@media (max-width: 560px) {
  .route-home .track-card em,
  .route-home .track-card strong,
  .route-home .track-card span,
  .route-home .track-card small {
    max-width: 100%;
  }

  .route-home .track-card .route-art,
  .route-home .track-card:nth-child(2) .route-art {
    width: 68%;
    opacity: 0.14;
  }
}

.recommendation-gated-card {
  border-top-color: rgba(217, 154, 25, 0.58);
}

.report-pending-workspace {
  max-width: 1040px;
}

.report-pending-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  margin-top: 22px;
}

.report-pending-summary,
.report-gate-list article {
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
}

.report-pending-summary {
  padding: 24px;
}

.report-pending-summary span,
.report-gate-list b {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.report-pending-summary strong {
  display: block;
  margin: 8px 0 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1;
}

.report-pending-summary p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.report-gate-list {
  display: grid;
  gap: 14px;
}

.report-gate-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: center;
  padding: 18px 20px;
}

.report-gate-list article.done {
  background: linear-gradient(135deg, rgba(237, 251, 248, 0.92), rgba(255, 255, 255, 0.9));
}

.report-gate-list article.todo {
  border-color: rgba(217, 154, 25, 0.26);
  background: linear-gradient(135deg, rgba(255, 250, 240, 0.95), rgba(255, 255, 255, 0.9));
}

.report-gate-list h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.report-gate-list p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.report-gate-list .btn {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.readiness-meter {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  align-items: center;
  margin: 18px 0;
  padding-bottom: 14px;
}

.readiness-meter span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.readiness-meter b {
  color: var(--ink);
  font-size: 18px;
}

.readiness-meter::after {
  content: "";
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  background: #e7eeee;
}

.readiness-meter i {
  position: absolute;
  left: 0;
  bottom: 14px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), #24b6a6);
}

@media (max-width: 860px) {
  .report-pending-panel,
  .logic-layer-grid {
    grid-template-columns: 1fr;
  }

  .report-gate-list article {
    grid-template-columns: 1fr;
  }

  .report-gate-list .btn {
    grid-row: auto;
    grid-column: auto;
    justify-self: start;
  }
}

@media (max-width: 860px) {
  .top30-audit-head {
    grid-template-columns: 1fr;
  }

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

  .us-activity-section {
    padding: 14px;
  }

  .activity-section-head {
    display: grid;
  }

  .activity-section-head > span {
    justify-self: start;
  }

  .us-activity-grid,
  .activity-report-grid,
  .activity-evidence-summary {
    grid-template-columns: 1fr;
  }

  .activity-mini-grid {
    grid-template-columns: 1fr;
  }

  .activity-report-grid section > div:first-child {
    display: grid;
  }
}

@media (max-width: 560px) {
  .activity-major-checkboxes label {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .account-type-picker {
    grid-template-columns: 1fr;
  }

  .teacher-approval-card {
    grid-template-columns: 1fr;
  }

  .teacher-actions {
    justify-content: flex-start;
  }

  .permission-panel {
    margin: 42px 16px;
    padding: 24px;
  }
}

@media (max-width: 760px) {
  .adjacent-major-grid {
    grid-template-columns: 1fr;
  }

  .campaign-topbar {
    height: auto;
    align-items: flex-start;
    padding: 18px;
  }

  .campaign-hero,
  .campaign-test-panel,
  .campaign-lead-card,
  .campaign-report {
    width: min(100% - 28px, 1040px);
    padding: 34px 0;
  }

  .campaign-promise-grid,
  .campaign-result-grid,
  .campaign-locked-grid,
  .campaign-lead-form,
  .campaign-lead-main,
  .campaign-admin-form {
    grid-template-columns: 1fr;
  }

  .campaign-scale-grid {
    grid-template-columns: 1fr;
  }

  .campaign-scale-grid button {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 0 18px;
    text-align: left;
  }

  .campaign-scale-grid b {
    margin: 0;
    font-size: 28px;
  }
}

[data-registration-teacher-code][hidden],
[data-registration-school][hidden] { display: none; }
.teacher-code-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.student-teacher-access { max-width: 320px; margin-bottom: 12px; }
.student-teacher-access summary { cursor: pointer; color: var(--primary, #087f79); font-weight: 600; padding: 8px 0; }
.student-teacher-access form { display: grid; gap: 8px; margin: 10px 0; }
.student-teacher-access label { display: grid; gap: 4px; }
.student-teacher-access select { width: 100%; min-width: 0; max-width: 100%; padding: 8px; }
.student-teacher-access p, .student-teacher-access small { white-space: normal; overflow-wrap: anywhere; }
.student-teacher-access .student-share-row { border-top: 1px solid #e2e8e6; padding-top: 8px; }
