:root {
  color-scheme: light;
  --bg: #f4f7f9;
  --ink: #17212b;
  --muted: #64717d;
  --line: #dbe3ea;
  --panel: #ffffff;
  --brand: #176b87;
  --brand-dark: #0f3f55;
  --warn: #b56b12;
  --gold: #c58b22;
  --danger: #c24b43;
  --paper: #ffffff;
  --shadow: 0 18px 46px rgba(23, 33, 43, 0.08);
  --shadow-soft: 0 8px 24px rgba(23, 33, 43, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% -8%, rgba(23, 107, 135, 0.14), transparent 30%),
    linear-gradient(180deg, #f9fbfc 0, #f4f7f9 360px, #eef3f6 100%);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.shell {
  width: min(1160px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 42px 0 28px;
}

.hero {
  margin-bottom: 26px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: 0;
  color: #111a23;
}

.sub {
  max-width: 820px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  gap: 18px;
  align-items: start;
}

.workspace.single {
  display: block;
  max-width: 880px;
  margin: 0 auto;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.offer-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: -2px 0 18px;
  overflow: hidden;
}

.offer-strip div {
  padding: 20px;
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.offer-strip div:last-child {
  border-right: 0;
}

.offer-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 9px;
  padding: 0 8px;
  border: 1px solid #bed8ce;
  border-radius: 999px;
  background: #eef7fa;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.offer-strip strong {
  display: block;
  color: #142433;
  font-size: 16px;
  line-height: 1.35;
}

.offer-strip p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.sales-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  margin-bottom: 18px;
  overflow: hidden;
}

.sample-card,
.deliver-card {
  padding: 22px;
}

.sample-card {
  background:
    linear-gradient(135deg, rgba(15, 63, 85, 0.98), rgba(21, 33, 45, 0.98));
  color: white;
}

.sample-card .eyebrow,
.sample-card h2 {
  color: white;
}

.sample-card h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.sample-card p:not(.eyebrow) {
  margin: 12px 0 18px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 600;
}

.sample-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: #f8d97a;
  color: #18212a;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.deliver-card {
  background: #f8fbfd;
}

.deliver-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.deliver-card li {
  min-height: 86px;
  padding: 14px;
  border: 1px solid #dfe7ee;
  border-radius: 10px;
  background: white;
  box-shadow: var(--shadow-soft);
}

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

.deliver-card strong {
  margin-bottom: 5px;
  color: #152433;
  font-size: 15px;
}

.deliver-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

form {
  padding: 26px;
}

.form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.form-section-title {
  margin: 22px 0 12px;
  padding-left: 11px;
  border-left: 3px solid var(--brand);
  color: #152433;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.form-section-title:first-of-type {
  margin-top: 0;
}

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

.section-row .form-section-title {
  margin: 0;
}

.form-head h2,
.form-head p,
.report-head p {
  margin: 0;
}

.form-head p,
.report-head p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.form-head span {
  flex: 0 0 auto;
  border: 1px solid #c9dee7;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--brand-dark);
  background: #eef7fa;
  font-size: 12px;
  font-weight: 800;
}

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

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: #243442;
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d3dde6;
  border-radius: 10px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  background: #fbfdff;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(23, 107, 135, 0.72);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(23, 107, 135, 0.1);
}

textarea {
  min-height: 72px;
  resize: vertical;
}

.large-textarea {
  min-height: 132px;
}

.field-help {
  margin: -4px 0 14px;
  padding: 11px 13px;
  border: 1px solid #d9e8ef;
  border-radius: 10px;
  background: #f4fafc;
  color: #566879;
  font-size: 13px;
  font-weight: 700;
}

button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #0f5873);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(23, 107, 135, 0.22);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(23, 107, 135, 0.26);
}

button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.secondary-button {
  width: auto;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #c8dce5;
  border-radius: 9px;
  background: #ffffff;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}

.secondary-button:hover {
  background: #eef7fa;
  box-shadow: none;
}

.preview {
  padding: 20px;
  position: sticky;
  top: 18px;
}

.preview h2 {
  margin: 0 0 14px;
}

.preview-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.preview-item span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e8f4ef;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.preview-item p {
  margin: 0;
  color: #2b3a31;
}

.preview-note {
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  background: #fff7e6;
  color: #705018;
  font-size: 14px;
  font-weight: 700;
}

.detail-value-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.detail-value-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #d7e7ee;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.78);
  color: #1c4255;
  font-size: 13px;
  font-weight: 900;
}

h2 {
  margin: 0;
  font-size: 18px;
}

.mode-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff6df;
  color: var(--warn);
  font-size: 13px;
  font-weight: 700;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.utility-button {
  width: auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d3dde6;
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  box-shadow: none;
}

.utility-button:hover {
  background: #eef7fa;
  box-shadow: none;
}

.result-view {
  display: grid;
  gap: 18px;
}

.result-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 22px 24px;
  border: 1px solid rgba(219, 227, 234, 0.88);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.result-top h1 {
  font-size: clamp(28px, 4vw, 44px);
}

body[data-report-type="detail"] .result-top {
  align-items: center;
}

body[data-report-type="detail"] .result-top h1 {
  font-size: clamp(24px, 3vw, 34px);
}

body[data-report-type="detail"] .result-top .sub {
  margin-bottom: 0;
}

.back-button {
  width: auto;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #d3dde6;
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-dark);
  font-weight: 900;
  text-decoration: none;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.report-section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow-soft);
  grid-column: span 6;
}

.report-section.hero-card,
.report-section.wide {
  grid-column: 1 / -1;
}

.report-section.path-card {
  grid-column: span 4;
}

.report-section h2 {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 18px;
}

.report-section h3 {
  margin: 14px 0 8px;
  color: #26372d;
  font-size: 16px;
}

.report-section ul {
  margin: 0;
  padding-left: 20px;
}

.report-section li {
  margin: 8px 0;
}

.report-section strong {
  color: #0f3329;
}

.hero-card {
  background: linear-gradient(135deg, var(--brand-dark), #17212b);
  color: white;
}

.hero-card h2,
.hero-card strong {
  color: white;
}

.hero-card li {
  font-size: 16px;
}

.pay-card {
  border-color: #c8dce5;
  background: #f2f9fc;
}

.check-card {
  background: #fff9ec;
  border-color: #eedaa8;
}

.report-page {
  max-width: 1120px;
}

.markdown-report {
  padding: 0;
  overflow: hidden;
  border-color: rgba(219, 227, 234, 0.92);
  background: var(--paper);
}

.md-title {
  padding: 30px 32px;
  background:
    linear-gradient(135deg, rgba(15, 63, 85, 0.98), rgba(23, 33, 43, 0.98));
  color: white;
}

.md-title h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
}

.md-title p {
  margin: 8px 0 0;
  color: #cfe5ed;
  font-weight: 700;
}

.md-section {
  padding: 26px 32px;
  border-top: 1px solid var(--line);
  background: white;
}

.md-section h2 {
  margin: 0 0 14px;
  color: var(--brand-dark);
  font-size: 22px;
}

.md-section h3 {
  margin: 18px 0 10px;
  color: #27392f;
  font-size: 17px;
}

.md-section p {
  margin: 10px 0;
  color: #263747;
}

.md-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.md-section li {
  position: relative;
  padding: 13px 14px 13px 36px;
  border: 1px solid #dfe8ee;
  border-radius: 10px;
  background: #fbfdff;
}

.md-section li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 20px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.md-section strong {
  color: #0f5c49;
}

.md-table-wrap {
  overflow-x: auto;
  margin: 12px 0;
  border: 1px solid #d9e4dd;
  border-radius: 8px;
}

.md-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: white;
}

.md-table th,
.md-table td {
  padding: 12px 13px;
  border-bottom: 1px solid #e6eee9;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.md-table th {
  background: #eef8f3;
  color: #123b2f;
  font-weight: 900;
}

.md-table tr:last-child td {
  border-bottom: 0;
}

.md-hero {
  background: #f1faf6;
}

.md-hero li {
  border-color: #bcdccd;
  background: white;
  font-size: 16px;
}

.md-evidence {
  border-top-color: #c8ddec;
  background: #f7fbff;
}

.md-evidence h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.md-evidence h2::before {
  content: "DATA";
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #b9d4e8;
  border-radius: 6px;
  background: #e8f3fb;
  color: #1f5f86;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.md-evidence .md-table-wrap {
  border-color: #c7dceb;
  box-shadow: 0 14px 26px rgba(31, 95, 134, 0.08);
}

.md-evidence .md-table th {
  background: #eaf4fb;
  color: #163d59;
}

.md-evidence .md-table td {
  background: #ffffff;
  color: #20313d;
}

.md-evidence li {
  border-color: #c7dceb;
  background: linear-gradient(180deg, #ffffff, #f5fbff);
  box-shadow: 0 10px 18px rgba(31, 95, 134, 0.06);
}

.md-evidence li::before {
  background: #2f7ead;
}

.md-evidence strong {
  color: #165f8c;
}

.md-upgrade {
  background: #f5fbf8;
}

.md-check {
  background: #fff9ed;
}

.upgrade {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  align-items: stretch;
  gap: 18px;
  padding: 22px;
  margin-top: 16px;
  border-color: #a9d2c5;
  background:
    linear-gradient(135deg, rgba(242, 251, 247, 0.98), rgba(255, 253, 248, 0.98)),
    repeating-linear-gradient(90deg, rgba(20, 108, 90, 0.06) 0 1px, transparent 1px 70px);
}

.upgrade h2,
.upgrade p {
  margin: 0;
}

.upgrade h2 {
  color: #10281f;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
}

.upgrade p {
  margin-top: 6px;
  color: var(--muted);
}

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

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.price-row strong {
  color: #10281f;
  font-size: 24px;
  line-height: 1.1;
}

.price-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #e1d1a7;
  border-radius: 999px;
  background: #fff8e5;
  color: #7d5a12;
  font-size: 13px;
  font-weight: 900;
}

.upgrade-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 0 0 8px;
  padding: 0 9px;
  border: 1px solid #b8d8ce;
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.upgrade-deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.upgrade-deliverables span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #d7e5df;
  border-radius: 6px;
  background: #ffffff;
  color: #20352c;
  font-size: 13px;
  font-weight: 800;
}

.purchase-steps {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.purchase-steps li {
  position: relative;
  padding-left: 34px;
  color: #26372d;
  font-size: 14px;
  font-weight: 800;
}

.purchase-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #17352d;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.service-boundary {
  max-width: 760px;
  padding-top: 12px;
  border-top: 1px solid #d9e5df;
  font-size: 13px;
  font-weight: 700;
}

.unlock-cta {
  width: auto;
  min-width: 170px;
  padding: 0 20px;
  height: 52px;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

.unlock-panel {
  width: 100%;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  padding: 16px;
  border: 1px solid #cfe2da;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.unlock-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.buy-button,
.contact-button {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
}

.buy-button {
  background: var(--brand);
  color: white;
}

.contact-button {
  border: 1px solid #b8d8ce;
  background: white;
  color: var(--brand-dark);
}

.unlock-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
}

.unlock-form input {
  min-height: 44px;
}

.unlock-form button {
  width: auto;
  min-width: 138px;
  min-height: 44px;
  padding: 0 18px;
}

.buy-link {
  grid-column: 1 / -1;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
  text-decoration: none;
}

.unlock-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

body[data-report-type="detail"] .upgrade {
  display: none;
}

.decision-hero {
  position: relative;
  overflow: hidden;
  padding: 38px 40px 36px;
  border-radius: 12px 12px 0 0;
  background:
    linear-gradient(135deg, rgba(15, 63, 85, 0.98), rgba(23, 33, 43, 0.98) 66%);
  color: white;
}

.decision-hero::after {
  content: none;
}

.decision-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.decision-kicker span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #d6ebf2;
  font-size: 13px;
  font-weight: 800;
}

.decision-hero h1 {
  position: relative;
  margin: 0;
  max-width: 780px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.decision-conclusion {
  position: relative;
  max-width: 800px;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #f7fbff;
  font-size: 19px;
  font-weight: 900;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 22px;
  background: #f8fbfd;
}

.metric-card {
  position: relative;
  min-height: 126px;
  padding: 20px 20px 18px;
  border: 1px solid #dfe8ee;
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.metric-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--brand);
}

.metric-card small {
  display: inline-block;
  margin-bottom: 18px;
  color: #8c9baa;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin-top: 7px;
  color: #142433;
  font-size: 26px;
  line-height: 1.16;
}

.tone-good {
  border-color: #bbdcd4;
  background: #f4fbf9;
}

.tone-warn {
  border-color: #ead09b;
  background: #fff8ea;
}

.tone-danger {
  border-color: #ecb7b1;
  background: #fff5f4;
}

.tone-neutral {
  border-color: #dce7e1;
  background: #fbfdfc;
}

.decision-section {
  padding: 30px 34px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.decision-section h2 {
  margin: 0;
  color: #142433;
  font-size: 24px;
  line-height: 1.2;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dfe8ee;
}

.section-title span {
  color: #8f6a15;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.clean-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding: 15px 17px 15px 19px;
  border: 1px solid #dfe8ee;
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--gold);
}

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

.candidate-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid #dfe8ee;
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.candidate-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--brand);
}

.candidate-card.risk-high::before {
  background: var(--danger);
}

.candidate-card.risk-mid::before {
  background: var(--gold);
}

.candidate-card.risk-low::before {
  background: var(--brand);
}

.candidate-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 12px;
  margin-bottom: 16px;
  padding-top: 4px;
}

.candidate-head b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #dfe8ee;
  border-radius: 10px;
  background: #f4f8fb;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 900;
}

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

.candidate-head h3 {
  font-size: 18px;
  line-height: 1.3;
}

.candidate-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.candidate-head span {
  height: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: #eef7fa;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.candidate-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.candidate-card dt {
  color: #8f6a15;
  font-size: 13px;
  font-weight: 900;
}

.candidate-card dd {
  margin: -6px 0 6px;
  color: #2d3c4a;
}

.strategy-grid,
.decision-split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

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

.final-order-section {
  background: #f7fbff;
}

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

.final-order-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid #d7e2ea;
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.final-order-card.risk-high {
  border-color: #e7b2a9;
}

.final-order-card.risk-mid {
  border-color: #e5cf94;
}

.final-order-card.risk-low {
  border-color: #b9d9cb;
}

.final-order-rank {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-dark);
  color: white;
  font-size: 15px;
  font-weight: 900;
}

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

.final-order-head h3,
.final-order-main p {
  margin: 0;
}

.final-order-head h3 {
  color: #142433;
  font-size: 18px;
  line-height: 1.3;
}

.final-order-head span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  background: #eaf4fb;
  color: #1f5f86;
  font-size: 13px;
  font-weight: 900;
}

.final-order-main p {
  color: #2d3c4a;
}

.final-order-main dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid #edf1ef;
}

.final-order-main dt {
  color: #8f6a15;
  font-size: 13px;
  font-weight: 900;
}

.final-order-main dd {
  margin: 0;
  color: #243442;
}

.strategy-card {
  padding: 20px;
  border: 1px solid #dfe8ee;
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.strategy-card h3 {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 0 14px;
  border-radius: 50%;
  background: var(--brand-dark);
  color: white;
  font-size: 20px;
}

.danger-panel {
  background: #fff7f4;
}

.warn-panel {
  background: #fff9ee;
}

.check-panel {
  background: #f7fbf6;
}

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

.check-intro {
  margin: -4px 0 16px;
  color: #52645a;
  font-weight: 700;
}

.check-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid #e0e7df;
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 18px rgba(31, 28, 20, 0.04);
}

.check-item span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f2ece0;
  color: #82621d;
  font-size: 13px;
  font-weight: 900;
}

.check-item p {
  margin: 0;
  color: #1f2b25;
  font-weight: 800;
}

