:root {
  --bg: #f5f9ff;
  --card: #ffffff;
  --ink: #151b2d;
  --muted: #718097;
  --line: #e8eef7;
  --blue: #2388ff;
  --blue-dark: #1268e8;
  --blue-soft: #edf7ff;
  --cyan: #24c7d7;
  --orange: #ff7a2f;
  --red: #ff6860;
  --green: #27c59a;
  --shadow: 0 14px 34px rgba(33, 93, 160, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 0%, rgba(47, 151, 255, 0.10), transparent 26rem),
    linear-gradient(180deg, #f7fbff 0, #f7fbff 190px, var(--bg) 100%);
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
button, input, select { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 251, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232, 238, 247, 0.75);
}
.header-inner {
  width: min(1024px, calc(100% - 32px));
  margin: 0 auto;
  height: 72px;
  display: grid;
  grid-template-columns: 160px minmax(260px, 500px) 1fr;
  align-items: center;
  gap: 24px;
}
.brand {
  color: #10192d;
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
}
.search-box {
  height: 48px;
  display: grid;
  grid-template-columns: 1fr 48px;
  align-items: center;
  background: #fff;
  border: 1px solid #e4ebf5;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(31, 80, 150, 0.08);
  overflow: hidden;
}
.search-box input {
  height: 100%;
  border: 0;
  padding: 0 20px;
  outline: 0;
  background: transparent;
}
.search-box button {
  height: 100%;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 30px;
}
.profile-pill {
  justify-self: end;
  border: 0;
  background: transparent;
  color: #2d3748;
}
.profile-pill::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-left: 8px;
  vertical-align: middle;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8ecf7, #dfe5f4);
}
.main-nav {
  width: min(760px, calc(100% - 32px));
  height: 52px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}
.main-nav a {
  position: relative;
  flex: 0 0 auto;
  min-width: max-content;
  padding: 0 10px 15px;
  color: #121826;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
}

