@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #667085;
  --line: #dce3ec;
  --panel: #fff;
  --blue: #2457d6;
  --blue-dark: #173da1;
  --pale: #eef3ff;
  --error: #9d1c31;
  --success: #18794e;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: #f4f7fb;
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.shell { width: min(1180px, calc(100% - 32px)); margin: 32px auto 64px; }
.page-header, .section-heading, .form-actions, .header-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.header-actions { flex-wrap: wrap; }
.page-header { margin-bottom: 24px; }
.page-header h1 { margin: 2px 0 0; font-size: clamp(28px, 5vw, 42px); }
.eyebrow { margin: 0; color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--blue); border-radius: 8px; padding: 10px 16px;
  background: var(--blue); color: white; font-weight: 700; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--blue-dark); }
.button.secondary { background: white; color: var(--blue); }
.panel { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 24px; box-shadow: 0 8px 24px rgb(23 32 51 / 5%); }
.section-heading { align-items: flex-start; margin-bottom: 20px; }
.section-heading h2 { margin: 0 0 4px; }
.model-status { margin-bottom: 16px; }
.model-status p { margin: 8px 0; }
.model-status details { margin: 12px 0; }
.model-status summary { cursor: pointer; font-weight: 700; }
.model-status ul { margin: 8px 0 14px; }
.inline-form { margin-top: 14px; }
.section-heading p { max-width: 560px; margin: 0; color: var(--muted); }
.text-link { color: var(--blue); font-weight: 700; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.summary div { display: flex; align-items: baseline; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: white; padding: 14px 18px; }
.summary strong { font-size: 26px; }
.summary span { color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 13px; text-transform: uppercase; }
.badge { display: inline-block; border-radius: 999px; padding: 4px 9px; background: #eef1f5; font-size: 13px; font-weight: 700; }
.badge.active, .badge.complete { background: #dff4e8; color: #17673d; }
.badge.inactive { color: #5c6677; }
.badge.incomplete { background: #fff0d5; color: #8a5600; }
.profile-form { display: grid; gap: 14px; }
.profile-form label { display: block; font-weight: 700; }
.profile-form label span { color: var(--muted); font-size: 13px; font-weight: 400; }
.profile-form input[type="text"], .profile-form input:not([type]), .profile-form textarea {
  width: 100%; border: 1px solid #bbc6d6; border-radius: 8px; background: white; padding: 11px 12px; color: var(--ink); font: inherit;
}
.profile-form input:focus, .profile-form textarea:focus { outline: 3px solid rgb(36 87 214 / 16%); border-color: var(--blue); }
.profile-form textarea { resize: vertical; min-height: 120px; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field-grid label { margin-bottom: 7px; }
.profile-form .checkbox { display: flex; align-items: center; gap: 8px; }
.profile-form .checkbox input { width: 18px; height: 18px; }
.form-actions { justify-content: flex-start; flex-wrap: wrap; }
.preprocessing-preview { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 20px; }
.preprocessing-preview dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; }
.preprocessing-preview dt { font-weight: 700; }
.preprocessing-preview dd { margin: 0; }
.preprocessing-preview pre { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 8px; background: #f2f5f9; padding: 12px; }
.preprocessing-preview details { margin-top: 16px; }
.preprocessing-preview summary { cursor: pointer; font-weight: 700; }
.notice { border-left: 5px solid; border-radius: 8px; margin-bottom: 16px; padding: 12px 16px; }
.notice.success { border-color: var(--success); background: #eaf8f1; }
.notice.error { border-color: var(--error); background: #fdebf0; }
.notice.draft { border-left: 5px solid #a56b00; border-radius: 8px; margin-bottom: 16px; padding: 12px 16px; background: #fff6df; }
.questionnaire-form { display: grid; gap: 22px; }
.questionnaire-form fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.questionnaire-form legend { padding: 0 6px; font-size: 19px; font-weight: 700; }
.questionnaire-form fieldset > p { margin: 0 0 12px; color: var(--muted); }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; cursor: pointer; }
.choice input { margin-top: 4px; }
.questionnaire-form button:disabled { opacity: .55; cursor: not-allowed; }
.answers-review { margin-bottom: 16px; }
.answers-review h2 { margin-top: 0; }
.answers-review p { margin: 8px 0; }
.results-disclaimer { margin: 16px 0; color: var(--muted); }
.recommendation-list { display: grid; gap: 18px; }
.recommendation-card { border-radius: 16px; box-shadow: 0 10px 28px rgb(23 32 51 / 7%); }
.recommendation-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.recommendation-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rank-badge, .best-match-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 750; }
.rank-badge { background: #e8efff; color: #204bb5; }
.best-match-badge { background: #2457d6; color: #fff; }
.similarity-indicator {
  display: grid; flex: 0 0 92px; width: 92px; height: 92px; place-items: center;
  border-radius: 50%; background: conic-gradient(var(--blue) var(--score-angle), #e8edf5 var(--score-angle));
}
.similarity-indicator > span { display: flex; width: 72px; height: 72px; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: #fff; }
.similarity-indicator strong { color: var(--blue-dark); font-size: 20px; line-height: 1.2; }
.similarity-indicator small { color: var(--muted); font-size: 11px; }
.recommendation-card h2 { margin: 14px 0 4px; }
.recommendation-card p { margin: 8px 0; }
.college-name { color: var(--muted); }
.matching-keywords { margin-top: 18px; }
.matching-keywords h3 { margin: 0 0 8px; font-size: 15px; }
.keyword-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.keyword-tags li { border: 1px solid #d5e4ff; border-radius: 999px; padding: 5px 11px; background: #edf4ff; color: #234b91; font-size: 14px; }
.recommendation-explanation { margin-top: 18px; border-left: 4px solid var(--blue); border-radius: 8px; padding: 14px 16px; background: #f2f4f7; }
.recommendation-explanation h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: #173da1; font-size: 15px; letter-spacing: .03em; }
.recommendation-explanation h3 svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.recommendation-explanation p { margin: 0; color: #374151; line-height: 1.65; }
.generated-profile { margin-top: 16px; }
.generated-profile summary { cursor: pointer; font-weight: 700; }
.generated-profile pre { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 8px; background: #f2f5f9; padding: 12px; }
.evaluation-panel { margin-top: 20px; }
.evaluation-panel h2 { margin-top: 0; }
.evaluation-form { display: grid; gap: 20px; }
.evaluation-part { border-top: 1px solid var(--line); padding-top: 16px; }
.evaluation-part h2 { font-size: 22px; }
.evaluation-section { min-width: 0; margin: 18px 0; border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.evaluation-section > legend { padding: 0 6px; font-size: 18px; font-weight: 700; }
.evaluation-question { min-width: 0; margin: 12px 0; border: 0; border-top: 1px solid var(--line); padding: 12px 0 0; }
.evaluation-question > legend { max-width: 100%; padding: 0; font-weight: 600; }
.evaluation-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.evaluation-scale label { display: flex; align-items: flex-start; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; font-size: 14px; cursor: pointer; }
.evaluation-scale input { margin-top: 4px; }
.evaluation-note, .evaluation-references { color: var(--muted); font-size: 14px; }
.evaluation-references { margin-top: 20px; }
.evaluation-references summary { cursor: pointer; font-weight: 700; }
.evaluation-references li { margin: 8px 0; overflow-wrap: anywhere; }
.student-home { max-width: 860px; padding-top: 8vh; }
.home-panel { padding: clamp(24px, 5vw, 48px); }
.home-panel h2 { margin-top: 0; font-size: 28px; }
.home-panel .notice { margin: 24px 0; }
.admin-page { background: #edf1f7; }
.admin-page .eyebrow { color: #5942a6; }
.admin-page .button { border-color: #5942a6; background: #5942a6; }
.admin-page .button:hover { background: #44317f; }
.admin-page .button.secondary { background: white; color: #5942a6; }
.admin-page .text-link { color: #5942a6; }
.auth-shell { max-width: 620px; padding-top: 8vh; }
.admin-user { color: var(--muted); font-weight: 700; }
.header-actions form, .manage-actions form { margin: 0; }
.manage-actions { white-space: nowrap; }
.manage-actions > * { margin-right: 12px; }
.text-button { border: 0; padding: 0; background: none; color: #5942a6; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.text-button.destructive { color: var(--error); }
.program-search { display: grid; gap: 8px; margin: 0 0 18px; }
.program-search > label { font-weight: 700; }
.search-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.search-controls input { flex: 1 1 280px; min-width: 0; border: 1px solid #bbc6d6; border-radius: 8px; padding: 10px 12px; color: var(--ink); font: inherit; }
.search-controls input:focus { outline: 3px solid rgb(89 66 166 / 16%); border-color: #5942a6; }
.search-count { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .shell { width: min(100% - 20px, 1180px); margin-top: 20px; }
  .page-header, .section-heading { align-items: flex-start; }
  .summary, .field-grid, .choice-grid, .evaluation-scale { grid-template-columns: 1fr; }
  .recommendation-card-header { align-items: center; }
  .manage-actions { white-space: normal; }
  th:nth-child(3), td:nth-child(3) { display: none; }
}

/* Shared visual language adapted from the previous frontend reference. */
:root {
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --panel: #fff;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --pale: #eff6ff;
  --error: #9d1c31;
  --success: #18794e;
}

html { scroll-behavior: smooth; }
body { background: #fff; color: var(--ink); }
.shell { width: min(1200px, calc(100% - 48px)); margin: 40px auto 72px; }
.student-site { min-height: 100vh; display: flex; flex-direction: column; }
.student-site > main { flex: 1; }
.student-site h1, .student-site h2, .student-site h3,
.student-site .student-brand { font-family: "Manrope", "Segoe UI", sans-serif; letter-spacing: -.025em; }
.student-site h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.15; }
.student-site h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.25; }
.student-navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgb(229 231 235 / 85%);
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(12px);
}
.student-navbar-inner {
  width: min(1200px, calc(100% - 48px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.student-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; white-space: nowrap; text-decoration: none; }
.student-brand-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: white; background: linear-gradient(135deg, #2563eb, #4f46e5); }
.student-brand-icon svg { width: 22px; height: 22px; }
.student-brand-accent { color: var(--blue); }
.student-navigation { display: flex; align-items: center; gap: 30px; }
.student-navigation a { color: #4b5563; font-size: 14px; font-weight: 650; text-decoration: none; transition: color .18s ease; }
.student-navigation a:hover, .student-navigation a[aria-current="page"] { color: var(--blue); }
.student-navigation .student-admin-link { color: #6b7280; }
.student-nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); cursor: pointer; }
.student-nav-toggle svg { width: 21px; height: 21px; margin: auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.button { border-radius: 10px; padding: 11px 18px; transition: background .18s ease, box-shadow .18s ease, transform .18s ease; }
.button:hover { box-shadow: 0 6px 16px rgb(37 99 235 / 17%); transform: translateY(-1px); }
.button.secondary { border-color: #dbeafe; color: var(--blue); }
.button:focus-visible, .student-navigation a:focus-visible, .student-nav-toggle:focus-visible,
.student-footer a:focus-visible, .choice:focus-within { outline: 3px solid rgb(37 99 235 / 30%); outline-offset: 3px; }

.landing-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f8faff 0%, #fff 96%); }
.landing-hero::before { position: absolute; top: -220px; right: -120px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgb(99 102 241 / 9%), transparent 68%); content: ""; pointer-events: none; }
.landing-hero-inner { position: relative; width: min(1200px, calc(100% - 48px)); min-height: 600px; margin: auto; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 52px; padding: 72px 0 76px; }
.landing-copy { max-width: 630px; }
.landing-kicker { margin: 0 0 14px; color: var(--blue); font-size: 13px; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; }
.kicker-icon { display: inline-block; width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; fill: currentColor; }
.landing-copy h1 { max-width: 650px; margin: 0; font-size: clamp(2.5rem, 5.2vw, 4.1rem); }
.landing-copy h1 span { color: var(--blue); }
.landing-description { max-width: 600px; margin: 22px 0 0; color: #596579; font-size: 17px; line-height: 1.75; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.landing-actions .button, .landing-cta .button { min-height: 48px; }
.landing-primary { gap: 10px; border-color: var(--blue); background: linear-gradient(135deg, var(--blue), #4f46e5); box-shadow: 0 8px 20px rgb(37 99 235 / 20%); }
.landing-primary:hover { background: linear-gradient(135deg, #1d4ed8, #4338ca); }
.landing-primary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.landing-secondary { background: white; border-color: #d1d5db; color: #374151; }
.landing-stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 42px; }
.landing-stats div { display: grid; gap: 1px; }
.landing-stats strong { color: #1f2937; font-size: 20px; font-weight: 800; }
.landing-stats span { color: #778196; font-size: 12px; }
.landing-visual { position: relative; width: min(100%, 500px); min-height: 400px; justify-self: center; display: grid; place-items: center; }
.visual-orbit { position: absolute; border: 1px solid rgb(37 99 235 / 12%); border-radius: 50%; }
.orbit-one { width: 340px; height: 340px; }
.orbit-two { width: 250px; height: 250px; border-style: dashed; }
.visual-center { z-index: 1; width: 112px; height: 112px; display: grid; place-items: center; border: 8px solid white; border-radius: 32px; background: linear-gradient(135deg, #2563eb, #4f46e5); box-shadow: 0 18px 40px rgb(37 99 235 / 24%); }
.visual-center svg { width: 52px; height: 52px; fill: none; stroke: white; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.4; }
.visual-note { position: absolute; z-index: 2; display: flex; align-items: center; gap: 11px; min-width: 210px; padding: 13px 15px; border: 1px solid #eef0f5; border-radius: 14px; background: white; box-shadow: 0 12px 32px rgb(17 24 39 / 9%); }
.visual-note strong, .visual-note small { display: block; }
.visual-note strong { font-size: 13px; }
.visual-note small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.visual-note-top { top: 42px; left: 3px; }
.visual-note-right { top: 157px; right: -4px; }
.visual-note-bottom { bottom: 40px; left: 32px; }
.visual-note-icon { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 10px; font-size: 11px; font-weight: 800; }
.visual-note-icon.blue { background: #eff6ff; color: #2563eb; }
.visual-note-icon.green { background: #ecfdf5; color: #059669; }
.visual-note-icon.indigo { background: #eef2ff; color: #4f46e5; }

.landing-section { padding: 82px 0; }
.landing-features { background: #f9fafb; }
.landing-section-inner { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.landing-section-heading { max-width: 700px; margin: 0 auto 42px; text-align: center; }
.landing-section-heading .landing-kicker { margin-bottom: 10px; }
.landing-section-heading h2 { margin: 0; }
.landing-section-heading > p:last-child { margin: 12px auto 0; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { min-height: 220px; padding: 28px; border: 1px solid #e8ebf1; border-radius: 16px; background: white; box-shadow: 0 4px 14px rgb(17 24 39 / 3%); }
.feature-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; }
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.feature-blue { color: #2563eb; background: #eff6ff; }
.feature-indigo { color: #4f46e5; background: #eef2ff; }
.feature-green { color: #059669; background: #ecfdf5; }
.feature-card h3 { margin: 20px 0 8px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; }
.process-grid li { position: relative; padding: 4px 8px 4px 0; }
.process-grid li > span { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #dbeafe; border-radius: 50%; color: var(--blue); background: #eff6ff; font-weight: 800; }
.process-grid h3 { margin: 17px 0 8px; font-size: 17px; }
.process-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.landing-cta { width: min(1200px, calc(100% - 48px)); margin: 0 auto 18px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 34px 40px; border: 1px solid #e0e7ff; border-radius: 18px; background: linear-gradient(120deg, #f5f8ff, #f6f5ff); }
.landing-cta .landing-kicker { margin-bottom: 8px; }
.landing-cta h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); }
.landing-cta p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.landing-disclaimer { width: min(1200px, calc(100% - 48px)); margin: 0 auto 42px; color: #7b8494; font-size: 12px; }

.student-page { margin-top: 46px; }
.student-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.student-page-heading h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.student-page-heading > div > p:last-child { max-width: 720px; margin: 12px 0 0; color: var(--muted); }
.questionnaire-panel { padding: clamp(20px, 4vw, 36px); }
.questionnaire-instructions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.questionnaire-instructions p { margin: 0; color: var(--muted); }
.questionnaire-step-count { flex: 0 0 auto; color: var(--blue); font-size: 13px; font-weight: 750; }
.questionnaire-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.questionnaire-progress li { position: relative; display: flex; align-items: center; gap: 9px; min-width: 0; color: #8a93a3; }
.questionnaire-progress li:not(:last-child)::after { position: absolute; top: 17px; left: 40px; right: 0; height: 1px; background: #e5e7eb; content: ""; }
.questionnaire-progress li > span { z-index: 1; width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid #e5e7eb; border-radius: 50%; background: white; font-size: 13px; font-weight: 750; }
.questionnaire-progress li strong { z-index: 1; padding-right: 8px; background: white; font-size: 12px; line-height: 1.3; }
.questionnaire-progress li.is-current { color: var(--blue); }
.questionnaire-progress li.is-current > span, .questionnaire-progress li.is-complete > span { border-color: var(--blue); color: white; background: var(--blue); }
.questionnaire-progress li.is-complete { color: #4b5563; }
.questionnaire-form { gap: 18px; }
.questionnaire-form fieldset { border-radius: 14px; padding: 24px; }
.questionnaire-form legend { font-size: 22px; }
.questionnaire-form fieldset > p { margin: 6px 0 18px; }
.choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice { min-height: 54px; align-items: center; border-color: #e5e7eb; border-radius: 11px; padding: 13px 15px; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.choice:hover { border-color: #93c5fd; background: #f8fbff; }
.choice:has(input:checked) { border-color: #60a5fa; background: #eff6ff; box-shadow: 0 0 0 2px rgb(37 99 235 / 8%); }
.choice input { accent-color: var(--blue); width: 17px; height: 17px; flex: 0 0 auto; }
.questionnaire-controls { display: flex; align-items: center; gap: 12px; }
.questionnaire-controls-spacer { flex: 1; }
.step-validation-message { margin: 14px 0 0 !important; color: var(--error) !important; font-size: 14px; font-weight: 650; }
.questionnaire-form[data-enhanced] fieldset[hidden] { display: none; }
.questionnaire-form[data-enhanced] { gap: 0; }

.results-page .results-page-heading { margin-bottom: 28px; }
.results-disclaimer { padding: 12px 16px; border-left: 4px solid #3b82f6; border-radius: 8px; background: #f8faff; font-size: 14px; }
.recommendation-list { gap: 20px; }
.recommendation-card { padding: clamp(22px, 3.5vw, 34px); border-color: #e8ebf1; border-radius: 18px; box-shadow: 0 8px 28px rgb(17 24 39 / 5%); }
.recommendation-card > h2 { max-width: 80%; font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
.rank-badge { background: #eff6ff; color: #1d4ed8; }
.best-match-badge { background: linear-gradient(135deg, #2563eb, #4f46e5); }
.keyword-tags li { border-color: #dbeafe; background: #eff6ff; color: #1d4ed8; }
.recommendation-explanation { border-left-color: #2563eb; background: #f8fafc; }
.evaluation-panel { border-color: #e5e7eb; }
.generated-profile { margin-bottom: 24px; }
.evaluation-page .evaluation-part h2 { font-size: 22px; }
.evaluation-page .evaluation-scale label { min-height: 50px; border-color: #e5e7eb; cursor: pointer; }
.evaluation-page .evaluation-scale input { accent-color: var(--blue); }
.evaluation-page .evaluation-scale label:has(input:checked) { border-color: #60a5fa; background: #eff6ff; }

.student-footer { margin-top: 70px; border-top: 1px solid #e5e7eb; background: #f9fafb; }
.student-footer-inner, .student-footer-bottom { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.student-footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 36px; padding: 34px 0 28px; }
.student-footer-inner > div > p { max-width: 420px; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.student-footer-links { display: flex; flex-wrap: wrap; gap: 22px; padding-top: 10px; }
.student-footer-links a { color: #596579; font-size: 13px; font-weight: 650; text-decoration: none; }
.student-footer-links a:hover { color: var(--blue); }
.student-footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0 22px; border-top: 1px solid #e5e7eb; color: #8490a2; font-size: 11px; }

.admin-page { background: #f8faff; }
.admin-page .eyebrow, .admin-page .text-link, .admin-page .text-button { color: var(--blue); }
.admin-page .button { border-color: var(--blue); background: linear-gradient(135deg, var(--blue), #4f46e5); }
.admin-page .button:hover { background: var(--blue-dark); }
.admin-page .button.secondary { border-color: #dbeafe; background: white; color: var(--blue); }
.admin-page .panel { border-color: #e8ebf1; border-radius: 14px; }
.admin-page .summary div { border-color: #e8ebf1; border-radius: 12px; }
.admin-page .badge.active, .admin-page .badge.complete { background: #ecfdf5; color: #047857; }
.admin-page .profile-form input:focus, .admin-page .profile-form textarea:focus,
.admin-page .search-controls input:focus { outline-color: rgb(37 99 235 / 18%); border-color: var(--blue); }
.admin-page .text-button.destructive { color: var(--error); }

[hidden] { display: none !important; }
@media (max-width: 900px) {
  .landing-hero-inner { grid-template-columns: 1fr 0.85fr; gap: 24px; }
  .landing-visual { transform: scale(.9); }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .questionnaire-progress li strong { font-size: 11px; }
}
@media (max-width: 700px) {
  .shell { width: min(100% - 32px, 1200px); margin-top: 28px; }
  .student-navbar-inner, .landing-hero-inner, .landing-section-inner,
  .landing-cta, .landing-disclaimer, .student-footer-inner, .student-footer-bottom {
    width: min(100% - 32px, 1200px);
  }
  .student-navbar-inner { min-height: 64px; }
  .student-nav-toggle { display: grid; place-items: center; }
  .student-navigation { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none; align-items: stretch; gap: 0; padding: 8px 16px 14px; border-bottom: 1px solid var(--line); background: white; box-shadow: 0 12px 20px rgb(17 24 39 / 7%); }
  .student-navigation.is-open { display: flex; flex-direction: column; }
  .student-navigation a { padding: 13px 8px; }
  .student-navigation .student-admin-link { border-top: 1px solid #f0f1f4; }
  .landing-hero-inner { grid-template-columns: 1fr; gap: 10px; padding: 60px 0 48px; }
  .landing-copy { max-width: none; text-align: center; }
  .landing-copy h1, .landing-description { margin-right: auto; margin-left: auto; }
  .landing-actions, .landing-stats { justify-content: center; }
  .landing-visual { min-height: 350px; transform: scale(.86); transform-origin: top center; margin-bottom: -35px; }
  .landing-section { padding: 62px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .landing-cta { align-items: flex-start; flex-direction: column; padding: 28px 24px; }
  .student-page-heading { align-items: flex-start; flex-direction: column; }
  .questionnaire-instructions { align-items: flex-start; flex-direction: column; gap: 6px; }
  .questionnaire-progress { grid-template-columns: repeat(2, 1fr); row-gap: 15px; }
  .questionnaire-progress li:not(:last-child)::after { display: none; }
  .questionnaire-progress li strong { font-size: 12px; }
  .choice-grid { grid-template-columns: 1fr; }
  .questionnaire-form fieldset { padding: 18px; }
  .questionnaire-controls { flex-wrap: wrap; }
  .questionnaire-controls-spacer { display: none; }
  .questionnaire-controls button { flex: 1 1 40%; }
  .recommendation-card > h2 { max-width: calc(100% - 8px); }
  .student-footer-inner, .student-footer-bottom { flex-direction: column; }
  .student-footer-inner { gap: 20px; }
  .student-footer-links { gap: 16px; }
  .evaluation-scale { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-page .field-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .landing-copy h1 { font-size: 2.35rem; }
  .landing-actions { flex-direction: column; }
  .landing-actions .button { width: 100%; }
  .landing-stats { gap: 14px 24px; }
  .landing-visual { margin-left: -10px; transform: scale(.72); transform-origin: top center; margin-bottom: -95px; }
  .process-grid { grid-template-columns: 1fr; }
  .questionnaire-progress li strong { font-size: 10px; }
  .recommendation-card-header { align-items: flex-start; }
  .similarity-indicator { flex-basis: 80px; width: 80px; height: 80px; }
  .similarity-indicator > span { width: 62px; height: 62px; }
  .student-footer-bottom { font-size: 10px; }
}

/* Shared, more readable typography across student and administrator pages. */
:root {
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --font-heading: "Manrope", "Inter", "Segoe UI", sans-serif;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: .005em;
}

h1, h2, h3, h4, h5, h6,
.student-brand {
  font-family: var(--font-heading);
  letter-spacing: -.025em;
}

h1 { line-height: 1.18; }
h2, h3, h4 { line-height: 1.3; }
button, input, select, textarea { font: inherit; }
button, .button { font-weight: 650; }

.page-header h1 { font-size: clamp(32px, 5vw, 46px); }
.eyebrow, .landing-kicker { font-size: 14px; }
.section-heading h2, .home-panel h2 { font-size: clamp(25px, 3vw, 32px); }
.section-heading p, .model-status p, .home-panel p,
.questionnaire-instructions p, .questionnaire-form fieldset > p,
.student-page-heading > div > p:last-child { font-size: 17px; }
.text-link, .text-button { font-size: 16px; }
.summary strong { font-size: 29px; }
.summary span, td { font-size: 16px; }
th { font-size: 14px; letter-spacing: .045em; }
.badge, .profile-form label span { font-size: 14px; }
.profile-form label { font-size: 16px; }
.notice, .notice.draft { font-size: 16px; line-height: 1.65; }
.questionnaire-form legend { font-size: 21px; }
.choice { font-size: 16px; line-height: 1.55; }
.rank-badge, .best-match-badge { font-size: 14px; }
.similarity-indicator strong { font-size: 21px; }
.similarity-indicator small { font-size: 12px; }
.matching-keywords h3, .recommendation-explanation h3 { font-size: 16px; }
.keyword-tags li { font-size: 15px; }
.recommendation-card > h2 { font-size: clamp(23px, 2.5vw, 29px); }
.recommendation-card p, .recommendation-explanation p { font-size: 16px; line-height: 1.7; }
.evaluation-part h2 { font-size: 24px; }
.evaluation-section > legend { font-size: 19px; }
.evaluation-question > legend { font-size: 16px; line-height: 1.55; }
.evaluation-scale label { font-size: 15px; line-height: 1.5; }
.evaluation-note, .evaluation-references { font-size: 15px; }
.search-count { font-size: 15px; }
.landing-kicker { font-weight: 750; }
.landing-description { font-size: 18px; }
.landing-stats span { font-size: 14px; }
.visual-note strong { font-size: 14px; }
.visual-note small { font-size: 12px; }
.feature-card h3 { font-size: 20px; }
.feature-card p, .process-grid p { font-size: 16px; }
.process-grid h3 { font-size: 19px; }
.landing-cta p:last-child { font-size: 16px; }
.landing-disclaimer { font-size: 14px; line-height: 1.6; }
.student-brand { font-size: 18px; }
.student-navigation a, .student-footer-links a { font-size: 15px; }
.student-footer-inner > div > p { font-size: 15px; }
.student-footer-bottom { font-size: 13px; }
.questionnaire-step-count { font-size: 14px; }
.questionnaire-progress li > span { font-size: 14px; }
.questionnaire-progress li strong { font-size: 13px; }
.step-validation-message { font-size: 15px; }
.results-disclaimer { font-size: 15px; line-height: 1.65; }

@media (max-width: 700px) {
  body { font-size: 16px; }
  .landing-description, .section-heading p, .model-status p, .home-panel p,
  .questionnaire-instructions p, .questionnaire-form fieldset > p,
  .student-page-heading > div > p:last-child { font-size: 16px; }
  .student-navigation a { font-size: 16px; }
  .questionnaire-progress li strong { font-size: 13px; }
  .student-footer-bottom { font-size: 12px; }
}

@media (max-width: 420px) {
  .landing-copy h1 { font-size: 2.4rem; }
  .questionnaire-progress li strong { font-size: 12px; }
  .student-footer-bottom { font-size: 12px; }
}

/* Final application-wide polish */
:root {
  --ink: #172033;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --surface-soft: #f8faff;
  --shadow-card: 0 8px 26px rgb(15 23 42 / 5%);
}

body { background: #f8fafc; }
.student-site { background: #fff; }
.shell { max-width: 1200px; }
.panel {
  border-color: #e6ebf2;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}
.page-header { align-items: flex-start; }
.button {
  min-height: 44px;
  border-radius: 11px;
  padding: 11px 18px;
  box-shadow: 0 2px 6px rgb(37 99 235 / 10%);
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { box-shadow: none; transform: none; }
.button.secondary { border-color: #d7e3f5; color: #1d4ed8; }
.button.secondary:hover { border-color: #a9c5f5; background: #f5f8ff; }
.text-link, .text-button { text-underline-offset: 3px; }
.notice {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgb(15 23 42 / 3%);
}

.student-navbar { box-shadow: 0 2px 12px rgb(15 23 42 / 3%); }
.student-brand-icon, .visual-center { background: linear-gradient(140deg, #2563eb, #4f46e5); }
.student-navigation a { padding: 10px 0; }
.student-navigation a[aria-current="page"] { color: #1d4ed8; }
.landing-hero { background: linear-gradient(180deg, #f7f9ff 0%, #fff 96%); }
.landing-copy h1 { letter-spacing: -.04em; }
.feature-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feature-card:hover { transform: translateY(-3px); border-color: #d6e2fb; box-shadow: 0 12px 30px rgb(15 23 42 / 7%); }
.landing-cta { box-shadow: 0 8px 24px rgb(37 99 235 / 4%); }

.student-page { margin-top: clamp(30px, 5vw, 52px); }
.student-page-heading { align-items: flex-start; }
.student-page-heading > .button { flex: 0 0 auto; margin-top: 20px; }
.questionnaire-panel { padding: clamp(22px, 4vw, 40px); }
.questionnaire-progress {
  padding: 14px;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  background: #fbfcff;
}
.questionnaire-progress li:not(:last-child)::after { left: 44px; }
.questionnaire-progress li > span { border-color: #dbe3f0; }
.questionnaire-progress li.is-current > span,
.questionnaire-progress li.is-complete > span { border-color: #2563eb; background: #2563eb; }
.questionnaire-form fieldset {
  border-color: #e8edf5;
  border-radius: 14px;
  background: #fff;
}
.choice {
  min-height: 58px;
  border-color: #e5eaf2;
  border-radius: 12px;
  background: #fff;
}
.choice:hover { border-color: #9dbcf5; background: #f8faff; }
.choice:has(input:checked) { border-color: #77a2f1; background: #eff5ff; }
.choice input { width: 18px; height: 18px; }
.questionnaire-controls { margin-top: 24px; }

.answers-review { border-color: #e5ebf4; background: linear-gradient(135deg, #fff, #fbfcff); }
.answers-review h2 { font-size: 22px; }
.answers-review p { line-height: 1.65; }
.recommendation-list { gap: 22px; }
.recommendation-card {
  position: relative;
  overflow: hidden;
  border-color: #e4eaf3;
  border-radius: 18px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.recommendation-card:hover { transform: translateY(-2px); border-color: #cbd9f1; box-shadow: 0 14px 34px rgb(15 23 42 / 8%); }
.recommendation-card:first-child { border-top: 3px solid #2563eb; }
.recommendation-card-header { align-items: center; }
.recommendation-badges { gap: 10px; }
.rank-badge, .best-match-badge { min-height: 32px; padding: 6px 13px; }
.rank-badge { background: #eef4ff; color: #1d4ed8; }
.best-match-badge { background: linear-gradient(135deg, #2563eb, #4f46e5); box-shadow: 0 4px 12px rgb(37 99 235 / 18%); }
.similarity-indicator { background: conic-gradient(#2563eb var(--score-angle), #e8edf5 var(--score-angle)); }
.similarity-indicator > span { box-shadow: inset 0 0 0 1px #eff2f7; }
.recommendation-card > h2 { margin-top: 16px; }
.matching-keywords h3 { margin-bottom: 10px; }
.keyword-tags { gap: 9px; }
.keyword-tags li { padding: 6px 12px; background: #f0f6ff; }
.recommendation-explanation { border-radius: 10px; padding: 18px 20px; }
.recommendation-explanation h3 { margin-bottom: 8px; }
.evaluation-panel, .generated-profile { border-color: #e5ebf4; }
.generated-profile summary { padding: 2px; }
.evaluation-page .evaluation-section { border-color: #e7ecf4; border-radius: 12px; }
.evaluation-page .evaluation-question { border-top-color: #e8edf4; }
.evaluation-page .evaluation-scale { gap: 10px; }
.evaluation-page .evaluation-scale label {
  align-items: center;
  border-radius: 10px;
  padding: 10px;
  transition: background .16s ease, border-color .16s ease;
}
.evaluation-page .evaluation-scale label:hover { border-color: #a8c3f1; background: #f8faff; }
.evaluation-page .evaluation-scale input { width: 17px; height: 17px; flex: 0 0 auto; }

.admin-page {
  min-height: 100vh;
  background: #f5f7fb;
}
.admin-page .shell { margin-top: 22px; }
.admin-page > .shell { padding-bottom: 28px; }
.admin-topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  padding: 0 4px 16px;
  border-bottom: 1px solid #e3e8f0;
}
.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #172033;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}
.admin-brand > span:last-child { display: grid; gap: 4px; }
.admin-brand > span:last-child > span { color: #2563eb; }
.admin-brand small { color: #7b8799; font-family: var(--font-body); font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.admin-brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(140deg, #2563eb, #4f46e5);
  box-shadow: 0 6px 14px rgb(37 99 235 / 18%);
  color: white;
}
.admin-brand-icon svg { width: 24px; height: 24px; }
.admin-student-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dfe6f0;
  border-radius: 10px;
  padding: 9px 13px;
  background: #fff;
  color: #46546a;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.admin-student-link:hover { border-color: #b7caf0; background: #f9fbff; color: #1d4ed8; }
.admin-page .page-header { margin-bottom: 28px; }
.admin-page .page-header h1 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -.035em; }
.admin-page .page-header .eyebrow { color: #2563eb; }
.admin-page-description { margin: 10px 0 0; color: #657187; font-size: 16px; }
.admin-user {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e4e9f1;
  border-radius: 999px;
  padding: 8px 13px;
  background: #fff;
  color: #46546a;
  font-size: 14px;
}
.admin-user-dot, .status-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #10b981; }
.admin-page .panel { margin-bottom: 20px; padding: clamp(22px, 3vw, 30px); border-radius: 16px; }
.admin-page .panel > h2 { margin-top: 0; }
.admin-page .section-heading { align-items: center; gap: 20px; margin-bottom: 22px; }
.admin-page .section-heading h2 { margin: 0; font-size: 23px; }
.admin-page .section-heading > div > p:last-child { margin: 7px 0 0; color: #69758a; font-size: 14px; }
.admin-section-kicker { margin: 0 0 5px !important; color: #2563eb !important; font-size: 11px !important; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.summary .summary-card {
  min-width: 0;
  min-height: 120px;
  align-items: center;
  gap: 16px;
  border-color: #e4e9f1;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 16px rgb(15 23 42 / 3%);
  transition: transform .18s ease, box-shadow .18s ease;
}
.summary .summary-card:hover { transform: translateY(-2px); box-shadow: 0 9px 24px rgb(15 23 42 / 7%); }
.summary-icon { width: 46px; height: 46px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 13px; }
.summary-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.summary-icon-blue { color: #2563eb; background: #eff6ff; }
.summary-icon-green { color: #059669; background: #ecfdf5; }
.summary-icon-indigo { color: #4f46e5; background: #eef2ff; }
.summary .summary-copy { display: grid; gap: 1px; min-width: 0; }
.summary .summary-copy strong { color: #172033; font-family: var(--font-heading); font-size: 30px; line-height: 1.2; }
.summary .summary-copy span { color: #69758a; font-size: 14px; }
.model-status { border-top: 3px solid #4f46e5 !important; }
.model-status .section-heading { align-items: flex-start; }
.model-status > p { color: #536176; }
.model-status .model-badge { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 7px 12px; }
.model-status .model-badge.incomplete .status-dot { background: #f59e0b; }
.model-status .model-badge.complete .status-dot { background: #10b981; }
.model-status details { border: 1px solid #e7ecf4; border-radius: 10px; padding: 12px 15px; background: #fafbfe; }
.model-status details summary { color: #34445c; font-size: 14px; }
.model-status details li { margin-top: 8px; font-size: 14px; }
.admin-page .inline-form { margin-top: 18px; }
.admin-page .profile-form { gap: 12px; }
.admin-page .profile-form > label { margin-top: 4px; color: #344158; }
.admin-page .profile-form input[type="text"],
.admin-page .profile-form input:not([type]),
.admin-page .profile-form input[type="password"],
.admin-page .profile-form textarea,
.admin-page .search-controls input {
  border-color: #d6deea;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.admin-page .profile-form textarea { min-height: 155px; line-height: 1.55; }
.admin-page .profile-form input:focus,
.admin-page .profile-form textarea:focus,
.admin-page .search-controls input:focus {
  outline: 0;
  border-color: #6d98ec;
  box-shadow: 0 0 0 4px rgb(37 99 235 / 11%);
}
.admin-page .field-grid { gap: 20px; }
.admin-page .field-grid > div { min-width: 0; }
.admin-page .field-grid label { min-height: 29px; }
.admin-page .field-grid label span { display: block; margin-top: 2px; color: #8490a2; font-size: 11px; }
.admin-form-section-heading { padding-top: 18px; border-top: 1px solid #e9edf4; }
.admin-form-section-heading h3 { margin: 0; color: #263650; font-size: 18px; }
.admin-form-section-heading p { margin: 5px 0 0; color: #738096; font-size: 14px; }
.admin-page .profile-form .checkbox { margin: 8px 0; padding: 13px 15px; border: 1px solid #e5ebf4; border-radius: 10px; background: #fafbfe; }
.admin-page .profile-form .checkbox input { accent-color: #2563eb; }
.admin-page .form-actions { gap: 10px; padding-top: 8px; }
.preprocessing-preview { border-color: #e3e9f2; }
.preprocessing-preview dl { grid-template-columns: 150px minmax(0, 1fr); }
.preprocessing-preview pre { border: 1px solid #e7ecf4; background: #f8fafc; }
.admin-page .program-search { padding: 16px; border: 1px solid #e9edf4; border-radius: 12px; background: #fafbfe; }
.program-search > label { color: #344158; font-size: 14px; }
.search-controls { align-items: center; }
.search-controls input { min-height: 44px; }
.admin-page .search-controls input { flex: 1 1 280px; }
.search-count { color: #69758a; }
.table-wrap { border: 1px solid #e5eaf2; border-radius: 12px; }
.admin-page table { border-collapse: separate; border-spacing: 0; }
.admin-page th { padding: 14px 16px; background: #f7f9fc; color: #637087; font-size: 12px; }
.admin-page th:first-child { border-top-left-radius: 11px; }
.admin-page th:last-child { border-top-right-radius: 11px; }
.admin-page td { padding: 15px 16px; border-bottom-color: #edf0f5; color: #344158; font-size: 14px; vertical-align: middle; }
.admin-page tbody tr:last-child td { border-bottom: 0; }
.admin-page tbody tr:hover td { background: #fafcff; }
.program-table-name { display: block; max-width: 460px; font-weight: 650; line-height: 1.5; }
.admin-page .badge { padding: 5px 10px; font-size: 12px; white-space: nowrap; }
.manage-actions { display: flex; align-items: center; gap: 13px; }
.manage-actions > * { margin: 0; }
.manage-actions .text-link, .manage-actions .text-button { font-size: 13px; }
.admin-page .text-button { cursor: pointer; }
.admin-page .text-button:hover, .admin-page .text-link:hover { color: #173da1; }
.admin-page .text-button.destructive:hover { color: #8f172c; }
.admin-login-panel { max-width: 540px; margin-right: auto; margin-left: auto; }
.login-panel-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.admin-login-icon { width: 48px; height: 48px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 14px; color: #2563eb; background: #eff6ff; }
.admin-login-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.login-panel-heading h2 { margin: 0; font-size: 21px; }
.login-panel-heading p { margin: 4px 0 0; color: #69758a; font-size: 14px; }
.admin-login-panel .profile-form button { margin-top: 8px; }
.auth-shell { max-width: 860px; padding-top: 8px; }

@media (max-width: 760px) {
  .student-page-heading > .button { margin-top: 0; }
  .summary { grid-template-columns: 1fr; }
  .summary .summary-card { min-height: 90px; }
  .admin-page .shell { width: min(100% - 28px, 1200px); margin-top: 18px; }
  .admin-topbar { min-height: 62px; margin-bottom: 26px; }
  .admin-page .page-header { flex-direction: column; }
  .admin-page .header-actions { width: 100%; justify-content: space-between; }
  .admin-page .section-heading { align-items: flex-start; flex-direction: column; }
  .admin-page .section-heading > .button { width: 100%; }
  .admin-page .field-grid { grid-template-columns: 1fr; }
  .admin-page .field-grid label { min-height: 0; }
  .preprocessing-preview dl { grid-template-columns: 1fr; gap: 4px; }
  .preprocessing-preview dd { margin-bottom: 12px; }
  .admin-page .table-wrap { overflow: visible; border: 0; }
  .admin-page table, .admin-page tbody, .admin-page tr, .admin-page td { display: block; width: 100%; }
  .admin-page thead { display: none; }
  .admin-page tbody { display: grid; gap: 12px; }
  .admin-page tbody tr { overflow: hidden; border: 1px solid #e5eaf2; border-radius: 12px; background: #fff; box-shadow: 0 3px 12px rgb(15 23 42 / 3%); }
  .admin-page tbody tr:hover td { background: #fff; }
  .admin-page tbody td, .admin-page tbody td:nth-child(3) {
    display: grid;
    grid-template-columns: minmax(86px, .34fr) minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #edf0f5;
    text-align: left;
  }
  .admin-page tbody td::before { color: #738096; content: attr(data-label); font-size: 12px; font-weight: 700; }
  .admin-page tbody td:last-child { border-bottom: 0; }
  .manage-actions { flex-wrap: wrap; gap: 12px; }
  .admin-page .manage-actions > * { margin: 0; }
}

@media (max-width: 480px) {
  .student-page-heading { gap: 16px; }
  .recommendation-card { padding: 22px; }
  .recommendation-card-header { gap: 10px; }
  .recommendation-card > h2 { max-width: 100%; font-size: 23px; }
  .recommendation-explanation { padding: 15px; }
  .landing-section-heading { margin-bottom: 30px; }
  .student-footer { margin-top: 48px; }
  .student-footer-inner, .student-footer-bottom { width: min(100% - 32px, 1200px); }
  .admin-topbar { align-items: flex-start; }
  .admin-brand { font-size: 15px; }
  .admin-brand-icon { width: 38px; height: 38px; }
  .admin-brand small { font-size: 9px; }
  .admin-student-link { gap: 5px; padding: 8px 9px; font-size: 12px; white-space: nowrap; }
  .admin-page .page-header h1 { font-size: 30px; }
  .admin-page .panel { padding: 20px; }
  .admin-page .form-actions .button { width: 100%; }
  .admin-page .search-controls input { flex-basis: 100%; }
  .admin-page .search-controls .button { flex: 1 1 40%; }
  .admin-page tbody td, .admin-page tbody td:nth-child(3) { grid-template-columns: 80px minmax(0, 1fr); gap: 8px; }
  .manage-actions { column-gap: 10px; row-gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.results-page-heading { margin-bottom: 20px; }
.results-page-heading h1 { letter-spacing: -.04em; }
.results-disclaimer {
  margin: 0 0 28px;
  padding: 14px 18px;
  border: 1px solid #e1e9f6;
  border-left: 4px solid #5281df;
  border-radius: 12px;
  background: #f7f9fd;
  color: #526078;
}
.results-disclaimer p { margin: 0; }
.results-disclaimer .notice { margin: 12px 0 0; }
.recommendation-results { margin-top: 8px; }
.results-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 20px;
}
.results-section-heading .landing-kicker { margin-bottom: 7px; }
.results-section-heading h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); }
.results-section-heading > div > p:last-child { margin: 8px 0 0; color: #657187; font-size: 15px; }
.results-count {
  flex: 0 0 auto;
  border: 1px solid #e1e9f6;
  border-radius: 999px;
  padding: 7px 12px;
  background: #f8faff;
  color: #53647f;
  font-size: 13px;
  font-weight: 700;
}
.recommendation-list { gap: 18px; }
.recommendation-card { scroll-margin-top: 92px; }
.recommendation-card:first-child {
  border-color: #cbd9f1;
  background: linear-gradient(130deg, #fff 0%, #fff 72%, #f8faff 100%);
}
.recommendation-card:nth-child(2) .rank-badge { background: #f1f5f9; color: #475569; }
.recommendation-card:nth-child(3) .rank-badge { background: #f5f3ff; color: #6d4db3; }
.answers-review { margin-top: 22px; }
.answers-review > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #344158;
  cursor: pointer;
  font-size: 17px;
  font-weight: 750;
  list-style: none;
}
.answers-review > summary::-webkit-details-marker { display: none; }
.answers-review > summary::after {
  width: 28px;
  height: 28px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  color: #526078;
  content: "+";
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}
.answers-review[open] > summary::after { content: "−"; }
.answers-review-content { margin-top: 15px; padding-top: 12px; border-top: 1px solid #edf0f5; }
.answers-review-content p { margin: 8px 0; color: #536176; font-size: 15px; line-height: 1.65; }
.answers-review-content strong { color: #29374e; }
.empty-recommendations {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 16px 0 22px;
  border-color: #e3eaf4;
  background: linear-gradient(130deg, #fff, #f8faff);
}
.empty-recommendations-icon {
  width: 48px;
  height: 48px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: #eff6ff;
  color: #2563eb;
}
.empty-recommendations-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.empty-recommendations h2 { margin: 0; font-size: 22px; }
.empty-recommendations p:not(.landing-kicker) { max-width: 680px; margin: 8px 0 16px; color: #657187; font-size: 15px; }
.evaluation-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 24px;
  background: #fbfcff;
}
.evaluation-panel h2 { margin: 0; font-size: 21px; }
.evaluation-panel p { margin: 5px 0 0; color: #657187; font-size: 15px; }
.evaluation-panel .button { flex: 0 0 auto; }
.generated-profile { margin-top: 16px; }

@media (max-width: 700px) {
  .results-section-heading { align-items: flex-start; }
  .results-count { margin-top: 2px; }
  .evaluation-panel { align-items: flex-start; flex-direction: column; }
  .evaluation-panel .button { width: 100%; }
}

@media (max-width: 480px) {
  .results-section-heading { flex-direction: column; gap: 12px; }
  .results-section-heading h2 { font-size: 25px; }
  .results-count { align-self: flex-start; }
  .empty-recommendations { flex-direction: column; padding: 22px; }
}

/* Focused questionnaire refinement: preserve all existing form content and behavior. */
.questionnaire-page {
  --questionnaire-blue: #2563eb;
  --questionnaire-blue-dark: #1d4ed8;
  --questionnaire-border: #e2e8f0;
  --questionnaire-ink: #1e293b;
}

.questionnaire-page .student-page-heading { margin-bottom: 30px; }
.questionnaire-page .student-page-heading > div { max-width: 760px; }
.questionnaire-page .student-page-heading h1 {
  color: #172554;
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -.04em;
}
.questionnaire-page .student-page-heading > div > p:last-child {
  max-width: 660px;
  margin-top: 12px;
  color: #64748b;
  font-size: 17px;
  line-height: 1.7;
}
.questionnaire-page .questionnaire-panel {
  padding: clamp(20px, 4vw, 40px);
  border-color: #e6ebf4;
  border-radius: 20px;
  box-shadow: 0 14px 40px rgb(15 23 42 / 6%);
}
.questionnaire-page .questionnaire-instructions {
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid #edf1f7;
}
.questionnaire-page .questionnaire-progress-meter {
  position: relative;
  width: min(190px, 22vw);
  height: 8px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 999px;
  background: #e4eaf3;
}
.questionnaire-page .questionnaire-progress-meter[hidden] { display: none; }
.questionnaire-page .questionnaire-progress-meter > span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #5281ef);
  transition: width .24s ease;
}
.questionnaire-page .questionnaire-step-count {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid #dbe7fb;
  border-radius: 999px;
  padding: 7px 13px;
  background: #f3f7ff;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .01em;
}
.questionnaire-page .questionnaire-instructions p {
  color: #64748b;
  font-size: 15px;
}
.questionnaire-page .questionnaire-progress {
  position: relative;
  isolation: isolate;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 26px;
  padding: 12px;
  border: 1px solid #e8edf5;
  border-radius: 16px;
  background: #f8faff;
}
.questionnaire-page .questionnaire-progress li {
  min-height: 60px;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 9px 10px;
  background: transparent;
  color: #66748a;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.questionnaire-page .questionnaire-progress li:not(:last-child)::after {
  display: none;
}
.questionnaire-page .questionnaire-progress li > span {
  width: 34px;
  height: 34px;
  border: 1px solid #d7dfeb;
  background: #fff;
  color: #64748b;
  font-size: 14px;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.questionnaire-page .questionnaire-progress li strong {
  min-width: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.questionnaire-page .questionnaire-progress li.is-current {
  border-color: #cbdcf9;
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 3px 10px rgb(37 99 235 / 6%);
}
.questionnaire-page .questionnaire-progress li.is-current > span,
.questionnaire-page .questionnaire-progress li.is-complete > span {
  border-color: var(--questionnaire-blue);
  background: var(--questionnaire-blue);
  color: #fff;
  box-shadow: 0 3px 8px rgb(37 99 235 / 18%);
}
.questionnaire-page .questionnaire-progress li.is-complete {
  color: #334155;
  background: #f0f6ff;
}
.questionnaire-page .questionnaire-progress li.is-complete > span {
  font-size: 0;
}
.questionnaire-page .questionnaire-progress li.is-complete > span::after {
  color: #fff;
  content: "✓";
  font-size: 15px;
  line-height: 1;
}
.questionnaire-page .questionnaire-form fieldset {
  min-width: 0;
  border: 1px solid var(--questionnaire-border);
  border-radius: 16px;
  padding: clamp(18px, 3vw, 28px);
  background: linear-gradient(180deg, #fff 0%, #fcfdff 100%);
}
.questionnaire-page .questionnaire-form legend {
  max-width: 100%;
  padding: 0 10px;
  color: #172554;
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.5vw, 27px);
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.questionnaire-page .questionnaire-form legend:focus {
  outline: none;
}
.questionnaire-page .questionnaire-form fieldset > p:not(.step-validation-message) {
  max-width: 72ch;
  margin: 8px 0 22px;
  border-left: 3px solid #8bb0f4;
  border-radius: 0 10px 10px 0;
  padding: 11px 14px;
  background: #f5f8ff;
  color: #475569;
  font-size: 16px;
  line-height: 1.65;
}
.questionnaire-page .choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
}
.questionnaire-page .choice {
  position: relative;
  min-width: 0;
  min-height: 68px;
  align-items: flex-start;
  gap: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  padding: 16px;
  background: #fff;
  color: var(--questionnaire-ink);
  box-shadow: 0 2px 6px rgb(15 23 42 / 2%);
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.questionnaire-page .choice:hover {
  border-color: #a9c2ee;
  background: #f9fbff;
  box-shadow: 0 5px 14px rgb(37 99 235 / 7%);
  transform: translateY(-1px);
}
.questionnaire-page .choice:focus-within {
  outline: 3px solid rgb(37 99 235 / 28%);
  outline-offset: 3px;
}
.questionnaire-page .choice input {
  position: relative;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  appearance: none;
  margin: 1px 0 0;
  border: 1.5px solid #b8c4d5;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.questionnaire-page .choice input::after {
  position: absolute;
  top: 3px;
  left: 6px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  opacity: 0;
  transform: rotate(45deg) scale(.8);
  transition: opacity .12s ease, transform .12s ease;
}
.questionnaire-page .choice input:checked {
  border-color: var(--questionnaire-blue);
  background: var(--questionnaire-blue);
}
.questionnaire-page .choice input:checked::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}
.questionnaire-page .choice input:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgb(37 99 235 / 18%);
}
.questionnaire-page .choice:has(input:checked) {
  border: 2px solid #4f7fe0;
  background: #eff5ff;
  box-shadow: 0 3px 12px rgb(37 99 235 / 11%);
}
.questionnaire-page .choice:has(input:checked) > span {
  color: #1e3a8a;
}
.questionnaire-page .questionnaire-controls {
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #edf1f7;
}
.questionnaire-page .questionnaire-controls .button {
  min-width: 148px;
  min-height: 48px;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
}
.questionnaire-page .questionnaire-controls [data-step-previous] {
  border-color: #d7e1ef;
  background: #fff;
  color: #40516b;
  box-shadow: none;
}
.questionnaire-page .questionnaire-controls [data-step-previous]:hover {
  border-color: #aebed5;
  background: #f8fafc;
}
.questionnaire-page .questionnaire-controls [data-step-next],
.questionnaire-page .questionnaire-controls [data-questionnaire-submit] {
  border-color: var(--questionnaire-blue);
  background: linear-gradient(135deg, #2563eb, #3f5ddd);
  box-shadow: 0 5px 13px rgb(37 99 235 / 18%);
}
.questionnaire-page .questionnaire-controls [data-step-next]:hover,
.questionnaire-page .questionnaire-controls [data-questionnaire-submit]:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8, #354bc2);
  box-shadow: 0 7px 17px rgb(37 99 235 / 22%);
}
.questionnaire-page .questionnaire-controls button:disabled {
  border-color: #cbd5e1;
  background: #cbd5e1;
  color: #fff;
  box-shadow: none;
}
.questionnaire-page .step-validation-message {
  margin-top: 17px !important;
  border: 1px solid #fecdd3;
  border-radius: 10px;
  padding: 11px 14px;
  background: #fff7f8;
  color: #9f1239 !important;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .questionnaire-page .questionnaire-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .questionnaire-page .questionnaire-progress li { min-height: 54px; }
}

@media (max-width: 600px) {
  .questionnaire-page .student-page-heading { margin-bottom: 22px; }
  .questionnaire-page .student-page-heading h1 { font-size: clamp(29px, 8vw, 36px); }
  .questionnaire-page .student-page-heading > div > p:last-child { font-size: 15px; }
  .questionnaire-page .questionnaire-panel { padding: 18px; border-radius: 16px; }
  .questionnaire-page .questionnaire-instructions {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .questionnaire-page .questionnaire-progress-meter { width: 100%; }
  .questionnaire-page .questionnaire-instructions p { font-size: 14px; line-height: 1.55; }
  .questionnaire-page .questionnaire-progress { gap: 8px; margin-bottom: 20px; padding: 9px; }
  .questionnaire-page .questionnaire-progress li { min-height: 50px; gap: 8px; padding: 7px; }
  .questionnaire-page .questionnaire-progress li > span { width: 30px; height: 30px; font-size: 13px; }
  .questionnaire-page .questionnaire-progress li strong { font-size: 12px; }
  .questionnaire-page .questionnaire-form fieldset { padding: 18px 14px; }
  .questionnaire-page .questionnaire-form legend { font-size: 22px; }
  .questionnaire-page .questionnaire-form fieldset > p:not(.step-validation-message) { margin-bottom: 17px; font-size: 15px; }
  .questionnaire-page .choice-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .questionnaire-page .choice { min-height: 58px; padding: 14px; font-size: 15px; }
  .questionnaire-page .questionnaire-controls {
    position: sticky;
    z-index: 5;
    bottom: 0;
    gap: 10px;
    margin: 18px calc(-1 * clamp(18px, 4vw, 40px)) calc(-1 * clamp(18px, 4vw, 40px));
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid #e5eaf2;
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 -8px 20px rgb(15 23 42 / 5%);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .questionnaire-page .questionnaire-controls .button { min-width: 0; min-height: 46px; padding: 11px 14px; font-size: 14px; }
  .questionnaire-page .questionnaire-controls button[data-step-previous] { flex: 0 1 43%; }
  .questionnaire-page .questionnaire-controls button[data-step-next],
  .questionnaire-page .questionnaire-controls button[data-questionnaire-submit] { flex: 1 1 55%; }
}

@media (prefers-reduced-motion: reduce) {
  .questionnaire-page .choice,
  .questionnaire-page .questionnaire-progress li,
  .questionnaire-page .questionnaire-progress li > span,
  .questionnaire-page .choice input { transition: none; }
}

.questionnaire-page .choice-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}
.questionnaire-page .choice {
  width: 100%;
  min-height: 64px;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  line-height: 1.65;
}
.questionnaire-page .choice-icon {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid #e0eafe;
  border-radius: 11px;
  padding: 9px;
  background: #f2f6ff;
  color: #3765c4;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}
.questionnaire-page .choice > span {
  min-width: 0;
  flex: 1 1 auto;
}

@media (max-width: 600px) {
  .questionnaire-page .choice-grid { gap: 12px; }
  .questionnaire-page .choice {
    min-height: 60px;
    gap: 12px;
    padding: 15px 16px;
    line-height: 1.6;
  }
  .questionnaire-page .choice-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 10px;
    padding: 8px;
  }
}