.disclaimer {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.input-error {
  border-color: #c43d3d;
  background: #fff6f6;
}

.detail-form {
  max-width: 880px;
  margin: 0 auto;
  padding: 22px;
}

.detail-form textarea {
  min-height: 116px;
}

footer {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

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

  .preview {
    position: static;
  }

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

  .offer-strip {
    grid-template-columns: 1fr;
  }

  .offer-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .offer-strip div:last-child {
    border-bottom: 0;
  }

  .sales-panel,
  .deliver-card ul {
    grid-template-columns: 1fr;
  }

  .section-row {
    align-items: stretch;
    flex-direction: column;
  }

  .secondary-button {
    width: 100%;
  }

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

  .report-actions {
    justify-content: flex-start;
  }

  .report-section,
  .report-section.path-card {
    grid-column: 1 / -1;
  }

  .upgrade {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .metric-grid,
  .candidate-grid,
  .strategy-grid,
  .decision-split,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .unlock-cta,
  .unlock-panel,
  .unlock-form,
  .unlock-form button {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
  }

  .unlock-options,
  .unlock-form {
    grid-template-columns: 1fr;
  }

  .candidate-head {
    grid-template-columns: auto 1fr;
  }

  .candidate-head span {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .final-order-card,
  .final-order-head,
  .final-order-main dl {
    grid-template-columns: 1fr;
  }

  .final-order-rank {
    width: 38px;
    height: 38px;
  }

  .final-order-head span {
    width: fit-content;
  }

  .decision-hero {
    padding: 28px 22px;
  }

  .decision-section {
    padding: 24px 20px;
  }

  .metric-grid {
    padding: 16px;
  }

  .buy-link {
    text-align: left;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm;
  }

  body {
    background: white;
  }

  body.app-report {
    background: #fff !important;
    color: #10244b;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .shell,
  .app-report .blue-shell.report-page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .site-header,
  .report-hero,
  .data-source-panel,
  .result-top,
  .upgrade,
  .unlock-panel,
  .privacy-footer,
  .back-button,
  .report-actions,
  .report-doc-tools {
    display: none !important;
  }

  .app-report .markdown-report.panel {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .final-report {
    gap: 7px !important;
    font-size: 10px !important;
    zoom: .72;
  }

  .report-doc-header {
    grid-template-columns: minmax(0, 1fr) 235px !important;
    gap: 12px !important;
    padding: 0 0 6px !important;
    border-bottom: 1px solid #dbe6f6;
  }

  .report-doc-header h1 {
    font-size: 24px !important;
    line-height: 1.15 !important;
  }

  .report-doc-header p {
    margin-top: 5px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
  }

  .report-doc-header dl {
    min-width: 0 !important;
    gap: 4px !important;
    margin-top: 0 !important;
    font-size: 10px !important;
  }

  .report-doc-header dl div {
    grid-template-columns: 74px minmax(0, 1fr) !important;
    gap: 7px !important;
  }

  .report-doc-header dt {
    grid-template-columns: 14px 1fr !important;
    gap: 4px !important;
  }

  .report-doc-header dd {
    white-space: nowrap !important;
  }

  .report-mini-icon {
    width: 16px !important;
    height: 16px !important;
    border-radius: 5px !important;
    background: #fff !important;
    border: 1px solid #b8c9e8 !important;
    color: #1769ff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .report-mini-icon svg {
    width: 11px !important;
    height: 11px !important;
    display: block !important;
    fill: none !important;
    stroke: #1769ff !important;
    stroke-width: 2 !important;
  }

  .visual-page,
  .teacher-contact-card,
  .final-section,
  .final-reminder-section,
  .visual-card,
  .recommend-column,
  .recommend-school-list article,
  .focus-card {
    box-shadow: none !important;
  }

  .visual-page,
  .teacher-contact-card,
  .final-section,
  .final-reminder-section {
    gap: 8px !important;
    padding: 9px !important;
    border-radius: 8px !important;
    break-inside: avoid-page;
    page-break-inside: avoid;
  }

  .teacher-contact-card {
    grid-template-columns: minmax(0, 1fr) 98px !important;
    gap: 8px !important;
    background: #f7fbff !important;
    border-color: #c9dcff !important;
  }

  .teacher-contact-copy {
    padding-left: 3px !important;
  }

  .teacher-contact-copy span {
    min-height: 18px !important;
    padding: 0 7px !important;
    font-size: 8px !important;
  }

  .teacher-contact-copy h2 {
    margin: 5px 0 3px !important;
    font-size: 14px !important;
  }

  .teacher-contact-copy p {
    font-size: 9px !important;
    line-height: 1.45 !important;
  }

  .teacher-contact-qr {
    gap: 4px !important;
    padding: 5px !important;
    border-radius: 8px !important;
  }

  .teacher-contact-qr img {
    width: 80px !important;
    height: 80px !important;
  }

  .teacher-contact-qr small {
    font-size: 8px !important;
  }

  .visual-card {
    padding: 9px !important;
    border-radius: 8px !important;
  }

  .visual-page-bg,
  .paper-page-footer {
    display: none !important;
  }

  .visual-section-head,
  .final-section-head {
    margin-bottom: 7px !important;
    padding-bottom: 6px !important;
  }

  .visual-section-head h2,
  .final-section-head h2 {
    gap: 6px !important;
    font-size: 15px !important;
  }

  .visual-section-head h2 span,
  .final-section-head h2 span {
    width: 3px !important;
    height: 17px !important;
  }

  .visual-section-head p,
  .final-section-head p {
    font-size: 9px !important;
  }

  .visual-stat-grid {
    gap: 7px !important;
  }

  .visual-stat {
    min-height: 48px !important;
    gap: 7px !important;
    padding: 8px !important;
    border-radius: 8px !important;
  }

  .visual-stat > .report-mini-icon {
    width: 30px !important;
    height: 30px !important;
    background: #edf4ff !important;
    border: 1px solid #b8c9e8 !important;
    color: #1769ff !important;
    box-shadow: none !important;
  }

  .visual-stat > .report-mini-icon svg {
    width: 17px !important;
    height: 17px !important;
  }

  .visual-stat small {
    font-size: 9px !important;
  }

  .visual-stat strong {
    font-size: 22px !important;
  }

  .visual-stat em {
    font-size: 10px !important;
  }

  .profile-fact-grid {
    gap: 0 16px !important;
  }

  .profile-fact-grid div {
    grid-template-columns: 18px 58px minmax(0, 1fr) !important;
    min-height: 32px !important;
    padding: 4px 0 !important;
    gap: 7px !important;
  }

  .profile-fact-grid small,
  .profile-fact-grid strong,
  .portrait-copy,
  .visual-strategy-list li,
  .recommend-school-list p,
  .focus-narrative,
  .focus-explain-grid p,
  .reminder-strip span,
  .paper-check-strip span {
    font-size: 9px !important;
    line-height: 1.35 !important;
  }

  .portrait-tags {
    gap: 5px !important;
    margin-bottom: 6px !important;
  }

  .portrait-tags > span,
  .report-tag {
    padding: 3px 7px !important;
    font-size: 8px !important;
  }

  .visual-page .direction-list,
  .visual-strategy-list,
  .recommend-school-list,
  .focus-explain-grid,
  .focus-major-chips {
    gap: 6px !important;
  }

  .visual-page .direction-list div {
    grid-template-columns: 34px minmax(0, 1fr) 68px !important;
    min-height: 40px !important;
    gap: 7px !important;
    padding: 6px 8px !important;
  }

  .visual-page .direction-list b {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
  }

  .visual-page .direction-list strong {
    font-size: 10px !important;
  }

  .visual-page .direction-list p {
    margin-top: 2px !important;
    font-size: 8px !important;
    line-height: 1.35 !important;
  }

  .visual-page .direction-list span {
    min-width: 0 !important;
    padding: 3px 6px !important;
    font-size: 8px !important;
  }

  .recommend-columns {
    gap: 7px !important;
  }

  .recommend-column {
    padding: 7px !important;
    border-radius: 8px !important;
  }

  .recommend-column h3 {
    gap: 5px !important;
    margin-bottom: 7px !important;
    font-size: 12px !important;
  }

  .recommend-column h3 span {
    width: 24px !important;
    height: 24px !important;
    border-radius: 7px !important;
    font-size: 9px !important;
  }

  .recommend-school-list article {
    padding: 7px !important;
    border-radius: 8px !important;
  }

  .recommend-school-head {
    grid-template-columns: 26px 1fr !important;
    gap: 6px !important;
    margin-bottom: 5px !important;
    padding-bottom: 5px !important;
  }

  .recommend-school-head b {
    width: 24px !important;
    height: 24px !important;
    border-radius: 7px !important;
    font-size: 10px !important;
  }

  .recommend-school-head strong {
    font-size: 10px !important;
  }

  .recommend-school-head small {
    font-size: 8px !important;
  }

  .focus-card {
    padding: 7px !important;
    border-radius: 8px !important;
    break-inside: avoid-page;
    page-break-inside: avoid;
  }

  .focus-head h3 {
    font-size: 12px !important;
  }

  .focus-head p {
    font-size: 8px !important;
  }

  .focus-head > strong {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
  }

  .focus-explain-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .focus-explain-grid section {
    padding: 5px !important;
  }

  .focus-explain-grid h4 {
    font-size: 9px !important;
    margin-bottom: 3px !important;
  }

  .focus-major-chips {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  .focus-major-chips span {
    padding: 5px !important;
    min-height: auto !important;
  }

  .focus-major-chips b,
  .focus-major-chips small {
    font-size: 8px !important;
  }

  .reminder-strip,
  .paper-check-strip {
    gap: 6px !important;
  }

  .reminder-strip div {
    min-height: 46px !important;
    padding: 7px !important;
    border-radius: 8px !important;
  }

  .reminder-strip strong {
    font-size: 10px !important;
  }

  .paper-check-strip span {
    min-height: 30px !important;
    padding: 6px !important;
    border-radius: 8px !important;
  }

  .paper-check-strip b {
    width: 20px !important;
    height: 20px !important;
    font-size: 9px !important;
  }

  .panel,
  .markdown-report,
  .decision-section,
  .candidate-card,
  .metric-card,
  .strategy-card {
    box-shadow: none !important;
  }

  .markdown-report {
    border: 0;
  }
}

/* 2026-06-04 UI upgrade: blue-white professional report system */
:root {
  --blue-bg: #f3f8ff;
  --blue-soft: #eaf3ff;
  --blue-line: #d9e8ff;
  --blue: #1769ff;
  --blue-strong: #0759e8;
  --navy: #071b45;
  --text-main: #122247;
  --text-soft: #60708f;
  --card-shadow: 0 14px 38px rgba(31, 88, 166, 0.10);
  --card-shadow-soft: 0 8px 24px rgba(31, 88, 166, 0.07);
}

body.app-home,
body.app-report {
  background:
    radial-gradient(circle at 88% 110px, rgba(37, 120, 255, 0.15), transparent 30%),
    linear-gradient(180deg, #eef6ff 0, #f7fbff 310px, #f6f9fd 100%);
  color: var(--text-main);
  overflow-x: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 0 38px;
  border-bottom: 1px solid rgba(207, 223, 246, 0.82);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 26px rgba(36, 84, 143, 0.06);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--navy);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1677ff, #21a6ff);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(22, 119, 255, 0.22);
}

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

.brand strong {
  font-size: 18px;
  line-height: 1.25;
}

.brand em {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  white-space: nowrap;
}

.top-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 72px;
  color: #1b2d52;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.top-nav a.active,
.top-nav a:hover {
  color: var(--blue);
}

.top-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  color: #284067;
  font-size: 14px;
  font-weight: 800;
}

.header-actions a {
  min-height: 38px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #9bc2ff;
  border-radius: 8px;
  color: var(--blue);
  text-decoration: none;
  background: #fff;
}

.blue-shell {
  width: min(1440px, calc(100vw - 60px));
  margin: 0 auto;
  padding: 0 0 28px;
}

.hero-blue {
  min-height: 210px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.54), transparent),
    radial-gradient(circle at 78% 55%, rgba(49, 125, 255, 0.18), transparent 28%);
}

.hero-blue h1 {
  max-width: none;
  font-size: clamp(36px, 4vw, 54px);
  color: var(--navy);
}

.hero-blue h1::first-letter {
  letter-spacing: 0;
}

.hero-blue p:last-child {
  max-width: 820px;
  margin: 16px auto 0;
  color: var(--text-soft);
  font-size: 18px;
  font-weight: 700;
}

.advisor-layout {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: -4px;
}

.advisor-layout .panel,
.app-report .panel,
.advisor-form {
  border: 1px solid rgba(206, 224, 250, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--card-shadow);
}

.step-rail {
  position: sticky;
  top: 96px;
  padding: 28px 20px;
}

.step-rail h2 {
  margin: 0 0 24px;
  color: var(--navy);
  font-size: 18px;
}

.step-rail ol {
  position: relative;
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-rail li {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 10px;
  border-radius: 12px;
  color: #657796;
}

.step-rail li.active {
  background: #f0f6ff;
  color: var(--blue);
  box-shadow: inset 0 0 0 1px #d7e8ff;
}

.step-rail li span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #edf3fb;
  border: 1px solid #cbd8e8;
  color: #7b8da8;
  font-size: 20px;
  font-weight: 900;
}

.step-rail li.active span {
  background: linear-gradient(135deg, #1d73ff, #5aa2ff);
  border-color: transparent;
  color: #fff;
}

.step-rail li strong,
.step-rail li em {
  display: block;
}

.step-rail li strong {
  color: var(--text-main);
  font-size: 16px;
}

.step-rail li em {
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
}

.trust-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid #dfebfa;
  border-radius: 13px;
  background: #fbfdff;
}

.trust-list div {
  display: grid;
  gap: 2px;
  padding-left: 14px;
  border-left: 3px solid #2f7dff;
}

.trust-list b {
  color: var(--text-main);
  font-size: 14px;
}

.trust-list span,
.helped-count {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.helped-count {
  margin: 22px 4px 0;
}

.helped-count strong {
  color: var(--blue);
}

.advisor-form {
  padding: 24px 28px 24px;
}

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

.form-title-row h2 {
  margin: 0;
  color: var(--navy);
  font-size: 25px;
}

.form-title-row .eyebrow {
  color: var(--blue);
  font-size: 21px;
  text-transform: none;
}

.form-title-row > span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: #f1f7ff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.advisor-form .form-section-title {
  margin: 17px 0 12px;
  border-left-color: var(--blue);
  color: var(--navy);
  font-size: 16px;
}

.advisor-form .grid {
  gap: 14px;
}

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

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

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

.advisor-form label {
  color: #1d3158;
  font-size: 14px;
  font-weight: 900;
}

.advisor-form input,
.advisor-form select,
.advisor-form textarea {
  min-height: 48px;
  border: 1px solid #ccdced;
  border-radius: 8px;
  background: #fff;
  color: var(--text-main);
  font-size: 15px;
  box-shadow: 0 1px 0 rgba(18, 34, 71, 0.02);
}

.advisor-form textarea {
  min-height: 88px;
}

.advisor-form .large-textarea {
  min-height: 140px;
}

.advisor-form input:focus,
.advisor-form select:focus,
.advisor-form textarea:focus {
  border-color: #5b9dff;
  box-shadow: 0 0 0 4px rgba(23, 105, 255, 0.10);
}

.section-row {
  align-items: center;
}

.section-row .field-help {
  flex: 1;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f3f8ff;
  color: #53698a;
  font-size: 13px;
  font-weight: 700;
}

.submit-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
}

.submit-row button,
.ghost-button {
  width: min(280px, 100%);
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
}

.submit-row button,
.unlock-cta,
.buy-button {
  background: linear-gradient(135deg, #0d65ff, #1b7dff);
  box-shadow: 0 14px 26px rgba(23, 105, 255, 0.24);
}

.ghost-button {
  border: 1px solid #c8dcfb;
  background: #fff;
  color: var(--blue);
}

.privacy-footer {
  margin: 24px 0 0;
  color: #70819d;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.report-page {
  width: min(1400px, calc(100vw - 60px));
}

.report-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  min-height: 150px;
  padding: 24px 8px 18px;
}

.breadcrumb {
  margin: 0 0 16px;
  color: #526b91;
  font-size: 13px;
  font-weight: 800;
}

.report-title-line {
  display: flex;
  align-items: center;
  gap: 18px;
}

.report-badge {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 15px;
  background: linear-gradient(135deg, #1677ff, #59a8ff);
  color: white;
  font-size: 26px;
  box-shadow: 0 15px 24px rgba(23, 105, 255, 0.22);
}

.report-hero h1 {
  color: var(--navy);
  font-size: clamp(30px, 4vw, 42px);
}

.report-hero .sub {
  margin: 7px 0 0;
  max-width: 760px;
  font-size: 15px;
  font-weight: 700;
}

.app-report .report-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.mode-pill,
.utility-button {
  border-radius: 8px;
}

.student-strip {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 1fr);
  gap: 0;
  margin-bottom: 16px;
  padding: 18px 22px;
}

.student-strip div {
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 0 20px;
  border-right: 1px solid #e1ebf7;
}

.student-strip div:first-child {
  padding-left: 0;
}

.student-strip div:last-child {
  border-right: 0;
}

.student-strip b {
  color: var(--blue);
  font-size: 16px;
}

.student-strip span {
  color: var(--text-main);
  font-size: 14px;
  font-weight: 800;
}

.app-report .markdown-report {
  border-color: rgba(207, 224, 250, 0.95);
  box-shadow: var(--card-shadow);
}

.md-title,
.decision-hero {
  background:
    linear-gradient(135deg, #f8fbff 0, #edf6ff 100%);
  border-bottom: 1px solid #dceaff;
}

.md-title h1,
.decision-hero h1 {
  color: var(--navy);
}

.md-section {
  border-top-color: #edf3fb;
}

.md-section h2,
.section-title h2 {
  color: var(--navy);
}

.md-section h2::before,
.section-title span::before {
  background: var(--blue);
}

.md-section li,
.candidate-card,
.strategy-card,
.check-item,
.metric-card {
  border-color: #dce8f7;
  border-radius: 10px;
  box-shadow: var(--card-shadow-soft);
}

.metric-grid {
  background: #f7fbff;
}

.candidate-card {
  background: #fff;
}

.upgrade {
  margin-top: 18px;
  border-color: #cfe1ff;
  background: linear-gradient(135deg, #ffffff 0, #f3f8ff 100%);
}

.upgrade h2 {
  color: var(--navy);
}

.upgrade-label,
.upgrade-deliverables span {
  border-color: #cfe1ff;
  background: #eff6ff;
  color: var(--blue);
}

.unlock-panel {
  border-color: #cfe1ff;
  background: #fff;
}

.contact-button {
  border-color: #c8dcfb;
  color: var(--blue);
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 22px;
  }

  .top-nav,
  .header-actions {
    justify-content: flex-start;
  }

  .top-nav a {
    min-height: 36px;
  }

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

  .step-rail {
    position: static;
  }

  .step-rail ol {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .step-rail li {
    grid-template-columns: 1fr;
  }

  .four-grid,
  .three-grid,
  .two-wide,
  .student-strip {
    grid-template-columns: 1fr 1fr;
  }
}

/* 2026-06-05b: simplify header into a focused product brand bar */
.site-header {
  grid-template-columns: 1fr auto;
  min-height: 56px;
  padding: 0 32px;
}

.header-spacer {
  display: block;
  width: 1px;
  height: 1px;
}

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

.brand-mark::before,
.brand-mark::after {
  top: 10px;
  width: 10px;
  height: 15px;
}

.brand-mark::before {
  left: 8px;
}

.brand-mark::after {
  right: 8px;
}

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

.brand em {
  font-size: 11px;
}

.top-nav,
.header-actions {
  display: none;
}

/* 2026-06-05a density tune: keep the primary CTA inside the first desktop viewport */
.hero-blue {
  min-height: 132px;
  padding-top: 12px;
  padding-bottom: 6px;
}

.hero-blue h1 {
  font-size: 40px;
}

.hero-blue p:last-child {
  margin-top: 8px;
}

.advisor-form {
  padding-top: 18px;
}

.form-title-row {
  margin-bottom: 10px;
}

.inner-form-card {
  padding: 14px 22px 16px;
}

.advisor-form .form-section-title {
  margin: 11px 0 9px;
}

.advisor-form .grid {
  gap: 11px 24px;
}

.advisor-form label {
  margin-bottom: 6px;
}

.advisor-form label > input,
.advisor-form label > select,
.advisor-form label > textarea {
  margin-top: 6px;
}

.advisor-form input,
.advisor-form textarea {
  min-height: 40px;
}

.advisor-form input {
  height: 40px;
}

.advisor-form textarea {
  min-height: 44px;
}

.segmented,
.segmented span,
.pill-options span {
  min-height: 36px;
}

.pill-options span small {
  font-size: 11px;
}

.submit-row.primary-submit-row {
  margin-top: 10px;
}

.primary-submit-row button,
.ghost-button {
  min-height: 46px;
}

@media (max-width: 720px) {
  .blue-shell,
  .report-page {
    width: min(100% - 28px, 100%);
    padding-top: 22px;
  }

  .brand em,
  .header-actions span {
    display: none;
  }

  .top-nav {
    gap: 18px;
    overflow-x: auto;
  }

  .hero-blue {
    min-height: 150px;
    text-align: left;
    place-items: start;
  }

  .hero-blue h1 {
    font-size: 34px;
  }

  .step-rail ol,
  .four-grid,
  .three-grid,
  .two-wide,
  .student-strip,
  .report-hero {
    grid-template-columns: 1fr;
  }

  .student-strip div {
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid #e1ebf7;
  }

  .student-strip div:last-child {
    border-bottom: 0;
  }

  .submit-row {
    flex-direction: column;
  }

  .submit-row button,
  .ghost-button {
    width: 100%;
  }
}

/* Final report direction cards override older shared direction-list rules. */
.visual-page .direction-list {
  display: grid;
  gap: 10px;
}

.visual-page .direction-list div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 13px 14px;
  border: 1px solid #dfe7f4;
  border-radius: 12px;
  background: #fbfdff;
}

.visual-page .direction-list b {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 38px;
  border-radius: 12px;
  background: #edf4ff;
  color: #1769ff;
  font-size: 18px;
}

.visual-page .direction-list section {
  min-width: 0;
}

.visual-page .direction-list strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #071b3c;
  font-size: 17px;
}

.visual-page .direction-list .report-mini-icon {
  min-width: 30px;
  width: 30px;
  height: 30px;
  grid-row: auto;
  padding: 0;
  border-radius: 10px;
  background: #edf4ff;
  color: #1769ff;
}

.visual-page .direction-list p {
  margin: 5px 0 0;
  color: #50617c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.visual-page .direction-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  width: auto;
  height: auto;
  grid-row: auto;
  padding: 6px 12px;
  border-radius: 10px;
  background: #eafaf1;
  color: #16a05d;
  font-weight: 900;
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 640px) {
  .visual-page .direction-list div {
    grid-template-columns: 1fr;
  }

  .visual-page .direction-list span {
    width: fit-content;
  }
}

/* Final report paper width override. Keep the designed report wide on desktop. */
.app-report .blue-shell.report-page {
  width: min(1280px, calc(100vw - 24px)) !important;
  max-width: none !important;
}

.app-report .markdown-report.panel,
.app-report .final-report,
.app-report .report-doc-header,
.app-report .visual-page,
.app-report .final-section,
.app-report .final-summary {
  width: 100%;
}

@media (max-width: 760px) {
  .app-report .blue-shell.report-page {
    width: 100% !important;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Single paid-report flow */
.activation-start-card {
  display: grid;
  grid-template-columns: 1.2fr minmax(260px, .8fr);
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid #cfe0fb;
  border-radius: 18px;
  background: linear-gradient(135deg, #f7fbff, #eef6ff);
}

.activation-start-card span {
  display: inline-flex;
  margin-bottom: 6px;
  color: #1769ff;
  font-size: 13px;
  font-weight: 900;
}

.activation-start-card h2 {
  margin: 0 0 6px;
  color: #071b3c;
  font-size: 22px;
}

.activation-start-card p {
  margin: 0;
  color: #66758f;
}

.activation-start-card input {
  width: 100%;
  height: 46px;
  border: 1px solid #bcd1f3;
  border-radius: 12px;
  padding: 0 14px;
  color: #071b3c;
  font-weight: 800;
}

.redemption-dialog[hidden] {
  display: none;
}

.redemption-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.redemption-mask {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 44, .46);
  backdrop-filter: blur(5px);
}

.redemption-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  border: 1px solid #dbe7fb;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(20, 46, 90, .26);
  padding: 28px;
}

.redemption-card h2 {
  margin: 4px 0 8px;
  color: #071b3c;
  font-size: 24px;
  letter-spacing: 0;
}

.redemption-card p {
  margin: 0 0 18px;
  color: #61708a;
  line-height: 1.7;
}

.redemption-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
  padding: 13px 14px;
  border: 1px solid #ffd8b8;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff8f1, #fff);
  color: #7a3c00;
  text-decoration: none;
}

.redemption-buy b,
.redemption-buy small,
.redemption-buy strong {
  display: block;
}

.redemption-buy b {
  color: #5d2b00;
  font-size: 14px;
}

.redemption-buy small {
  margin-top: 3px;
  color: #8d6437;
  font-size: 12px;
  line-height: 1.45;
}

.redemption-buy strong {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ff6a00;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 8px 18px rgba(255, 106, 0, .2);
}

.redemption-card label {
  display: grid;
  gap: 8px;
  color: #10264a;
  font-weight: 800;
}

.redemption-card input {
  height: 48px;
  border: 1px solid #bed1ee;
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  font-weight: 800;
  color: #071b3c;
}

.redemption-card input:focus {
  border-color: #1769ff;
  box-shadow: 0 0 0 4px rgba(23, 105, 255, .13);
  outline: none;
}

.redemption-card input.shake {
  animation: redemption-shake .28s ease;
}

.redemption-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #eef4ff;
  color: #49607e;
  font-size: 22px;
  cursor: pointer;
}

.redemption-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
  margin-top: 20px;
}