.page {
  width: min(1024px, calc(100% - 32px));
  margin: 18px auto 48px;
}
.view-section.is-hidden {
  display: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 294px;
  gap: 20px;
}
.hero-card, .tool-card, .mini-card, .panel, .candidate-panel, .filter-panel, .shortlist-panel, .college-card, .major-search-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(232, 238, 247, 0.92);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero-card {
  min-height: 220px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 320px;
  gap: 22px;
  padding: 28px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255,255,255,.95) 0%, rgba(245,252,255,.95) 52%, rgba(232,248,255,.92) 100%);
}
.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: 13px; }
.hero-copy h1 { margin: 0 0 10px; font-size: 24px; letter-spacing: 0; }
.hero-copy p { color: #6a7890; margin: 0 0 16px; }
.profile-form { display: grid; gap: 14px; }
.inline-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
label span { display: block; margin-bottom: 6px; color: #6f7f95; font-size: 13px; }
input, select {
  width: 100%;
  height: 38px;
  border: 1px solid #e2eaf5;
  border-radius: 8px;
  padding: 0 12px;
  color: #182033;
  background: #fff;
  outline: 0;
}
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(35, 136, 255, 0.12); }
.elective-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: min(360px, 100%);
}
.elective-row label {
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #e1ebf6;
  border-radius: 8px;
  background: #fff;
  color: #3b4960;
  font-size: 13px;
}
.elective-row input { width: 15px; height: 15px; accent-color: var(--blue); }
.hero-actions { display: flex; gap: 10px; }
.primary, .secondary, .mini-card button, .panel-actions button, .filter-foot button, .candidate-actions button {
  height: 40px;
  border-radius: 8px;
  padding: 0 18px;
  border: 1px solid #dbe7f5;
  background: #fff;
  color: #2571d9;
}
.primary {
  min-width: 136px;
  border-color: var(--blue);
  color: #fff;
  background: linear-gradient(135deg, #18a0ff, #256dff);
  box-shadow: 0 10px 22px rgba(35, 136, 255, 0.25);
}
.secondary { min-width: 140px; background: #f7fbff; }

.rank-visual { position: relative; display: grid; align-content: center; justify-items: center; gap: 10px; color: #718097; }
.modify-btn {
  position: absolute;
  top: -8px;
  right: 0;
  border: 0;
  background: transparent;
  color: #69788e;
}
.curve {
  width: 250px;
  height: 72px;
  border-bottom: 4px solid rgba(35, 136, 255, 0.18);
  border-radius: 0 0 50% 50%;
  position: relative;
}
.curve::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 22px;
  height: 54px;
  border-top: 4px solid #459cff;
  border-radius: 50%;
  transform: rotate(2deg);
}
.curve i {
  position: absolute;
  left: 62%;
  top: 22px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2fd3db;
  box-shadow: 0 0 0 5px rgba(47, 211, 219, .16);
}
.rank-visual p { margin: 0; font-size: 13px; }
.risk-numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.risk-numbers strong { display: block; font-size: 20px; }
.risk-numbers div:nth-child(1) strong { color: var(--red); }
.risk-numbers div:nth-child(2) strong { color: #557ef6; }
.risk-numbers div:nth-child(3) strong { color: var(--cyan); }
.risk-numbers div:nth-child(4) strong { color: #e8983e; }
.risk-numbers span { color: #79889d; font-size: 13px; }

.tool-card { padding: 22px 24px; }
.tool-card h2, .mini-card h2, .panel-head h2 { margin: 0; font-size: 16px; }
.tool-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 14px;
}
.tool-grid button {
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #2c3a50;
  padding: 0;
  font-size: 13px;
}
.tool-grid b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #2388ff, #28c4dc);
}
.tool-grid button:nth-child(4n+3) b { background: linear-gradient(135deg, #ff9f42, #ff7038); }
.tool-grid button:nth-child(4n) b { background: linear-gradient(135deg, #31c3aa, #18a0ff); }

.quick-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 294px;
  gap: 20px;
}
.mini-card { min-height: 184px; padding: 22px 24px; }
.mini-body { margin: 22px 0; display: flex; align-items: center; gap: 16px; }
.mini-body p { margin: 4px 0 0; color: #7d8a9c; font-size: 13px; }
.progress-badge, .report-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eaf8ff;
  color: var(--blue);
}
.progress-badge span { font-size: 11px; margin: 0; }
.mini-card button { width: 100%; background: #edf8ff; border-color: #d8edf9; }
.schedule {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(247, 252, 255, .98), rgba(255, 255, 255, .96) 42%),
    #fff;
  overflow: hidden;
}
.schedule-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.schedule-head span {
  color: #179cff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.schedule .schedule-tabs {
  display: flex;
  gap: 12px;
  margin: 2px -4px 0;
  padding: 0 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.schedule .schedule-tabs::-webkit-scrollbar { display: none; }
.schedule-tabs button {
  position: relative;
  width: auto;
  height: 28px;
  flex: 0 0 auto;
  padding: 0 0 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #46556b;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.schedule-tabs button.active {
  color: var(--blue);
  background: transparent;
}
.schedule-tabs button.active::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
}
.schedule-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 4px;
  min-height: 24px;
  color: #a1adbd;
  font-size: 11px;
  text-align: center;
}
.schedule-status span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.schedule-status .active {
  color: var(--blue);
  font-weight: 800;
}
.schedule-panel { display: none; }
.schedule-panel.active {
  display: block;
  animation: scheduleFade .18s ease;
}
.schedule-table {
  display: grid;
  gap: 0;
  border: 1px solid #e7f0fa;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.schedule-row {
  display: grid;
  grid-template-columns: 50px minmax(92px, 1fr) 58px;
  min-height: 26px;
  align-items: center;
  border-top: 1px solid #eef4fb;
  color: #4f5f75;
  font-size: 12px;
}
.schedule-row:first-child { border-top: 0; }
.schedule-row > * {
  min-width: 0;
  padding: 5px 7px;
}
.schedule-row strong {
  color: #1f2a3d;
  font-size: 12px;
  font-weight: 700;
}
.schedule-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.schedule-row-head {
  min-height: 28px;
  background: #f4f9ff;
  color: #8794a8;
  font-weight: 700;
}
.schedule-collapse {
  margin-top: 6px;
  color: #8c99aa;
  font-size: 12px;
  text-align: center;
}
.schedule-service {
  min-height: 108px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 18px 14px;
  border: 1px solid #e5eef8;
  border-radius: 8px;
  background: #fff;
}
.schedule-service b {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #19a6ff, #236dff);
  box-shadow: 0 10px 18px rgba(35, 136, 255, .2);
}
.schedule-service strong {
  display: block;
  color: #1d2738;
  font-size: 15px;
}
.schedule-service span {
  display: block;
  margin-top: 5px;
  color: #79879a;
  font-size: 12px;
  line-height: 1.45;
}
@keyframes scheduleFade {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.college-search-section {
  margin-top: 20px;
  scroll-margin-top: 140px;
}
.college-card {
  padding: 20px;
}
.college-search-head {
  display: grid;
  grid-template-columns: minmax(320px, 500px) auto;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.college-search-box {
  height: 40px;
  display: grid;
  grid-template-columns: 1fr 44px;
  border: 1px solid #dfe8f4;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.college-search-box input {
  height: 100%;
  border: 0;
  border-radius: 0;
}
.college-search-box button {
  border: 0;
  background: #fff;
  color: #111827;
  font-size: 28px;
}
.rank-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border-radius: 10px;
  background: #f2f5f9;
}
.rank-switch button {
  width: 58px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  color: #7d8a9c;
  background: transparent;
  font-weight: 700;
}
.rank-switch button.active {
  color: var(--blue-dark);
  background: #fff;
  box-shadow: 0 4px 12px rgba(31, 80, 150, 0.08);
}
.college-filters {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}
.college-filter-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.college-filter-row > span {
  line-height: 32px;
  color: #344054;
  font-size: 14px;
}
.pill-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  max-height: 78px;
  overflow: hidden;
}
.pill-options.is-expanded {
  max-height: none;
}
.pill-option {
  min-width: 58px;
  height: 32px;
  border: 1px solid #ecf1f7;
  border-radius: 999px;
  padding: 0 14px;
  color: #344054;
  background: #fff;
}
.pill-option.active {
  color: var(--blue-dark);
  border-color: #d9ecff;
  background: #eaf5ff;
  font-weight: 700;
}
.near-score-row {
  min-height: 36px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 8px;
  background: #f7f8fa;
  color: #66758a;
  font-size: 13px;
}
.near-score-row input {
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
}
.near-score-row button {
  border: 0;
  background: transparent;
  color: var(--blue-dark);
}
.college-list-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .9fr) 110px;
  gap: 18px;
  margin-top: 20px;
  padding: 0 0 12px;
  border-bottom: 1px solid #edf2f8;
  color: #7a8798;
  font-size: 13px;
}
.college-list {
  display: grid;
}
.college-item {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .9fr) 110px;
  gap: 18px;
  align-items: center;
  min-height: 84px;
  padding: 14px 0;
  border-bottom: 1px solid #edf2f8;
}
.college-main {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.college-logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #e5eef8;
  border-radius: 50%;
  color: var(--blue-dark);
  background: radial-gradient(circle at 30% 25%, #fff, #eaf5ff);
  font-weight: 800;
}
.college-name-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.college-name-line strong {
  font-size: 16px;
}
.college-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.college-tags span {
  padding: 2px 6px;
  border-radius: 5px;
  color: #526176;
  background: #f2f5f9;
  font-size: 12px;
}
.college-meta {
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
}
.score-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #111827;
}
.score-pill b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 12px;
}
.score-pill.physics b {
  color: #256dff;
  background: #edf5ff;
}
.score-pill.history b {
  color: #d97706;
  background: #fff7ed;
}
.compare-btn {
  width: 78px;
  height: 36px;
  border: 1px solid #e5edf7;
  border-radius: 8px;
  color: #344054;
  background: #fff;
}
.college-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
}
.college-pagination button {
  height: 34px;
  border: 1px solid #dfe8f4;
  border-radius: 8px;
  padding: 0 14px;
  color: #2571d9;
  background: #fff;
}
.college-pagination button:disabled {
  color: #9aa8ba;
  background: #f5f7fa;
  cursor: not-allowed;
}

