@font-face { font-family: "Geologica"; src: url("fonts/Geologica-Greek.4c8b6ec8c9e4.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0370-03FF; }
@font-face { font-family: "Geologica"; src: url("fonts/Geologica-Latin.429fc8a75e26.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  font-family: "Geologica", system-ui, sans-serif;
  color: #242237;
  background: #fff;
  line-height: 1.6;
  font-synthesis: none;
  --accent: #5843a8;
  --accent-hover: #443185;
  --ink: #242237;
  --muted: #666477;
  --line: #e1dfe9;
  --soft: #f4f3f8;
  --tint: #efebfa;
  --error: #9c3043;
  --radius: 8px;
  --rail: 232px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; }
body { margin: 0; }
::selection { background: #ddd4f6; color: var(--ink); }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; font-size: 1rem; }
button, .button, summary { -webkit-tap-highlight-color: transparent; }
input, textarea { caret-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
#main:focus { outline: none; }
.icon { display: inline-block; flex: 0 0 auto; vertical-align: middle; }
.shell { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.main { padding-block: 64px 72px; min-height: calc(100svh - 100px); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 3vw, 2.4rem); letter-spacing: -.025em; }
h2 { font-size: 1.4rem; letter-spacing: -.015em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 16px; }
.lede { color: var(--muted); font-size: 1.125rem; max-width: 70ch; }
.muted, .helptext, .metadata { color: var(--muted); }
.small-text, .helptext, .metadata { font-size: .875rem; }
.page-heading { margin-bottom: 32px; }
.page-heading > :last-child { margin-bottom: 0; }
.page-heading .metadata { margin-top: 16px; }
.heading-actions { display: flex; justify-content: space-between; align-items: start; gap: 24px; }
.brand { display: inline-flex; color: var(--ink); font-size: 2rem; font-weight: 700; letter-spacing: -.04em; text-decoration: none; line-height: 1; }
.brand span { color: var(--accent); }
nav a { text-decoration: none; }
.app-layout .site-header { position: fixed; inset: 0 auto 0 0; width: var(--rail); background: var(--soft); z-index: 20; }
.app-layout .header-inner { display: flex; flex-direction: column; min-height: 100svh; padding: 36px 16px 24px; }
.app-layout .brand { margin: 0 12px 42px; }
.primary-nav, .utility-nav { display: flex; flex-direction: column; gap: 8px; }
.primary-nav a, .utility-nav a { display: flex; align-items: center; gap: 12px; padding: 13px 12px; min-height: 48px; border-radius: var(--radius); color: var(--muted); font-size: .9375rem; line-height: 1.35; }
.primary-nav a:hover, .utility-nav a:hover { background: #ebe8f2; color: var(--ink); }
.primary-nav a[aria-current], .utility-nav a[aria-current] { background: #e8e1f6; color: var(--accent); font-weight: 600; }
.utility-nav { margin-top: auto; padding-top: 24px; }
.app-layout .page-content { margin-left: var(--rail); }
.public-layout .header-inner { width: min(1280px, calc(100% - 96px)); margin-inline: auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 30px; }
.public-nav { display: flex; align-items: center; gap: 32px; }
.public-nav > a:not(.button) { color: var(--ink); padding-block: 10px; }
.public-layout .shell { width: min(1280px, calc(100% - 96px)); }
.public-layout .main { min-height: calc(100svh - 200px); padding-top: 44px; }
.actions, .form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.button, button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 11px 20px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: #fff; font-weight: 600; line-height: 1.4; text-align: center; text-decoration: none; cursor: pointer; transition: background-color 150ms ease-out, border-color 150ms ease-out; }
.button:hover, button:hover { background: var(--accent-hover); color: #fff; }
.button.secondary, button.secondary { background: #fff; color: var(--accent); border-color: #c5bddb; }
.button.secondary:hover, button.secondary:hover { background: var(--tint); }
.button.small { padding: 10px 16px; font-size: .9375rem; }
button:disabled { cursor: default; color: var(--muted); background: var(--soft); border-color: var(--line); }
.text-button { border: 0; background: none; color: var(--accent); padding: 10px 0; font-weight: 400; text-decoration: underline; }
.text-button:hover { color: var(--accent-hover); background: none; }
.inline-form { display: inline; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 24px; }
.two-column { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); align-items: start; gap: 40px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 28px; background: #fff; }
.card > :last-child, .content-section > :last-child { margin-bottom: 0; }
.stack > * + * { margin-top: 28px; }
.section { margin-top: 48px; }
.narrow { max-width: 800px; margin-inline: auto; }
.auth-card { max-width: 520px; margin-inline: auto; border: 0; padding: 24px 0; }
.auth-card h1 { font-size: 2.3rem; }
.auth-card button[type="submit"] { width: 100%; }
.auth-card form { margin-top: 28px; }
.notice { padding: 16px 20px; border-radius: var(--radius); background: var(--tint); color: #443572; }
.notice p:last-child { margin-bottom: 0; }
.notice.error, .errorlist { color: var(--error); }
.notice.error { background: #fff0f2; }
.notice.warning { background: #fff4dd; color: #755015; }
.messages { margin-bottom: 24px; }
.messages .notice { margin-bottom: 8px; }
.messages .success { background: #edf5f1; color: #285d48; }
.errorlist { margin-block: 8px; padding-left: 20px; font-size: .9375rem; }
form p { margin-bottom: 24px; }
label { display: block; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]), select, textarea { display: block; width: 100%; max-width: 100%; border: 1px solid #8d869d; border-radius: var(--radius); padding: 11px 12px; min-height: 46px; color: var(--ink); background: #fff; }
input::placeholder, textarea::placeholder { color: #777285; opacity: 1; }
textarea { min-height: 100px; resize: vertical; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--accent); width: 18px; height: 18px; vertical-align: middle; margin: 0 8px 0 0; flex-shrink: 0; }
input[type="checkbox"] + label { display: inline; font-weight: 400; }
.helptext { display: block; margin-top: 8px; line-height: 1.5; }
.helptext ul { padding-left: 20px; }
fieldset { min-width: 0; border: 1px solid var(--line); padding: 16px; border-radius: var(--radius); margin: 0 0 20px; }
legend { font-weight: 600; padding-inline: 4px; }
fieldset label:has(input[type="checkbox"]), div[id^="id_"] label:has(input[type="checkbox"]) { display: flex; align-items: center; min-height: 40px; font-weight: 400; font-size: .9375rem; }
.next-step { display: flex; gap: 20px; align-items: center; background: var(--tint); padding: 24px; border-radius: var(--radius); margin-bottom: 32px; }
.next-step > .icon { width: 36px; height: 36px; color: var(--accent); }
.next-step > div { flex: 1; }
.next-step h2 { color: var(--accent); font-size: 1.25rem; margin-bottom: 4px; }
.next-step p { color: #66568b; margin: 0; font-size: .9375rem; }
.context-line { font-size: .9375rem; color: var(--muted); margin-bottom: 28px; }
.context-line a { margin-left: 8px; }
.filters { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(160px, 1fr) minmax(135px, .85fr) auto; gap: 16px; align-items: end; margin-bottom: 24px; }
.filters label { font-size: .875rem; color: var(--muted); }
.search-input { position: relative; }
.search-input .icon { position: absolute; top: 14px; left: 14px; color: var(--muted); pointer-events: none; }
#study-q { padding-left: 44px; }
.select-filter { min-width: 0; }
.select-search { margin-top: 6px; }
.select-search input[type="search"] { min-height: 46px; font-size: .875rem; }
.select-filter-status { margin: 4px 0 0; font-size: .75rem; }
.choice-set { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.choice-set legend { margin-bottom: 4px; padding: 0; }
.choice-errors:empty { display: none; }
.choice-errors .errorlist { margin: 6px 0 8px; padding-left: 20px; }
.choice-search { margin: 8px 0 10px; }
.choice-search .search-input .icon { top: 50%; transform: translateY(-50%); }
.choice-search .search-input input[type="search"] { padding-left: 42px; }
.choice-chips { display: flex; gap: 8px; padding: 2px 0 8px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.choice-chip { display: inline-flex; align-items: center; flex: 0 0 auto; max-width: min(280px, 80vw); min-height: 46px; padding: 0 0 0 14px; border: 1px solid #c5bddb; border-radius: 999px; background: var(--tint); color: var(--accent-hover); font-size: .875rem; }
.choice-chip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.choice-chip button { flex: 0 0 auto; width: 46px; min-width: 46px; min-height: 46px; margin-left: 6px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--accent-hover); font-size: 1.15rem; line-height: 1; }
.choice-chip button:hover { background: #ddd4f6; color: var(--accent-hover); }
.choice-status { margin: 0 0 8px; }
.choice-options { max-height: 252px; overflow-y: auto; overscroll-behavior: contain; border-block: 1px solid var(--line); padding: 4px 4px 4px 0; scrollbar-width: thin; scrollbar-color: #c5bddb transparent; }
.choice-options .choice-option { display: flex; align-items: flex-start; gap: 10px; min-height: 46px; margin: 0; padding: 11px 6px; border-radius: 6px; font-size: .9375rem; font-weight: 400; cursor: pointer; }
.choice-options .choice-option:hover { background: var(--soft); }
.choice-options .choice-option input { margin: 3px 0 0; }
.choice-options .choice-option span { min-width: 0; overflow-wrap: anywhere; }
.choice-empty { margin: 0; padding: 16px 4px; }
.chat-transcript, .chat-context, .choice-options { scrollbar-width: thin; scrollbar-color: #c5bddb transparent; }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-block: 1px solid var(--line); padding-block: 14px; font-size: .875rem; color: var(--muted); }
.list-heading p { margin: 0; }
.catalog-scope { display: block; margin-top: 2px; font-size: .75rem; }
.list-heading > div { display: flex; flex-wrap: wrap; gap: 20px; }
.list-heading a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.department-row { position: relative; display: flex; gap: 32px; align-items: start; border-bottom: 1px solid var(--line); padding: 26px 0; }
.department-main { flex: 1; min-width: 0; }
.department-row h3 { font-size: 1.25rem; margin: 0 0 6px; }
.department-row h3 a { color: var(--ink); text-decoration: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.department-row h3 a:hover { color: var(--accent); }
.department-row h3 .icon { color: var(--muted); }
.department-row .metadata { margin-bottom: 8px; }
.department-description { font-size: .9375rem; max-width: 80ch; margin-bottom: 8px; color: #514d62; }
.field-names { color: var(--muted); font-size: .8125rem; margin-bottom: 0; }
.saved-status { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; margin-left: 16px; }
.saved-status .icon { width: 14px; height: 14px; }
.match-score { min-width: 90px; text-align: right; color: var(--accent); }
.match-score strong { display: block; font-size: 1.125rem; line-height: 1.4; font-weight: 600; font-variant-numeric: tabular-nums; }
.match-score small { font-size: .8125rem; font-weight: 400; color: var(--muted); }
.row-reasons { padding: 8px 0 0; font-size: .8125rem; color: var(--muted); }
.catalog-note, .prototype-note { color: var(--muted); font-size: .8125rem; margin: 24px 0; max-width: 100ch; }
.reference-details { border-bottom: 1px solid var(--line); }
.field-directory { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 36px; }
.field-directory dt { font-size: 1rem; }
.field-directory dd { font-size: .9375rem; }
.empty-state { padding: 56px 0; max-width: 620px; }
.empty-state h3 { font-size: 1.35rem; }
.empty-state p { color: var(--muted); }
#masters-recommendations { background: var(--soft); border-radius: 12px; padding: 32px; }
#masters-recommendations > p { max-width: 85ch; font-size: .9375rem; color: var(--muted); }
#masters-recommendations h2 { font-size: 1.7rem; }
.masters-list { border-top: 1px solid var(--line); }
.master-recommendation { border-top: 1px solid var(--line); padding: 24px 0; }
.master-recommendation:first-child { border-top: 0; }
.master-recommendation > h3 { font-size: 1.25rem; }
.master-recommendation > :last-child { margin-bottom: 0; }
section.masters-section { border-top: 0; background: var(--soft); border-radius: 12px; padding: 28px; }
.program-details { padding: 8px 0 0; }
.program-details > summary { margin-top: 8px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.program-details > .curriculum-program { margin: 16px 0 0 24px; padding-left: 20px; border-left: 1px solid var(--line); }
.curriculum-program > h3 { font-size: 1.25rem; margin-bottom: 6px; }
.curriculum-program details { border-top: 1px solid var(--line); padding: 2px 0; }
.curriculum-program details > summary { font-size: .9375rem; font-weight: 500; padding: 9px 0; min-height: 44px; }
.curriculum-program details > :not(summary) { padding-left: 12px; }
.undergraduate-group { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 32px; }
.undergraduate-group > h2 { font-size: 1.7rem; margin-bottom: 24px; }
.reference-details details { margin-top: 20px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.reference-details details > summary { font-size: .9375rem; }
.score-list { margin: 0; padding: 0; list-style: none; }
.score-list li { padding-block: 16px; border-bottom: 1px solid var(--line); }
.score-list li:last-child { border-bottom: 0; }
.score-label { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.score-label strong { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.score-list details { font-size: .8125rem; color: var(--muted); padding: 6px 0 0; }
.score-list details p { margin-bottom: 8px; }
meter { display: block; width: 100%; height: 12px; margin-top: 6px; }
meter::-webkit-meter-bar { background: var(--soft); border: 0; border-radius: 3px; }
meter::-webkit-meter-optimum-value { background: var(--accent); border-radius: 3px; }
meter::-moz-meter-bar { background: var(--accent); border-radius: 3px; }
progress { display: block; appearance: none; width: 100%; height: 6px; border: 0; border-radius: 4px; margin: 12px 0 20px; overflow: hidden; background: var(--soft); color: var(--accent); }
progress::-webkit-progress-bar { background: var(--soft); }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }
.results-columns { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; }
.results-columns > section { border-top: 1px solid var(--line); padding-top: 24px; }
.results-columns h2 { font-size: 1.25rem; }
dl { margin: 0; }
dt { color: var(--muted); font-size: .875rem; margin-top: 20px; }
dt:first-child { margin-top: 0; }
dd { margin: 4px 0 0; }
.plain-list { padding-left: 22px; }
.plain-list li + li { margin-top: 12px; }
.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
details { padding: 16px 0; }
summary { font-weight: 600; cursor: pointer; min-height: 28px; }
details > :not(summary) { margin-top: 16px; }
details > :last-child { margin-bottom: 0; }
details[open] > summary { color: var(--accent); }
.content-section { border-top: 1px solid var(--line); padding-top: 28px; }
.detail-layout { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 48px; }
.choice-panel { background: var(--soft); border: 0; position: sticky; top: 32px; }
.choice-panel h2 { font-size: 1.25rem; }
.choice-panel button { width: 100%; }
.breadcrumb { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; margin-bottom: 28px; text-decoration: none; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; padding: 0; list-style: none; }
.tag { font-size: .875rem; color: var(--accent); }
.tag + .tag::before { content: "·"; margin-right: 8px; color: var(--muted); }
.choices-group { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 32px; }
.choices-group > h2 { font-size: 1.7rem; }
.saved-choice { padding: 24px 0; border-bottom: 1px solid var(--line); }
.saved-choice h3 { font-size: 1.35rem; margin-bottom: 8px; }
.saved-choice h3 a { color: var(--ink); text-decoration: none; }
.choice-status { font-size: .8125rem; color: var(--accent); margin-bottom: 8px; }
.choice-note { padding: 4px 0 0; }
.choice-note > summary { font-size: .875rem; font-weight: 500; padding: 8px 0; min-height: 40px; }
.choice-note .pre-wrap { font-size: .9375rem; max-width: 70ch; }
.preparation-panel { background: var(--soft); border-radius: 12px; padding: 24px; }
.preparation-panel > summary { padding: 2px 0; }
.preparation-panel > summary h2 { display: inline; font-size: 1.3rem; margin: 0; }
.preparation-panel > summary .small-text { display: block; margin-top: 4px; font-weight: 400; }
.preparation-panel[open] > summary { margin-bottom: 20px; }
.preparation-panel form { margin-top: 20px; max-width: 720px; }
.preparation-panel form button { min-width: 220px; }
.assessment-heading h1 { font-size: 2rem; }
.assessment-heading { margin-bottom: 20px; }
.assessment-progress { display: flex; justify-content: space-between; gap: 16px; font-size: .875rem; color: var(--muted); }
.scale { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 16px; margin: 0 0 20px; list-style: none; font-size: .8125rem; background: var(--soft); border-radius: var(--radius); color: var(--muted); }
.question { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 0 24px; margin-bottom: 24px; }
.question legend { width: 100%; padding: 0 0 16px; font-size: 1.0625rem; line-height: 1.5; }
.question-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.question-options label { display: flex; justify-content: center; align-items: center; gap: 4px; min-height: 56px; margin: 0; padding: 12px 8px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 400; transition: background-color 120ms ease-out; }
.question-options label:hover { background: var(--soft); }
.question-options label:has(input:checked) { background: var(--tint); border-color: var(--accent); color: var(--accent); }
.assessment-actions { z-index: 10; background: #fff; border-top: 1px solid var(--line); padding: 16px 0 20px; }
.assessment-form.is-paged .assessment-actions { position: sticky; bottom: 0; }
.assessment-actions p { font-size: .8125rem; color: var(--muted); margin-bottom: 12px; }
.assessment-actions .form-actions { margin: 0; }
.assessment-actions .save-progress { margin-right: auto; }
.assessment-actions button { font-size: .9375rem; }
.assessment-form { margin-bottom: 24px; }
.assessment-form.is-paged .question { scroll-margin-bottom: 160px; }
/* Chat workspace */
.chat-layout { height: 100svh; overflow: hidden; }
.chat-layout .page-content { display: flex; flex-direction: column; height: 100svh; min-height: 0; }
.chat-layout .site-footer { display: none; }
.chat-layout .main { display: flex; flex-direction: column; flex: 1; width: 100%; max-width: none; margin: 0; padding: 0; min-height: 0; }
.chat-page { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 292px; grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "heading context" "conversation context"; background: #fff; }
.chat-heading { grid-area: heading; padding: 24px 32px 18px; border-bottom: 1px solid var(--line); }
.chat-heading h1 { font-size: 1.65rem; margin-bottom: 4px; }
.chat-status { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: .8125rem; }
.status-mark { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); }
.chat-workspace { grid-area: conversation; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.chat-transcript { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 32px 20px; }
.chat-empty { max-width: 68ch; padding: 24px 0 32px; }
.chat-empty h2 { font-size: 1.35rem; margin-bottom: 8px; }
.chat-empty p { color: var(--muted); max-width: 58ch; }
.chat-message { overflow-wrap: anywhere; }
.chat-message.user { width: fit-content; max-width: min(78%, 680px); margin: 28px 0 28px auto; padding: 16px 18px; border: 0; border-radius: 12px; background: var(--tint); }
.chat-message.assistant { max-width: min(82%, 760px); margin: 0 0 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #faf9fc; scroll-margin-top: 24px; }
.chat-message .message-label { margin: 0 0 8px; color: var(--accent); font-size: .8125rem; font-weight: 600; }
.chat-message.user .message-label { color: #5d5480; }
.chat-message p:last-child, .chat-answer > :last-child { margin-bottom: 0; }
.chat-message:focus { outline: none; }
.chat-message:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.chat-prompts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.chat-prompts button { text-align: left; font-size: .875rem; font-weight: 400; }
.chat-composer { border-top: 1px solid var(--line); padding: 16px 32px 18px; background: #fff; }
.chat-form-errors:empty, .message-errors:empty, [data-memory-errors]:empty { display: none; }
.chat-form-errors ul, .message-errors ul { margin: 0 0 12px; padding: 10px 14px 10px 34px; border-radius: var(--radius); background: #fff0f2; color: var(--error); font-size: .875rem; }
.composer-field { position: relative; }
.composer-row { display: flex; align-items: flex-end; gap: 10px; padding: 8px; border: 1px solid #8d869d; border-radius: 12px; background: #fff; }
.composer-row:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.composer-row textarea { display: block; flex: 1; width: 100%; min-height: 48px; max-height: 180px; margin: 0; padding: 10px 8px; border: 0; outline: 0; resize: none; overflow-y: hidden; background: transparent; line-height: 1.5; }
.composer-row textarea:focus-visible { outline: none; }
.chat-send { flex: 0 0 auto; width: 46px; min-width: 46px; min-height: 46px; padding: 0; }
.chat-send .icon { width: 22px; height: 22px; }
.chat-send[disabled] { color: var(--muted); background: var(--soft); border-color: var(--line); }
.composer-meta { display: flex; justify-content: space-between; gap: 12px; min-height: 22px; padding: 6px 2px 0; }
.composer-meta [data-chat-status]:not(:empty) { color: var(--accent-hover); }
.composer-privacy { font-size: .75rem; color: var(--muted); margin: 4px 0 0; }
.message-errors { margin-top: 8px; }
.chat-context { grid-area: context; min-height: 0; overflow-y: auto; overscroll-behavior: contain; border-left: 1px solid var(--line); background: #fff; }
.chat-context > summary { display: none; }
.chat-context-body { padding: 22px 22px 32px; }
.context-heading { margin-bottom: 22px; }
.context-heading h2 { font-size: 1.3rem; margin-bottom: 4px; }
.context-heading p { margin: 0; color: var(--muted); font-size: .875rem; }
.context-toggle-set { padding: 0; border: 0; margin: 24px 0 0; }
.context-toggle-set legend { padding: 0; margin-bottom: 8px; }
.context-toggle { display: flex; align-items: flex-start; gap: 10px; min-height: 46px; margin: 0; padding: 10px 0; font-size: .9375rem; font-weight: 400; cursor: pointer; }
.context-toggle input { margin-top: 3px; }
.context-toggle span { min-width: 0; }
.chat-context .reference-details { margin-top: 24px; }
.memory-panel, .context-explanation { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; }
.memory-panel > summary, .context-explanation > summary { min-height: 46px; padding: 10px 0; }
[data-context-preview] { overflow-wrap: anywhere; font-size: .875rem; }
.chat-composer > .context-toggle { font-size: .8125rem; }
.memory-form { margin-top: 14px; }
.memory-form label { font-size: .9375rem; }
.memory-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.memory-actions .text-button { width: auto; }
.clear-history-form { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; }
.clear-history-form .text-button { color: var(--error); }
.danger-zone { border-color: #ddbbc2; }
button.danger { background: var(--error); border-color: var(--error); }
button.danger:hover { background: #7d2334; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-block: 24px; font-size: .8125rem; color: var(--muted); }
.site-footer p { margin: 0; }
.landing-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: center; padding-block: 32px 64px; }
.hero h1 { font-size: clamp(3rem, 5.5vw, 4.8rem); line-height: 1.08; letter-spacing: -.035em; max-width: 11ch; margin-bottom: 32px; font-weight: 600; text-wrap: initial; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero .lede { max-width: 43ch; font-size: 1.25rem; margin-bottom: 32px; }
.hero > .metadata { margin-top: 12px; }
.journey { padding: 0; margin: 0; list-style: none; counter-reset: journey; }
.journey li { counter-increment: journey; display: flex; position: relative; align-items: start; gap: 28px; padding-bottom: 56px; }
.journey li:last-child { padding-bottom: 0; }
.journey li::before { content: counter(journey); display: flex; align-items: center; justify-content: center; background: var(--tint); color: var(--accent); font-size: 1.25rem; font-weight: 600; width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; }
.journey li:not(:last-child)::after { content: ""; position: absolute; left: 23px; top: 60px; bottom: 12px; width: 1px; background: #c5bddb; }
.journey h2 { font-size: clamp(2rem, 3vw, 2.8rem); color: var(--accent); margin-bottom: 8px; font-weight: 600; }
.journey p { font-size: 1.125rem; color: var(--ink); margin: 0; }
.landing-close { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; border-top: 1px solid var(--line); padding-top: 40px; }
.landing-close h2 { font-size: 2rem; max-width: 24ch; }
.landing-close p { color: var(--muted); max-width: 58ch; }
.landing-close + .prototype-note { margin-top: 32px; }
.skip-link { position: fixed; top: -100px; left: 16px; background: #fff; z-index: 100; padding: 12px; }
.skip-link:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1150px) {
  :root { --rail: 208px; }
  .shell { width: calc(100% - 64px); }
  .app-layout .header-inner { padding-inline: 10px; }
  .primary-nav a, .utility-nav a { font-size: .875rem; gap: 8px; }
  .filters { grid-template-columns: 1fr 1fr auto; }
  .filters .search-field { grid-column: 1 / -1; }
  .next-step { flex-wrap: wrap; }
  .next-step .button { margin-left: 56px; }
  .two-column { gap: 28px; }
  .results-columns { gap: 36px; }
}
@media (max-width: 800px) {
  .app-layout .site-header { position: static; width: auto; background: #fff; border-bottom: 1px solid var(--line); }
  .app-layout .header-inner { display: grid; grid-template-columns: 1fr auto; min-height: 0; padding: 20px 20px 0; }
  .app-layout .brand { margin: 0; font-size: 1.7rem; align-self: center; }
  .app-layout .page-content { margin-left: 0; }
  .primary-nav { grid-row: 2; grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 0; margin: 16px -20px 0; }
  .primary-nav a { justify-content: center; padding: 14px 6px; border-radius: 0; min-height: 48px; font-size: .9375rem; border-bottom: 2px solid transparent; }
  .primary-nav a[aria-current] { background: #fff; border-bottom-color: var(--accent); }
  .primary-nav .icon { display: none; }
  .utility-nav { grid-row: 1; grid-column: 2; display: flex; flex-direction: row; padding: 0; margin: 0; gap: 6px; }
  .utility-nav a { padding: 10px; min-height: 44px; }
  .utility-nav a > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .desktop-label { display: none; }
  .shell { width: calc(100% - 40px); }
  .main { padding-block: 32px 48px; min-height: calc(100svh - 220px); }
  .page-heading { margin-bottom: 24px; }
  .heading-actions { flex-wrap: wrap; gap: 12px; }
  .two-column, .detail-layout { grid-template-columns: 1fr; gap: 36px; }
  .choice-panel { position: static; }
  .choice-panel textarea { min-height: 90px; }
  .results-columns { grid-template-columns: 1fr 1fr; gap: 28px; }
  .next-step { gap: 16px; padding: 20px; }
  .next-step > .icon { width: 28px; height: 28px; }
  .next-step .button { margin-left: 44px; }
  .department-row { gap: 16px; }
  .department-row h3 { font-size: 1.2rem; }
  .match-score { min-width: 72px; }
  .match-score strong { font-size: 1.125rem; }
  #masters-recommendations, section.masters-section { padding: 16px; }
  .program-details > .curriculum-program { margin-left: 12px; padding-left: 12px; }
  .public-layout .header-inner, .public-layout .shell { width: calc(100% - 40px); }
  .public-layout .header-inner { padding-block: 22px; }
  .public-nav { gap: 20px; font-size: .9375rem; }
  .public-layout .brand { font-size: 1.75rem; }
  .public-nav .how-link { display: none; }
  .public-layout .main { padding-top: 28px; }
  .landing-hero { grid-template-columns: 1fr; gap: 48px; padding: 16px 0 40px; }
  .hero h1 { font-size: clamp(2.8rem, 7.5vw, 4.2rem); max-width: 13ch; }
  .hero .lede { font-size: 1.125rem; }
  .journey { padding-top: 8px; }
  .journey h2 { font-size: 2rem; }
  .journey li { padding-bottom: 32px; gap: 20px; }
  .landing-close { grid-template-columns: 1fr; gap: 12px; padding-top: 32px; }
  .landing-close h2 { font-size: 1.7rem; max-width: 25ch; }
}
@media (max-width: 540px) {
  h1 { font-size: 1.85rem; }
  .public-nav { gap: 16px; }
  .public-nav .button { padding-inline: 12px; }
  .public-layout .brand { font-size: 1.6rem; }
  .next-step > .icon { display: none; }
  .next-step .button { margin-left: 0; width: 100%; }
  .next-step h2 { font-size: 1.2rem; }
  .next-step p { font-size: .875rem; }
  .filters { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .filters > button { grid-column: 1 / -1; }
  .list-heading { font-size: .8125rem; gap: 12px; align-items: start; }
  .list-heading > div { flex-direction: column; align-items: end; gap: 8px; }
  .list-heading p { white-space: nowrap; }
  .department-row { display: block; padding-block: 24px; }
  .department-row h3 { font-size: 1.15rem; }
  .department-row h3 .icon { width: 18px; height: 18px; }
  .department-row .metadata { font-size: .8125rem; }
  .department-description { font-size: .9375rem; }
  .saved-status { display: flex; margin: 8px 0 0; }
  .match-score { display: flex; align-items: baseline; gap: 8px; text-align: left; margin-top: 12px; }
  .match-score strong { font-size: 1rem; }
  .field-directory, .results-columns, .chat-composer .context-options { grid-template-columns: 1fr; }
  .card, .preparation-panel, .chat-composer { padding: 20px; }
  .auth-card { padding: 8px 0; }
  .auth-card h1 { font-size: 2rem; }
  .question-options { gap: 8px; }
  .question-options label { flex-direction: column; gap: 8px; padding: 10px 4px; min-height: 66px; }
  .question-options input { margin: 0; }
  .question legend { font-size: 1rem; }
  .assessment-heading h1 { font-size: 1.8rem; }
  .assessment-progress { flex-wrap: wrap; gap: 4px; }
  .scale { gap: 4px 12px; font-size: .75rem; padding: 12px; }
  .assessment-actions { padding-block: 12px 16px; }
  .assessment-actions .form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .assessment-actions .save-progress { margin: 0; }
  .assessment-actions button { padding: 10px 8px; font-size: .875rem; }
  .assessment-actions [data-previous] { grid-column: 1 / -1; grid-row: 2; min-height: 36px; padding-block: 6px; }
  .form-actions > * { flex: 1 1 180px; }
  .site-footer { flex-direction: column; gap: 8px; }
  .chat-composer .form-actions { display: block; }
  .chat-composer .form-actions button { width: 100%; }
  .chat-prompts { flex-direction: column; }
}
@media (max-width: 800px) {
  body.chat-layout { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
  .chat-layout .site-header { flex: 0 0 auto; }
  .chat-layout .page-content { flex: 1; height: auto; min-height: 0; }
  .chat-page { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "heading" "conversation" "context"; }
  .chat-heading { padding: 14px 20px 12px; }
  .chat-heading h1 { font-size: 1.4rem; }
  .chat-transcript { padding: 16px 20px; }
  .chat-message.user { max-width: 92%; margin-block: 20px; }
  .chat-message.assistant { max-width: 100%; }
  .chat-composer { padding: 12px 20px 14px; }
  .chat-page:has(.chat-context[open]) { grid-template-rows: auto auto minmax(0, 1fr); }
  .chat-page:has(.chat-context[open]) .chat-workspace { grid-template-rows: auto; }
  .chat-page:has(.chat-context[open]) .chat-transcript { display: none; }
  .chat-context { overflow-y: auto; border-top: 1px solid var(--line); border-left: 0; }
  .chat-context > summary { position: sticky; top: 0; z-index: 2; background: #fff; display: flex; align-items: center; min-height: 46px; padding: 0 20px; font-size: .9375rem; }
  .chat-context > summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 150ms ease-out; }
  .chat-context[open] > summary::after { transform: rotate(-135deg); }
  .chat-context-body { padding: 16px 20px 24px; }
  .choice-options { max-height: 34dvh; }
}
@media (max-width: 540px) {
  .chat-heading, .chat-transcript, .chat-composer { padding-inline: 16px; }
  .chat-context > summary, .chat-context-body { padding-inline: 16px; }
  .chat-prompts button { width: 100%; }
  .composer-meta { flex-direction: column; gap: 2px; }
  .choice-chip { max-width: 86vw; }
  .memory-actions { display: grid; grid-template-columns: 1fr; }
  .memory-actions button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .site-footer, .skip-link, .no-print, .messages { display: none !important; }
  .chat-layout { height: auto; overflow: visible; }
  .chat-layout .page-content, .chat-page, .chat-workspace, .chat-transcript, .chat-context { height: auto; max-height: none; overflow: visible; }
  .app-layout .page-content { margin: 0; }
  .shell, .public-layout .shell { width: 100%; }
  .main { padding: 0; }
  .card, .saved-choice, .master-recommendation { break-inside: avoid; }
  .two-column, .grid { display: block; }
  .grid > *, .two-column > * { margin-bottom: 20px; }
  a { color: #000; }
  h1 { font-size: 24pt; }
  meter { print-color-adjust: exact; }
  .score-list summary { display: none; }
}