.redemption-actions .primary-button,
.redemption-actions .ghost-button {
  min-height: 46px;
  justify-content: center;
}

@keyframes redemption-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.app-report .upgrade {
  display: none;
}

.app-report {
  background:
    linear-gradient(180deg, #f7fbff 0%, #eef6ff 46%, #f7fbff 100%);
}

.app-report .report-hero,
.app-report .data-source-panel {
  display: none;
}

.app-report .blue-shell.report-page {
  width: min(1120px, calc(100vw - 44px));
  padding-top: 34px;
}

.app-report .markdown-report.panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.final-report {
  display: grid;
  gap: 20px;
}

.report-doc-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
  padding: 16px 16px 8px;
}

.report-doc-header h1 {
  margin: 0;
  color: #071833;
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: 0;
}

.report-doc-header p {
  margin: 14px 0 0;
  color: #4f5f7a;
  font-size: 22px;
  font-weight: 800;
}

.report-doc-header dl {
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
  color: #475a78;
  font-size: 15px;
  min-width: 360px;
}

.report-doc-header dl div {
  display: grid;
  grid-template-columns: 112px minmax(190px, auto);
  gap: 16px;
  align-items: center;
}

.report-doc-header dt {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: center;
  color: #64758f;
  font-weight: 900;
  white-space: nowrap;
}

.report-doc-header dd {
  margin: 0;
  color: #233854;
  font-weight: 800;
  white-space: nowrap;
}

.report-doc-tools {
  display: flex !important;
  grid-template-columns: none !important;
  justify-content: flex-end;
  margin-top: 4px;
}

.doc-pdf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 112px;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 18px;
  border: 1px solid rgba(23, 105, 255, .22);
  border-radius: 10px;
  background: #1769ff;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(23, 105, 255, .18);
  cursor: pointer;
}

.doc-pdf-button:hover {
  background: #0f5be8;
}

.teacher-contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 184px;
  gap: 22px;
  align-items: center;
  padding: 22px 26px;
  border: 1px solid #c9dcff;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(23, 105, 255, .10), rgba(32, 201, 151, .08)),
    #ffffff;
  box-shadow: 0 14px 36px rgba(23, 105, 255, .10);
  overflow: hidden;
  position: relative;
}

.teacher-contact-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #1769ff, #22c59e);
}

.teacher-contact-copy {
  min-width: 0;
  padding-left: 8px;
}

.teacher-contact-copy span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(23, 105, 255, .10);
  color: #1769ff;
  font-size: 13px;
  font-weight: 900;
}

.teacher-contact-copy h2 {
  margin: 10px 0 8px;
  color: #071833;
  font-size: 25px;
  line-height: 1.22;
  letter-spacing: 0;
}

.teacher-contact-copy p {
  max-width: 720px;
  margin: 0;
  color: #41506b;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 700;
}

.teacher-contact-qr {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid #d9e6fb;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
}

.teacher-contact-qr img {
  display: block;
  width: 148px;
  height: 148px;
  object-fit: contain;
  image-rendering: pixelated;
}

.teacher-contact-qr small {
  color: #1769ff;
  font-size: 13px;
  font-weight: 900;
}

.teacher-contact-qr.missing-qr small {
  color: #7b879a;
}

.report-mini-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: transparent;
  color: #3f6fb7;
  line-height: 1;
  flex: 0 0 auto;
}

.report-mini-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.report-mini-icon.rush {
  color: #ff4d57;
}

.report-mini-icon.stable {
  color: #16a05d;
}

.report-mini-icon.safe {
  color: #7c5ce7;
}

.report-mini-icon.total {
  color: #1769ff;
}

.final-cover,
.final-section,
.final-summary {
  border: 1px solid #dbe6f6;
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 34px rgba(19, 62, 119, .07);
}

.final-cover {
  padding: 30px;
  background: #ffffff;
  overflow: hidden;
  position: relative;
}

.final-cover::after {
  display: none;
}

.final-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #071b3c;
  font-weight: 900;
}

.final-brand span {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, #1769ff, #18b3a1);
}

.final-eyebrow {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff7df;
  color: #9a5b00;
  font-size: 13px;
  font-weight: 900;
}

.final-cover h1 {
  margin: 10px 0 8px;
  color: #071b3c;
  font-size: 36px;
  line-height: 1.24;
}

.final-cover-main p {
  max-width: 820px;
  margin: 0;
  color: #4f5f7a;
  font-size: 16px;
}

.profile-band {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid #dfe7f4;
  border-radius: 16px;
  background: #f8fbff;
}

