:root {
  --navy: #07172f;
  --navy-2: #0c2450;
  --blue: #1d8cff;
  --blue-2: #49c8ff;
  --ink: #152033;
  --muted: #65758b;
  --line: rgba(123, 178, 255, 0.24);
  --paper: #ffffff;
  --paper-soft: #f4f8ff;
  --danger: #d95b5b;
  --safe: #1f9d73;
  --shadow: 0 24px 70px rgba(3, 18, 44, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans CJK SC",
    Arial,
    sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(73, 200, 255, 0.22), transparent 30%),
    linear-gradient(135deg, #06132b 0%, #0b2c66 44%, #f6f9ff 44.2%, #eef5ff 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.hero {
  color: #fff;
  padding: 6px 0 34px;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark,
.trust-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.fill-list-entry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(73, 200, 255, 0.55);
  border-radius: 8px;
  background: rgba(73, 200, 255, 0.14);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.fill-list-entry:hover {
  transform: translateY(-1px);
  border-color: rgba(73, 200, 255, 0.95);
  background: rgba(73, 200, 255, 0.22);
}

.fill-list-entry span {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 8px;
  background: #fff;
  color: var(--navy-2);
  font-size: 12px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--blue-2);
  box-shadow: 0 0 18px rgba(73, 200, 255, 0.95);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: end;
}

.eyebrow,
.section-heading p,
.result-header p {
  margin: 0 0 10px;
  color: var(--blue-2);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
}

.hero-lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.signal-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(4, 19, 46, 0.58);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.signal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.signal-value {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  border-radius: 8px;
  background: #fff;
  color: var(--navy-2);
  font-weight: 800;
}

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

.feature-preview-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid rgba(48, 183, 255, 0.35);
  border-left: 4px solid #29b6f6;
  border-radius: 8px;
  background: rgba(238, 248, 255, 0.97);
  color: #113760;
  box-shadow: 0 10px 24px rgba(6, 56, 118, 0.08);
}

.feature-preview-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #12a9ef;
  box-shadow: 0 0 0 5px rgba(18, 169, 239, 0.12);
}

.feature-preview-bar strong {
  flex: 0 0 auto;
  color: #075b98;
  font-size: 14px;
}

.feature-preview-bar p {
  flex: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.feature-preview-status {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid #b8e5fb;
  border-radius: 6px;
  background: #fff;
  color: #0876b8;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .feature-preview-bar {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 10px;
  }

  .feature-preview-bar p {
    flex-basis: calc(100% - 22px);
  }
}