.province-line-section {
  margin-top: 20px;
  scroll-margin-top: 140px;
}
.province-line-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(232, 238, 247, 0.92);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.province-line-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}
.province-line-head h2 {
  margin: 0;
  font-size: 18px;
}
.province-line-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.province-line-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.province-line-tabs button {
  height: 38px;
  padding: 0 18px;
  border: 1px solid #e5ebf3;
  border-radius: 999px;
  color: #172033;
  background: #fff;
}
.province-line-tabs button.active {
  color: #1557ff;
  border-color: #d5e3ff;
  background: #edf5ff;
  font-weight: 700;
}
.province-year-block {
  margin-top: 16px;
}
.province-year-block h3 {
  margin: 0;
  padding: 11px 22px;
  border-radius: 6px;
  color: #020617;
  background: #f3f4f6;
  font-size: 18px;
}
.province-line-table {
  padding: 8px 22px 0;
}
.province-line-row {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 220px 120px;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid #edf2f7;
  color: #111827;
  font-size: 14px;
}
.province-line-row.head {
  min-height: 38px;
  color: #7c8799;
}
.province-line-row strong {
  font-size: 15px;
}
.province-line-row em {
  display: block;
  margin-top: 3px;
  color: #7c8799;
  font-style: normal;
  font-size: 12px;
}