.profile-main {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.profile-avatar {
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #1769ff;
  color: #fff;
  font-weight: 900;
}

.profile-main strong,
.profile-main span {
  display: block;
}

.profile-main strong {
  color: #071b3c;
  font-size: 18px;
}

.profile-main span {
  color: #51617c;
  font-size: 13px;
  font-weight: 700;
}

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

.profile-metric {
  min-width: 86px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e3ebf6;
  text-align: center;
}

.profile-metric small,
.profile-metric span {
  display: block;
  color: #718097;
  font-size: 12px;
  font-weight: 800;
}

.profile-metric strong {
  display: inline-block;
  margin: 2px 0;
  font-size: 28px;
  line-height: 1;
}

.profile-metric.rush strong { color: #ff4d57; }
.profile-metric.stable strong { color: #1769ff; }
.profile-metric.safe strong { color: #16a05d; }

.final-profile-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid #dfe7f4;
  border-radius: 16px;
  background: #dfe7f4;
}

.final-profile-grid div,
.final-metrics article {
  background: #fff;
  padding: 15px;
}

.final-profile-grid small,
.final-metrics span {
  display: block;
  color: #75839b;
  font-size: 12px;
}

.final-profile-grid b {
  display: block;
  margin-top: 4px;
  color: #071b3c;
  font-size: 16px;
}

.final-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.final-metrics article {
  border: 1px solid #d6e4fb;
  border-radius: 16px;
}

.final-metrics strong {
  display: block;
  margin-bottom: 4px;
  font-size: 25px;
  line-height: 1.2;
}

.final-metrics .safe strong { color: #16a05d; }
.final-metrics .danger strong { color: #ff4d57; }
.final-metrics .warn strong { color: #f59e0b; }
.final-metrics .stable strong { color: #1769ff; }

.visual-page {
  display: grid;
  gap: 22px;
  padding: 28px;
  border: 1px solid #dbe6f6;
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 4%, rgba(89, 151, 255, .16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 252, 255, .96));
  box-shadow: 0 22px 52px rgba(34, 83, 130, .12);
  overflow: hidden;
}

.report-paper-page {
  position: relative;
}

.visual-page > * {
  position: relative;
  z-index: 1;
}

.visual-page-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.visual-page-bg::before,
.visual-page-bg::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(23, 105, 255, .07);
}

.visual-page-bg::before {
  top: -48px;
  right: 0;
  width: 170px;
  height: 170px;
  transform: translateX(28%);
}

.visual-page-bg::after {
  top: 56px;
  right: 84px;
  width: 56px;
  height: 56px;
}

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

.visual-section-head.compact {
  margin-bottom: 14px;
}

.visual-section-head h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #071b3c;
  font-size: 28px;
  letter-spacing: 0;
}

.visual-section-head h2 span {
  width: 6px;
  height: 28px;
  border-radius: 999px;
  background: #1769ff;
}

.visual-section-head p {
  margin: 4px 0 0;
  color: #536987;
  font-size: 14px;
  font-weight: 700;
}

.visual-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.visual-stat {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 118px;
  padding: 22px;
  border: 1px solid #dbe8fb;
  border-radius: 16px;
  background: linear-gradient(135deg, #f6faff, #ffffff);
  box-shadow: 0 12px 28px rgba(32, 74, 120, .06);
}

.visual-stat.rush {
  border-color: #ffd8d8;
  background: linear-gradient(135deg, #fff6f5, #ffffff);
}

.visual-stat.stable {
  border-color: #caefdf;
  background: linear-gradient(135deg, #f3fff9, #ffffff);
}

.visual-stat.safe {
  border-color: #e2d8ff;
  background: linear-gradient(135deg, #faf7ff, #ffffff);
}

.visual-stat > span {
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  align-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #1769ff;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.visual-stat > .report-mini-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 14px 26px rgba(36, 105, 255, .18);
}

.visual-stat > .report-mini-icon svg {
  width: 31px;
  height: 31px;
  stroke-width: 2.4;
}

.visual-stat > .report-mini-icon.total {
  background: linear-gradient(135deg, #6aa6ff 0%, #1769ff 100%);
}

.visual-stat > .report-mini-icon.rush {
  background: linear-gradient(135deg, #ff8b82 0%, #f04d55 100%);
  box-shadow: 0 14px 26px rgba(240, 77, 85, .18);
}

.visual-stat > .report-mini-icon.stable {
  background: linear-gradient(135deg, #47d9a0 0%, #19a66f 100%);
  box-shadow: 0 14px 26px rgba(25, 166, 111, .18);
}

.visual-stat > .report-mini-icon.safe {
  background: linear-gradient(135deg, #a88cff 0%, #7657e8 100%);
  box-shadow: 0 14px 26px rgba(118, 87, 232, .18);
}

.visual-stat small,
.visual-stat strong,
.visual-stat em {
  display: block;
}

.visual-stat small {
  color: #51617c;
  font-size: 15px;
  font-weight: 900;
}

.visual-stat strong {
  color: #071b3c;
  font-size: 42px;
  line-height: 1.05;
}

.visual-stat em {
  display: inline;
  margin-left: 5px;
  font-style: normal;
  font-size: 16px;
}

.visual-stat.rush > span,
.visual-stat.rush strong { background: #ff6b6b; color: #fff; }
.visual-stat.rush strong { background: transparent; color: #ff4d57; }
.visual-stat.stable > span { background: #26b884; }
.visual-stat.stable strong { color: #16a05d; }
.visual-stat.safe > span { background: #8b6cf6; }
.visual-stat.safe strong { color: #7c5ce7; }

.recommend-board {
  padding: 22px;
}

.recommend-columns {
  display: grid;
  grid-template-columns: .9fr 1.1fr .9fr;
  gap: 14px;
}

.recommend-column {
  padding: 14px;
  border: 1px solid #e2eaf6;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.recommend-column.rush {
  background: linear-gradient(180deg, #fff8f8, #ffffff);
  border-color: #ffdcdc;
}

.recommend-column.stable {
  background: linear-gradient(180deg, #f6fffb, #ffffff);
  border-color: #cfefdf;
}

.recommend-column.safe {
  background: linear-gradient(180deg, #fbf9ff, #ffffff);
  border-color: #e5dcff;
}

.recommend-column h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #071b3c;
  font-size: 20px;
}

.recommend-column h3 span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: #1769ff;
  color: #fff;
  font-size: 15px;
}

.recommend-column.rush h3 span {
  background: #ff6b6b;
}

.recommend-column.stable h3 span {
  background: #26b884;
}

.recommend-column.safe h3 span {
  background: #8b6cf6;
}

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

.recommend-school-list article {
  padding: 16px;
  border: 1px solid #dfe7f4;
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 10px 24px rgba(23, 33, 43, .04);
}

.recommend-school-head {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f8;
}

.recommend-school-head b {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #1769ff;
  color: #fff;
  font-size: 18px;
}

.rush .recommend-school-head b {
  background: #ff6b6b;
}

.stable .recommend-school-head b {
  background: #26b884;
}

.safe .recommend-school-head b {
  background: #8b6cf6;
}

.recommend-school-head strong,
.recommend-school-head small {
  display: block;
}

.recommend-school-head strong {
  color: #071b3c;
  font-size: 18px;
}

.recommend-school-head small {
  margin-top: 2px;
  color: #66758f;
  font-size: 12px;
  font-weight: 800;
}

.recommend-school-list p {
  margin: 8px 0 0;
  color: #33445f;
  font-size: 14px;
  line-height: 1.55;
}

.recommend-school-list em {
  color: #1769ff;
  font-style: normal;
  font-weight: 900;
}

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

.reminder-strip div {
  min-height: 92px;
  padding: 16px;
  border: 1px solid #dfe7f4;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
}

.reminder-strip .report-mini-icon {
  margin-bottom: 10px;
}

.reminder-strip strong,
.reminder-strip span {
  display: block;
}

.reminder-strip .report-mini-icon {
  display: inline-flex;
}

.reminder-strip strong {
  color: #1769ff;
  font-size: 16px;
}

.reminder-strip span {
  margin-top: 8px;
  color: #41506a;
  font-size: 13px;
  line-height: 1.55;
}

.paper-check-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
  background: transparent;
  border: 0;
  padding: 0;
}

.paper-check-strip span {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid #dfe7f4;
  border-radius: 12px;
  background: #fff;
  color: #24334f;
  font-weight: 800;
}

.paper-check-strip b {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #edf4ff;
  color: #1769ff;
  flex: 0 0 auto;
}

.paper-page-footer {
  margin-top: 20px;
  color: #41506a;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.final-reminder-section {
  padding: 20px;
  border: 1px solid #dbe6f6;
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 34px rgba(19, 62, 119, .07);
}

.final-reminder-section .reminder-strip,
.final-reminder-section .paper-check-strip {
  margin-top: 0;
}

.final-reminder-section .paper-check-strip {
  margin-top: 18px;
}

.visual-two-col {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
}

.profile-portrait-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

.profile-portrait-row > .visual-card {
  min-height: 220px;
}

.visual-card {
  padding: 22px;
  border: 1px solid #dfe7f4;
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 30px rgba(29, 71, 118, .06);
}

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

.profile-fact-grid div {
  display: grid;
  grid-template-columns: 30px 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 58px;
  padding: 11px 0;
  border-bottom: 1px solid #e5edf6;
}

.profile-fact-grid small {
  color: #5d6e88;
  font-weight: 800;
}

.profile-fact-grid strong {
  color: #071b3c;
  font-size: 17px;
  line-height: 1.35;
}

.portrait-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.portrait-tags > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid #cfe0fb;
  border-radius: 999px;
  background: linear-gradient(180deg, #f0f6ff, #e8f2ff);
  color: #1769ff;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.portrait-tags .report-mini-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
}

.portrait-copy {
  margin: 4px 0 0;
  color: #24334f;
  font-size: 17px;
  line-height: 1.9;
}

.visual-page .direction-list {
  display: grid;
  gap: 12px;
}

.visual-page .direction-list div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 88px;
  padding: 15px 16px;
  border: 1px solid #dfe7f4;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbfdff, #ffffff);
  box-shadow: 0 10px 24px rgba(25, 61, 102, .04);
}

.visual-page .direction-list b {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(180deg, #edf4ff, #e7f0ff);
  color: #1769ff;
  font-size: 18px;
}

.visual-page .direction-list strong {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #071b3c;
  font-size: 17px;
}

.visual-page .direction-list .report-mini-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 0;
  background: transparent;
  color: #1769ff;
}

.visual-page .direction-list .report-mini-icon svg {
  width: 20px;
  height: 20px;
}

.visual-page .direction-list p {
  margin: 5px 0 0;
  color: #50617c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
}

.visual-page .direction-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #e8fbf2;
  color: #16a05d;
  font-weight: 900;
  white-space: nowrap;
  text-align: center;
}

.visual-strategy-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.visual-strategy-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 34px;
  padding-left: 0;
  color: #24334f;
  font-size: 16px;
  line-height: 1.75;
  position: relative;
}

.visual-strategy-list li::before {
  display: none;
}

.school-preview-list {
  display: grid;
  gap: 10px;
  border: 1px solid #dfe7f4;
  border-radius: 14px;
  background: #f8fbff;
  padding: 8px;
}

.school-preview-list div {
  display: grid;
  grid-template-columns: 42px minmax(140px, .8fr) 74px minmax(170px, 1fr) 1.4fr;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 12px;
  border: 1px solid #e4ecf7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(22, 54, 93, .035);
}

.school-preview-list div:last-child {
  border-bottom: 1px solid #e4ecf7;
}

.school-badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 30px;
  border-radius: 9px;
  font-weight: 900;
}

.school-preview-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #edf4ff;
  color: #1769ff;
  font-weight: 950;
}

.school-preview-icon.rush {
  background: #fff0f1;
  color: #ff4d57;
}

.school-preview-icon.stable {
  background: #eafaf1;
  color: #16a05d;
}

.school-preview-icon.safe {
  background: #f0ecff;
  color: #7c5ce7;
}

.school-badge.rush {
  background: #fff0f1;
  color: #ff4d57;
}

.school-badge.stable {
  background: #eafaf1;
  color: #16a05d;
}

.school-badge.safe {
  background: #f0ecff;
  color: #7c5ce7;
}

.school-preview-list strong {
  color: #071b3c;
  font-size: 18px;
}

.school-preview-list em {
  color: #41506a;
  font-style: normal;
}

.school-preview-list small {
  color: #1769ff;
  font-weight: 900;
  line-height: 1.55;
}

.final-section {
  padding: 26px;
}

.final-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #dfe7f4;
}

.final-section-head h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #071b3c;
  font-size: 24px;
}

.final-section-head h2 span {
  display: inline-block;
  width: 6px;
  height: 28px;
  border-radius: 999px;
  background: #1769ff;
  color: transparent;
}

.final-section-head p {
  margin: 5px 0 0;
  color: #66758f;
  font-size: 13px;
}

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

.analysis-grid article {
  display: grid;
  grid-template-columns: 156px 1fr;
  gap: 22px;
  padding: 18px;
  border: 1px solid #e4ebf6;
  border-radius: 14px;
  background: #fbfdff;
}

.analysis-grid h3 {
  margin: 0;
  color: #10244b;
  font-size: 16px;
}

.analysis-grid p {
  margin: 0;
  color: #24334f;
}

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

.advice-list article,
.strategy-note,
.strategy-cards article,
.focus-card,
.empty-guidance {
  border: 1px solid #e1eaf6;
  border-radius: 12px;
  background: #fff;
}

.advice-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 16px;
}

.advice-list b {
  color: #1769ff;
}

.advice-list p {
  margin: 0;
}

.strategy-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
}

.strategy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.strategy-cards article,
.strategy-note {
  padding: 18px;
}

.strategy-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.strategy-card-head h3 {
  margin: 0;
}

.strategy-card-head strong {
  color: #071b3c;
  font-size: 13px;
}

.strategy-cards span,
.report-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.strategy-cards .rush,
.report-tag.rush {
  background: #fff0f1;
  color: #ff4d57;
}

.strategy-cards .stable,
.report-tag.stable {
  background: #edf4ff;
  color: #1769ff;
}

.strategy-cards .safe,
.report-tag.safe {
  background: #eafaf1;
  color: #16a05d;
}

.report-tag.warn {
  background: #fff7e6;
  color: #b56a00;
}

.report-tag.danger {
  background: #fff0f0;
  color: #c51f2c;
}

.strategy-note h3 {
  margin: 10px 0 8px;
  color: #071b3c;
}

.strategy-note p {
  margin: 8px 0 0;
  color: #41506a;
}

.strategy-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.strategy-list p {
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid #eef3f8;
  color: #41506a;
}

.strategy-list b,
.strategy-list small {
  display: block;
}

.strategy-list b {
  color: #071b3c;
}

.strategy-list small {
  margin-top: 3px;
  color: #66758f;
  font-size: 12px;
  line-height: 1.45;
}

.empty-guidance {
  padding: 18px;
  background: #fbfdff;
}

.empty-guidance strong {
  display: block;
  color: #071b3c;
  font-size: 16px;
}

.empty-guidance p {
  margin: 8px 0 12px;
  color: #41506a;
}

.empty-guidance ul {
  margin: 0;
  padding-left: 18px;
  color: #51617c;
}

.final-table-wrap {
  overflow-x: auto;
  border: 1px solid #e0e8f4;
  border-radius: 12px;
  background: #fff;
}

.final-table-wrap table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}

.final-table-wrap.compact table {
  min-width: 1160px;
}

.final-table-wrap th,
.final-table-wrap td {
  padding: 12px 11px;
  border-bottom: 1px solid #edf1f7;
  border-right: 1px solid #edf1f7;
  text-align: left;
  vertical-align: top;
}

.final-table-wrap th {
  background: #f5f8fc;
  color: #51617c;
  font-weight: 900;
}

.final-table-wrap td strong {
  color: #071b3c;
}

.final-table-wrap td small {
  display: block;
  margin-top: 4px;
  color: #66758f;
  font-size: 12px;
  line-height: 1.45;
}

.focus-card {
  padding: 22px;
  margin-top: 14px;
}

.focus-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.focus-head h3 {
  margin: 8px 0 4px;
  color: #071b3c;
  font-size: 22px;
}

.focus-head p {
  margin: 0;
  color: #41506a;
}

.focus-head > strong {
  min-width: 62px;
  height: fit-content;
  border-radius: 12px;
  padding: 10px 12px;
  background: #edf4ff;
  color: #1769ff;
  text-align: center;
}

.focus-narrative {
  margin: 14px 0 16px;
  color: #24334f;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.8;
}

.focus-explain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 14px 0 0;
  border: 1px solid #e3ebf6;
  border-radius: 12px;
  background: #e3ebf6;
}

.focus-explain-grid section {
  background: #fff;
  padding: 14px;
}

.focus-explain-grid h4 {
  margin: 0 0 6px;
  color: #748197;
  font-size: 12px;
  font-weight: 900;
}

.focus-explain-grid p {
  margin: 0;
  color: #071b3c;
  font-weight: 700;
  line-height: 1.65;
}

.focus-major-chips {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.focus-major-chips span {
  min-height: 72px;
  padding: 12px;
  border: 1px solid #e3ebf6;
  border-radius: 12px;
  background: #fff;
}

.focus-major-chips span.match {
  border-color: #99dfbd;
  background: #f2fbf6;
}

.focus-major-chips span.danger {
  border-color: #ffc7c7;
  background: #fff7f7;
}

.focus-major-chips b,
.focus-major-chips small {
  display: block;
}

.focus-major-chips b {
  color: #071b3c;
  font-size: 13px;
  line-height: 1.35;
}

.focus-major-chips small {
  margin-top: 8px;
  color: #16a05d;
  font-size: 12px;
  font-weight: 900;
}

.focus-major-chips .danger small {
  color: #c51f2c;
}

.risk-layout {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.1fr);
  gap: 18px;
}

.risk-list-wrap {
  min-width: 0;
}

.risk-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.risk-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f2;
}

.risk-list li:first-child {
  padding-top: 0;
}

.risk-list b {
  color: #1769ff;
}

.risk-list strong {
  display: block;
  color: #071b3c;
}

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

.checklist-group {
  padding: 14px;
  border: 1px solid #e1eaf6;
  border-radius: 12px;
  background: #fbfdff;
}

.checklist-group h3 {
  margin: 0 0 10px;
  color: #071b3c;
  font-size: 15px;
}

.checklist-group label {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid #e8eef7;
  color: #24334f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.checklist-group label:first-of-type {
  border-top: 0;
}

.checklist-group input {
  margin-top: 4px;
}

.check-grid {
  display: grid;
  gap: 10px;
}

.check-grid label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px;
  border: 1px solid #e1eaf6;
  border-radius: 12px;
  background: #fbfdff;
  color: #24334f;
}

.final-summary {
  padding: 24px;
  background: linear-gradient(135deg, #0f5fff, #158bce);
  color: #fff;
}

.final-summary h2 {
  margin: 0 0 8px;
}

.final-summary p,
.final-summary small {
  color: rgba(255, 255, 255, .92);
}

.final-summary p {
  margin: 0 0 10px;
}

@media (max-width: 900px) {
  .activation-start-card,
  .strategy-layout,
  .risk-layout {
    grid-template-columns: 1fr;
  }

  .profile-band {
    align-items: stretch;
    flex-direction: column;
  }

  .visual-stat-grid,
  .visual-two-col,
  .profile-portrait-row,
  .recommend-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .school-preview-list div {
    grid-template-columns: 42px 1fr 74px;
  }

  .school-preview-list em,
  .school-preview-list small {
    grid-column: 2 / 4;
  }

  .report-doc-header {
    grid-template-columns: 1fr;
  }

  .final-profile-grid,
  .final-metrics,
  .strategy-cards,
  .focus-explain-grid,
  .focus-major-chips {
    grid-template-columns: repeat(2, 1fr);
  }

  .analysis-grid article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .final-cover,
  .final-section,
  .final-summary {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .final-cover h1 {
    font-size: 29px;
  }

  .final-profile-grid,
  .final-metrics,
  .strategy-cards,
  .profile-metrics,
  .checklist-groups,
  .focus-explain-grid,
  .focus-major-chips {
    grid-template-columns: 1fr;
  }

  .final-section {
    padding: 22px 16px;
  }

  .visual-page {
    padding: 22px 16px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .visual-page-bg::before {
    right: 0;
    width: 120px;
    height: 120px;
    transform: none;
  }

  .visual-page-bg::after {
    right: 42px;
  }

  .report-doc-header {
    padding: 12px 4px 2px;
  }

  .report-doc-header h1 {
    font-size: 31px;
  }

  .report-doc-header p {
    font-size: 16px;
  }

  .report-doc-header dl div {
    grid-template-columns: 98px minmax(0, 1fr);
  }

  .report-doc-header dl {
    min-width: 0;
    width: 100%;
  }

  .report-doc-header dd {
    white-space: normal;
  }

  .teacher-contact-card {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .teacher-contact-copy h2 {
    font-size: 21px;
  }

  .teacher-contact-qr {
    width: fit-content;
    justify-self: center;
  }

  .visual-section-head {
    display: block;
  }

  .visual-stat-grid,
  .visual-two-col,
  .profile-portrait-row,
  .profile-fact-grid,
  .visual-page .direction-list div,
  .recommend-columns,
  .reminder-strip,
  .paper-check-strip {
    grid-template-columns: 1fr;
  }

  .visual-stat {
    min-height: auto;
  }

  .profile-fact-grid div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .visual-page .direction-list div {
    align-items: start;
  }

  .visual-page .direction-list span {
    width: fit-content;
  }

  .school-preview-list div {
    grid-template-columns: 1fr;
  }

  .school-preview-list em,
  .school-preview-list small {
    grid-column: auto;
  }
}

/* 2026-06-04c density pass: match the first reference screen more closely */
.blue-shell {
  padding-top: 0;
}

.hero-blue {
  position: relative;
  overflow: hidden;
  min-height: 186px;
}

.hero-blue::after {
  content: "";
  position: absolute;
  right: 42px;
  top: 22px;
  width: 300px;
  height: 160px;
  opacity: 0.45;
  background:
    linear-gradient(90deg, transparent 0 22px, rgba(54, 133, 255, 0.28) 22px 48px, transparent 48px 72px, rgba(54, 133, 255, 0.22) 72px 105px, transparent 105px 130px, rgba(54, 133, 255, 0.18) 130px 172px, transparent 172px),
    radial-gradient(circle at 38% 63%, transparent 0 26px, rgba(40, 120, 255, 0.30) 27px 43px, transparent 44px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(54, 133, 255, 0.13));
  border-radius: 18px;
  transform: skewX(-8deg);
  pointer-events: none;
}

.hero-blue h1 {
  position: relative;
  z-index: 1;
  font-size: 48px;
  line-height: 1.16;
}

.hero-blue p:last-child {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-size: 17px;
}

.advisor-layout {
  margin-top: -2px;
}

.advisor-form {
  padding: 22px 28px 22px;
}

.form-title-row {
  margin-bottom: 16px;
}

.form-title-row h2 {
  display: none;
}

.inner-form-card {
  padding: 16px 20px 14px;
  border-radius: 16px;
}

.advisor-form .form-section-title {
  margin: 14px 0 10px;
  font-size: 15px;
}

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

.advisor-form label {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
}

.advisor-form label > input,
.advisor-form label > select,
.advisor-form label > textarea {
  margin-top: 7px;
}

.advisor-form label > small {
  display: block;
  margin-top: 5px;
}

.advisor-form input,
.advisor-form select,
.advisor-form textarea {
  min-height: 42px;
  padding: 10px 12px;
  font-size: 14px;
}

.advisor-form input {
  height: 42px;
}

.advisor-form textarea {
  min-height: 56px;
}

.advisor-form .large-textarea {
  min-height: 112px;
}

.segmented {
  min-height: 38px;
  border-radius: 10px;
}

.segmented span {
  min-height: 38px;
  font-size: 13px;
}

.pill-options {
  gap: 10px;
}

.pill-options span {
  min-height: 38px;
  padding: 0 15px;
  font-size: 13px;
}

.candidate-panel {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
}

.candidate-title {
  margin-bottom: 10px;
}

.submit-row {
  margin-top: 12px;
}

.primary-submit-row {
  margin-top: 8px;
  margin-bottom: 6px;
}

.submit-row button,
.ghost-button {
  min-height: 48px;
}

/* 2026-06-04b closer reference-image restoration */
.hero-blue h1 span {
  color: var(--blue);
}

.inner-form-card {
  padding: 20px 20px 18px;
  border: 1px solid #dce8f7;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.72), 0 14px 32px rgba(31, 88, 166, 0.06);
}

.advisor-form mark,
.advisor-form em {
  background: transparent;
  color: #f04747;
  font-style: normal;
}

.advisor-form small {
  margin-top: -4px;
  color: #8a9ab4;
  font-size: 12px;
  font-weight: 700;
}

.segmented-grid fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.segmented-grid legend {
  margin-bottom: 9px;
  color: #1d3158;
  font-size: 14px;
  font-weight: 900;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  min-height: 42px;
  border: 1px solid #d7e3f2;
  border-radius: 11px;
  background: #fff;
}

.segmented label,
.pill-options label {
  margin: 0;
  display: block;
  cursor: pointer;
}

.segmented input,
.pill-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-right: 1px solid #e6edf7;
  color: #526480;
  font-size: 14px;
  font-weight: 900;
}

.segmented label:last-child span {
  border-right: 0;
}

.segmented input:checked + span,
.pill-options input:checked + span {
  background: #eef6ff;
  color: var(--blue);
  box-shadow: inset 0 0 0 1px #69a5ff;
}

.pill-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-options span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  border: 1px solid #d7e3f2;
  border-radius: 999px;
  background: #fff;
  color: #50637f;
  font-size: 14px;
  font-weight: 900;
}

.pill-options span small {
  margin: 0;
  color: #8a9ab4;
}

.candidate-panel {
  margin-top: 22px;
  padding: 20px;
  border: 1px dashed #cbdcf4;
  border-radius: 18px;
  background: #f8fbff;
}

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

.candidate-title h3,
.candidate-title p {
  margin: 0;
}

.candidate-title h3 {
  color: var(--navy);
  font-size: 17px;
}

.candidate-title p {
  margin-top: 4px;
  color: #6e7f9b;
  font-size: 13px;
  font-weight: 700;
}

.base-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 0;
  background: transparent;
}

.base-kpi,
.report-block,
.chart-card,
.advanced-block,
.gauge-card,
.panel-lite {
  border: 1px solid #dce8f7;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--card-shadow-soft);
}

.base-kpi {
  min-height: 132px;
  padding: 18px 18px 16px;
  background: linear-gradient(135deg, #fff, #f7fbff);
}

.base-kpi .kpi-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: #eef6ff;
  color: var(--blue);
  font-weight: 900;
}

.base-kpi p,
.base-kpi h2,
.base-kpi small {
  margin: 0;
}

.base-kpi p {
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.base-kpi h2 {
  margin-top: 5px;
  color: var(--navy);
  font-size: 21px;
}

.base-kpi small {
  display: block;
  margin-top: 6px;
  color: #687a97;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.base-kpi.green .kpi-icon { background: #edf9f3; color: #18a765; }
.base-kpi.purple .kpi-icon { background: #f4efff; color: #7b4cff; }
.base-kpi.orange .kpi-icon { background: #fff6e8; color: #ff9700; }

.base-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 14px;
  margin-top: 14px;
}

.base-two-col.uneven {
  grid-template-columns: minmax(360px, 0.8fr) minmax(0, 1.2fr);
}

.report-block,
.advanced-block {
  padding: 20px;
}

.report-block h2,
.advanced-block h2,
.chart-card h2 {
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--blue);
  color: var(--navy);
  font-size: 19px;
}

.report-block p {
  color: #405272;
  font-size: 14px;
  font-weight: 700;
}

.rush-stable-safe {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.rush-stable-safe div {
  min-height: 92px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #dbe8f7;
}

.rush-stable-safe b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 19px;
}

.rush-stable-safe strong {
  color: var(--navy);
  font-size: 20px;
}

.rush-stable-safe span {
  color: #6c7d98;
  font-size: 12px;
  font-weight: 700;
}

.rush-stable-safe .rush { background: #fff5f5; }
.rush-stable-safe .rush b { background: #ffe1e1; color: #e84c4c; }
.rush-stable-safe .stable { background: #f4f8ff; }
.rush-stable-safe .stable b { background: #e1eeff; color: #1b73ff; }
.rush-stable-safe .safe { background: #f3fbf6; }
.rush-stable-safe .safe b { background: #ddf5e6; color: #13a95c; }

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

.direction-list div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 4px 12px;
  align-items: start;
  padding: 10px;
  border: 1px solid #edf3fb;
  border-radius: 10px;
  background: #fbfdff;
}

.direction-list .candidate-check-card {
  gap: 10px 12px;
}

.candidate-check-card > div {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.direction-list span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.direction-list strong {
  display: inline;
  color: var(--navy);
}

.direction-list em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid #cfe0f8;
  border-radius: 999px;
  background: #eef6ff;
  color: #1769ff;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  vertical-align: 1px;
}

.direction-list p {
  margin: 6px 0 0;
  color: #60708f;
}

.reference-table-wrap {
  overflow-x: auto;
  border: 1px solid #dce8f7;
  border-radius: 10px;
}

.reference-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.reference-table th,
.reference-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e6eef8;
  border-right: 1px solid #e6eef8;
  text-align: center;
  color: #263a62;
}

.reference-table th {
  background: #f3f8ff;
  color: #1d56b3;
  font-weight: 900;
}

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

.checkline-list li {
  color: #405272;
  font-size: 14px;
  font-weight: 800;
}

.checkline-list li::before {
  content: "◎";
  margin-right: 8px;
  color: var(--blue);
}

.upgrade-teaser {
  background: linear-gradient(135deg, #ffffff, #f2f7ff);
}

.teaser-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.teaser-actions button,
.teaser-actions a {
  min-height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 900;
}

.teaser-actions button {
  width: 100%;
  background: linear-gradient(135deg, #0d65ff, #1b7dff);
}

.teaser-actions a {
  border: 1px solid #b9d2fb;
  background: #fff;
  color: var(--blue);
}

.advanced-cover {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  min-height: 108px;
  padding: 24px 28px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 85% 30%, rgba(32, 119, 255, 0.14), transparent 26%),
    linear-gradient(135deg, #f9fcff, #eef6ff);
  border: 1px solid #dce8f7;
}

.advanced-cover p,
.advanced-cover h1 {
  margin: 0;
}

.advanced-cover p {
  color: #657795;
  font-size: 13px;
  font-weight: 800;
}

.advanced-cover h1 {
  margin-top: 8px;
  color: var(--navy);
  font-size: 34px;
}

.advanced-cover span {
  display: inline-flex;
  margin-top: 10px;
  min-height: 28px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #f7c948;
  color: #4f3400;
  font-size: 13px;
  font-weight: 900;
}

.advanced-cover button {
  width: auto;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid #9bc2ff;
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  box-shadow: none;
}

.advanced-profile {
  display: grid;
  grid-template-columns: 1.2fr 2fr repeat(3, 1fr);
  gap: 0;
  margin-top: 14px;
  padding: 18px 22px;
}

.advanced-profile > div {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 62px;
  padding: 0 18px;
  border-right: 1px solid #e1ebf7;
}

.advanced-profile > div:last-child {
  border-right: 0;
}

.avatar-card {
  grid-template-columns: 42px 1fr;
  align-items: center;
}

.avatar-card span {
  font-size: 32px;
}

.advanced-profile small {
  color: #6c7d98;
  font-weight: 800;
}

.advanced-profile strong {
  color: var(--navy);
  font-size: 16px;
}

.advanced-score-grid,
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.analytics-grid {
  grid-template-columns: 0.85fr 1fr 0.85fr;
}

.gauge-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 116px;
  padding: 18px;
}

.gauge {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 56%, transparent 58%),
    conic-gradient(var(--blue) calc(var(--value) * 1%), #e7edf6 0);
}

.gauge strong,
.gauge span {
  grid-area: 1 / 1;
}

.gauge strong {
  margin-top: -10px;
  color: var(--navy);
  font-size: 20px;
}

.gauge span {
  margin-top: 28px;
  color: #20ad65;
  font-size: 11px;
  font-weight: 900;
}

.gauge-card h2,
.gauge-card p,
.gauge-card a {
  margin: 0;
}

.gauge-card h2 {
  color: var(--navy);
  font-size: 16px;
}

.gauge-card p {
  margin-top: 6px;
  color: #667893;
  font-size: 12px;
  font-weight: 700;
}

.gauge-card a {
  display: inline-block;
  margin-top: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.chart-card {
  min-height: 168px;
  padding: 18px;
}

.donut-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
}

.donut {
  width: 106px;
  height: 106px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 48%, transparent 50%),
    conic-gradient(#2878ff 0 20%, #42c86b 20% 70%, #ffbd3e 70% 100%);
}

.donut-row ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.donut-row li {
  display: flex;
  justify-content: space-between;
  color: #53657f;
  font-weight: 800;
}

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

.bar-list div {
  display: grid;
  grid-template-columns: 82px 1fr 42px;
  gap: 10px;
  align-items: center;
  color: #405272;
  font-size: 13px;
  font-weight: 800;
}

.bar-list b {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2b7cff, #6aa9ff);
}

.bar-list em {
  color: #61728e;
  font-style: normal;
}

.risk-pyramid {
  width: 170px;
  margin: 4px auto 12px;
  display: grid;
  gap: 3px;
}

.risk-pyramid span {
  height: 32px;
  margin: 0 auto;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.risk-pyramid span:nth-child(1) { width: 54px; background: #ff5d54; }
.risk-pyramid span:nth-child(2) { width: 108px; background: #ffc247; }
.risk-pyramid span:nth-child(3) { width: 164px; background: #38c56a; }

.advanced-block {
  margin-top: 14px;
}

.compare-grid,
.major-card-grid,
.advanced-two-col {
  display: grid;
  gap: 14px;
}

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

.compare-grid article,
.major-card-grid article {
  border: 1px solid #dce8f7;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.compare-grid header {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: #f5f9ff;
  color: var(--navy);
}

.compare-grid header b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 24px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
}

.compare-grid dl {
  margin: 0;
  display: grid;
  grid-template-columns: 76px 1fr;
}

.compare-grid dt,
.compare-grid dd {
  margin: 0;
  padding: 9px 12px;
  border-top: 1px solid #edf3fb;
  color: #405272;
  font-size: 13px;
  font-weight: 700;
}

.compare-grid dt {
  color: var(--navy);
  background: #fbfdff;
  font-weight: 900;
}

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

.major-card-grid article {
  padding: 18px;
}

.major-card-grid span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #eaf8ef;
  color: #12a861;
  font-size: 12px;
  font-weight: 900;
}

.major-card-grid h3 {
  margin: 10px 0 8px;
  color: var(--navy);
}

.major-card-grid p {
  color: #526480;
  font-size: 13px;
  font-weight: 700;
}

.advanced-two-col {
  grid-template-columns: 0.85fr 1.15fr;
}

.advanced-block.danger h2 {
  border-left-color: #ff5d54;
  color: #db3c35;
}

.advanced-block.conclusion strong {
  display: block;
  margin-top: 10px;
  color: var(--blue);
  font-size: 22px;
}

.advanced-block.conclusion small {
  color: #7a8aa4;
  font-weight: 700;
}

.checklist-block .check-grid {
  grid-template-columns: repeat(2, 1fr);
}

.checklist-block label {
  min-height: 60px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid #e1ebf7;
  border-radius: 8px;
  background: #fff;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 800;
}

.checklist-block input {
  width: 16px;
  height: 16px;
}

@media (max-width: 1100px) {
  .base-kpi-grid,
  .advanced-score-grid,
  .compare-grid,
  .major-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .analytics-grid,
  .base-two-col,
  .base-two-col.uneven,
  .advanced-two-col,
  .advanced-profile {
    grid-template-columns: 1fr;
  }

  .advanced-profile > div {
    border-right: 0;
    border-bottom: 1px solid #e1ebf7;
    padding: 12px 0;
  }
}

@media (max-width: 720px) {
  .base-kpi-grid,
  .advanced-score-grid,
  .compare-grid,
  .major-card-grid,
  .rush-stable-safe,
  .teaser-actions,
  .checklist-block .check-grid {
    grid-template-columns: 1fr;
  }

  .candidate-title,
  .advanced-cover {
    grid-template-columns: 1fr;
  }

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

/* 2026-06-05a: closer to the supplied blue data-product references */
:root {
  --blue: #1769ff;
  --blue-2: #2f80ff;
  --navy: #06183d;
  --text-main: #14213f;
  --text-soft: #63718a;
  --card-shadow: 0 18px 46px rgba(28, 93, 178, 0.12);
  --card-shadow-soft: 0 10px 28px rgba(28, 93, 178, 0.08);
}

.app-home,
.app-report {
  background:
    radial-gradient(circle at 82% 86px, rgba(71, 146, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #f6fbff 0, #eef6ff 260px, #f7fbff 100%);
  color: var(--text-main);
}

.site-header {
  min-height: 70px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(214, 228, 248, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 26px rgba(30, 92, 168, 0.06);
}

.brand {
  gap: 12px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #0c6dff, #48a5ff);
  box-shadow: 0 12px 22px rgba(28, 105, 255, 0.22);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: 12px;
  width: 13px;
  height: 18px;
  border: 2px solid #fff;
  border-top-left-radius: 9px;
  border-top-right-radius: 2px;
  border-bottom: 0;
  opacity: 0.96;
}

.brand-mark::before {
  left: 9px;
  transform: skewY(9deg);
}

.brand-mark::after {
  right: 9px;
  transform: skewY(-9deg);
}

.brand strong {
  color: var(--navy);
  font-size: 18px;
  letter-spacing: 0;
}

.brand em {
  margin-top: 1px;
  color: #667894;
  font-size: 12px;
  font-weight: 700;
}

.top-nav {
  gap: 36px;
}

.top-nav a {
  position: relative;
  min-height: 70px;
  display: inline-grid;
  place-items: center;
  color: #1a2d55;
  font-size: 15px;
  font-weight: 900;
}

.top-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 22%;
  right: 22%;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--blue);
}

.header-actions {
  gap: 22px;
  color: #20375f;
  font-size: 14px;
  font-weight: 900;
}

.header-actions span:first-child::before,
.header-actions span:nth-child(2)::before {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 50%;
  color: var(--blue);
  font-size: 13px;
}

.header-actions span:first-child::before {
  content: "◇";
}

.header-actions span:nth-child(2)::before {
  content: "?";
  border: 1px solid #a7bbd8;
}

.header-actions a {
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid #83b2ff;
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
}

.blue-shell {
  width: min(1390px, calc(100vw - 48px));
}

.hero-blue {
  min-height: 184px;
  padding: 24px 0 16px;
  background:
    radial-gradient(circle at 84% 38%, rgba(47, 128, 255, 0.18), transparent 26%),
    linear-gradient(90deg, rgba(235, 245, 255, 0.2), rgba(255, 255, 255, 0.56), rgba(232, 243, 255, 0.2));
}

.hero-blue::after {
  right: 58px;
  top: 20px;
  width: 330px;
  height: 170px;
  opacity: 0.66;
  background:
    linear-gradient(90deg, transparent 0 52%, rgba(65, 139, 255, 0.20) 52% 58%, transparent 58%),
    linear-gradient(0deg, rgba(65, 139, 255, 0.16) 0 18%, transparent 18%),
    radial-gradient(circle at 35% 68%, transparent 0 24px, rgba(65, 139, 255, 0.24) 25px 34px, transparent 35px),
    linear-gradient(135deg, rgba(65, 139, 255, 0.08), rgba(255,255,255,0.1));
}

.hero-blue h1 {
  font-size: 46px;
  font-weight: 950;
  letter-spacing: 0;
}

.hero-blue h1 span {
  margin-left: 10px;
  color: var(--blue);
}

.hero-blue p:last-child {
  color: #61718c;
  font-size: 17px;
  font-weight: 800;
}

.advisor-layout {
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 0;
}

.advisor-layout .panel,
.app-report .panel,
.advisor-form,
.inner-form-card {
  border-color: rgba(209, 225, 248, 0.98);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--card-shadow);
}

.step-rail {
  padding: 26px 18px;
}

.step-rail h2 {
  margin-bottom: 22px;
  color: var(--navy);
  font-size: 17px;
  font-weight: 950;
}

.step-rail ol {
  gap: 16px;
}

.step-rail li {
  min-height: 72px;
  border-radius: 10px;
}

.step-rail li span {
  width: 40px;
  height: 40px;
  border-color: #d9e5f4;
  background: #f5f9ff;
  color: #7b8aa4;
  font-size: 20px;
  font-weight: 950;
}

.step-rail li.active {
  background: linear-gradient(135deg, #eef6ff, #f8fbff);
  box-shadow: inset 0 0 0 1px #d6e6ff;
}

.step-rail li.active span {
  background: linear-gradient(145deg, #1769ff, #62a6ff);
}

.trust-list {
  margin-top: 26px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #dce8f7;
  background: rgba(250, 253, 255, 0.9);
}

.trust-list div {
  position: relative;
  padding-left: 48px;
}

.trust-list div::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(145deg, #eef6ff, #dcecff);
  box-shadow: inset 0 0 0 1px #cfe0f8;
}

.advisor-form {
  padding: 26px 30px 28px;
}

.form-title-row {
  margin-bottom: 16px;
}

.form-title-row .eyebrow {
  color: var(--blue);
  font-size: 20px;
  text-transform: none;
}

.form-title-row h2 {
  display: none;
}

.form-title-row > span {
  color: var(--blue);
  font-weight: 900;
}

.inner-form-card {
  padding: 20px 22px 22px;
}

.advisor-form .form-section-title {
  margin: 15px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--blue);
  color: var(--navy);
  font-size: 16px;
  font-weight: 950;
}

.advisor-form .grid {
  gap: 15px 26px;
}

.advisor-form label,
.advisor-form legend {
  color: #13284d;
  font-size: 14px;
  font-weight: 950;
}

.advisor-form label > input,
.advisor-form label > select,
.advisor-form label > textarea {
  margin-top: 8px;
}

.advisor-form input,
.advisor-form textarea {
  min-height: 44px;
  border-color: #ccdced;
  border-radius: 8px;
  background: #fff;
  color: #14213f;
  font-size: 14px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(20, 54, 100, 0.03);
}

.advisor-form input::placeholder,
.advisor-form textarea::placeholder {
  color: #97a5ba;
  font-weight: 700;
}

.advisor-form textarea {
  min-height: 72px;
  resize: vertical;
}

.advisor-form .large-textarea {
  min-height: 118px;
}

.segmented {
  overflow: hidden;
  min-height: 40px;
  border: 1px solid #d7e3f2;
  border-radius: 11px;
  background: #fff;
}

.segmented span,
.pill-options span {
  min-height: 38px;
  color: #53637c;
  background: #fff;
  font-weight: 900;
}

.segmented input:checked + span,
.pill-options input:checked + span {
  background: linear-gradient(180deg, #f3f8ff, #fff);
  box-shadow: inset 0 0 0 1px #7fb1ff;
  color: var(--blue);
}

.pill-options {
  gap: 10px;
}

.pill-options span {
  border-color: #d6e4f6;
  border-radius: 11px;
}

.submit-row.primary-submit-row {
  justify-content: center;
  gap: 24px;
  margin: 24px 0 0;
}

.primary-submit-row button,
.ghost-button {
  min-width: 236px;
  min-height: 52px;
  border-radius: 8px;
  font-size: 17px;
}

.primary-submit-row button {
  background: linear-gradient(180deg, #237cff, #075be8);
  box-shadow: 0 16px 28px rgba(23, 105, 255, 0.24);
}

.ghost-button {
  border-color: #cbdcf2;
  background: #fff;
  color: var(--blue);
}

.candidate-panel {
  margin-top: 22px;
  border: 1px solid #dce8f7;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.candidate-title {
  padding-bottom: 14px;
  border-bottom: 1px solid #e6eef9;
}

.report-page {
  max-width: 1390px;
}

.report-hero {
  min-height: 154px;
  padding: 22px 6px 16px;
  background:
    radial-gradient(circle at 88% 40%, rgba(47, 128, 255, 0.17), transparent 22%),
    linear-gradient(90deg, rgba(255,255,255,0.1), rgba(240,247,255,0.45));
}

.report-title-line {
  gap: 18px;
}

.report-badge {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: linear-gradient(145deg, #0b66ff, #58a1ff);
  box-shadow: 0 14px 24px rgba(23, 105, 255, 0.2);
}

.report-hero h1 {
  color: var(--navy);
  font-size: 34px;
  font-weight: 950;
}

.report-hero .sub {
  color: #63718a;
  font-size: 15px;
  font-weight: 800;
}

.report-actions {
  align-self: center;
}

.utility-button,
.mode-pill {
  border-radius: 8px;
}

.student-strip {
  grid-template-columns: 1.1fr repeat(4, 1fr);
  padding: 18px 22px;
  border-radius: 12px;
}

.student-strip div:first-child b::before {
  content: "●";
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-right: 10px;
  border-radius: 50%;
  background: #eaf3ff;
  color: var(--blue);
}

.student-strip b {
  color: var(--navy);
  font-size: 14px;
}

.student-strip span {
  color: #182d55;
  font-size: 16px;
  font-weight: 900;
}

.data-source-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid #d9e8fa;
  border-radius: 12px;
  background: rgba(255,255,255,0.86);
  box-shadow: var(--card-shadow-soft);
}

.data-source-icon {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #1769ff, #68a8ff);
  box-shadow: 0 8px 16px rgba(23, 105, 255, 0.16);
}

.data-source-icon::before,
.data-source-icon::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
}

.data-source-icon::before {
  top: 11px;
  box-shadow: 0 6px 0 rgba(255,255,255,0.9);
}

.data-source-icon::after {
  top: 23px;
}

.data-source-panel b {
  display: block;
  margin-bottom: 3px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 950;
}

.data-source-panel p {
  margin: 0;
  color: #53637d;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 750;
}

.markdown-report {
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.base-kpi-grid {
  gap: 14px;
}

.base-kpi {
  position: relative;
  min-height: 138px;
  padding: 18px 66px 18px 18px;
  overflow: hidden;
  border-color: #d9e8fa;
  border-radius: 12px;
}

.base-kpi::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 20px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #eef6ff;
}

.base-kpi .kpi-icon {
  position: absolute;
  right: 25px;
  top: 27px;
  z-index: 1;
  width: 28px;
  height: 28px;
  margin: 0;
  background: transparent;
  font-size: 20px;
}

.base-kpi p {
  color: #185ed9;
}

.base-kpi h2 {
  max-width: 230px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.28;
}

.base-kpi small {
  max-width: 300px;
  color: #64728a;
}

.base-kpi.green {
  background: linear-gradient(135deg, #ffffff, #f5fffa);
}

.base-kpi.purple {
  background: linear-gradient(135deg, #ffffff, #fbf8ff);
}

.base-kpi.orange {
  background: linear-gradient(135deg, #ffffff, #fffaf2);
}

.report-block,
.advanced-block,
.chart-card,
.gauge-card,
.panel-lite {
  border-color: #d9e8fa;
  border-radius: 12px;
  box-shadow: var(--card-shadow-soft);
}

.report-block {
  padding: 20px;
}

.report-block h2,
.advanced-block h2,
.chart-card h2 {
  position: relative;
  padding-left: 14px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 950;
}

.report-block h2::before,
.advanced-block h2::before,
.chart-card h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: var(--blue);
}

.rush-stable-safe > div {
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.62);
}

.reference-table-wrap {
  border-color: #d9e8fa;
  border-radius: 10px;
}

.reference-table th {
  background: #f2f7ff;
  color: #1a3159;
  font-size: 13px;
}

.reference-table td {
  color: #263b63;
  font-weight: 700;
}

.rank-pill {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 24px;
  border-radius: 999px;
  font-weight: 950;
}

.rank-pill.rush {
  background: #ffe7e7;
  color: #e04444;
}

.rank-pill.stable {
  background: #e5f1ff;
  color: #1769ff;
}

.rank-pill.safe {
  background: #e8f8ef;
  color: #15a967;
}

.advanced-cover {
  border: 1px solid #d9e8fa;
  background:
    radial-gradient(circle at 88% 18%, rgba(71, 146, 255, 0.14), transparent 22%),
    linear-gradient(135deg, #ffffff, #f5faff);
}

.advanced-cover h1 {
  font-size: 32px;
  font-weight: 950;
}

.advanced-profile {
  margin-top: 14px;
  grid-template-columns: 1.1fr 2fr repeat(3, 1fr);
}

.avatar-card span {
  background: #eaf3ff;
}

.advanced-score-grid {
  gap: 14px;
}

.plain-advice-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  margin-top: 14px;
  background:
    radial-gradient(circle at 8% 15%, rgba(23, 105, 255, 0.10), transparent 24%),
    linear-gradient(135deg, #ffffff, #f7fbff);
}

.plain-advice-title {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.plain-advice-title > span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(180deg, #237cff, #075be8);
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(23, 105, 255, 0.20);
}

.plain-advice-title h2 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 22px;
  font-weight: 950;
}

.plain-advice-title p {
  margin: 0;
  color: #61718f;
  font-size: 13px;
  font-weight: 700;
}

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

.plain-advice-list article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: flex-start;
  min-height: 76px;
  padding: 14px;
  border: 1px solid #d9e8fa;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
}

.plain-advice-list b {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eaf3ff;
  color: #1769ff;
  font-size: 13px;
}

.plain-advice-list p {
  margin: 0;
  color: #10254a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
}

.gauge-card {
  min-height: 124px;
}

.gauge {
  width: 86px;
  height: 86px;
}

.analytics-grid {
  gap: 14px;
}

.compare-grid article,
.major-card-grid article {
  border-color: #d9e8fa;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(30, 92, 168, 0.05);
}

.compare-grid header {
  background: #f4f8ff;
}

.major-card-grid span {
  background: #e8f8ef;
}

.upgrade {
  border-color: #d9e8fa;
  border-radius: 14px;
  background:
    radial-gradient(circle at 86% 20%, rgba(23, 105, 255, 0.10), transparent 20%),
    linear-gradient(135deg, #ffffff, #f7fbff);
}

.upgrade h2 {
  color: var(--navy);
}

.unlock-cta {
  background: linear-gradient(180deg, #237cff, #075be8);
  box-shadow: 0 14px 24px rgba(23, 105, 255, 0.22);
}

@media (max-width: 1100px) {
  .blue-shell {
    width: min(100% - 28px, 980px);
  }

  .site-header {
    min-height: auto;
  }

  .plain-advice-block,
  .plain-advice-list {
    grid-template-columns: 1fr;
  }
}

/* 2026-06-07 mobile hardening: final overrides only for phones */
@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-home,
  .app-report {
    background: linear-gradient(180deg, #f4f9ff 0, #eef6ff 220px, #f8fbff 100%);
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 56px;
    padding: 8px 14px;
    grid-template-columns: 1fr;
  }

  .brand {
    min-width: 0;
    gap: 9px;
  }

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

  .brand strong {
    display: block;
    max-width: calc(100vw - 72px);
    overflow: hidden;
    color: #0b2250;
    font-size: 15px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand em,
  .top-nav,
  .header-actions,
  .header-spacer,
  .step-rail,
  .helped-count {
    display: none;
  }

  .blue-shell,
  .report-page {
    width: min(100% - 24px, 430px);
    max-width: 430px;
    margin-inline: auto;
  }

  .hero-blue {
    min-height: auto;
    padding: 22px 0 14px;
    background: transparent;
  }

  .hero-blue > div,
  .report-hero > div,
  .report-title-line > div,
  .data-source-panel > div,
  .advanced-cover > div,
  .advanced-profile > div,
  .plain-advice-title > div,
  .compare-grid article,
  .major-card-grid article,
  .report-block,
  .advanced-block,
  .chart-card,
  .gauge-card,
  .panel-lite {
    min-width: 0;
  }

  .hero-blue::after {
    display: none;
  }

  .hero-blue h1 {
    max-width: 100%;
    margin: 0;
    font-size: 28px;
    line-height: 1.22;
    overflow-wrap: anywhere;
  }

  .hero-blue h1 span {
    display: block;
    margin-left: 0;
  }

  .hero-blue p:last-child {
    max-width: 320px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .advisor-layout {
    display: block;
    margin-top: 4px;
  }

  .advisor-form,
  .inner-form-card,
  .candidate-panel,
  .upgrade,
  .student-strip,
  .data-source-panel,
  .report-block,
  .advanced-block,
  .chart-card,
  .gauge-card,
  .panel-lite {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(28, 93, 178, 0.08);
  }

  .advisor-form {
    padding: 14px;
  }

  .form-title-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 12px;
  }

  .form-title-row .eyebrow {
    font-size: 17px;
  }

  .form-title-row > span {
    justify-self: start;
    padding: 6px 9px;
    border-radius: 999px;
    background: #eef6ff;
    font-size: 12px;
  }

  .inner-form-card {
    padding: 15px 14px 16px;
  }

  .advisor-form .form-section-title {
    margin: 16px 0 10px;
    font-size: 15px;
  }

  .advisor-form .grid,
  .four-grid,
  .three-grid,
  .two-wide,
  .segmented-grid,
  .candidate-panel .grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .advisor-form label,
  .advisor-form legend {
    font-size: 13px;
  }

  .advisor-form input,
  .advisor-form select,
  .advisor-form textarea {
    width: 100%;
    min-height: 44px;
    font-size: 15px;
  }

  .segmented,
  .pill-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .segmented span,
  .pill-options span {
    justify-content: center;
    min-height: 42px;
    border: 1px solid #d7e3f2;
    border-radius: 10px;
    background: #fff;
    text-align: center;
  }

  .submit-row.primary-submit-row,
  .candidate-title,
  .upgrade {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .primary-submit-row button,
  .ghost-button,
  .secondary-button,
  .unlock-cta,
  .utility-button,
  .unlock-form button {
    width: 100%;
    min-width: 0;
  }

  .candidate-panel {
    margin-top: 14px;
    padding: 14px;
  }

  .candidate-title {
    align-items: stretch;
  }

  .candidate-title h3 {
    font-size: 16px;
  }

  .candidate-title p {
    font-size: 12px;
    line-height: 1.6;
  }

  .privacy-footer {
    padding: 18px 4px 24px;
    font-size: 11px;
    line-height: 1.7;
  }

  .report-hero {
    min-height: auto;
    padding: 18px 0 10px;
    grid-template-columns: 1fr;
    gap: 14px;
    background: transparent;
  }

  .breadcrumb,
  .report-hero .eyebrow {
    font-size: 12px;
  }

  .report-title-line {
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: start;
  }

  .report-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 20px;
  }

  .report-hero h1 {
    font-size: 25px;
    line-height: 1.22;
    overflow-wrap: anywhere;
  }

  .report-hero .sub {
    max-width: 320px;
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

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

  .report-actions .mode-pill {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
  }

  .student-strip {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 12px 14px;
  }

  .student-strip div {
    min-width: 0;
    padding: 10px 0;
    border-right: 0;
    border-bottom: 1px solid #e6eef9;
  }

  .student-strip div:last-child {
    border-bottom: 0;
  }

  .student-strip span {
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .data-source-panel {
    align-items: flex-start;
    padding: 12px;
  }

  .data-source-panel p {
    font-size: 12px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .markdown-report {
    margin-top: 12px;
  }

  .base-kpi-grid,
  .metric-grid,
  .candidate-grid,
  .strategy-grid,
  .final-list,
  .advanced-score-grid,
  .analytics-grid,
  .compare-grid,
  .major-card-grid,
  .advanced-two-col,
  .advanced-profile,
  .plain-advice-block,
  .plain-advice-list,
  .checklist-block .check-grid {
    grid-template-columns: 1fr !important;
  }

  .base-kpi {
    min-height: auto;
    padding: 15px 56px 15px 15px;
  }

  .base-kpi h2 {
    max-width: 100%;
    font-size: 19px;
  }

  .report-block,
  .advanced-block {
    padding: 16px;
  }

  .report-block h2,
  .advanced-block h2,
  .chart-card h2 {
    font-size: 18px;
  }

  .report-block p,
  .report-block li,
  .advanced-block p,
  .advanced-block li {
    font-size: 14px;
    line-height: 1.85;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .reference-table-wrap,
  .school-reference-table,
  .markdown-report table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .reference-table,
  .markdown-report table {
    min-width: 680px;
  }

  .advanced-cover {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .advanced-cover h1 {
    font-size: 24px;
    line-height: 1.25;
  }

  .advanced-cover button {
    width: 100%;
  }

  .advanced-profile > div {
    min-height: auto;
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid #e6eef9;
  }

  .advanced-profile > div:last-child {
    border-bottom: 0;
  }

  .advanced-profile strong,
  .advanced-profile small,
  .plain-advice-list p,
  .compare-grid strong,
  .compare-grid dd,
  .final-list p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .plain-advice-block {
    gap: 14px;
  }

  .plain-advice-title h2 {
    font-size: 20px;
  }

  .plain-advice-list article,
  .compare-grid header,
  .final-item,
  .check-grid label {
    grid-template-columns: auto 1fr;
  }

  .compare-grid dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .compare-grid dt,
  .compare-grid dd {
    padding: 0;
  }

  .compare-grid dd {
    margin-bottom: 10px;
  }

  .unlock-form {
    grid-template-columns: 1fr;
  }

  .unlock-options {
    grid-template-columns: 1fr;
  }

  .upgrade-deliverables {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .upgrade-deliverables span {
    flex: 1 1 calc(50% - 8px);
    min-width: 132px;
    text-align: center;
  }
}

@media (max-width: 390px) {
  .blue-shell,
  .report-page {
    width: calc(100% - 18px);
  }

  .hero-blue h1 {
    font-size: 25px;
  }

  .report-hero h1 {
    font-size: 22px;
  }

  .advisor-form,
  .inner-form-card,
  .candidate-panel,
  .report-block,
  .advanced-block {
    padding: 13px;
  }
}

/* 2026-06-11 report layout polish: keep the existing blue-white visual language, improve hierarchy */
.app-report {
  background:
    linear-gradient(180deg, #eef6ff 0, #f8fbff 320px, #ffffff 760px),
    #ffffff;
}

.app-report .site-header {
  box-shadow: 0 1px 0 rgba(217, 229, 246, 0.86);
}

.report-page {
  padding-bottom: 108px;
}

.report-hero {
  position: relative;
  margin-bottom: 12px;
  border-bottom: 0;
}

.report-hero::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 18px;
  width: 240px;
  height: 116px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 28% 42%, rgba(23, 105, 255, 0.16) 0 24px, transparent 25px),
    linear-gradient(135deg, rgba(23, 105, 255, 0.12), rgba(75, 157, 255, 0.03));
  pointer-events: none;
}

.report-title-line {
  max-width: 820px;
}

.report-title-line h1 {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.15;
}

.report-title-line .sub {
  max-width: 760px;
  margin-top: 10px;
  color: #4e5e78;
  font-size: 15px;
  font-weight: 700;
}

.report-actions {
  position: relative;
  z-index: 1;
}

.student-strip {
  margin-top: 4px;
  margin-bottom: 14px;
}

.data-source-panel {
  display: none;
}

.report-toc {
  position: sticky;
  top: 70px;
  z-index: 5;
  display: flex;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin: 2px 0 14px auto;
  padding: 6px;
  border: 1px solid rgba(209, 225, 248, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 26px rgba(29, 78, 216, 0.08);
  backdrop-filter: blur(12px);
}

.report-toc a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: #1f3764;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.report-toc a:first-child {
  background: #1769ff;
  color: #fff;
}

.base-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.base-kpi {
  min-height: 150px;
  border: 1px solid #dbe8fb;
  background: rgba(255, 255, 255, 0.94);
}

.base-kpi h2 {
  max-width: none;
  margin: 4px 0 8px;
  font-size: 20px;
}

.base-kpi small {
  display: -webkit-box;
  max-width: none;
  overflow: hidden;
  color: #53637d;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.base-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  gap: 14px;
  margin-top: 14px;
}

.base-two-col.uneven {
  grid-template-columns: minmax(420px, 0.95fr) minmax(0, 1.05fr);
}

.report-block {
  position: relative;
  overflow: hidden;
  padding: 24px 26px;
  border: 1px solid #dbe8fb;
  background: rgba(255, 255, 255, 0.96);
}

.report-block::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.section-index {
  display: inline-block;
  margin-bottom: 10px;
  color: #111827;
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.report-block h2 {
  display: inline-block;
  margin: 0 0 16px 12px;
  padding-left: 0;
  font-size: 24px;
  line-height: 1.2;
  vertical-align: top;
}

.report-block h2::before {
  display: none;
}

.report-narrative p,
.report-block > p,
.upgrade-teaser p {
  color: #202b3a;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.95;
}

.report-narrative strong,
.report-block strong {
  color: #0f1f3d;
  font-weight: 950;
}

.report-block ul {
  margin: 12px 0 0;
  padding-left: 0;
  list-style: none;
}

.report-block li {
  position: relative;
  margin: 9px 0;
  padding-left: 20px;
  color: #33445f;
  font-size: 15px;
  font-weight: 730;
  line-height: 1.75;
}

.report-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #1769ff;
}

.distribution-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}

.distribution-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 162px;
  height: 162px;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 42%, transparent 43%),
    conic-gradient(#ef4444 0 20%, #1769ff 20% 50%, #16a34a 50% 100%);
}

.distribution-ring strong,
.distribution-ring span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.distribution-ring strong {
  top: 53px;
  color: #101827;
  font-size: 30px;
  font-weight: 950;
}

.distribution-ring span {
  top: 91px;
  width: 90px;
  color: #59667d;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.distribution-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.distribution-card dl div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #e2ebf8;
  border-radius: 12px;
  background: #f8fbff;
}

.distribution-card dt {
  color: #4b5870;
  font-size: 14px;
  font-weight: 850;
}

.distribution-card dd {
  margin: 0;
  font-size: 18px;
  font-weight: 950;
}

.distribution-card dl div:nth-child(1) dd {
  color: #ef4444;
}

.distribution-card dl div:nth-child(2) dd {
  color: #1769ff;
}

.distribution-card dl div:nth-child(3) dd {
  color: #16a34a;
}

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

.rush-stable-safe > div {
  min-height: 94px;
  padding: 16px;
}

.direction-list {
  gap: 10px;
}

.candidate-check-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e0e9f6;
  border-radius: 12px;
  background: #fff;
}

.candidate-check-card > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #1769ff;
  color: white;
  font-size: 17px;
  font-weight: 950;
}

.candidate-check-card strong {
  display: inline-block;
  margin-right: 8px;
  color: #101827;
  font-size: 17px;
}

.candidate-check-card em {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1769ff;
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
}

.candidate-check-card p {
  margin: 7px 0 0;
  color: #4d5b72;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.65;
}

.reference-table-wrap {
  overflow: auto;
  border: 1px solid #e0e9f6;
  background: #fff;
}

.reference-table {
  min-width: 680px;
}

.reference-table th,
.reference-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #e6eef8;
}

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

.checkline-list li {
  min-height: 44px;
  margin: 0;
  padding: 10px 12px 10px 34px;
  border: 1px solid #e0e9f6;
  border-radius: 10px;
  background: #f8fbff;
}

.checkline-list li::before {
  left: 14px;
  top: 18px;
}

.upgrade-teaser {
  background:
    radial-gradient(circle at 90% 18%, rgba(23, 105, 255, 0.12), transparent 24%),
    linear-gradient(135deg, #ffffff, #f6faff);
}

.teaser-actions {
  align-items: center;
}

.teaser-actions button,
.teaser-actions a {
  min-height: 48px;
  border-radius: 10px;
}

.upgrade {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: 16px;
  padding: 24px 28px;
}

.unlock-cta {
  min-width: 210px;
  min-height: 54px;
  border-radius: 10px;
}

.app-home .advisor-layout {
  grid-template-columns: 260px minmax(0, 1fr);
}

.app-home .advisor-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 8px 16px;
  min-width: 0;
}

.app-home .form-title-row,
.app-home .inner-form-card {
  grid-column: 1 / 2;
  min-width: 0;
}

.app-home .candidate-panel {
  grid-column: 2 / 3;
  grid-row: 2 / span 1;
  align-self: start;
  position: sticky;
  top: 84px;
  max-width: 100%;
  min-width: 0;
  margin-top: 0;
}

.app-home .form-title-row {
  margin-bottom: 0;
}

.app-home .candidate-panel textarea {
  min-height: 104px;
}

.app-home .advisor-form label,
.app-home .advisor-form fieldset,
.app-home .advisor-form input,
.app-home .advisor-form select,
.app-home .advisor-form textarea {
  box-sizing: border-box;
  min-width: 0;
}

.app-home .first-section-row {
  align-items: center;
  margin: 0 0 12px;
}

.app-home .first-section-row .form-section-title {
  margin: 0;
}

.app-home .first-section-row .secondary-button {
  min-height: 34px;
  padding: 0 14px;
  border-color: #b9d4ff;
  color: #1769ff;
  background: #f4f8ff;
  font-weight: 950;
}

.app-home .score-grid {
  grid-template-columns: minmax(104px, 0.9fr) minmax(138px, 1.1fr) minmax(108px, 0.9fr) minmax(170px, 1.2fr);
  gap: 13px;
  align-items: start;
}

.app-home .score-grid > label:nth-child(3),
.app-home .score-grid > label:nth-child(4) {
  max-width: 100%;
}

.app-home .advisor-form select {
  width: 100%;
  height: 46px;
  margin-top: 8px;
  padding: 0 38px 0 12px;
  border: 1px solid #ccdced;
  border-radius: 8px;
  background:
    linear-gradient(45deg, transparent 50%, #102247 50%) right 16px center / 6px 6px no-repeat,
    linear-gradient(135deg, #102247 50%, transparent 50%) right 10px center / 6px 6px no-repeat,
    #fff;
  color: #14213f;
  font-weight: 850;
  line-height: 46px;
  appearance: none;
  -webkit-appearance: none;
}

.subject-picker > span {
  display: block;
  color: #13284d;
  font-size: 14px;
  font-weight: 950;
}

.subject-picker {
  position: relative;
}

.subject-summary {
  width: 100%;
  height: 46px;
  margin-top: 8px;
  padding: 0 38px 0 12px;
  border: 1px solid #ccdced;
  border-radius: 8px;
  background:
    linear-gradient(45deg, transparent 50%, #102247 50%) right 16px center / 6px 6px no-repeat,
    linear-gradient(135deg, #102247 50%, transparent 50%) right 10px center / 6px 6px no-repeat,
    #fff;
  color: #97a5ba;
  font-size: 14px;
  font-weight: 850;
  line-height: 46px;
  text-align: left;
  box-shadow: none;
}

.subject-summary.has-value {
  color: #14213f;
}

.subject-summary:hover {
  transform: none;
  box-shadow: 0 0 0 4px rgba(23, 105, 255, 0.08);
}

.subject-chips {
  position: absolute;
  z-index: 30;
  left: 0;
  right: auto;
  top: calc(100% + 8px);
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(320px, 72vw);
  margin-top: 0;
  padding: 10px;
  border: 1px solid #cfe0fb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(21, 48, 92, 0.14);
}

.subject-picker.open .subject-chips {
  display: grid;
}

.subject-chips label {
  margin: 0;
}

.subject-chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.subject-chips span {
  display: grid;
  place-items: center;
  min-height: 36px;
  border: 1px solid #ccdced;
  border-radius: 8px;
  background: #fff;
  color: #1d3158;
  font-size: 13px;
  font-weight: 950;
}

.subject-chips input:checked + span {
  border-color: #5b9dff;
  background: #eef5ff;
  color: #1769ff;
  box-shadow: inset 0 0 0 1px rgba(23, 105, 255, 0.12);
}

.rank-field em {
  color: #8a9ab4;
  font-style: normal;
}

.rank-input-row {
  position: relative;
  display: block;
  margin-top: 8px;
}

.rank-input-row input {
  margin-top: 0 !important;
  width: 100% !important;
  min-width: 0;
  padding-right: 58px !important;
}

.rank-input-row button {
  position: absolute;
  top: 5px;
  right: 5px;
  bottom: 5px;
  width: 48px;
  min-height: 0;
  border: 1px solid #b9d4ff;
  border-radius: 8px;
  background: #f4f8ff;
  color: #1769ff;
  font-weight: 950;
  cursor: pointer;
}

.app-home .advisor-form .segmented-grid.two-wide {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.app-home .advisor-form .segmented-grid.two-wide fieldset {
  min-width: 0;
}

.app-home .advisor-form .segmented-grid.two-wide .pill-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.app-home .advisor-form .segmented-grid.two-wide fieldset:nth-child(2) .pill-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-home .advisor-form .segmented-grid.two-wide .pill-options span {
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  text-align: center;
  white-space: nowrap;
}

.app-home .advisor-form .segmented-grid.two-wide .pill-options small {
  display: none;
}

.app-home .candidate-title {
  align-items: center;
  padding-bottom: 12px;
}

.app-home .candidate-title p {
  display: block;
  max-width: 220px;
  line-height: 1.55;
}

.app-home .candidate-example-button {
  min-height: 34px;
  padding: 0 12px;
  white-space: nowrap;
}

.app-home .trust-list {
  gap: 10px;
}

.app-home .trust-list div {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 6px 0 6px 0;
  border-left: 0;
}

.app-home .trust-list div::before {
  content: "";
  position: static;
  grid-row: 1 / 3;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.72), transparent 26%),
    linear-gradient(145deg, #1d73ff, #78b3ff);
  border: 0;
  box-shadow: 0 8px 18px rgba(23, 105, 255, 0.18);
}

.app-home .trust-list div::after {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.app-home .trust-list div:nth-child(1)::after {
  content: "数";
}

.app-home .trust-list div:nth-child(2)::after {
  content: "AI";
}

.app-home .trust-list div:nth-child(3)::after {
  content: "安";
}

.app-home .trust-list b {
  line-height: 1.15;
}

.app-home .trust-list span {
  line-height: 1.25;
  white-space: nowrap;
}

.app-home .step-rail li {
  align-items: center;
}

.app-home .step-rail li span {
  align-self: center;
}

.app-home .step-rail li strong {
  align-self: end;
  line-height: 1.15;
}

.app-home .step-rail li em {
  align-self: start;
  line-height: 1.2;
}

.generate-status {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 16px auto 0;
  width: min(620px, 100%);
  padding: 14px 16px;
  border: 1px solid #bad6ff;
  border-radius: 12px;
  background: linear-gradient(135deg, #f4f8ff, #ffffff);
  color: #15305c;
  box-shadow: 0 12px 24px rgba(23, 105, 255, 0.10);
}

.generate-status[hidden] {
  display: none;
}

.generate-status strong {
  display: block;
  font-size: 15px;
  font-weight: 950;
}

.generate-status p {
  margin: 4px 0 0;
  color: #5d6f8d;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.status-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid #d9e8ff;
  border-top-color: #1769ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.app-home .advisor-form.is-generating .primary-submit-row button {
  position: relative;
  cursor: wait;
}

@media (max-width: 1180px) {
  .base-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-home .advisor-form {
    grid-template-columns: 1fr;
  }

  .app-home .form-title-row,
  .app-home .inner-form-card,
  .app-home .candidate-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .app-home .candidate-panel {
    position: static;
  }
}

@media (max-width: 900px) {
  .report-page {
    padding-bottom: 116px;
  }

  .report-hero::after {
    display: none;
  }

  .base-two-col,
  .base-two-col.uneven,
  .distribution-card {
    grid-template-columns: 1fr;
  }

  .report-toc {
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
  }

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

@media (max-width: 720px) {
  .app-report {
    background: #fff;
  }

  .site-header {
    display: none;
  }

  .blue-shell,
  .report-page {
    width: min(100% - 22px, 430px);
  }

  .report-page {
    padding-top: 14px;
  }

  .report-hero {
    min-height: auto;
    padding: 10px 0 8px;
  }

  .report-actions {
    display: none;
  }

  .report-title-line {
    display: block;
  }

  .report-badge,
  .breadcrumb,
  .report-title-line .eyebrow,
  .report-title-line .sub {
    display: none;
  }

  .report-title-line h1 {
    font-size: 28px;
    line-height: 1.18;
  }

  .student-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 14px;
  }

  .student-strip div {
    padding: 9px 8px;
    border-right: 0;
    border-bottom: 1px solid #edf2f8;
  }

  .student-strip div:first-child {
    grid-column: 1 / -1;
  }

  .student-strip div:last-child,
  .student-strip div:nth-last-child(2) {
    border-bottom: 0;
  }

  .student-strip b {
    font-size: 12px;
  }

  .student-strip span {
    font-size: 14px;
  }

  .report-toc {
    top: 0;
    margin: 0 0 12px;
    padding: 5px;
    border-radius: 12px;
  }

  .report-toc a {
    min-width: 64px;
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .base-kpi-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .base-kpi {
    min-height: auto;
    padding: 15px 56px 15px 15px;
  }

  .base-kpi h2 {
    font-size: 18px;
  }

  .base-kpi small {
    -webkit-line-clamp: 2;
  }

  .report-block {
    padding: 20px 16px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .section-index {
    font-size: 26px;
  }

  .report-block h2 {
    margin-left: 8px;
    font-size: 22px;
  }

  .report-narrative p,
  .report-block > p,
  .upgrade-teaser p {
    font-size: 17px;
    line-height: 1.95;
  }

  .distribution-ring {
    width: 146px;
    height: 146px;
  }

  .distribution-ring strong {
    top: 46px;
  }

  .distribution-ring span {
    top: 84px;
  }

  .rush-stable-safe {
    grid-template-columns: 1fr;
  }

  .candidate-check-card {
    grid-template-columns: 36px 1fr;
    padding: 12px;
  }

  .candidate-check-card > span {
    width: 36px;
    height: 36px;
  }

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

  .upgrade {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    padding: 20px 16px;
  }

  .price-row {
    display: block;
  }

  .price-row span {
    display: inline-flex;
    max-width: 100%;
    margin-top: 8px;
    white-space: normal;
  }

  .unlock-cta {
    width: 100%;
  }

  .privacy-footer {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .app-home .hero-blue {
    min-height: auto;
    padding: 16px 0;
  }

  .app-home .hero-blue h1 {
    font-size: 28px;
  }

  .step-rail {
    display: none;
  }

  .advisor-form {
    padding: 16px;
  }

  .inner-form-card,
  .candidate-panel {
    padding: 16px;
  }

  .four-grid,
  .three-grid,
  .two-wide,
  .segmented-grid {
    grid-template-columns: 1fr;
  }

  .pill-options,
  .segmented {
    grid-template-columns: 1fr 1fr;
  }

  .app-home .score-grid {
    grid-template-columns: 1fr;
  }

  .app-home .advisor-form .segmented-grid.two-wide {
    grid-template-columns: 1fr;
  }

  .app-home .advisor-form .segmented-grid.two-wide .pill-options,
  .app-home .advisor-form .segmented-grid.two-wide fieldset:nth-child(2) .pill-options {
    grid-template-columns: 1fr 1fr;
  }

  .subject-chips {
    grid-template-columns: 1fr 1fr;
  }

  .subject-picker.open .subject-chips {
    position: static;
    margin-top: 8px;
  }

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

  .rank-input-row button {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .app-report .report-actions {
    display: none !important;
  }

  .app-home .blue-shell,
  .app-home .advisor-layout,
  .app-home .advisor-form,
  .app-home .inner-form-card,
  .app-home .candidate-panel,
  .app-report .blue-shell,
  .app-report .report-page,
  .app-report .panel {
    box-sizing: border-box;
    max-width: 100%;
  }

  .app-home .advisor-layout,
  .app-home .advisor-form {
    width: 100%;
    overflow: hidden;
  }
}

/* 2026-06-14 home recommendation workstation */
.app-home {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(218, 234, 255, .75) 0 9%, transparent 9%),
    radial-gradient(circle at 7% 18%, rgba(23, 105, 255, .10), transparent 20%),
    radial-gradient(circle at 91% 14%, rgba(23, 105, 255, .12), transparent 22%),
    linear-gradient(180deg, #f6fbff 0, #eef6ff 300px, #f7fbff 100%);
}

.app-home .site-header {
  display: none;
}

.app-home .blue-shell {
  width: min(1680px, calc(100vw - 56px));
  padding-bottom: 30px;
}

.app-home .hero-blue {
  min-height: 132px;
  padding: 20px 0 10px;
  text-align: center;
  background: linear-gradient(90deg, rgba(23, 105, 255, .08), rgba(255, 255, 255, .55), rgba(23, 105, 255, .08));
}

.app-home .hero-blue::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 30px;
  width: 146px;
  height: 92px;
  opacity: .38;
  background:
    linear-gradient(90deg, transparent 0 12%, #8ebaff 12% 23%, transparent 23% 31%, #8ebaff 31% 42%, transparent 42% 50%, #8ebaff 50% 61%, transparent 61% 69%, #8ebaff 69% 80%, transparent 80%),
    linear-gradient(#8ebaff, #8ebaff) left 10px top 75px / 116px 10px no-repeat,
    linear-gradient(135deg, transparent 0 45%, #8ebaff 45% 55%, transparent 55%);
}

.app-home .hero-blue::after {
  right: 42px;
  top: 10px;
  width: 300px;
  height: 126px;
  opacity: .62;
}

.app-home .hero-blue h1 {
  font-size: clamp(34px, 3.8vw, 58px);
  line-height: 1.08;
}

.app-home .hero-blue p:last-child {
  margin-top: 10px;
  color: #13284d;
  font-size: clamp(17px, 1.35vw, 24px);
}

.app-home .hero-blue small {
  display: block;
  margin-top: 6px;
  color: #5e6f89;
  font-size: 15px;
  font-weight: 800;
}

.app-home .advisor-layout {
  display: grid;
  grid-template-columns: 280px minmax(760px, 1fr) 320px;
  gap: 22px;
  align-items: start;
  width: 100%;
}

.app-home .advisor-layout .panel,
.app-home .home-side-card {
  border: 1px solid rgba(207, 224, 248, .96);
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 42px rgba(28, 93, 178, .12);
}

.app-home .step-rail {
  position: sticky;
  top: 20px;
  min-height: 780px;
  padding: 28px 20px;
}

.app-home .step-rail h2 {
  font-size: 20px;
  text-align: center;
}

.app-home .step-rail ol {
  position: relative;
  gap: 20px;
}

.app-home .step-rail ol::before {
  content: "";
  position: absolute;
  left: 38px;
  top: 58px;
  bottom: 58px;
  width: 2px;
  background: #d8e5f6;
}

.app-home .step-rail li {
  position: relative;
  z-index: 1;
  grid-template-columns: 48px 1fr;
  min-height: 74px;
  padding: 14px 16px;
}

.app-home .step-rail li.active {
  border: 1px solid #a9caff;
  background: linear-gradient(135deg, #eef6ff, #ffffff);
}

.app-home .step-rail li span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.app-home .trust-list {
  margin-top: 34px;
  padding: 18px;
  border-radius: 16px;
}

.app-home .helped-count {
  margin-top: 42px;
  text-align: center;
}

.app-home .advisor-form {
  display: block;
  padding: 0;
  min-width: 0;
  overflow: visible;
}

.app-home .form-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  margin: 0;
  padding: 16px 38px 0;
}

.app-home .form-title-row .eyebrow {
  margin: 0;
  font-size: 20px;
  color: #1769ff;
}

.app-home .form-title-row > span {
  padding: 9px 16px;
  border-radius: 9px;
  background: #edf4ff;
  color: #1769ff;
}

.app-home .inner-form-card {
  margin: 0 22px 22px;
  padding: 18px 20px 20px;
  border-radius: 12px;
  box-shadow: none;
}

.app-home .candidate-panel {
  position: static;
  margin: 0 22px 22px;
  padding: 18px 20px;
  border: 1px dashed #c9dcf5;
  border-radius: 12px;
  background: rgba(248, 251, 255, .9);
}

.app-home .candidate-panel .grid,
.app-home .candidate-panel > label:not(:first-of-type),
.app-home .candidate-panel .candidate-title p {
  display: none;
}

.app-home .candidate-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 0;
  border: 0;
}

.app-home .candidate-title h3 {
  margin: 0;
  color: #102247;
  font-size: 15px;
}

.app-home .candidate-panel textarea.large-textarea {
  min-height: 58px;
  margin-top: 12px;
}

.app-home .score-grid {
  grid-template-columns: minmax(130px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(220px, 1.45fr);
}

.app-home .advisor-form .two-wide {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.app-home .segmented input,
.app-home .pill-options input,
.app-home .subject-chips input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.home-result-panel {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 20px;
}

.home-side-card {
  padding: 22px;
}

.home-side-card h3 {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 18px;
  color: #102247;
  font-size: 17px;
}

.home-side-card h3 span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #edf4ff;
  color: #1769ff;
}

.reward-card ul,
.basis-card ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reward-card li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  color: #30415f;
  font-weight: 850;
}

.reward-card b {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #edf4ff;
  color: #1769ff;
  font-size: 11px;
}

.reward-card b.rush { background: #fff0f1; color: #ff4d57; }
.reward-card b.stable { background: #eafaf1; color: #16a05d; }
.reward-card b.safe { background: #f0ecff; color: #7c5ce7; }
.reward-card b.orange { background: #fff5e8; color: #f59e0b; }
.reward-card b.blue { background: #edf4ff; color: #1769ff; }

.progress-ring {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin: 8px auto 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, #fff 70%, transparent 72%),
    conic-gradient(#1769ff 0 68%, #dce9ff 68% 100%);
}

.progress-ring strong {
  color: #102247;
  font-size: 28px;
}

.completion-card > p {
  margin: 0 0 16px;
  color: #344562;
  font-weight: 850;
  text-align: center;
}

.completion-card > p b {
  color: #1769ff;
}

.completion-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid #e4edf8;
}

.completion-split strong {
  display: block;
  margin-bottom: 6px;
  color: #16a05d;
  font-size: 13px;
}

.completion-split div:nth-child(2) strong {
  color: #d97706;
}

.completion-split span {
  color: #51647f;
  font-size: 13px;
  line-height: 1.55;
}

.basis-card p {
  margin: 0 0 12px;
  color: #51647f;
  font-weight: 800;
}

.basis-card ul {
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  padding-left: 18px;
  list-style: disc;
}

.basis-card li {
  color: #102247;
  font-weight: 850;
}

.basis-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #edf4ff;
  color: #1769ff;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.55;
}

@media (max-width: 1280px) {
  .app-home .advisor-layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .home-result-panel {
    grid-column: 1 / -1;
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .app-home .advisor-layout,
  .home-result-panel {
    grid-template-columns: 1fr;
  }

  .app-home .step-rail {
    position: static;
    min-height: auto;
  }

  .app-home .form-title-row {
    display: grid;
    gap: 10px;
    padding: 16px 18px 0;
  }
}

/* 2026-06-14 home icon polish and live completion */
.home-ui-icon {
  --icon-color: #1769ff;
  --icon-bg: #edf4ff;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--icon-bg);
  color: var(--icon-color);
}

.home-ui-icon::before {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.home-ui-icon.rush { --icon-color: #ff4d57; --icon-bg: #fff0f1; }
.home-ui-icon.stable { --icon-color: #16a05d; --icon-bg: #eafaf1; }
.home-ui-icon.safe { --icon-color: #7c5ce7; --icon-bg: #f0ecff; }
.home-ui-icon.orange { --icon-color: #f59e0b; --icon-bg: #fff5e8; }
.home-ui-icon.blue { --icon-color: #1769ff; --icon-bg: #edf4ff; }

.icon-gift {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 12v9H4v-9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M2 7h20v5H2z' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M12 7v14M12 7H8.5A2.5 2.5 0 1 1 11 4.5L12 7Zm0 0h3.5A2.5 2.5 0 1 0 13 4.5L12 7Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.icon-trending {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 17 14 7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M8 7h6v6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='m4 11 4-4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.icon-shield {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 19 6v5c0 4.4-2.8 7.5-7 10-4.2-2.5-7-5.6-7-10V6l7-3Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.icon-check-shield {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 19 6v5c0 4.4-2.8 7.5-7 10-4.2-2.5-7-5.6-7-10V6l7-3Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='m9 12 2 2 4-5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.icon-chart {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20h16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M6 16v-5M12 16V7M18 16v-8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='m6 9 4-4 3 3 5-5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.icon-compass {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m15.5 8.5-2.1 4.9-4.9 2.1 2.1-4.9 4.9-2.1Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.icon-clipboard {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 4h8v3H8z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M7 6H5v15h14V6h-2' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M8 12h8M8 16h6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.icon-info {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M12 11v5M12 8h.01' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
.icon-database {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='6' rx='7' ry='3' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M5 6v12c0 1.7 3.1 3 7 3s7-1.3 7-3V6' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M5 12c0 1.7 3.1 3 7 3s7-1.3 7-3' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
}
.icon-brain {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 4a4 4 0 0 0-4 4 4 4 0 0 0 1 7.7V17a3 3 0 0 0 5 2.2V4H9Zm6 0a4 4 0 0 1 4 4 4 4 0 0 1-1 7.7V17a3 3 0 0 1-5 2.2V4h2Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.app-home {
  --home-icon-database: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='6' rx='7' ry='3' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M5 6v12c0 1.7 3.1 3 7 3s7-1.3 7-3V6' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M5 12c0 1.7 3.1 3 7 3s7-1.3 7-3' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
  --home-icon-brain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 4a4 4 0 0 0-4 4 4 4 0 0 0 1 7.7V17a3 3 0 0 0 5 2.2V4H9Zm6 0a4 4 0 0 1 4 4 4 4 0 0 1-1 7.7V17a3 3 0 0 1-5 2.2V4h2Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
  --home-icon-shield-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 19 6v5c0 4.4-2.8 7.5-7 10-4.2-2.5-7-5.6-7-10V6l7-3Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='m9 12 2 2 4-5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.app-home .home-side-card h3,
.app-home .reward-card li {
  align-items: center;
  line-height: 1.25;
}

.app-home .home-side-card h3 span:not(.home-ui-icon),
.app-home .reward-card b {
  display: none;
}

.app-home .reward-card li {
  grid-template-columns: 28px minmax(0, 1fr);
}

.app-home .reward-card .home-ui-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
}

.app-home .reward-card .home-ui-icon::before {
  width: 14px;
  height: 14px;
}

.app-home .trust-list div::before {
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, .72), transparent 26%),
    linear-gradient(145deg, #1d73ff, #78b3ff);
}

.app-home .trust-list div::after {
  content: "";
  left: 7px;
  width: 18px;
  height: 18px;
  background: #fff;
  -webkit-mask: var(--trust-icon) center / contain no-repeat;
  mask: var(--trust-icon) center / contain no-repeat;
}

.app-home .trust-list div:nth-child(1) {
  --trust-icon: var(--home-icon-database);
}

.app-home .trust-list div:nth-child(2) {
  --trust-icon: var(--home-icon-brain);
}

.app-home .trust-list div:nth-child(3) {
  --trust-icon: var(--home-icon-shield-check);
}

.app-home .trust-list b,
.app-home .trust-list span,
.app-home .step-rail li strong,
.app-home .step-rail li em {
  line-height: 1.25;
}

.app-home .helped-count {
  max-width: 210px;
  margin: 42px auto 0;
  color: #42536f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.65;
  text-align: center;
}

.app-home .helped-count strong {
  color: #1769ff;
  white-space: nowrap;
}

.app-home .helped-count span {
  display: block;
}

.progress-ring {
  background:
    radial-gradient(circle closest-side, #fff 70%, transparent 72%),
    conic-gradient(#1769ff 0 var(--progress, 0%), #dce9ff var(--progress, 0%) 100%);
}

/* 2026-06-14 home typography and field alignment pass */
.app-home {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

.app-home .hero-blue h1 {
  font-weight: 800;
}

.app-home .hero-blue p:last-child,
.app-home .hero-blue small,
.app-home .step-rail h2,
.app-home .form-title-row .eyebrow,
.app-home .home-side-card h3 {
  font-weight: 700;
}

.app-home .advisor-form label,
.app-home .advisor-form legend,
.app-home .subject-picker > span,
.app-home .form-section-title,
.app-home .step-rail li strong,
.app-home .trust-list b,
.app-home .reward-card li,
.app-home .basis-card li {
  font-weight: 600;
}

.app-home .step-rail li em,
.app-home .trust-list span,
.app-home .advisor-form small,
.app-home .completion-split span,
.app-home .basis-card p {
  font-weight: 400;
}

.app-home .advisor-form input,
.app-home .advisor-form select,
.app-home .advisor-form textarea,
.app-home .subject-summary,
.app-home .segmented span,
.app-home .pill-options span {
  font-weight: 500;
}

.app-home .advisor-form select,
.app-home .subject-summary {
  display: flex;
  align-items: center;
  height: 48px;
  min-height: 48px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 48px;
}

.app-home .subject-summary {
  appearance: none;
  -webkit-appearance: none;
}

.app-home .score-grid {
  align-items: start;
}

.app-home .score-grid > label,
.app-home .score-grid > .subject-picker {
  display: block;
}

.app-home .home-side-card.reward-card {
  padding: 28px 26px;
}

.app-home .reward-card h3 {
  margin-bottom: 24px;
  font-size: 20px;
}

.app-home .reward-card h3 .home-ui-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.app-home .reward-card h3 .home-ui-icon::before {
  width: 20px;
  height: 20px;
}

.app-home .reward-card ul {
  gap: 18px;
}

.app-home .reward-card li {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 13px;
  color: #1f3152;
  font-size: 16px;
  line-height: 1.35;
}

.app-home .reward-card .home-ui-icon {
  width: 28px;
  height: 28px;
}

.app-home .reward-card .home-ui-icon::before {
  width: 16px;
  height: 16px;
}

/* 2026-06-14 Tabler-style homepage icon system */
.icon-badge {
  --badge-bg: #edf4ff;
  --badge-color: #1769ff;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(23, 105, 255, .10);
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .88), transparent 30%),
    var(--badge-bg);
  color: var(--badge-color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92);
}

.app-home .home-side-card h3 .icon-badge,
.app-home .reward-card li .icon-badge {
  display: inline-grid !important;
}

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

.icon-badge.rush { --badge-bg: #fff1f2; --badge-color: #f0444e; border-color: rgba(240, 68, 78, .12); }
.icon-badge.stable { --badge-bg: #eafaf1; --badge-color: #12a366; border-color: rgba(18, 163, 102, .12); }
.icon-badge.safe { --badge-bg: #f1edff; --badge-color: #7657e8; border-color: rgba(118, 87, 232, .12); }
.icon-badge.orange { --badge-bg: #fff5e8; --badge-color: #f39a18; border-color: rgba(243, 154, 24, .14); }
.icon-badge.blue { --badge-bg: #edf4ff; --badge-color: #1769ff; border-color: rgba(23, 105, 255, .12); }

.app-home .reward-card h3 .icon-badge,
.app-home .home-side-card h3 .icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.app-home .reward-card h3 .icon-badge svg,
.app-home .home-side-card h3 .icon-badge svg {
  width: 20px;
  height: 20px;
}

.app-home .reward-card ul {
  gap: 14px;
}

.app-home .reward-card li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 38px;
  padding: 4px 0;
  color: #1d2f50;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.app-home .reward-card li .icon-badge {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.app-home .reward-card li .icon-badge svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.15;
}

.app-home .home-side-card h3 {
  gap: 12px;
}

/* 2026-06-16 mobile final pass: keep home and report usable on 360-430px screens. */
@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-home *,
  .app-report * {
    min-width: 0;
  }

  .app-home .site-header {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 10px 14px;
  }

  .app-home .brand {
    min-width: 0;
  }

  .app-home .brand strong {
    display: block;
    max-width: calc(100vw - 82px);
    overflow: hidden;
    font-size: 15px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-home .brand em,
  .app-home .header-spacer {
    display: none;
  }

  .app-home .blue-shell,
  .app-report .blue-shell.report-page {
    width: 100% !important;
    max-width: none !important;
    padding: 0 12px 18px !important;
  }

  .app-home .hero-blue {
    min-height: auto;
    margin: 0 -12px 10px;
    padding: 18px 18px 14px;
    text-align: left;
    place-items: start;
  }

  .app-home .hero-blue > div {
    max-width: calc(100vw - 36px);
  }

  .app-home .hero-blue::before,
  .app-home .hero-blue::after {
    display: none;
  }

  .app-home .hero-blue h1 {
    max-width: 100%;
    font-size: 30px;
    line-height: 1.16;
    overflow-wrap: anywhere;
  }

  .app-home .hero-blue p:last-child {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .app-home .hero-blue small {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .app-home .advisor-layout {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    grid-template-columns: none !important;
    overflow: visible;
  }

  .app-home .advisor-form {
    order: 1;
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    padding: 0 !important;
    border-radius: 14px !important;
    overflow: visible;
  }

  .app-home .step-rail {
    order: 2;
    position: static !important;
    min-height: auto !important;
    padding: 16px;
    border-radius: 14px !important;
  }

  .app-home .home-result-panel {
    order: 3;
    position: static !important;
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 12px;
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
  }

  .app-home .step-rail h2 {
    margin-bottom: 12px;
    font-size: 17px;
    text-align: left;
  }

  .app-home .step-rail ol {
    gap: 10px;
  }

  .app-home .step-rail ol::before {
    display: none;
  }

  .app-home .step-rail li {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: auto;
    padding: 10px 12px;
  }

  .app-home .step-rail li span {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .app-home .step-rail li strong {
    font-size: 14px;
  }

  .app-home .step-rail li em {
    font-size: 12px;
  }

  .app-home .trust-list {
    margin-top: 14px;
    padding: 12px;
  }

  .app-home .helped-count {
    margin: 14px auto 0;
  }

  .app-home .form-title-row {
    display: grid;
    gap: 8px;
    padding: 14px 14px 0;
  }

  .app-home .form-title-row .eyebrow {
    font-size: 17px;
    line-height: 1.25;
  }

  .app-home .form-title-row > span {
    width: fit-content;
    max-width: 100%;
    padding: 7px 10px;
    font-size: 12px;
    line-height: 1.35;
  }

  .app-home .inner-form-card,
  .app-home .candidate-panel {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    margin: 0 12px 12px !important;
    padding: 14px !important;
    border-radius: 12px !important;
    overflow: visible;
  }

  .app-home .section-row,
  .app-home .candidate-title,
  .app-home .submit-row.primary-submit-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
  }

  .app-home .secondary-button,
  .app-home .submit-row button,
  .app-home .unlock-cta {
    width: 100%;
  }

  .app-home .grid,
  .app-home .score-grid,
  .app-home .advisor-form .score-grid,
  .app-home .advisor-form .two-wide,
  .app-home .two-wide,
  .app-home .three-grid,
  .app-home .segmented-grid,
  .app-home .candidate-panel .grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .app-home .advisor-form label,
  .app-home .subject-picker,
  .app-home fieldset {
    margin-bottom: 0;
  }

  .app-home fieldset {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .app-home input,
  .app-home select,
  .app-home textarea,
  .app-home .subject-summary {
    min-height: 46px;
    font-size: 15px;
  }

  .app-home .subject-picker {
    position: relative;
  }

  .app-home .subject-chips {
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 10px;
  }

  .app-home .subject-chips span {
    min-height: 34px;
    font-size: 13px;
  }

  .app-home .segmented {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .app-home .segmented label {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .app-home .segmented span {
    width: 100%;
    max-width: 100%;
    min-height: 40px;
    padding: 0 4px;
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
  }

  .app-home .pill-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .app-home .pill-options span {
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    text-align: center;
  }

  .app-home .rank-input-row input {
    padding-right: 64px !important;
  }

  .app-home .rank-input-row button {
    width: 52px;
    font-size: 12px;
  }

  .app-home .home-side-card {
    padding: 16px;
    border-radius: 14px !important;
  }

  .app-home .reward-card li,
  .app-home .basis-card li {
    font-size: 14px;
  }

  .app-report .final-report {
    gap: 12px;
  }

  .app-report .report-doc-header {
    grid-template-columns: 1fr !important;
    gap: 10px;
    padding: 14px 2px 4px;
  }

  .app-report .report-doc-header h1 {
    font-size: 28px;
    line-height: 1.16;
  }

  .app-report .report-doc-header p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.55;
  }

  .app-report .report-doc-header dl {
    width: 100%;
    min-width: 0;
    gap: 7px;
    font-size: 13px;
  }

  .app-report .report-doc-header dl div {
    grid-template-columns: 86px minmax(0, 1fr) !important;
    gap: 8px;
  }

  .app-report .report-doc-header dt {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .app-report .report-doc-header dd {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .app-report .report-doc-tools {
    justify-content: stretch;
  }

  .app-report .doc-pdf-button {
    width: 100%;
  }

  .app-report .teacher-contact-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 16px;
    border-radius: 14px;
  }

  .app-report .teacher-contact-copy h2 {
    font-size: 21px;
  }

  .app-report .teacher-contact-copy p {
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .app-report .teacher-contact-qr {
    justify-self: center;
    width: min(100%, 182px);
  }

  .app-report .teacher-contact-qr img {
    width: 142px;
    height: 142px;
  }

  .app-report .visual-page,
  .app-report .final-section,
  .app-report .final-reminder-section,
  .app-report .recommend-board {
    width: 100%;
    padding: 16px 14px;
    border-radius: 14px;
    border-left: 1px solid #dbe6f6;
    border-right: 1px solid #dbe6f6;
  }

  .app-report .visual-card {
    padding: 14px;
    border-radius: 12px;
  }

  .app-report .visual-section-head,
  .app-report .final-section-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .app-report .visual-section-head h2,
  .app-report .final-section-head h2 {
    font-size: 20px;
    line-height: 1.25;
  }

  .app-report .visual-section-head p,
  .app-report .final-section-head p {
    font-size: 12px;
    line-height: 1.45;
  }

  .app-report .visual-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .app-report .visual-stat {
    min-height: 86px;
    padding: 12px;
    gap: 10px;
  }

  .app-report .visual-stat strong {
    font-size: 28px;
  }

  .app-report .profile-portrait-row,
  .app-report .profile-fact-grid,
  .app-report .visual-two-col,
  .app-report .recommend-columns,
  .app-report .focus-explain-grid,
  .app-report .focus-major-chips,
  .app-report .reminder-strip,
  .app-report .paper-check-strip,
  .app-report .school-preview-list div,
  .app-report .visual-page .direction-list div {
    grid-template-columns: 1fr !important;
  }

  .app-report .profile-portrait-row > .visual-card {
    min-height: auto;
  }

  .app-report .profile-fact-grid div {
    grid-template-columns: 24px 72px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
  }

  .app-report .profile-fact-grid strong {
    font-size: 15px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .app-report .portrait-tags {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .app-report .visual-page .direction-list div {
    align-items: start;
    min-height: auto;
    padding: 12px;
  }

  .app-report .visual-page .direction-list span {
    width: fit-content;
  }

  .app-report .recommend-column {
    padding: 12px;
  }

  .app-report .recommend-school-list article,
  .app-report .focus-card {
    padding: 13px;
    border-radius: 12px;
  }

  .app-report .focus-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .app-report .focus-head > strong {
    justify-self: start;
  }

  .app-report .final-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .app-report .final-table-wrap table,
  .app-report .final-table-wrap.compact table {
    min-width: 760px;
    font-size: 12px;
  }

  .app-report .final-table-wrap th,
  .app-report .final-table-wrap td {
    padding: 9px 8px;
  }

  .app-report .upgrade {
    grid-template-columns: 1fr;
    margin: 12px 0 0;
    padding: 16px;
  }

  .app-report .unlock-cta,
  .app-report .unlock-panel {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
  }

  .app-report .unlock-options,
  .app-report .unlock-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .app-home .hero-blue h1,
  .app-report .report-doc-header h1 {
    font-size: 26px;
  }

  .app-home .subject-chips,
  .app-report .visual-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-home .segmented {
    grid-template-columns: 1fr !important;
    gap: 8px;
    border: 0;
    background: transparent;
  }

  .app-home .segmented span {
    border: 1px solid #d7e3f2;
    border-radius: 10px;
  }

  .app-home .segmented span {
    font-size: 13px;
  }
}

/* 2026-06-16 mobile overflow guard: tighten 360-430px home/report layout. */
@media (max-width: 760px) {
  .app-home,
  .app-report {
    width: 100vw;
    overflow-x: hidden;
  }

  .app-home .blue-shell,
  .app-home .advisor-layout,
  .app-home .advisor-form,
  .app-home .step-rail,
  .app-home .home-result-panel,
  .app-home .inner-form-card,
  .app-home .candidate-panel,
  .app-home .home-side-card,
  .app-report .blue-shell.report-page,
  .app-report .final-report,
  .app-report .visual-page,
  .app-report .final-section,
  .app-report .final-reminder-section,
  .app-report .recommend-board {
    max-width: 100%;
    overflow-x: clip;
  }

  .app-home .blue-shell {
    width: 100vw !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .app-home .hero-blue {
    width: 100vw;
    max-width: 100vw;
  }

  .app-home .hero-blue h1 {
    font-size: clamp(25px, 7.1vw, 29px);
    line-height: 1.18;
    letter-spacing: 0;
  }

  .app-home .hero-blue p,
  .app-home .hero-blue small {
    max-width: calc(100vw - 36px);
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .app-home .advisor-layout,
  .app-home .advisor-form,
  .app-home .home-result-panel {
    width: 100% !important;
    max-width: 100% !important;
  }

  .app-home .inner-form-card,
  .app-home .candidate-panel {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .app-home .form-title-row {
    padding-left: 0;
    padding-right: 0;
  }

  .app-home input,
  .app-home select,
  .app-home textarea,
  .app-home .subject-summary,
  .app-home .secondary-button,
  .app-home .ghost-button,
  .app-home .submit-row button {
    max-width: 100%;
  }

  .app-home .segmented,
  .app-home .pill-options {
    width: 100%;
    max-width: 100%;
  }

  .app-home .segmented {
    grid-template-columns: 1fr !important;
    gap: 8px;
    border: 0;
    background: transparent;
  }

  .app-home .segmented span,
  .app-home .pill-options span {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .app-home .segmented span {
    min-height: 38px;
    border: 1px solid #d7e3f2;
    border-radius: 10px;
  }

  .app-report .teacher-contact-card,
  .app-report .visual-card,
  .app-report .focus-card,
  .app-report .recommend-school-list article,
  .app-report .visual-page .direction-list div {
    overflow-wrap: anywhere;
  }

  .app-report .teacher-contact-copy,
  .app-report .focus-body,
  .app-report .visual-page .direction-list div,
  .app-report .school-preview-list div {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 430px) {
  .app-home .segmented {
    grid-template-columns: 1fr !important;
    gap: 8px;
    border: 0;
    background: transparent;
  }

  .app-home .segmented span {
    min-height: 38px;
    border: 1px solid #d7e3f2;
    border-radius: 10px;
  }
}

/* 2026-06-16 mobile text clamp: prevent long Chinese copy from being clipped on narrow phones. */
@media (max-width: 760px) {
  .app-home .hero-blue h1,
  .app-home .hero-blue h1 span,
  .app-home .hero-blue p,
  .app-home .hero-blue small,
  .app-home .advisor-form label,
  .app-home .advisor-form small,
  .app-home .form-section-title,
  .app-home .candidate-panel p,
  .app-home .candidate-panel textarea,
  .app-report .teacher-contact-copy h2,
  .app-report .teacher-contact-copy p,
  .app-report .visual-card,
  .app-report .focus-card,
  .app-report .visual-page .direction-list div,
  .app-report .school-preview-list div {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  .app-home .hero-blue p,
  .app-home .hero-blue small {
    display: block !important;
    width: calc(100vw - 36px) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .app-home .advisor-form input,
  .app-home .advisor-form select,
  .app-home .advisor-form textarea,
  .app-home .subject-summary,
  .app-home .rank-input-row,
  .app-home .submit-row.primary-submit-row,
  .app-home .ghost-button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .app-home .pill-options {
    grid-template-columns: 1fr !important;
  }

  .app-home .segmented input[type="radio"],
  .app-home .pill-options input[type="radio"],
  .app-home .subject-chips input[type="checkbox"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}
