:root {
  --cardinal: #b11116;
  --cardinal-dark: #72090d;
  --gold: #d4a017;
  --gold-soft: #fff4cf;
  --paper: #fffaf0;
  --white: #ffffff;
  --ink: #221b1b;
  --muted: #6f6161;
  --line: #e2d4bc;
  --shadow: 0 20px 60px rgba(70, 10, 10, .14);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Inter", sans-serif;
  --serif: "Merriweather", serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--display); }
body.panel-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.site-header { min-height: 78px; border-bottom: 1px solid rgba(255,255,255,.18); display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 28px; padding: 0 clamp(18px, 4vw, 64px); position: sticky; top: 0; z-index: 10; background: rgba(114,9,13,.96); color: var(--white); backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(70,10,10,.12); }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 4px; background: var(--gold); color: var(--cardinal-dark); font-family: var(--serif); font-size: 22px; font-weight: 900; }
.main-nav { display: flex; gap: 22px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.main-nav a { opacity: .86; transition: color .22s var(--ease), opacity .22s var(--ease), transform .22s var(--ease); }
.main-nav a:hover { opacity: 1; color: var(--gold-soft); transform: translateY(-1px); }
.header-link { justify-self: end; border: 1px solid rgba(255,255,255,.32); padding: 10px 14px; border-radius: 4px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

.hero { display: grid; align-items: center; padding: clamp(62px, 9vw, 118px) clamp(18px, 5vw, 82px); background: linear-gradient(135deg, rgba(114,9,13,.96), rgba(177,17,22,.90)), radial-gradient(circle at 86% 16%, rgba(212,160,23,.38), transparent 28%); color: var(--white); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: -30% -12%; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 44px 44px; opacity: .24; transform: rotate(-5deg); animation: grid-drift 18s linear infinite; pointer-events: none; }
.hero-content { max-width: 980px; position: relative; z-index: 1; }
.eyebrow, .section-index { margin: 0 0 16px; display: flex; align-items: center; gap: 10px; color: var(--gold); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 900; }
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgba(212,160,23,.18); }
.hero h1 { max-width: 900px; margin: 0; font-family: var(--serif); font-size: clamp(44px, 6vw, 82px); line-height: 1.03; letter-spacing: -.045em; }
.hero-copy { max-width: 650px; margin: 24px 0 0; color: #ffe8e8; font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.primary-action, .secondary-action { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 5px; padding: 0 18px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; border: 0; cursor: pointer; transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease), color .22s var(--ease); }
.primary-action { background: var(--gold); color: var(--cardinal-dark); }
.secondary-action { border: 1px solid rgba(255,255,255,.42); color: var(--white); }
.primary-action:hover, .secondary-action:hover, .cms-button:hover, .see-more-button:hover, .icon-button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(70,10,10,.18); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: var(--white); }
.stats article { padding: 28px clamp(18px, 3vw, 40px); border-right: 1px solid var(--line); transition: background .24s var(--ease), transform .24s var(--ease); }
.stats article:hover { background: #fffdf8; transform: translateY(-2px); }
.stats span { display: block; color: var(--cardinal); font-size: clamp(34px, 4vw, 56px); font-weight: 900; letter-spacing: -.06em; }
.stats p { margin: 6px 0 0; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }

.about-band, .directory, .submit-section, .cms-section, .analytics-section { padding: clamp(64px, 8vw, 108px) clamp(18px, 5vw, 82px); }
.about-band { display: grid; grid-template-columns: minmax(260px, 520px) minmax(280px, 1fr); gap: 48px; background: var(--gold-soft); border-bottom: 1px solid var(--line); }
.about-band h2, .section-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(34px, 5vw, 58px); line-height: 1.12; letter-spacing: -.035em; }
.about-copy { display: grid; gap: 18px; align-content: end; }
.about-copy p, .section-heading p { margin: 0; color: var(--muted); line-height: 1.8; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 42px; margin-bottom: 38px; }
.section-heading > p { max-width: 430px; }
.compact { margin-bottom: 30px; }

.toolbar { display: grid; grid-template-columns: minmax(240px, 1.3fr) repeat(5, minmax(132px, .72fr)); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.search-field, .select-field { min-height: 58px; display: flex; align-items: center; position: relative; border-right: 1px solid var(--line); }
.search-field svg { margin-left: 16px; color: var(--cardinal); }
.search-field input, .select-field select { width: 100%; height: 100%; background: transparent; border: 0; outline: 0; padding: 0 16px; color: var(--ink); font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.select-field select { appearance: none; cursor: pointer; padding-right: 36px; }
.select-field svg { position: absolute; right: 14px; width: 14px; pointer-events: none; color: var(--cardinal); }
.select-field:last-child { border-right: 0; }
.results-meta { display: flex; justify-content: space-between; align-items: center; margin: 24px 0 18px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; }
.results-meta p { margin: 0; display: flex; align-items: center; gap: 8px; }
.results-meta svg { width: 14px; }
.student-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.student-card { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--cardinal); border-radius: 8px; overflow: hidden; box-shadow: 0 8px 26px rgba(70,10,10,.08); animation: reveal .42s both; animation-delay: var(--delay); transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease); }
.student-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(70,10,10,.14); border-color: rgba(177,17,22,.34); }
.card-open { width: 100%; height: 100%; display: flex; flex-direction: column; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; padding: 0; }
.portrait { min-height: 118px; padding: 18px; background: linear-gradient(135deg, var(--gold-soft), #fff); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: start; }
.portrait-initials { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: var(--cardinal); color: var(--white); font-weight: 900; font-size: 21px; }
.featured-label { display: inline-flex; align-items: center; gap: 5px; background: var(--gold); color: var(--cardinal-dark); padding: 7px 9px; border-radius: 999px; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.featured-label svg { width: 12px; }
.card-body { padding: 20px; display: flex; min-height: 280px; flex-direction: column; }
.card-kicker { color: var(--cardinal); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.card-title { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-top: 8px; }
.card-title h3 { margin: 0; font-size: 24px; line-height: 1.1; letter-spacing: -.03em; }
.arrow-button { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--cardinal); color: var(--white); transition: transform .24s var(--ease), background .24s var(--ease); }
.student-card:hover .arrow-button { transform: rotate(12deg) scale(1.06); background: var(--cardinal-dark); }
.student-role { margin: 11px 0 18px; color: var(--muted); line-height: 1.55; font-size: 13px; }
.tag-list, .panel-skills { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list span, .panel-skills span { border: 1px solid var(--line); background: var(--paper); padding: 6px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.evidence-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.evidence-pills span { border: 1px solid rgba(177,17,22,.22); background: #fffdf8; color: var(--cardinal-dark); padding: 5px 7px; border-radius: 5px; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; font-weight: 900; }
.card-footer { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.card-footer span, .panel-meta span { display: flex; align-items: center; gap: 6px; }
.card-footer svg, .panel-meta svg { width: 13px; }
.empty-state { border: 1px solid var(--line); background: var(--white); border-radius: 8px; padding: 64px 20px; text-align: center; }
.empty-state span { color: var(--cardinal); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.empty-state h3 { margin: 12px 0 20px; font-size: 30px; }
.empty-state button, .cms-button { border: 1px solid var(--cardinal); background: var(--cardinal); color: var(--white); border-radius: 4px; padding: 10px 13px; cursor: pointer; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; }

.submit-section { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: clamp(18px, 3vw, 30px); }
.profile-form label { display: grid; gap: 7px; color: var(--cardinal-dark); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.profile-form input, .profile-form select, .profile-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 5px; padding: 12px; background: var(--white); color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 600; }
.profile-form textarea { min-height: 118px; resize: vertical; }
.profile-form .wide, .profile-form .form-button { grid-column: 1 / -1; }
.form-button { width: fit-content; }

.analytics-section { background: #fffdf8; border-bottom: 1px solid var(--line); }
.analytics-toolbar { width: min(680px, 100%); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 8px 24px rgba(70,10,10,.08); }
.analytics-toolbar .select-field { border-right: 0; }
.analytics-toolbar .select-field:first-child { border-right: 1px solid var(--line); }
.analytics-value-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.analytics-value-row article { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 7px; padding: 15px 16px; }
.analytics-value-row span { display: block; margin-bottom: 5px; color: var(--cardinal); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; }
.analytics-value-row strong { display: block; color: var(--ink); font-size: 14px; line-height: 1.45; }
.public-analytics-grid, .admin-analytics-grid { display: grid; grid-template-columns: minmax(250px, .86fr) minmax(280px, 1fr) minmax(260px, .9fr); gap: 16px; align-items: stretch; }
.analytics-card { min-height: 260px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 20px; box-shadow: 0 10px 32px rgba(70,10,10,.09); overflow: hidden; transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease); }
.analytics-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(70,10,10,.13); border-color: rgba(177,17,22,.24); }
.highlight-card { display: grid; justify-items: center; align-content: start; }
.chart-label { display: block; margin-bottom: 16px; color: var(--cardinal); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; }
.donut-chart { width: min(188px, 58vw); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; position: relative; color: var(--cardinal-dark); box-shadow: inset 0 0 0 1px rgba(34,27,27,.08); animation: chart-pop .52s var(--ease) both; cursor: pointer; transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.donut-chart:hover { transform: scale(1.03); box-shadow: inset 0 0 0 1px rgba(34,27,27,.08), 0 14px 28px rgba(70,10,10,.12); }
.donut-chart::before { content: ""; position: absolute; inset: 20%; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.donut-center { position: relative; z-index: 1; width: 48%; aspect-ratio: 1; display: grid; place-items: center; align-content: center; text-align: center; }
.donut-center strong, .donut-center span { display: block; text-align: center; }
.donut-center strong { font-size: 34px; line-height: 1; font-weight: 900; letter-spacing: -.05em; }
.donut-center span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; }
.chart-legend { width: 100%; display: grid; gap: 7px; margin-top: 16px; color: var(--muted); font-size: 12px; font-weight: 800; }
.chart-legend button { width: 100%; display: flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: inherit; padding: 5px 6px; text-align: left; cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.chart-legend button:hover { background: var(--paper); border-color: var(--line); transform: translateX(2px); }
.chart-legend i { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.bar-chart, .stacked-rail, .funnel-chart, .insight-list, .bubble-chart { display: grid; gap: 10px; }
.bar-row, .rail-row, .funnel-row, .skill-row { display: grid; grid-template-columns: minmax(118px, .72fr) minmax(92px, 1fr) 34px; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 800; min-width: 0; }
button.bar-row, button.rail-row { width: 100%; border: 1px solid transparent; border-radius: 6px; background: transparent; padding: 6px; text-align: left; cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
button.bar-row:hover, button.rail-row:hover { background: var(--paper); border-color: var(--line); transform: translateX(2px); }
.bar-row span, .rail-row span, .funnel-row span, .skill-row span { min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
.bar-row > div, .rail-track { height: 11px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.bar-row i, .rail-track i, .funnel-row i, .skill-row i { display: block; width: var(--value, 0); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cardinal), var(--gold)); animation: grow-bar .7s var(--ease) both; }
.bar-row strong, .rail-row strong, .funnel-row strong, .skill-row strong { color: var(--cardinal); text-align: right; }
.rail-row { grid-template-columns: 92px 1fr 34px; }
.rail-track { height: 16px; }
.rail-track i { background: linear-gradient(90deg, #72090d, #b11116 58%, #d4a017); }
.top-students-panel { margin-top: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 18px; box-shadow: 0 10px 32px rgba(70,10,10,.08); }
.top-students-heading { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 14px; }
.top-students-heading .chart-label { margin-bottom: 0; }
.top-students-heading p { max-width: 520px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.top-student-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.top-student-card { display: grid; grid-template-columns: 48px 1fr; gap: 12px; min-width: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: inherit; padding: 14px; text-align: left; cursor: pointer; animation: reveal .36s both; animation-delay: var(--delay); transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease); }
.top-student-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(70,10,10,.1); }
.top-student-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--cardinal); color: var(--white); font-weight: 900; }
.top-student-card span { display: block; color: var(--cardinal); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; line-height: 1.3; }
.top-student-card h3 { margin: 4px 0 6px; font-size: 17px; line-height: 1.15; letter-spacing: -.02em; }
.top-student-card p { margin: 0 0 8px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.top-student-card small { color: var(--cardinal-dark); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; overflow-wrap: anywhere; }

.trajectory-panel { margin-top: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 20px; box-shadow: 0 10px 32px rgba(70,10,10,.08); }
.admin-trajectory-panel { margin-bottom: 24px; }
.trajectory-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); gap: 18px; align-items: start; margin-bottom: 16px; }
.trajectory-heading .chart-label { margin-bottom: 8px; }
.trajectory-heading h3 { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: -.025em; }
.trajectory-heading p { max-width: 760px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.trajectory-cohort-field { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.trajectory-cohort-field select { font-size: 12px; padding-right: 34px; }
.trajectory-layout { display: grid; grid-template-columns: minmax(360px, 1.35fr) minmax(260px, .9fr); gap: 18px; align-items: stretch; }
.line-chart { min-height: 260px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, #fff, var(--paper)); padding: 12px; overflow: hidden; }
.line-chart svg { width: 100%; height: 100%; min-height: 230px; stroke-width: 2; }
.chart-grid-line { stroke: var(--line); }
.trajectory-path { fill: none; stroke: var(--cardinal); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 8px 10px rgba(177,17,22,.16)); }
.trajectory-point { animation: chart-pop .38s var(--ease) both; animation-delay: var(--delay); }
.trajectory-point circle { fill: var(--gold); stroke: var(--cardinal-dark); stroke-width: 2; }
.trajectory-point text { fill: var(--cardinal-dark); stroke: none; font-family: var(--display); font-size: 12px; font-weight: 900; text-anchor: middle; }
.trajectory-point .axis-label { fill: var(--muted); font-size: 10px; letter-spacing: .02em; }
.trajectory-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.trajectory-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.trajectory-summary button { min-height: 116px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: inherit; padding: 13px; text-align: left; cursor: pointer; transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease); }
.trajectory-summary button:hover, .trajectory-summary button.active { background: var(--gold-soft); border-color: var(--gold); transform: translateY(-2px); }
.trajectory-summary span { display: block; color: var(--cardinal); font-size: 30px; font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.trajectory-summary strong { display: block; margin-top: 7px; color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
.trajectory-summary p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.trajectory-detail { border: 1px solid var(--line); border-left: 4px solid var(--cardinal); border-radius: 8px; background: var(--paper); padding: 14px; }
.trajectory-detail span { display: block; color: var(--cardinal); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; font-weight: 900; margin-bottom: 6px; }
.trajectory-detail p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.muted-detail { border-left-color: var(--gold); }
.cti-breakdown { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cti-breakdown article { border: 1px solid var(--line); border-radius: 7px; background: var(--white); padding: 10px; }
.cti-breakdown strong { display: block; color: var(--cardinal); font-size: 18px; }
.cti-breakdown span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; font-weight: 900; }
.trajectory-snapshot { display: grid; gap: 10px; max-height: 360px; overflow: auto; padding-right: 4px; }
.trajectory-card { display: grid; grid-template-columns: 54px 1fr; gap: 12px; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); padding: 14px; }
.trajectory-score { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 8px; background: var(--cardinal); color: var(--white); font-size: 21px; font-weight: 900; }
.trajectory-card strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 15px; line-height: 1.2; }
.trajectory-card p { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 800; line-height: 1.35; }
.trajectory-card small { display: block; margin-top: 7px; color: var(--cardinal-dark); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; overflow-wrap: anywhere; }
.trajectory-progress { height: 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); overflow: hidden; }
.trajectory-progress i { display: block; width: var(--value); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cardinal), var(--gold)); animation: grow-bar .65s var(--ease) both; }

.cms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cms-grid article { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 20px; box-shadow: var(--shadow); }
.cms-grid h3 { margin: 0 0 16px; color: var(--cardinal); }
.cms-list { display: grid; gap: 12px; }
.cms-item { border: 1px solid var(--line); border-radius: 6px; padding: 14px; background: var(--paper); }
.cms-item h4 { margin: 0 0 5px; font-size: 16px; }
.cms-item p { margin: 0 0 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.cms-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cms-button.secondary { background: transparent; color: var(--cardinal); }
.cms-button.danger { background: var(--cardinal-dark); border-color: var(--cardinal-dark); color: var(--white); }
.cms-empty { margin: 0; color: var(--muted); font-size: 13px; }
.see-more-button { border: 1px solid var(--line); background: var(--white); color: var(--cardinal); border-radius: 5px; padding: 11px 12px; cursor: pointer; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; }
.record-heading { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.record-heading span { border-radius: 999px; background: var(--gold-soft); color: var(--cardinal-dark); padding: 4px 8px; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; }
.record-cti { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin: 0 0 10px; }
.record-cti strong { border-radius: 999px; background: var(--cardinal); color: var(--white); padding: 5px 8px; font-size: 10px; letter-spacing: .06em; }
.record-cti span { color: var(--cardinal-dark); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; font-weight: 900; }
.review-note { border-left: 3px solid var(--gold); padding-left: 10px; }
.admin-evidence { display: grid; gap: 9px; margin: 0 0 12px; }
.screening-note { border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 6px; background: var(--white); padding: 10px 11px; }
.screening-note strong { display: block; color: var(--cardinal-dark); font-size: 12px; line-height: 1.35; }
.screening-note span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.admin-profile-depth { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 8px; }
.admin-profile-depth > div { min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--white); padding: 10px; }
.admin-profile-depth strong { display: block; margin-bottom: 7px; color: var(--cardinal); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; line-height: 1.25; }
.admin-role-list { display: flex; flex-wrap: wrap; gap: 5px; }
.admin-role-list span { border: 1px solid rgba(177,17,22,.18); border-radius: 999px; background: var(--paper); color: var(--cardinal-dark); padding: 5px 7px; font-size: 9px; text-transform: uppercase; letter-spacing: .04em; font-weight: 900; }
.admin-profile-depth ul { display: grid; gap: 5px; margin: 0; padding-left: 15px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.admin-profile-depth li::marker { color: var(--cardinal); }
.evidence-chip-list { display: flex; flex-wrap: wrap; gap: 7px; }
.evidence-chip { max-width: 100%; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); padding: 6px 8px; }
.evidence-chip div { min-width: 0; }
.evidence-chip strong { display: block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 11px; }
.evidence-chip span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; font-weight: 900; }
.evidence-chip a, .evidence-chip small { flex: 0 0 auto; color: var(--cardinal); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.evidence-chip svg { width: 12px; height: 12px; }

.admin-view { min-height: 100vh; background: #f7efe2; }
.admin-header { min-height: 76px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 22px; padding: 0 clamp(18px, 4vw, 54px); background: var(--cardinal-dark); color: var(--white); }
.admin-nav { display: flex; gap: 18px; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.admin-nav a { opacity: .86; }
.admin-nav a:hover { opacity: 1; color: var(--gold-soft); }
.admin-action-row { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-header .cms-button.secondary { background: rgba(255,255,255,.96); border-color: rgba(255,255,255,.96); color: var(--cardinal-dark); }
.admin-header .cms-button.secondary:hover { background: var(--gold-soft); border-color: var(--gold); color: var(--cardinal-dark); }
.admin-title-actions { display: grid; gap: 14px; max-width: 460px; }
.admin-title-actions p { margin: 0; color: var(--muted); line-height: 1.8; }
.admin-shell { padding: clamp(34px, 5vw, 70px) clamp(18px, 4vw, 54px); }
.login-panel { max-width: 460px; margin: 8vh auto; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow); }
.login-panel h1, .admin-dashboard h1 { margin: 0; font-family: var(--serif); font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -.035em; }
.login-panel p { color: var(--muted); line-height: 1.7; }
.login-form, .admin-form { display: grid; gap: 14px; }
.login-form label, .admin-form label { display: grid; gap: 7px; color: var(--cardinal-dark); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.login-form input, .admin-form input, .admin-form select, .admin-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 5px; padding: 12px; background: var(--white); color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 600; }
.admin-form textarea { min-height: 98px; resize: vertical; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 28px 0; }
.admin-stats article { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.admin-stats span { display: block; color: var(--cardinal); font-size: 34px; font-weight: 900; }
.admin-stats p { margin: 4px 0 0; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; }
.admin-analytics { margin: 28px 0; }
.admin-analytics-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 18px; }
.admin-analytics-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(28px, 4vw, 44px); line-height: 1.12; letter-spacing: -.035em; }
.admin-analytics-heading .select-field { min-width: 270px; border: 1px solid var(--line); background: var(--white); }
.admin-decision-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.admin-decision-row article { border: 1px solid var(--line); border-left: 4px solid var(--cardinal); border-radius: 7px; background: var(--white); padding: 15px 16px; }
.admin-decision-row span { display: block; margin-bottom: 5px; color: var(--cardinal); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; }
.admin-decision-row strong { display: block; color: var(--ink); font-size: 14px; line-height: 1.45; }
.admin-analytics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 18px; }
.admin-analytics-grid .analytics-card { width: 100%; min-height: 360px; height: 100%; display: flex; flex-direction: column; }
.admin-analytics-grid .funnel-chart, .admin-analytics-grid .heatmap-chart, .admin-analytics-grid .bubble-chart { flex: 1; align-content: start; }
.admin-action-strip { min-height: 0; margin-top: 26px; }
.action-strip-heading { margin-bottom: 14px; min-width: 0; }
.action-strip-heading > div { min-width: 0; }
.action-strip-title { width: fit-content; max-width: 100%; display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.action-strip-title .chart-label { margin-bottom: 0; white-space: nowrap; }
.action-strip-heading .chart-purpose { max-width: 720px; margin: 8px 0 0; }
.action-strip-controls { display: flex; gap: 8px; }
.action-strip-controls .icon-button { width: 34px; height: 34px; border-radius: 6px; }
.action-strip-controls .icon-button:first-child svg { transform: rotate(90deg); }
.action-strip-controls .icon-button:last-child svg { transform: rotate(-90deg); }
.action-strip-controls .icon-button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.chart-purpose { margin: -8px 0 16px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.funnel-row { grid-template-columns: 108px 1fr 34px; }
.funnel-row i { height: 28px; background: linear-gradient(90deg, var(--cardinal-dark), var(--cardinal), var(--gold)); }
.heatmap-chart { display: grid; grid-template-columns: minmax(96px, 1.2fr) repeat(3, 1fr); gap: 7px; align-items: stretch; }
.heatmap-head, .heatmap-course { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; font-weight: 900; overflow-wrap: anywhere; }
.heatmap-head { text-align: center; }
.heatmap-course { display: flex; align-items: center; line-height: 1.25; }
.heat-cell { min-height: 38px; display: grid; place-items: center; border-radius: 5px; background: rgba(177,17,22, calc(.08 + var(--intensity) * .56)); border: 1px solid rgba(114,9,13,.16); color: var(--cardinal-dark); font-weight: 900; transition: transform .2s var(--ease), background .2s var(--ease); }
.heat-cell:hover { transform: scale(1.04); background: rgba(177,17,22, calc(.16 + var(--intensity) * .62)); }
.bubble-chart { align-content: start; min-height: 250px; }
.skill-row { animation: reveal .35s both; animation-delay: var(--delay); }
.skill-row > div { height: 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.insight-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.insight-list article { min-height: 150px; border: 1px solid var(--line); border-top: 4px solid var(--gold); background: var(--paper); padding: 16px; border-radius: 8px; display: grid; align-content: start; }
.insight-list span { display: block; margin-bottom: 5px; color: var(--cardinal); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; font-weight: 900; }
.insight-list strong { color: var(--ink); font-size: 14px; line-height: 1.45; }
.admin-workspace { display: grid; grid-template-columns: minmax(300px, 430px) minmax(0, 1fr); gap: 22px; align-items: start; }
.editor-panel, .records-panel { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 20px; box-shadow: var(--shadow); }
.editor-panel { position: sticky; top: 22px; }
.editor-panel h2, .record-column h2 { margin: 0 0 16px; color: var(--cardinal); }
.admin-form { grid-template-columns: 1fr 1fr; }
.admin-form .wide, .editor-actions { grid-column: 1 / -1; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.records-panel { display: grid; grid-template-columns: 1fr; gap: 24px; }
.record-column { display: grid; gap: 10px; }
.record-tools { display: grid; grid-template-columns: 1fr 180px 180px; gap: 10px; }
.record-tools input, .record-tools select { width: 100%; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--ink); padding: 10px 11px; font-weight: 700; }
.admin-footer { padding: 26px clamp(18px, 4vw, 54px); background: var(--cardinal-dark); color: var(--white); display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.admin-footer p { margin: 0; color: #ffe1df; line-height: 1.6; }

.account-panel { margin-top: 30px; }
.account-panel code { background: var(--gold-soft); border-radius: 4px; padding: 1px 6px; font-size: .92em; }
.account-grid { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 18px; align-items: start; }
.account-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 20px; box-shadow: var(--shadow); }
.account-card h3 { margin: 0 0 12px; color: var(--cardinal); }
.account-current-email { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink); word-break: break-all; }
.account-hint { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.account-form { display: grid; gap: 14px; }
.account-form label { display: grid; gap: 7px; color: var(--cardinal-dark); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.account-form input { width: 100%; border: 1px solid var(--line); border-radius: 5px; padding: 12px; background: var(--white); color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 600; }
.form-error, .form-success { margin: 0; border-radius: 6px; padding: 10px 12px; font-size: 12.5px; font-weight: 700; line-height: 1.5; }
.form-error { background: #fdeceb; border: 1px solid var(--cardinal); color: var(--cardinal-dark); }
.form-success { background: #eaf6ee; border: 1px solid #2f8f5b; color: #1e6b3f; }
@media (max-width: 760px) {
  .account-grid { grid-template-columns: 1fr; }
}

footer { padding: 36px clamp(18px, 5vw, 82px); background: var(--cardinal-dark); color: var(--white); display: flex; justify-content: space-between; gap: 24px; align-items: end; }
footer p { margin: 12px 0 0; color: #ffe1df; line-height: 1.6; }
.footer-note { text-align: right; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }

.detail-backdrop { position: fixed; inset: 0; background: rgba(34,27,27,.58); z-index: 20; backdrop-filter: blur(3px); }
.detail-panel { position: fixed; z-index: 21; right: 0; top: 0; bottom: 0; width: min(700px, 100%); background: var(--paper); overflow-y: auto; transform: translateX(101%); transition: transform .34s var(--ease); box-shadow: -20px 0 60px rgba(0,0,0,.24); }
.detail-panel[aria-hidden="false"] { transform: translateX(0); }
.panel-topbar { min-height: 60px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding: 0 22px; font-size: 11px; letter-spacing: .1em; color: var(--muted); font-weight: 900; text-transform: uppercase; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); display: grid; place-items: center; cursor: pointer; color: var(--cardinal); }
.panel-hero { display: grid; grid-template-columns: 150px 1fr; background: linear-gradient(135deg, var(--gold-soft), var(--white)); border-bottom: 1px solid var(--line); }
.panel-monogram { display: grid; place-items: center; color: var(--white); background: var(--cardinal); font-size: 42px; font-weight: 900; }
.panel-identity { align-self: end; padding: 28px; }
.panel-identity span { color: var(--cardinal); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.panel-identity h2 { margin: 8px 0 6px; font-size: 38px; line-height: 1.05; letter-spacing: -.04em; }
.panel-identity p { margin: 0; color: var(--muted); }
.panel-content { padding: 28px 34px 58px; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.panel-actions .primary-action { flex: 1; }
.secondary-panel-action { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); color: var(--cardinal); padding: 0 14px; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.panel-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 800; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.panel-content section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.panel-content section:last-child { border-bottom: 0; }
.detail-label { display: block; margin-bottom: 12px; color: var(--cardinal); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.about-student p { margin: 0; font-size: 16px; line-height: 1.75; }
.profile-depth-grid { display: grid; grid-template-columns: .82fr 1fr; gap: 12px; }
.profile-depth-grid article { border: 1px solid var(--line); border-radius: 7px; background: var(--white); padding: 16px; }
.role-list { display: flex; flex-wrap: wrap; gap: 8px; }
.role-list span { border: 1px solid rgba(177,17,22,.2); border-radius: 999px; background: var(--paper); color: var(--cardinal-dark); padding: 7px 9px; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; font-weight: 900; }
.screening-list { display: grid; gap: 8px; margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.screening-list li::marker { color: var(--cardinal); }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric-grid article { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 18px; }
.metric-grid strong { display: block; color: var(--cardinal); font-size: 30px; }
.metric-grid span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.project-list article { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.project-list article:first-child { border-top: 0; padding-top: 0; }
.project-list > article > span { color: var(--gold); font-weight: 900; }
.project-list small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; }
.project-list h3 { margin: 4px 0 7px; font-size: 20px; }
.project-list p { margin: 0 0 9px; color: var(--muted); line-height: 1.6; }
.project-list strong { color: var(--cardinal); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.credential-list { display: grid; gap: 10px; }
.credential-item { display: flex; justify-content: space-between; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 7px; background: var(--white); padding: 14px; }
.credential-item strong { display: block; color: var(--ink); font-size: 15px; line-height: 1.25; }
.credential-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; }
.credential-item a, .credential-item small { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; color: var(--cardinal); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; }
.credential-item svg { width: 14px; height: 14px; }
.muted-evidence { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.toast { position: fixed; z-index: 30; bottom: 20px; left: 50%; transform: translate(-50%, 80px); background: var(--cardinal-dark); color: var(--white); padding: 12px 17px; border-radius: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; transition: transform .25s; }
.toast.visible { transform: translate(-50%, 0); }

@keyframes reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes grow-bar { from { width: 0; } to { width: var(--value, 0); } }
@keyframes chart-pop { from { opacity: 0; transform: scale(.92) rotate(-8deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes grid-drift { from { transform: translate3d(0,0,0) rotate(-5deg); } to { transform: translate3d(44px,44px,0) rotate(-5deg); } }
.reveal-on-scroll { opacity: 0; transform: translateY(22px); transition: opacity .56s var(--ease), transform .56s var(--ease); }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

@media (max-width: 1120px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .toolbar .select-field { border-bottom: 1px solid var(--line); }
  .search-field { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .student-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-analytics-grid, .admin-analytics-grid { grid-template-columns: 1fr 1fr; }
  .admin-analytics-grid .analytics-card { min-height: 340px; }
  .insight-card { grid-column: 1 / -1; }
  .top-student-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record-tools { grid-template-columns: 1fr 1fr; }
  .record-tools input { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  .section-heading, .admin-analytics-heading { display: block; }
  .section-heading > p, .admin-analytics-heading .select-field { margin-top: 16px; }
  .stats, .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats article:nth-child(2n) { border-right: 0; }
  .public-analytics-grid, .admin-analytics-grid, .analytics-value-row, .admin-decision-row, .insight-list, .trajectory-layout { grid-template-columns: 1fr; }
  .analytics-card { min-height: 0; }
  .admin-analytics-grid .analytics-card { min-height: 320px; }
  .top-students-heading { display: block; }
  .top-students-heading p { margin-top: 8px; }
  .trajectory-heading { display: block; }
  .trajectory-cohort-field { margin-top: 14px; max-width: 360px; }
}

@media (max-width: 760px) {
  .site-header { min-height: 68px; }
  .brand span:last-child { font-size: 14px; }
  .header-link { display: none; }
  .stats, .about-band, .profile-form, .cms-grid, .public-analytics-grid, .admin-analytics-grid { grid-template-columns: 1fr; }
  .admin-stats, .admin-workspace, .admin-form { grid-template-columns: 1fr; }
  .editor-panel { position: static; }
  .admin-header { grid-template-columns: 1fr; align-items: start; padding-top: 18px; padding-bottom: 18px; }
  .admin-nav { flex-wrap: wrap; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 16px; }
  .admin-analytics-heading { display: block; }
  .admin-analytics-heading .select-field { min-width: 0; margin-top: 16px; }
  .toolbar { display: flex; flex-direction: column; }
  .analytics-toolbar { grid-template-columns: 1fr; }
  .analytics-toolbar .select-field:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .search-field, .select-field { border-right: 0; border-bottom: 1px solid var(--line); }
  .student-grid { grid-template-columns: 1fr; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .record-tools { grid-template-columns: 1fr; }
  .bar-row, .rail-row, .funnel-row, .skill-row { grid-template-columns: minmax(0, 1fr) 34px; gap: 7px 10px; }
  .bar-row > div, .rail-track, .funnel-row i, .skill-row > div { grid-column: 1 / -1; grid-row: 2; }
  .bar-row strong, .rail-row strong, .funnel-row strong, .skill-row strong { grid-column: 2; grid-row: 1; }
  .heatmap-chart { grid-template-columns: minmax(78px, 1fr) repeat(3, minmax(48px, 1fr)); gap: 5px; }
  .heatmap-head, .heatmap-course { font-size: 9px; letter-spacing: 0; }
  .analytics-card { min-height: 0; }
  .admin-analytics-grid .analytics-card { min-height: 0; }
  .admin-action-strip { margin-top: 18px; }
  .insight-list article { min-height: 132px; }
  .top-student-row { grid-template-columns: 1fr; }
  .top-student-card { grid-template-columns: 42px 1fr; }
  .top-student-mark { width: 42px; height: 42px; }
  .trajectory-panel { padding: 16px; }
  .trajectory-layout { gap: 12px; }
  .line-chart { min-height: 230px; }
  .trajectory-card { grid-template-columns: 46px 1fr; }
  .trajectory-score { width: 46px; height: 46px; font-size: 18px; }
  .trajectory-summary { grid-template-columns: 1fr; }
  .cti-breakdown { grid-template-columns: 1fr; }
  .trajectory-snapshot { max-height: none; }
  .form-button { width: 100%; }
  footer, .admin-footer { display: block; }
  .footer-note { text-align: left; }
  .panel-hero { grid-template-columns: 100px 1fr; }
  .panel-identity { padding: 20px; }
  .panel-identity h2 { font-size: 28px; }
  .panel-content { padding: 22px 20px 48px; }
  .profile-depth-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .credential-item { display: grid; }
  .credential-item a, .credential-item small { width: fit-content; }
}