.major-search-section {
  margin-top: 20px;
  scroll-margin-top: 140px;
}
.major-search-card {
  padding: 20px;
}
.major-search-head {
  display: grid;
  grid-template-columns: minmax(320px, 500px) auto;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.major-query-box {
  height: 40px;
  display: grid;
  grid-template-columns: 1fr 44px;
  border: 1px solid #dfe8f4;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.major-query-box input {
  height: 100%;
  border: 0;
  border-radius: 0;
}
.major-query-box button {
  border: 0;
  background: #fff;
  color: #111827;
  font-size: 28px;
}
.major-category-tabs {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.major-category-tab {
  flex: 0 0 86px;
  min-height: 62px;
  display: grid;
  place-items: center;
  gap: 5px;
  border: 1px solid #ecf1f7;
  border-radius: 8px;
  background: #fff;
  color: #344054;
}
.major-category-tab b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--blue-dark);
  background: #edf5ff;
}
.major-category-tab.active {
  color: var(--blue-dark);
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(35, 136, 255, .15);
}
.major-browser {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.major-sub-nav {
  display: grid;
  gap: 4px;
  max-height: 560px;
  overflow-y: auto;
  padding: 8px 0;
  border-radius: 8px;
  background: #f7f8fa;
}
.major-sub-tab {
  min-height: 40px;
  border: 0;
  padding: 0 14px;
  color: #344054;
  background: transparent;
  text-align: left;
}
.major-sub-tab.active {
  color: var(--blue-dark);
  background: #fff;
  font-weight: 800;
}
.major-results {
  min-width: 0;
}
.major-results-head {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #edf2f8;
}
.major-results-head strong {
  font-size: 16px;
}
.major-results-head span {
  color: #7a8798;
  font-size: 13px;
}
.major-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  padding-top: 14px;
}
.major-card {
  min-height: 90px;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid #edf2f8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(33, 93, 160, 0.04);
}
.major-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}
.major-card-head strong {
  font-size: 16px;
}
.major-card-head span {
  color: #718097;
  font-size: 12px;
  font-weight: 700;
}
.major-card-meta {
  color: #6b778b;
  font-size: 13px;
}
.major-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.major-card-stats span {
  padding: 3px 7px;
  border-radius: 6px;
  color: #526176;
  background: #f2f5f9;
  font-size: 12px;
}