.form-card,
.result-card {
  border: 1px solid rgba(13, 65, 143, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.form-card {
  padding: 26px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2,
.result-header h2 {
  font-size: 24px;
  line-height: 1.25;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field span,
.radio-field legend,
.major-field legend {
  color: #24364f;
  font-size: 15px;
  font-weight: 700;
}

.field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.field-note {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid #d8ecff;
  border-radius: 8px;
  background: #eef7ff;
  color: #0a5b96 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.45;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d7e3f5;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input,
.field select {
  min-height: 48px;
  padding: 0 14px;
}

.field textarea {
  resize: vertical;
  min-height: 116px;
  padding: 14px;
  line-height: 1.7;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(29, 140, 255, 0.12);
  background: #fbfdff;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

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

.radio-grid label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  cursor: pointer;
}

.radio-grid input {
  position: absolute;
  opacity: 0;
}

.radio-grid span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 1px solid #d7e3f5;
  border-radius: 8px;
  background: #f8fbff;
  color: #344963;
  transition: all 160ms ease;
}

.radio-grid input:checked + span {
  border-color: var(--blue);
  background: linear-gradient(135deg, #e8f4ff, #f6fbff);
  color: #0754a8;
  box-shadow: inset 0 0 0 1px rgba(29, 140, 255, 0.2);
}

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

.major-field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

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

.major-grid label {
  position: relative;
  cursor: pointer;
}

.major-grid input {
  position: absolute;
  opacity: 0;
}

.major-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #d7e3f5;
  border-radius: 8px;
  background: #f8fbff;
  color: #344963;
  font-size: 14px;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.major-grid input:checked + span {
  border-color: var(--safe);
  background: #ecfbf5;
  color: #08724f;
  box-shadow: inset 0 0 0 1px rgba(31, 157, 115, 0.28), 0 8px 18px rgba(31, 157, 115, 0.12);
}

.major-grid input[data-soft-preference]:checked + span {
  border-color: #0c66bf;
  background: #e9f5ff;
  color: #0c66bf;
  box-shadow: inset 0 0 0 1px rgba(29, 140, 255, 0.22), 0 8px 18px rgba(29, 140, 255, 0.1);
}

.major-grid input:focus-visible + span {
  box-shadow: 0 0 0 4px rgba(31, 157, 115, 0.16);
}

.advisor-button {
  position: relative;
  isolation: isolate;
  min-height: 58px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #0b5dcc, #1d8cff 48%, #49c8ff);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(29, 140, 255, 0.32);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.advisor-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 46px rgba(29, 140, 255, 0.38);
}

.advisor-button:disabled {
  cursor: wait;
  filter: saturate(0.92);
}

.button-glow {
  position: absolute;
  inset: -80% auto -80% -40%;
  z-index: -1;
  width: 40%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: sweep 2.5s linear infinite;
}

.advisor-button.is-loading .button-glow {
  animation-duration: 1.2s;
}

@keyframes sweep {
  from {
    left: -45%;
  }
  to {
    left: 120%;
  }
}

.notice {
  margin: 18px 0 0;
  padding: 13px 14px;
  border: 1px solid #dce8f8;
  border-radius: 8px;
  background: var(--paper-soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.data-health-panel {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid #d9e7f7;
  border-radius: 8px;
  background: #fbfdff;
}

.data-health-panel.is-hidden {
  display: none;
}

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

.data-health-head p,
.data-health-head h3,
.data-health-summary,
.data-health-tip {
  margin: 0;
}

.data-health-head p {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.data-health-head h3 {
  margin-top: 3px;
  color: #14253b;
  font-size: 20px;
}

.health-level {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.health-level.level-A {
  background: #ecfbf5;
  color: #08724f;
}

.health-level.level-B {
  background: #fff4e7;
  color: #9a4a08;
}

.health-level.level-pending {
  background: #eef2f8;
  color: #53677f;
}

.data-health-summary {
  color: #405775;
  font-size: 14px;
  line-height: 1.65;
}

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

.data-health-grid div {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: #f4f8fd;
}

.data-health-grid dt {
  color: #65758b;
  font-size: 12px;
}

.data-health-grid dd {
  margin: 5px 0 0;
  color: #193453;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

.data-health-tip {
  padding-top: 2px;
  color: #7a5a22;
  font-size: 12px;
  line-height: 1.6;
}

.result-card {
  min-height: 420px;
  padding: 26px;
}

.result-card.is-hidden {
  display: none;
}

.result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e2ebf7;
}

.report-tag {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 8px;
  background: #e9f5ff;
  color: #0c66bf;
  font-size: 13px;
  font-weight: 800;
}

.result-content {
  display: grid;
  gap: 16px;
  padding-top: 20px;
}

.data-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid #dce8f8;
  border-radius: 8px;
  background: linear-gradient(135deg, #f3f9ff, #ffffff);
}

.data-summary h3 {
  margin: 0 0 8px;
  color: #0b376e;
  font-size: 18px;
}

.data-summary p {
  margin: 0;
  color: #4f637d;
  line-height: 1.7;
}

.data-summary .preference-summary {
  margin-top: 6px;
  color: #08724f;
  font-weight: 800;
}

.data-summary span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 8px;
  background: #e9f5ff;
  color: #0c66bf;
  font-size: 13px;
  font-weight: 800;
}

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

.tier-browser {
  display: grid;
  gap: 16px;
}

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

.tier-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid #d7e3f5;
  border-radius: 8px;
  background: #f8fbff;
  color: #344963;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.tier-tab span {
  font-size: 16px;
  font-weight: 900;
}

.tier-tab strong {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #e9f1fb;
  color: #0b376e;
  font-size: 13px;
}

.tier-tab.is-active {
  border-color: var(--safe);
  background: #ecfbf5;
  color: #08724f;
  box-shadow: inset 0 0 0 1px rgba(31, 157, 115, 0.28), 0 10px 22px rgba(31, 157, 115, 0.12);
}

.tier-tab.is-active strong {
  background: #0f8f68;
  color: #fff;
}

.tier-panel {
  display: none;
}

.tier-panel.is-active {
  display: grid;
  gap: 14px;
}

.tier-panel-head {
  padding: 14px 16px;
  border: 1px solid #e1e9f5;
  border-radius: 8px;
  background: #fff;
}

.tier-panel-head h3 {
  margin: 0 0 6px;
  color: #0b376e;
  font-size: 19px;
}

.decision-profile-entry {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(29, 140, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #071b3d 0%, #0b376e 52%, #f8fbff 52.2%, #ffffff 100%);
}

.profile-entry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  color: #fff;
}

.profile-entry-head p,
.profile-entry-head h3,
.profile-entry-head span {
  margin: 0;
}

.profile-entry-head p {
  color: #6ed0ff;
  font-size: 13px;
  font-weight: 900;
}

.profile-entry-head h3 {
  margin-top: 5px;
  font-size: 24px;
}

.profile-entry-head span {
  display: block;
  margin-top: 6px;
  max-width: 620px;
  color: #d8e6f7;
  line-height: 1.65;
}

.profile-entry-head em {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

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

.profile-choice {
  display: grid;
  gap: 6px;
  min-height: 100%;
  padding: 12px;
  border: 1px solid #dce8f8;
  border-radius: 8px;
  background: #fff;
  color: #263b55;
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.profile-choice:hover,
.profile-choice.is-suggested {
  transform: translateY(-1px);
  border-color: rgba(31, 157, 115, 0.42);
  box-shadow: 0 10px 22px rgba(13, 65, 143, 0.1);
}

.profile-choice strong {
  color: #0b376e;
  font-size: 15px;
}

.profile-choice span {
  color: #65758b;
  font-size: 12px;
  line-height: 1.55;
}

.profile-output:empty {
  display: none;
}

.profile-pay-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dce8f8;
  border-radius: 8px;
  background: #fff;
}

.profile-pay-card.is-unlocked {
  border-color: #bde8d9;
  background: linear-gradient(180deg, #f6fffb 0%, #fff 100%);
}

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

.profile-pay-head p,
.profile-pay-head h3,
.profile-pay-head span {
  margin: 0;
}

.profile-pay-head p {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.profile-pay-head h3 {
  margin-top: 5px;
  color: #0b376e;
  font-size: 22px;
}

.profile-pay-head span {
  display: block;
  margin-top: 6px;
  color: #52667f;
  line-height: 1.65;
}

.profile-pay-head strong {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 8px;
  background: #eef7ff;
  color: #0a5b96;
  font-size: 13px;
}

.profile-focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-focus-list span {
  padding: 6px 9px;
  border-radius: 8px;
  background: #ecfbf5;
  color: #08724f;
  font-size: 12px;
  font-weight: 900;
}

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

.profile-section {
  padding: 13px;
  border: 1px solid #e1e9f5;
  border-radius: 8px;
  background: #fbfdff;
}

.profile-section h4,
.profile-discussion h4 {
  margin: 0 0 9px;
  color: #0b376e;
  font-size: 15px;
}

.profile-section ul,
.profile-discussion ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #304760;
  font-size: 13px;
  line-height: 1.65;
}

.profile-locked {
  position: relative;
  overflow: hidden;
  background: #f6f9ff;
}

.profile-locked::after {
  content: "付费解锁";
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #071b3d;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

html[data-access-mode="trial-free"] .profile-locked::after {
  content: "试运行免费";
}

.profile-unlock-button {
  justify-self: start;
  min-height: 42px;
  padding: 9px 16px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #0d8cff, #05b6ff);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(13, 140, 255, 0.22);
}

.profile-pay-card small {
  color: #65758b;
  font-size: 12px;
}

.profile-discussion {
  padding: 14px;
  border: 1px solid #cfeedd;
  border-radius: 8px;
  background: #f6fffb;
}

.profile-ranking {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(29, 140, 255, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.profile-ranking-head p,
.profile-ranking-head h4,
.profile-ranking-head span {
  margin: 0;
}

.profile-ranking-head p {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.profile-ranking-head h4 {
  margin-top: 4px;
  color: #0b376e;
  font-size: 20px;
}

.profile-ranking-head span {
  display: block;
  margin-top: 6px;
  color: #52667f;
  line-height: 1.65;
}

.profile-rank-groups,
.profile-rank-list {
  display: grid;
  gap: 10px;
}

.profile-rank-group {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e1e9f5;
  border-radius: 8px;
  background: #fff;
}

.profile-rank-group h5 {
  margin: 0;
  color: #0b376e;
  font-size: 16px;
}

.profile-rank-sprint {
  border-color: #f1dcc2;
  background: linear-gradient(90deg, #fff8ed 0%, #ffffff 46%);
}

.profile-rank-stable {
  border-color: #cfe0f5;
  background: linear-gradient(90deg, #f1f8ff 0%, #ffffff 46%);
}

.profile-rank-safe {
  border-color: #cfeedd;
  background: linear-gradient(90deg, #f1fbf6 0%, #ffffff 46%);
}

.profile-rank-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(170px, 0.5fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid #edf2fa;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.profile-rank-index {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #eef7ff;
  color: #0a5b96;
  font-weight: 900;
}

.profile-rank-row h6,
.profile-rank-row p,
.profile-rank-row small,
.profile-rank-row em {
  margin: 0;
}

.profile-rank-row h6 {
  color: #0b376e;
  font-size: 16px;
}

.profile-rank-row p {
  margin-top: 4px;
  color: #263b55;
  font-weight: 900;
}

.profile-rank-row small,
.profile-rank-row em {
  display: block;
  margin-top: 6px;
  color: #65758b;
  line-height: 1.55;
}

.profile-rank-row em {
  color: #31506f;
  font-style: normal;
  font-weight: 800;
}

.profile-rank-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.profile-rank-tags span {
  padding: 4px 7px;
  border-radius: 8px;
  background: #ecfbf5;
  color: #08724f;
  font-size: 12px;
  font-weight: 900;
}

.profile-rank-empty {
  margin: 0;
  color: #65758b;
  font-size: 13px;
}

.tier-panel-head p {
  margin: 0;
  color: #5b6f87;
  line-height: 1.7;
}

.data-card {
  position: relative;
  display: grid;
  gap: 13px;
  min-height: 100%;
  padding: 18px;
  border: 1px solid #e1e9f5;
  border-radius: 8px;
  background: #fff;
}

.fill-card-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(29, 140, 255, 0.42);
  border-radius: 8px;
  background: #eef7ff;
  color: #075999;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.fill-card-button:hover {
  transform: translateY(-1px);
  border-color: var(--blue);
  background: #e2f1ff;
}

.fill-card-button.is-added {
  border-color: rgba(31, 157, 115, 0.36);
  background: #ecfbf5;
  color: #08724f;
}

.data-card-top {
  display: flex;
  flex-wrap: wrap;
  padding-right: 82px;
  gap: 8px;
}

.tier-pill,
.source-pill,
.risk-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.tier-pill {
  background: #f0f6ff;
  color: #0a5b96;
}

.source-pill.level-A {
  background: #ecfbf5;
  color: #08724f;
}

.source-pill.level-B {
  background: #fff4e7;
  color: #9a4a08;
}

.risk-pill.risk-high {
  background: #fff0f0;
  color: #b42323;
}

.risk-pill.risk-mid {
  background: #eef7ff;
  color: #0a5b96;
}

.risk-pill.risk-low {
  background: #ecfbf5;
  color: #08724f;
}

.data-card h3 {
  margin: 0;
  color: #0b376e;
  font-size: 18px;
}

.city-line {
  width: fit-content;
  margin: -6px 0 0;
  padding: 6px 9px;
  border-radius: 8px;
  background: #eef7ff;
  color: #0a5b96;
  font-size: 13px;
  font-weight: 900;
}

.school-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.school-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 7px;
  border: 1px solid #d7e3f5;
  border-radius: 8px;
  background: #f6f9ff;
  color: #385270;
  font-size: 12px;
  font-weight: 800;
}

.major-name {
  margin: 0;
  color: #263b55;
  font-weight: 800;
  line-height: 1.5;
}

.subject-line,
.catalog-line {
  width: fit-content;
  margin: -4px 0 0;
  padding: 5px 8px;
  border-radius: 8px;
  background: #f0f8ff;
  color: #0a5b96;
  font-size: 12px;
  font-weight: 900;
}

.catalog-line {
  background: #ecfbf5;
  color: #08724f;
}

.match-note {
  width: fit-content;
  margin: -4px 0 0;
  padding: 5px 8px;
  border-radius: 8px;
  background: #ecfbf5;
  color: #08724f;
  font-size: 12px;
  font-weight: 900;
}

.new-program-pill {
  padding: 5px 8px;
  border-radius: 7px;
  background: #fff1d8;
  color: #a54b00;
  font-size: 12px;
  font-weight: 900;
}

.school-profile-summary {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid #dce9f6;
  border-bottom: 1px solid #dce9f6;
}

.school-profile-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.school-profile-summary-head span {
  color: #0b376e;
  font-size: 12px;
  font-weight: 900;
}

.school-profile-summary-head em {
  color: #08724f;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.school-profile-summary dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.school-profile-summary dt {
  color: #718096;
  font-size: 10px;
}

.school-profile-summary dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: #24405f;
  font-size: 11px;
  font-weight: 900;
}

.program-group-details {
  display: grid;
  gap: 10px;
  margin-top: 2px;
  padding: 12px 0 0;
  border-top: 2px solid #d7e8fb;
}

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

.program-group-head p,
.program-group-head span {
  margin: 0;
}

.program-group-head p {
  color: #0b376e;
  font-size: 14px;
  font-weight: 900;
}

.program-group-head span {
  display: block;
  margin-top: 3px;
  color: #64758b;
  font-size: 11px;
  line-height: 1.5;
}

.program-group-head > strong {
  flex: 0 0 auto;
  color: #0867b9;
  font-size: 12px;
}

.program-group-list {
  max-height: 360px;
  overflow-y: auto;
  border-top: 1px solid #e4edf8;
}

.program-group-major {
  display: grid;
  gap: 8px;
  padding: 11px 2px;
  border-bottom: 1px solid #e4edf8;
}

.program-group-major-title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.program-group-major-title span {
  flex: 0 0 auto;
  min-width: 32px;
  padding: 3px 6px;
  border-radius: 6px;
  background: #eaf4ff;
  color: #0867b9;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.program-group-major-title strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #17395f;
  font-size: 13px;
  line-height: 1.5;
}

.program-group-major dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.program-group-major dt {
  color: #718096;
  font-size: 10px;
}

.program-group-major dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: #263b55;
  font-size: 11px;
  font-weight: 800;
}

.program-group-major > p {
  margin: 0;
  color: #5c6f86;
  font-size: 11px;
  line-height: 1.55;
}

.degree-programs {
  display: grid;
  gap: 10px;
}

.degree-programs details {
  border-top: 1px solid #e2ebf5;
  padding-top: 9px;
}

.degree-programs summary {
  cursor: pointer;
  color: #0b5b9e;
  font-weight: 900;
}

.degree-programs .major-chip-list {
  margin-top: 10px;
}

.wiki-source-link {
  color: #0966c2;
  font-weight: 900;
  text-decoration: none;
}

.wiki-source-link:hover {
  text-decoration: underline;
}

.data-evidence {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid #dbe8f7;
  border-radius: 8px;
  background: #fbfdff;
}

.data-evidence p {
  margin: 0;
  color: #24405f;
  font-size: 13px;
  font-weight: 900;
}

.evidence-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.evidence-tags span {
  min-height: 24px;
  padding: 4px 7px;
  border-radius: 8px;
  background: #eef7ff;
  color: #0a5b96;
  font-size: 12px;
  font-weight: 800;
}

.data-evidence small {
  color: #65758b;
  font-size: 12px;
  line-height: 1.55;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}

.metric-grid div {
  min-height: 72px;
  padding: 11px;
  border-radius: 8px;
  background: #f6f9ff;
}

.metric-grid .metric-primary {
  background: #eef7ff;
  box-shadow: inset 0 0 0 1px rgba(29, 140, 255, 0.08);
}

.metric-grid dt {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.metric-grid dd {
  margin: 4px 0 0;
  color: #13253b;
  font-size: 18px;
  font-weight: 900;
}

.pending-value {
  color: #9a4a08 !important;
}

.verified-value {
  color: #047857 !important;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid #edf2fa;
  border-radius: 8px;
  background: #fbfdff;
}

.detail-grid div {
  min-width: 0;
}

.detail-grid dt {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.detail-grid dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: #263b55;
  font-size: 13px;
  font-weight: 900;
}

.trend-strip {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 8px;
  background: #f9fbff;
  border: 1px solid #edf2fa;
}

.trend-strip span {
  display: grid;
  grid-template-columns: 46px 1fr 1.25fr 1.2fr;
  align-items: center;
  gap: 10px;
  color: #53677f;
  font-size: 12px;
  line-height: 1.4;
}

.trend-strip strong {
  color: #0b376e;
}

.trend-strip em {
  font-style: normal;
  text-align: right;
}

.data-reason {
  margin: 0;
  color: #52667f;
  font-size: 14px;
  line-height: 1.7;
}

.score-note {
  margin: -2px 0 0;
  color: #6a7890;
  font-size: 12px;
  line-height: 1.6;
}

.metadata-note {
  margin: -2px 0 0;
  color: #31506f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.plan-note {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #f1dcc2;
  border-radius: 8px;
  background: #fff8ed;
  color: #83510f;
  font-size: 12px;
  line-height: 1.6;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.wiki-trigger {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(29, 140, 255, 0.24);
  border-radius: 8px;
  background: #eef7ff;
  color: #0a5b96;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.wiki-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(29, 140, 255, 0.46);
  background: #e4f1ff;
}

.major-wiki-trigger {
  border-color: rgba(31, 157, 115, 0.24);
  background: #ecfbf5;
  color: #08724f;
}

.major-wiki-trigger:hover {
  border-color: rgba(31, 157, 115, 0.46);
  background: #def8ed;
}

.data-card a {
  color: #0c66bf;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.data-card a:hover {
  text-decoration: underline;
}

.fill-page {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(13, 65, 143, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
}

.fill-page.is-hidden {
  display: none;
}

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

.fill-page-head p {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.fill-page-head h2 {
  color: #0b376e;
  font-size: 26px;
}

.fill-page-actions {
  display: inline-flex;
  gap: 8px;
}

.ghost-button,
.danger-button {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.ghost-button {
  border: 1px solid #cfe0f5;
  background: #f7fbff;
  color: #0b376e;
}

.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.danger-button {
  border: 1px solid rgba(217, 91, 91, 0.28);
  background: #fff4f4;
  color: #b42323;
}

.fill-page-note,
.fill-empty {
  margin: 0;
  color: #516884;
  line-height: 1.8;
}

.fill-dashboard {
  display: grid;
  gap: 12px;
}

.fill-dashboard.is-hidden {
  display: none;
}

.fill-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
}

.fill-stats dl {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.fill-stats div,
.fill-diagnosis {
  border: 1px solid #dce8f8;
  border-radius: 8px;
  background: #fbfdff;
}

.fill-stats div {
  min-width: 0;
  padding: 10px;
}

.fill-stats dt {
  color: #65758b;
  font-size: 12px;
}

.fill-stats dd {
  margin: 4px 0 0;
  color: #0b376e;
  font-size: 20px;
  font-weight: 900;
}

.report-soon-button {
  position: relative;
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 220px;
  min-height: 92px;
  padding: 16px 44px 16px 18px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #0d8cff 0%, #0b5ed7 54%, #071b3d 100%);
  color: #fff;
  text-align: left;
  box-shadow: 0 14px 30px rgba(13, 140, 255, 0.24);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.report-soon-button::after {
  content: "→";
  position: absolute;
  right: 17px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.report-soon-button strong,
.report-soon-button span {
  position: relative;
  z-index: 1;
}

.report-soon-button strong {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.report-soon-button span {
  color: #d8ecff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.report-soon-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(13, 140, 255, 0.3);
  filter: saturate(1.05);
}

.report-soon-button:focus-visible {
  outline: 3px solid rgba(110, 208, 255, 0.75);
  outline-offset: 3px;
}

.fill-diagnosis {
  padding: 13px 14px;
}

.fill-diagnosis h3 {
  margin: 0 0 8px;
  color: #193453;
  font-size: 16px;
}

.fill-diagnosis ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #516884;
  font-size: 13px;
  line-height: 1.65;
}

.fill-empty {
  padding: 18px;
  border: 1px dashed #cfe0f5;
  border-radius: 8px;
  background: #f8fbff;
  text-align: center;
}

.fill-empty.is-hidden {
  display: none;
}

.fill-list {
  display: grid;
  gap: 14px;
}

.fill-group {
  display: grid;
  gap: 10px;
}

.fill-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #dce8f8;
  border-radius: 8px;
  background: #f8fbff;
}

.fill-group-head h3,
.fill-group-head p {
  margin: 0;
}

.fill-group-head h3 {
  color: #0b376e;
  font-size: 18px;
}

.fill-group-head p {
  margin-top: 4px;
  color: #65758b;
  font-size: 13px;
  line-height: 1.5;
}

.fill-group-head span {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #eef7ff;
  color: #0a5b96;
  font-weight: 900;
}

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

.fill-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid #e1e9f5;
  border-radius: 8px;
  background: #fff;
}

.fill-item-index {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #eef7ff;
  color: #0a5b96;
  font-weight: 900;
}

.fill-item-main {
  display: grid;
  gap: 10px;
}

.fill-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.fill-item-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.fill-move,
.fill-remove {
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.fill-move {
  border: 1px solid #cfe0f5;
  background: #f7fbff;
  color: #0b376e;
}

.fill-move:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.fill-remove {
  border: 1px solid #e7d4d4;
  background: #fff8f8;
  color: #b42323;
}

.fill-item h3 {
  margin: 0;
  color: #0b376e;
  font-size: 18px;
}

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

.fill-detail-grid div {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: #f6f9ff;
}

.fill-detail-grid dt {
  color: #65758b;
  font-size: 12px;
}

.fill-detail-grid dd {
  margin: 5px 0 0;
  color: #193453;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.fill-source {
  margin: 0;
  color: #516884;
  font-size: 13px;
}

.fill-wiki-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fill-source a {
  color: #0966c2;
  font-weight: 800;
  text-decoration: none;
}

.deep-report {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(29, 140, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
  box-shadow: 0 16px 48px rgba(13, 65, 143, 0.1);
}

.deep-report.is-hidden {
  display: none;
}

.deep-report-cover {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 8px;
  background: #071b3d;
  color: #fff;
}

.deep-report-cover p,
.deep-report-cover h2,
.deep-report-cover span {
  margin: 0;
}

.deep-report-cover p {
  color: #6ed0ff;
  font-size: 13px;
  font-weight: 900;
}

.deep-report-cover h2 {
  margin-top: 6px;
  font-size: 26px;
}

.deep-report-cover span {
  display: inline-block;
  margin-top: 10px;
  color: #c9d8ee;
  font-size: 13px;
}

.report-profile,
.report-stat-grid {
  display: grid;
  gap: 8px;
  margin: 0;
}

.report-profile {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-stat-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.report-profile div,
.report-stat-grid div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #dce8f8;
  border-radius: 8px;
  background: #f8fbff;
}

.report-profile dt,
.report-stat-grid dt {
  color: #65758b;
  font-size: 12px;
}

.report-profile dd,
.report-stat-grid dd {
  margin: 5px 0 0;
  color: #12345a;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.report-stat-grid dd {
  font-size: 20px;
}

.report-completion {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid rgba(29, 140, 255, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, #f3f9ff 0%, #ffffff 100%);
}

.completion-score {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border-radius: 8px;
  background: #071b3d;
  color: #fff;
}

.completion-score span {
  color: #6ed0ff;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

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

.report-completion p,
.report-completion h3 {
  margin: 0;
}

.report-completion p {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.report-completion h3 {
  margin-top: 4px;
  color: #193453;
  font-size: 20px;
}

.report-completion ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: #516884;
  font-size: 13px;
  line-height: 1.65;
}

.report-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e1e9f5;
  border-radius: 8px;
  background: #fff;
}

.report-section-head p,
.report-section-head h3 {
  margin: 0;
}

.report-section-head p {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.report-section-head h3 {
  margin-top: 4px;
  color: #193453;
  font-size: 20px;
}

.report-diagnosis-list,
.report-checks ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #516884;
  font-size: 14px;
  line-height: 1.7;
}

.report-decision {
  border-color: rgba(29, 140, 255, 0.22);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.decision-summary {
  padding: 14px;
  border-radius: 8px;
  background: #071b3d;
  color: #fff;
}

.decision-summary strong {
  display: block;
  color: #6ed0ff;
  font-size: 16px;
}

.decision-summary p {
  margin: 7px 0 0;
  color: #d8e6f7;
  font-size: 14px;
  line-height: 1.7;
}

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

.decision-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid #dce8f8;
  border-radius: 8px;
  background: #fff;
}

.decision-card h4 {
  margin: 0 0 9px;
  color: #0b376e;
  font-size: 15px;
}

.decision-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #304760;
  font-size: 13px;
  line-height: 1.65;
}

.risk-radar-grid,
.replace-grid,
.profile-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.risk-radar-card,
.replace-card,
.profile-compare-grid article {
  min-width: 0;
  padding: 13px;
  border: 1px solid #dce8f8;
  border-radius: 8px;
  background: #fbfdff;
}

.risk-radar-card {
  display: grid;
  gap: 9px;
  border-left: 4px solid #0d8cff;
}

.risk-radar-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.risk-radar-card span,
.replace-card strong,
.profile-compare-grid strong {
  color: #0b376e;
  font-size: 14px;
  font-weight: 900;
}

.risk-radar-card strong {
  color: #12345a;
  font-size: 20px;
}

.risk-radar-card p,
.replace-card p,
.profile-compare-grid p,
.matrix-row p {
  margin: 0;
  color: #516884;
  font-size: 13px;
  line-height: 1.65;
}

.risk-level-high {
  border-left-color: #e11d48;
  background: #fff7f8;
}

.risk-level-high strong {
  color: #be123c;
}

.risk-level-mid {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.risk-level-mid strong {
  color: #9a4a08;
}

.risk-level-low {
  border-left-color: #10b981;
  background: #f1fbf6;
}

.risk-level-low strong {
  color: #047857;
}

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

.matrix-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: 12px;
  align-items: start;
  padding: 13px;
  border: 1px solid #dce8f8;
  border-radius: 8px;
  background: #fbfdff;
}

.matrix-row div {
  display: grid;
  gap: 4px;
}

.matrix-row strong {
  color: #0b376e;
  font-size: 15px;
}

.matrix-row span,
.replace-card span,
.profile-compare-grid span {
  color: #0d6fc6;
  font-size: 12px;
  font-weight: 900;
}

.replace-card,
.profile-compare-grid article {
  display: grid;
  gap: 8px;
  background: #fff;
}

.replace-card span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 8px;
  background: #eef7ff;
}

.report-groups,
.report-row-list {
  display: grid;
  gap: 10px;
}

.report-group {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e1e9f5;
  border-radius: 8px;
  background: #fbfdff;
}

.report-group h4 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0b376e;
  font-size: 17px;
}

.report-group h4::before {
  content: "";
  width: 10px;
  height: 22px;
  border-radius: 999px;
  background: #0d8cff;
}

.report-group-sprint {
  border-color: #f1dcc2;
  background: linear-gradient(90deg, #fff8ed 0%, #ffffff 42%);
}

.report-group-sprint h4 {
  color: #9a4a08;
}

.report-group-sprint h4::before {
  background: #f59e0b;
}

.report-group-stable {
  border-color: #cfe0f5;
  background: linear-gradient(90deg, #f1f8ff 0%, #ffffff 42%);
}

.report-group-stable h4 {
  color: #0a5b96;
}

.report-group-stable h4::before {
  background: #0d8cff;
}

.report-group-safe {
  border-color: #cfeedd;
  background: linear-gradient(90deg, #f1fbf6 0%, #ffffff 42%);
}

.report-group-safe h4 {
  color: #08724f;
}

.report-group-safe h4::before {
  background: #10b981;
}

.report-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(180px, 0.55fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid #edf2fa;
  border-radius: 8px;
  background: #fbfdff;
}

.report-row-index {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #eef7ff;
  color: #0a5b96;
  font-weight: 900;
}

.report-row h5,
.report-row p,
.report-row small {
  margin: 0;
}

.report-row h5 {
  color: #0b376e;
  font-size: 16px;
}

.report-row p {
  margin-top: 4px;
  color: #263b55;
  font-weight: 900;
}

.report-row small {
  display: block;
  margin-top: 6px;
  color: #65758b;
  line-height: 1.5;
}

.report-row-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.report-row-tags span {
  padding: 4px 7px;
  border-radius: 8px;
  background: #ecfbf5;
  color: #08724f;
  font-size: 12px;
  font-weight: 900;
}

.report-paywall {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(29, 140, 255, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, #f4f9ff 0%, #ffffff 100%);
}

.report-paywall p,
.report-paywall h3,
.report-paywall span {
  margin: 0;
}

.report-paywall p {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.report-paywall h3 {
  margin-top: 4px;
  color: #0b376e;
  font-size: 22px;
}

.report-paywall span {
  display: block;
  margin-top: 6px;
  color: #65758b;
  font-size: 13px;
}

.report-paywall ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #304760;
  font-size: 14px;
  line-height: 1.7;
}

.report-paywall button {
  justify-self: start;
  min-height: 42px;
  padding: 9px 16px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #0d8cff, #05b6ff);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(13, 140, 255, 0.22);
}

.report-disclaimer {
  margin: 0;
  padding: 12px;
  border: 1px solid #f1dcc2;
  border-radius: 8px;
  background: #fff8ed;
  color: #83510f;
  font-size: 13px;
  line-height: 1.7;
}

.wiki-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.wiki-modal.is-hidden {
  display: none;
}

.wiki-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 14, 32, 0.62);
  backdrop-filter: blur(8px);
}

.wiki-dialog {
  position: relative;
  width: min(880px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  border: 1px solid rgba(123, 178, 255, 0.28);
  border-radius: 8px;
  background: #f8fbff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.wiki-close {
  position: sticky;
  top: 12px;
  float: right;
  z-index: 2;
  width: 36px;
  height: 36px;
  margin: 12px 12px 0 0;
  border: 1px solid #d7e3f5;
  border-radius: 8px;
  background: #fff;
  color: #274160;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.wiki-head {
  padding: 26px 28px 18px;
  color: #fff;
  background: linear-gradient(135deg, #07172f 0%, #0b376e 58%, #0d67a8 100%);
}

.major-wiki-head {
  background: linear-gradient(135deg, #061b34 0%, #0b4d76 52%, #0f8f68 100%);
}

.wiki-head p {
  margin: 0 0 8px;
  color: var(--blue-2);
  font-size: 13px;
  font-weight: 900;
}

.wiki-head h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.2;
}

.wiki-subline {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  font-weight: 800;
}

.wiki-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.wiki-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

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

.wiki-section {
  padding: 16px;
  border: 1px solid #e1e9f5;
  border-radius: 8px;
  background: #fff;
}

.wiki-section h3 {
  margin: 0 0 10px;
  color: #0b376e;
  font-size: 16px;
}

.wiki-section p,
.wiki-section li {
  color: #304760;
  font-size: 14px;
  line-height: 1.75;
}

.wiki-section p,
.wiki-section ul {
  margin: 0;
}

.wiki-section ul {
  display: grid;
  gap: 7px;
  padding-left: 18px;
}

.major-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.major-chip-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid #d7e3f5;
  border-radius: 8px;
  background: #f6f9ff;
  color: #274160;
  font-size: 13px;
  font-weight: 900;
}

.major-personalized {
  border-color: #bde8d9;
  background: #f6fffb;
}

.wiki-wide {
  margin: 0 18px 18px;
}

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

.wiki-facts div {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: #f6f9ff;
}

.wiki-facts dt {
  color: var(--muted);
  font-size: 12px;
}

.wiki-facts dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: #13253b;
  font-size: 13px;
  font-weight: 900;
}

.wiki-source {
  margin: 0;
  padding: 0 18px 20px;
  color: #6a7890;
  font-size: 12px;
  line-height: 1.7;
}

.result-block {
  border: 1px solid #e1e9f5;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.result-block h3 {
  margin: 0;
  padding: 13px 16px;
  background: linear-gradient(90deg, #eef7ff, #ffffff);
  color: #0b376e;
  font-size: 17px;
}

.result-block ul,
.result-block p {
  margin: 0;
  padding: 14px 18px 16px;
  color: #263b55;
  line-height: 1.75;
}

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

.result-block.sprint h3 {
  color: #9a4a08;
  background: linear-gradient(90deg, #fff4e7, #ffffff);
}

.result-block.stable h3 {
  color: #0a5b96;
  background: linear-gradient(90deg, #e9f6ff, #ffffff);
}

.result-block.safe h3 {
  color: #08724f;
  background: linear-gradient(90deg, #e9fbf4, #ffffff);
}

.result-block.warning h3 {
  color: #9b2f2f;
  background: linear-gradient(90deg, #fff0f0, #ffffff);
}

.fallback-note {
  border-left: 4px solid var(--blue);
  padding: 12px 14px;
  border-radius: 8px;
  background: #f3f9ff;
  color: #31506f;
  line-height: 1.7;
}

@media (max-width: 920px) {
  body {
    background:
      linear-gradient(180deg, #06132b 0%, #0b2c66 38%, #eef5ff 38.2%, #f6f9ff 100%);
  }

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

  .signal-panel {
    grid-template-columns: repeat(3, 1fr);
  }

  .data-card-grid {
    grid-template-columns: 1fr;
  }

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

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

  .wiki-section-grid {
    grid-template-columns: 1fr;
  }

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

  .fill-stats {
    grid-template-columns: 1fr;
  }

  .fill-stats dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .report-profile,
  .report-stat-grid,
  .decision-grid,
  .risk-radar-grid,
  .replace-grid,
  .profile-compare-grid,
  .profile-choice-grid,
  .profile-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .matrix-row {
    grid-template-columns: 1fr;
  }

  .report-row,
  .profile-rank-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .report-completion {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .report-row-tags,
  .profile-rank-tags {
    grid-column: 2;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 22px, 1180px);
    padding-top: 18px;
  }

  .top-bar {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 28px;
  }

  .brand-mark,
  .trust-badge,
  .fill-list-entry {
    justify-content: center;
  }

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

  h1 {
    font-size: 34px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .signal-panel,
  .field-row,
  .radio-grid,
  .data-health-grid {
    grid-template-columns: 1fr;
  }

  .form-card,
  .result-card,
  .fill-page {
    padding: 20px;
  }

  .result-header,
  .fill-page-head,
  .fill-item-top {
    flex-direction: column;
  }

  .fill-page-actions {
    width: 100%;
  }

  .ghost-button,
  .danger-button {
    flex: 1;
  }

  .data-summary {
    flex-direction: column;
  }

  .tier-tabs {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .detail-grid,
  .fill-detail-grid,
  .fill-stats dl,
  .report-profile,
  .report-stat-grid,
  .report-row,
  .profile-rank-row,
  .decision-grid,
  .risk-radar-grid,
  .replace-grid,
  .profile-compare-grid,
  .matrix-row,
  .profile-choice-grid,
  .profile-preview-grid,
  .report-completion,
  .wiki-facts {
    grid-template-columns: 1fr;
  }

  .decision-profile-entry {
    background: linear-gradient(180deg, #071b3d 0%, #0b376e 34%, #ffffff 34.2%, #ffffff 100%);
  }

  .profile-entry-head,
  .profile-pay-head {
    flex-direction: column;
  }

  .fill-item {
    grid-template-columns: 1fr;
  }

  .fill-item-index {
    width: 100%;
  }

  .fill-item-top,
  .fill-group-head {
    align-items: stretch;
    flex-direction: column;
  }

  .fill-item-actions {
    justify-content: flex-start;
  }

  .deep-report-cover {
    flex-direction: column;
  }

  .report-row-tags,
  .profile-rank-tags {
    grid-column: auto;
  }

  .fill-item {
    grid-template-columns: 1fr;
  }

  .fill-card-button {
    position: static;
    width: fit-content;
    justify-self: end;
  }

  .data-card-top {
    padding-right: 0;
  }

  .wiki-modal {
    padding: 10px;
  }

  .wiki-head {
    padding: 24px 18px 16px;
  }

  .wiki-section-grid {
    padding: 12px;
  }

  .wiki-wide {
    margin: 0 12px 12px;
  }

  .trend-strip span {
    grid-template-columns: 42px 1fr;
  }

  .trend-strip em {
    text-align: left;
  }

  .program-group-head {
    flex-direction: column;
  }

  .program-group-major dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .school-profile-summary dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media print {
  body {
    background: #fff;
  }

  .top-bar,
  .hero,
  .form-card,
  .result-card,
  .fill-page-head,
  .fill-page-note,
  .fill-dashboard,
  .fill-empty,
  .fill-list,
  .wiki-modal {
    display: none !important;
  }

  .page-shell,
  .workspace,
  .fill-page,
  .deep-report {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .deep-report {
    display: grid !important;
  }

  .deep-report-cover {
    background: #071b3d !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