.recommend-layout {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.filter-panel {
  position: sticky;
  top: 145px;
  padding: 20px;
  display: grid;
  gap: 14px;
}
.panel-title { display: grid; gap: 6px; }
.panel-title span { color: var(--muted); font-size: 12px; }
.filter-block { display: grid; gap: 10px; }
.filter-trigger {
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #dce8f5;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  padding: 0 12px;
}
.filter-trigger.active { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.filter-trigger strong { font-weight: 500; color: #8a98aa; }
.custom-limit-field { display: none; }
.custom-limit-field.is-visible { display: block; }

.recommend-main { display: grid; gap: 16px; min-width: 0; }
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stats-row div {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 15px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.stats-row span { color: var(--muted); font-size: 13px; }
.stats-row strong { font-size: 22px; }
.analysis-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
.panel { overflow: hidden; }
.panel-head {
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.analysis-list { padding: 10px 18px 14px; }
.analysis-item { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eef3f9; }
.analysis-item:last-child { border-bottom: 0; }
.analysis-item p { margin: 0; color: #6d7b8f; line-height: 1.5; font-size: 13px; }
.tier-stats { padding: 14px 18px 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tier-box { min-height: 64px; border-radius: 8px; padding: 10px; background: #f7fbff; }
.tier-box span { color: var(--muted); font-size: 13px; }
.tier-box strong { display: block; margin-top: 5px; font-size: 22px; }
.tier-box.rush strong { color: var(--red); }
.tier-box.steady strong { color: var(--blue); }
.tier-box.safe strong, .tier-box.floor strong { color: var(--green); }
.tier-box.warn strong { color: var(--orange); }
.tier-box.cautious strong { color: #e8983e; }
.decision-hint { margin: 6px 0 2px; color: #718097; font-size: 13px; }
.placement-suggestion { margin: 2px 0 6px; color: #e8983e; font-size: 13px; }

.candidate-panel { overflow: hidden; }
.candidate-panel .candidate-head,
.candidate-panel .candidate-hint {
  display: none;
}
.candidate-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.tier-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tier-tab {
  height: 38px;
  min-width: 110px;
  border: 0;
  border-radius: 8px;
  color: #44546a;
  background: #f2f5f9;
  font-weight: 700;
}
.tier-tab.active { color: var(--blue-dark); background: #e8f4ff; }
.sort-row { display: flex; gap: 8px; }
.sort-row select { width: 122px; }
.school-filter-dock { padding: 0 18px; }
.school-filter-panel {
  display: none;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid #e4ecf6;
  border-radius: 8px;
  background: #fff;
}
.school-filter-dock.is-open .school-filter-panel.active { display: grid; gap: 12px; }
.filter-section { display: grid; grid-template-columns: 82px 1fr; gap: 12px; align-items: start; }
.filter-title { color: #637185; font-size: 13px; line-height: 30px; }
.multi-options { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.multi-option { display: inline-flex; align-items: center; gap: 5px; color: #46556a; font-size: 13px; }
.multi-option input { width: 15px; height: 15px; accent-color: var(--blue); }
.multi-option.active { color: var(--blue-dark); font-weight: 700; }
.filter-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid #edf2f8; color: var(--muted); }
.filter-foot span { margin-right: auto; }
.filter-foot button:last-child { color: #fff; border-color: var(--blue); background: var(--blue); }
.major-panel-head { display: grid; grid-template-columns: auto 130px minmax(180px, 1fr); gap: 12px; align-items: center; }
.major-picker { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 278px; max-height: 420px; overflow: hidden; border: 1px solid #edf2f8; border-radius: 8px; }
.major-category-list, .major-subcategory-list { overflow-y: auto; }
.major-category-list { background: #f7faff; border-right: 1px solid #edf2f8; padding: 8px 0; }
.major-subcategory-list { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); align-content: start; gap: 8px 16px; padding: 14px; }
.major-category-item, .major-subcategory-item { display: flex; align-items: center; gap: 8px; min-height: 34px; color: #354257; font-size: 13px; cursor: pointer; }
.major-category-item { padding: 0 12px; border-left: 3px solid transparent; }
.major-category-item.is-active { color: var(--blue-dark); background: #eaf5ff; border-left-color: var(--blue); }
.major-category-item.is-selected, .major-subcategory-item.is-selected { color: var(--blue-dark); font-weight: 700; }
.major-category-item input, .major-subcategory-item input { width: 15px; height: 15px; accent-color: var(--blue); }
.major-category-item em { margin-left: auto; color: #9aa8ba; font-style: normal; font-size: 12px; }
.major-empty { color: #8b99aa; padding: 14px; font-size: 13px; }
.candidate-hint { margin: 0; padding: 0 18px 12px; color: var(--muted); font-size: 13px; }
.candidate-list { display: grid; }
.candidate-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 118px;
  gap: 16px;
  padding: 18px;
  border-top: 1px solid #edf2f8;
}
.risk-flag {
  width: 42px;
  height: 54px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 8px;
  color: #fff;
  background: var(--orange);
  font-weight: 800;
}
.risk-flag span { font-size: 12px; }
.risk-flag small { font-size: 10px; opacity: 0.9; font-weight: 600; }
.risk-flag.steady { background: var(--blue); }
.risk-flag.safe, .risk-flag.floor { background: var(--green); }
.risk-flag.warn { background: #9aa8ba; }
.risk-flag.cautious { background: #e8983e; }
.school-line, .major-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.school-line strong, .major-line strong { font-size: 17px; }
.school-line span { color: #8b99aa; font-size: 13px; }
.school-line b, .major-line b { color: var(--orange); background: #fff3eb; border-radius: 6px; padding: 3px 7px; font-size: 12px; }
.school-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0 12px; }
.school-tags span { padding: 3px 7px; border-radius: 5px; background: #f2f5f9; color: #526176; font-size: 12px; }
.note-line, .reason-line { margin: 8px 0; color: #526176; line-height: 1.55; font-size: 13px; }
.reason-line { color: #718097; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 16px; margin-top: 12px; }
.metric-grid div { display: grid; gap: 4px; min-width: 0; }
.metric-grid strong { overflow-wrap: anywhere; font-size: 14px; }
.metric-grid span { color: #92a0b2; font-size: 12px; }
/* Three-year yearly comparison strip (major-priority card) */
.yearly-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: stretch; }
.yearly-strip .yearly-col {
  flex: 1 1 96px; min-width: 84px; padding: 8px 10px; border-radius: 8px;
  background: #f4f7fb; display: grid; gap: 2px; align-content: center;
}
.yearly-strip .yearly-col.is-auxiliary { background: #fbf4ee; }
.yearly-strip .yearly-col.is-missing { background: #f7f8fb; border: 1px dashed #d8e0eb; }
.yearly-strip .yearly-year { color: #92a0b2; font-size: 12px; }
.yearly-strip .yearly-risk { font-size: 16px; font-weight: 700; }
.yearly-strip .yearly-risk.warn { color: #64748b; }
.yearly-strip .yearly-rank { color: #59677a; font-size: 12px; }
.yearly-strip .yearly-gap { color: #92a0b2; font-size: 11px; }
.yearly-strip .yearly-col em { color: #b3772a; font-size: 10px; font-style: normal; }
.yearly-strip .yearly-trend { align-self: center; padding: 4px 10px; border-radius: 6px; background: #eef2f8; color: #557ef6; font-size: 12px; }
.decision-reason { margin-top: 8px; color: #59677a; font-size: 12px; line-height: 1.5; }
.candidate-actions { display: grid; align-content: center; gap: 10px; }
.candidate-actions button { padding: 0 10px; color: var(--blue-dark); }
.candidate-actions .ghost { color: #59677a; background: #f7f9fc; }
.empty { padding: 24px 18px; color: var(--muted); }

.shortlist-panel { margin-top: 20px; overflow: hidden; }
.panel-actions { display: flex; gap: 10px; }
.shortlist-list { padding: 4px 18px 18px; }
.shortlist-item { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid #edf2f8; }
.shortlist-item:last-child { border-bottom: 0; }
.shortlist-index { color: var(--blue); font-weight: 800; }
.shortlist-main strong { display: block; margin-bottom: 5px; }
.shortlist-main span { color: var(--muted); font-size: 13px; }
.badge { display: inline-flex; justify-content: center; min-width: 34px; margin-right: 6px; padding: 2px 7px; border-radius: 999px; color: #fff; background: var(--blue); font-size: 12px; }
.badge.rush { background: var(--orange); }
.badge.safe, .badge.floor { background: var(--green); }
.badge.warn { background: #9aa8ba; }
.badge.cautious { background: #e8983e; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr; height: auto; padding: 16px 0; gap: 12px; }
  .profile-pill { justify-self: start; }
  .main-nav { overflow-x: auto; justify-content: flex-start; }
  .hero-grid, .hero-card, .quick-grid, .recommend-layout, .analysis-grid { grid-template-columns: 1fr; }
  .college-search-head, .college-list-head, .college-item, .major-search-head, .major-browser { grid-template-columns: 1fr; }
  .college-list-head span:nth-child(2),
  .college-list-head span:nth-child(3) { display: none; }
  .filter-panel { position: static; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .province-line-head { flex-direction: column; }
  .province-line-row { grid-template-columns: minmax(180px, 1fr) 120px 80px; }
  .candidate-card { grid-template-columns: 48px 1fr; }
  .candidate-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .page, .header-inner, .main-nav { width: min(100% - 20px, 1024px); }
  .inline-fields, .stats-row, .metric-grid { grid-template-columns: 1fr; }
  .hero-card, .tool-card, .mini-card { padding: 18px; }
  .candidate-head, .panel-head { align-items: stretch; grid-template-columns: 1fr; }
  .filter-section, .major-panel-head, .major-picker { grid-template-columns: 1fr; }
  .elective-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .college-filter-row { grid-template-columns: 1fr; }
  .college-filter-row > span { line-height: 1.2; }
  .province-line-card { padding: 16px; }
  .province-line-table { padding: 8px 0 0; overflow-x: auto; }
  .province-line-row { min-width: 560px; }
  .college-main { grid-template-columns: 42px minmax(0, 1fr); }
  .college-logo { width: 40px; height: 40px; }
  .major-list { grid-template-columns: 1fr; }
  .major-sub-nav { max-height: 260px; }
  .major-category-list { border-right: 0; border-bottom: 1px solid #edf2f8; max-height: 220px; }
  .major-subcategory-list { grid-template-columns: 1fr; }
}

/* Smart recommendation workspace */
.sr-control {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#recommend.recommend-layout {
  margin-top: 0;
  display: block;
  scroll-margin-top: 140px;
}

body:not([data-view="recommend"]) #recommend.recommend-layout {
  display: none;
}

#recommend .recommend-main {
  display: block;
}

.recommend-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.mode-tabs {
  display: flex;
  gap: 12px;
}

.mode-tabs button {
  min-width: 122px;
  height: 40px;
  border: 1px solid #e6edf7;
  border-radius: 10px;
  color: #172033;
  background: #fff;
  font-weight: 800;
}

.mode-tabs button.active {
  background: #edf4ff;
}

.recommend-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.recommend-search-row select {
  width: 92px;
  border: 0;
  background: transparent;
  font-weight: 700;
}

.recommend-search {
  width: 272px;
  height: 40px;
  display: grid;
  grid-template-columns: 1fr 38px;
  align-items: center;
  border: 1px solid #edf2f8;
  border-radius: 12px;
  background: #fff;
}

.recommend-search input {
  height: 100%;
  border: 0;
  background: transparent;
}

.recommend-search span {
  color: #111827;
  font-size: 24px;
  text-align: center;
}

#recommend .candidate-panel {
  border: 1px solid #eef2f8;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

#recommend .candidate-panel .candidate-head {
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid #f0f3f8;
}

#recommend .candidate-panel .candidate-hint {
  display: none;
}

#recommend .tier-tabs {
  gap: 28px;
}

#recommend .tier-tab {
  min-width: auto;
  height: 64px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #111827;
}

#recommend .tier-tab.active {
  color: #ff3b30;
  border-bottom-color: #ff3b30;
  background: transparent;
}

.recommend-notice {
  margin: 0;
  color: #24588f;
  font-size: 13px;
}

.recommend-filter-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 82px;
  gap: 12px;
  padding: 14px 20px 12px;
  border-bottom: 1px solid #f0f3f8;
}

#recommend .filter-trigger,
.sort-trigger {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border: 1px solid #edf2f8;
  border-radius: 8px;
  padding: 0 12px;
  color: #344054;
  background: #fff;
}

#recommend .filter-trigger::after {
  content: "▾";
  margin-left: auto;
  color: #111827;
  font-size: 11px;
}

#recommend .filter-trigger.active::after {
  content: "▴";
}

#recommend .filter-trigger strong {
  color: #111827;
  font-weight: 500;
}

.sort-trigger {
  border-color: #f3f4f6;
  background: #f7f8fa;
}

#recommend .school-filter-dock {
  position: relative;
  padding: 0 20px;
}

#recommend .school-filter-panel {
  width: min(760px, calc(100% - 40px));
  margin: 0;
  position: absolute;
  left: 20px;
  top: 0;
  z-index: 10;
  padding: 24px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, .16);
}

#recommend .school-filter-dock.is-open {
  min-height: 384px;
}

#recommend .filter-section {
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
}

#recommend .filter-title {
  color: #8b96a8;
  line-height: 28px;
}

#recommend .multi-options,
.check-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(96px, 1fr));
  gap: 12px 20px;
}

#recommend .multi-option,
.check-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #172033;
  font-size: 14px;
}

.check-options input {
  width: 14px;
  height: 14px;
  accent-color: var(--blue);
}

#recommend .filter-foot button {
  min-width: 132px;
}

#recommend .filter-foot button:last-child {
  background: #1557ff;
  border-color: #1557ff;
}

#recommend .major-intent-panel {
  left: auto;
  right: 20px;
  width: min(640px, calc(100% - 40px));
}

#recommend .candidate-card {
  grid-template-columns: 44px minmax(0, 1fr) 150px;
  padding: 20px;
  border-top: 0;
  border-bottom: 1px solid #f0f3f8;
  box-shadow: none;
}

#recommend .candidate-card:last-child {
  border-bottom: 0;
}

#recommend .risk-flag {
  width: 42px;
  height: 48px;
  border-radius: 6px;
  color: #ff3b30;
  background: #ffecec;
}

#recommend .risk-flag.steady {
  color: #2563eb;
  background: #edf5ff;
}

#recommend .risk-flag.safe,
#recommend .risk-flag.floor {
  color: #10b981;
  background: #ecfdf5;
}

#recommend .risk-flag.warn {
  color: #f97316;
  background: #fff7ed;
}

#recommend .candidate-actions button {
  height: 40px;
  border: 1px solid #1557ff;
  border-radius: 8px;
  color: #1557ff;
  background: #fff;
}

#recommend .candidate-actions .ghost {
  border-color: #dbe7f5;
  color: #475569;
  background: #f8fbff;
}

#recommend .metric-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

#recommend .metric-grid div {
  display: flex;
  gap: 4px;
}

#recommend .metric-grid span {
  order: -1;
}

.major-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.32);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.major-drawer-overlay.is-open {
  opacity: 1;
}

.major-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(760px, 92vw);
  height: 100vh;
  background: #fff;
  box-shadow: -18px 0 46px rgba(20, 35, 68, 0.16);
  transform: translateX(104%);
  transition: transform 0.26s ease;
}

.major-drawer.is-open {
  transform: translateX(0);
}

.major-drawer-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
}

.major-drawer-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto 34px;
  align-items: start;
  gap: 16px;
  padding: 18px 24px 12px;
}

.major-drawer-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid #dce7f6;
  border-radius: 50%;
  color: #1557ff;
  background: #f5f9ff;
  font-weight: 800;
}

.major-drawer-title strong {
  display: block;
  color: #111827;
  font-size: 18px;
}

.major-drawer-title span {
  display: block;
  margin-top: 6px;
  color: #8391a4;
  font-size: 13px;
}

.major-drawer-tools {
  display: flex;
  gap: 10px;
}

.major-drawer-tools button {
  height: 32px;
  padding: 0 14px;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  color: #111827;
  background: #fff;
}

.major-drawer-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #94a3b8;
  background: transparent;
  font-size: 20px;
}

.major-drawer-body {
  overflow-y: auto;
  padding: 0 24px;
}

.major-drawer-alert {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  align-items: start;
  margin-top: 10px;
  color: #1f2937;
  line-height: 1.65;
  font-size: 13px;
}

.major-drawer-alert b {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 11px;
}

.major-drawer-alert.teal b {
  color: #06b6d4;
  background: #e6fbff;
}

.major-drawer-alert.yellow b {
  color: #f59e0b;
  background: #fff7d6;
}

.major-drawer-scorebar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #7c8aa0;
  background: #eef5ff;
  font-size: 13px;
}

.major-drawer-scorebar strong {
  color: #111827;
}

.major-drawer-subtitle {
  margin: 24px 0 6px;
  color: #111827;
  font-size: 14px;
}

.major-drawer-list {
  padding: 0 0 28px;
}

.major-drawer-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 126px;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid #eef3f8;
}

.major-drawer-item:last-child {
  border-bottom: 0;
}

.major-drawer-item-head {
  display: grid;
  gap: 5px;
}

.major-drawer-item-head strong {
  color: #111827;
  font-size: 16px;
}

.major-drawer-item-head span {
  color: #334155;
  font-size: 13px;
}

.major-drawer-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px 20px;
  margin-top: 12px;
}

.major-drawer-meta span {
  color: #526176;
  background: transparent;
  font-size: 12px;
}

.major-drawer-note {
  margin: 0;
  color: #728096;
  line-height: 1.55;
  font-size: 13px;
}

.major-drawer-action {
  justify-self: end;
  min-width: 124px;
  height: 38px;
  border: 1px solid #1557ff;
  border-radius: 8px;
  color: #1557ff;
  background: #fff;
}

.major-drawer-action.is-added {
  border-color: #dbe4ef;
  color: #94a3b8;
  background: #f8fafc;
}

.major-drawer-risk {
  display: grid;
  place-items: center;
  align-content: center;
  width: 42px;
  height: 52px;
  border-radius: 6px;
  color: #ef4444;
  background: #fff0f0;
  font-weight: 700;
}

.major-drawer-risk strong {
  font-size: 16px;
}

.major-drawer-risk span {
  font-size: 12px;
}

.major-drawer-risk.steady {
  color: #2563eb;
  background: #edf5ff;
}

.major-drawer-risk.safe,
.major-drawer-risk.floor {
  color: #10b981;
  background: #ecfdf5;
}

.major-drawer-risk.warn {
  color: #64748b;
  background: #f1f5f9;
}
.major-drawer-risk.cautious {
  color: #e8983e;
  background: #fef7ed;
}
/* Yearly comparison in drawer */
.major-drawer-yearly {
  margin: 12px 0;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
}
.major-drawer-yearly .yearly-title { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.major-drawer-yearly .yearly-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.major-drawer-yearly .yearly-col { text-align: center; }
.major-drawer-yearly .yearly-col.is-missing { color: #64748b; }
.major-drawer-yearly .yearly-col.is-missing strong { font-size: 14px; color: #64748b; }
.major-drawer-yearly .yearly-col span { display: block; color: #718097; font-size: 12px; }
.major-drawer-yearly .yearly-col strong { display: block; font-size: 16px; margin: 2px 0; }
.major-drawer-yearly .yearly-risk { color: #e8983e; font-size: 12px; }
.major-drawer-yearly .yearly-consistency { color: #557ef6; font-size: 12px; }
.major-drawer-yearly .yearly-reason { margin-top: 8px; color: #718097; font-size: 13px; }
.major-drawer-yearly .yearly-col em { color: #b3772a; font-size: 10px; font-style: normal; display: block; }
/* Compact per-major yearly row inside drawer */
.major-drawer-yearly-row { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; font-size: 12px; color: #59677a; }
.major-drawer-yearly-row span { white-space: nowrap; }
.major-drawer-yearly-row .yearly-missing { color: #64748b; }
.major-drawer-yearly-row em { color: #b3772a; font-style: normal; font-size: 11px; }
.major-drawer-yearly-row .yearly-trend { margin-left: auto; padding: 2px 8px; border-radius: 4px; background: #eef2f8; color: #557ef6; font-size: 11px; }
/* Risk tier colors in drawer yearly-row b tags */
.major-drawer-yearly-row b.rush { color: #bf5a20; }
.major-drawer-yearly-row b.steady { color: #557ef6; }
.major-drawer-yearly-row b.safe, .major-drawer-yearly-row b.floor { color: #10b981; }
.major-drawer-yearly-row b.warn { color: #64748b; }
.major-drawer-yearly-row b.cautious { color: #e8983e; }

.major-drawer-feedback {
  padding: 10px 24px 20px;
  color: #8b99aa;
  text-align: center;
  font-size: 12px;
}

.major-drawer-feedback a {
  color: #1557ff;
  text-decoration: none;
}

@media (max-width: 980px) {
  .recommend-topbar,
  .recommend-search-row {
    align-items: stretch;
    flex-direction: column;
  }
  .recommend-search {
    width: 100%;
  }
  .recommend-filter-row {
    grid-template-columns: 1fr 1fr;
  }
  #recommend .school-filter-panel,
  #recommend .major-intent-panel {
    position: static;
    width: 100%;
  }
  #recommend .school-filter-dock.is-open {
    min-height: 0;
  }
  .major-drawer {
    width: 100vw;
  }
  .major-drawer-head {
    grid-template-columns: 44px minmax(0, 1fr) 34px;
  }
  .major-drawer-tools {
    grid-column: 1 / -1;
  }
  .major-drawer-scorebar,
  .major-drawer-item {
    grid-template-columns: 1fr;
  }
  .major-drawer-meta {
    grid-template-columns: 1fr;
  }
  .major-drawer-action {
    justify-self: stretch;
  }
}
