@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --primary-violet: #3d2670;
  --primary-violet-hover: #311c5d;
  --primary-violet-dark: #26194a;
  --berry-magenta: #9e287b;
  --berry-magenta-light: #fbeaf4;
  --cobalt-indigo: #424fa0;
  --cobalt-indigo-light: #edf0fc;
  --ink: #26194a;
  --muted: #564f65;
  --subtle: #7f7891;
  --border: #e5deef;
  --border-subtle: #f0eaf7;
  --bg: #f8f6fc;
  --bg-card: #ffffff;
  --bg-tint: #f3eff9;
  --bg-blush: #fbf0f4;
  --track: #ece6f5;
  --green: #3d2670; /* backward compatibility */

  --trait-openness: #b83c68;
  --trait-conscientiousness: #8f1f68;
  --trait-extraversion: #6b388e;
  --trait-agreeableness: #40509e;
  --trait-neuroticism: #6e519f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px 'DM Sans', sans-serif;
  line-height: 1.6;
}

[ng-cloak] {
  display: none;
}

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

button, a {
  cursor: pointer;
}

a {
  color: var(--primary-violet);
  text-decoration: none;
  font-weight: 600;
}

button {
  border: 0;
  background: none;
  color: inherit;
}

button:focus-visible, a:focus-visible {
  outline: 3px solid #b59cdb;
  outline-offset: 4px;
}

button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Sidebar navigation */
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  background: #ffffff;
  border-right: 1px solid var(--border);
  padding: 34px 22px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  font: 800 20px 'Manrope', sans-serif;
  letter-spacing: -0.8px;
  white-space: nowrap;
  color: var(--primary-violet-dark);
}

.brand > span:last-child {
  font-weight: 500;
  color: var(--berry-magenta);
}

.brandmark {
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary-violet) 0%, var(--berry-magenta) 100%);
  color: white;
  width: 34px;
  height: 36px;
  border-radius: 10px;
  margin-right: 10px;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(61, 38, 112, 0.2);
}

.workspace {
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: var(--subtle);
  margin: 44px 12px 18px;
}

nav {
  display: grid;
  gap: 8px;
}

nav button {
  display: flex;
  gap: 14px;
  align-items: center;
  text-align: left;
  padding: 13px 16px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}

nav button:hover {
  background: var(--bg-tint);
  color: var(--primary-violet);
}

nav button.active {
  background: #ede6f8;
  color: var(--primary-violet-dark);
  font-weight: 700;
}

nav button span {
  font-size: 18px;
}

nav b {
  margin-left: auto;
  font-size: 10px;
  background: #dfd3f2;
  color: var(--primary-violet-dark);
  padding: 3px 7px;
  border-radius: 12px;
  font-weight: 700;
}

.sidebar-note {
  margin-top: auto;
  background: #f6f1fc;
  border: 1px solid #ebdeff;
  border-radius: 12px;
  padding: 20px 16px;
}

.sidebar-note > span {
  font-size: 26px;
  color: var(--berry-magenta);
}

.sidebar-note h4 {
  font-size: 13px;
  line-height: 1.6;
  margin: 8px 0;
  color: var(--primary-violet-dark);
  font-weight: 700;
}

.sidebar-note p {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}

.profile {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  align-items: center;
}

.avatar {
  background: #ede3fa;
  color: var(--primary-violet);
  font-weight: 700;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 15px;
}

.profile strong {
  font-size: 12px;
  display: block;
  color: var(--primary-violet-dark);
}

.profile small {
  display: block;
  font-size: 10px;
  color: var(--subtle);
  margin-top: 3px;
}

/* Shell & Main Content */
.shell {
  margin-left: 250px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  height: 72px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  font-size: 12px;
  background: #ffffff;
}

.slash {
  color: #cbc3d6;
  margin: 0 12px;
}

.private {
  color: var(--muted);
  font-size: 11px;
}

main {
  max-width: 1450px;
  width: 100%;
  margin: auto;
  padding: 36px 44px;
  flex: 1;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--berry-magenta);
  text-transform: uppercase;
}

h1 {
  font: 800 32px/1.2 'Manrope', sans-serif;
  letter-spacing: -1px;
  color: var(--primary-violet-dark);
  margin: 8px 0;
}

p {
  color: var(--muted);
  line-height: 1.8;
  margin: 7px 0;
}

h2 {
  font: 700 22px 'Manrope', sans-serif;
  letter-spacing: -0.5px;
  color: var(--primary-violet-dark);
}

h3 {
  font: 700 16px 'Manrope', sans-serif;
  color: var(--primary-violet-dark);
}

.outline {
  border: 1px solid #d5c8ea;
  padding: 11px 18px;
  background: white;
  color: var(--primary-violet-dark);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.outline:hover {
  background: var(--bg-tint);
  border-color: var(--primary-violet);
}

.primary {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  background: var(--primary-violet);
  color: white;
  border-radius: 8px;
  padding: 13px 22px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(61, 38, 112, 0.18);
  transition: all 0.15s ease;
}

.primary:hover {
  background: var(--primary-violet-hover);
  box-shadow: 0 6px 16px rgba(61, 38, 112, 0.28);
}

.primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  background: #73628e;
  pointer-events: none;
}

/* Hero Section with Mountain Ascent Motif */
.hero {
  background: linear-gradient(135deg, #f5f0fb 0%, #ede6f7 100%);
  border: 1px solid #e2d7f2;
  border-radius: 16px;
  min-height: 310px;
  position: relative;
  overflow: hidden;
  padding: 38px 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(61, 38, 112, 0.05);
}

.pill {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.6px;
  border: 1px solid #d5c6ea;
  border-radius: 20px;
  padding: 6px 14px;
  background: #ffffffa6;
  color: var(--berry-magenta);
}

.hero h2 {
  font: 800 38px/1.2 'Manrope', sans-serif;
  letter-spacing: -1.2px;
  margin: 16px 0 12px;
  color: var(--primary-violet-dark);
}

.hero em {
  font-style: normal;
  color: var(--berry-magenta);
}

.hero p {
  font-size: 13px;
  color: var(--muted);
  max-width: 500px;
}

.hero .primary {
  margin-top: 20px;
}

.hero small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--subtle);
  margin-top: 14px;
  letter-spacing: 0.5px;
}

.hero-copy {
  z-index: 2;
}

/* Mountain Ascent SVG Art */
.mountain-art {
  position: relative;
  width: 360px;
  height: 250px;
  flex-shrink: 0;
  z-index: 1;
}

.mountain-art svg {
  width: 100%;
  height: 100%;
}

.mountain-art .art-badge {
  position: absolute;
  background: #ffffffea;
  backdrop-filter: blur(4px);
  border: 1px solid #d9cced;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary-violet-dark);
  box-shadow: 0 4px 12px rgba(61, 38, 112, 0.08);
}

.b1 { top: 35px; left: 10px; transform: rotate(-5deg); }
.b2 { bottom: 25px; right: 20px; transform: rotate(4deg); }

/* Stats grid */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 26px 0 34px;
  gap: 18px;
}

.stats article {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 18px;
  align-items: center;
  box-shadow: 0 2px 8px rgba(61, 38, 112, 0.03);
}

.stat-icon {
  font-size: 22px;
  background: #f4edf9;
  color: var(--primary-violet);
  border-radius: 10px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}

.stats strong {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-violet-dark);
  line-height: 1.1;
}

.stats small {
  font-size: 13px;
  color: var(--subtle);
  font-weight: 500;
}

.stats p {
  font-size: 11px;
  margin: 3px 0 0;
  color: var(--muted);
}

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

.section-head h2 {
  margin: 0;
}

.section-head p {
  font-size: 12px;
  margin: 4px 0 0;
}

/* Assessment Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.assessment-card, .panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(61, 38, 112, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.assessment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(61, 38, 112, 0.06);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.module-icon {
  display: inline-grid;
  place-items: center;
  font-size: 22px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.lavender { background: #ede6f8; color: #3d2670; }
.sage { background: #fbeaf4; color: #9e287b; }
.peach { background: #f5ebf8; color: #6b388e; }
.blue { background: #eef1fb; color: #424fa0; }

.tag {
  font-size: 9px;
  font-weight: 600;
  color: var(--primary-violet-dark);
  background: var(--bg-tint);
  border: 1px solid var(--border);
  padding: 5px 9px;
  border-radius: 6px;
}

.assessment-card > small {
  font-size: 9px;
  font-weight: 700;
  color: var(--berry-magenta);
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.assessment-card h3 {
  font-size: 16px;
  line-height: 1.4;
  margin: 8px 0 8px;
}

.assessment-card p {
  font-size: 12px;
  min-height: 54px;
  color: var(--muted);
}

.card-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-violet-dark);
  margin: 12px 0 16px;
  background: var(--bg-tint);
  border: 1px solid #e2d7f2;
  border-radius: 8px;
  padding: 6px 12px;
}

.meta-dot {
  color: var(--berry-magenta);
  font-weight: bold;
}

.assessment-card footer {
  border-top: 1px solid #f2edf8;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.assessment-card footer span {
  font-size: 10px;
  color: var(--subtle);
  font-weight: 600;
}

.assessment-card footer button {
  background: var(--bg-tint);
  color: var(--primary-violet);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 18px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}

.assessment-card footer button:hover {
  background: var(--primary-violet);
  color: white;
}

.bottom-note {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 32px;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 20px 26px;
  border-radius: 12px;
}

.bottom-note > span {
  font-size: 30px;
  color: var(--berry-magenta);
}

.bottom-note strong {
  font-size: 13px;
  color: var(--primary-violet-dark);
}

.bottom-note p {
  font-size: 11px;
  margin: 3px 0 0;
}

.bottom-note button {
  margin-left: auto;
}

.text-btn {
  color: var(--primary-violet);
  font-weight: 600;
  padding: 10px 0;
  font-size: 12px;
}

.text-btn:hover {
  color: var(--berry-magenta);
}

.legal {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 48px;
  font-size: 9px;
  letter-spacing: 1.2px;
  color: var(--subtle);
  font-weight: 600;
}

.legal span {
  letter-spacing: 0;
}

/* Questionnaire & Form Controls */
.setup {
  display: flex;
  align-items: center;
  gap: 25px;
  background: white;
  border: 1px solid var(--border);
  padding: 26px;
  border-radius: 14px;
  margin-bottom: 26px;
}

label {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-violet-dark);
}

input, select, textarea {
  display: block;
  padding: 12px 14px;
  margin-top: 8px;
  border: 1px solid #dcd4eb;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  transition: border-color 0.15s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-violet);
  box-shadow: 0 0 0 3px rgba(61, 38, 112, 0.12);
}

.setup p {
  font-size: 11px;
  max-width: 280px;
}

.question-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  max-width: 860px;
  margin: 20px auto;
  box-shadow: 0 4px 18px rgba(61, 38, 112, 0.04);
}

.progress, .bar {
  background: var(--track);
  border-radius: 12px;
  height: 8px;
  overflow: hidden;
}

.progress i, .bar i {
  display: block;
  height: 100%;
  background: var(--primary-violet);
  border-radius: 12px;
  transition: width 0.3s ease;
}

.question {
  padding: 24px 0;
  border-bottom: 1px solid #f2edf8;
}

.question h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--primary-violet-dark);
  margin: 8px 0 14px;
  letter-spacing: -0.3px;
}

.question-number {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--berry-magenta);
}

.options {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  max-width: 600px;
}

.options label {
  flex: 1;
  cursor: pointer;
}

.options input {
  position: absolute;
  opacity: 0;
}

.options span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #ded6ec;
  border-radius: 7px;
  padding: 8px 6px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-violet-dark);
  background: #ffffff;
  min-height: 52px;
  transition: all 0.15s ease;
}

.options span:hover {
  background: #faf7fd;
  border-color: #baa4d8;
}

.options small {
  display: block;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 2px;
  color: var(--muted);
}

.options input:checked + span {
  background: #ede6f8;
  border-color: var(--primary-violet);
  box-shadow: 0 0 0 2px var(--primary-violet);
  color: var(--primary-violet-dark);
}

.options input:checked + span small {
  color: var(--primary-violet-dark);
  font-weight: 600;
}

.options input:focus-visible + span {
  outline: 2px solid var(--primary-violet);
}

.muted {
  font-size: 12px;
  color: var(--subtle);
}

/* Discovery Report Section */
.report-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #f5f0fb 0%, #ede6f7 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 38px;
  margin-bottom: 26px;
}

.report-banner h2 {
  font-size: 28px;
  margin: 6px 0;
}

.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.bar-row {
  margin: 20px 0;
}

.bar-row > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 8px;
  color: var(--primary-violet-dark);
}

.teal i {
  background: var(--berry-magenta);
}

.empty {
  font-size: 13px;
  line-height: 2;
  padding: 28px 0;
  color: var(--subtle);
}

.empty button {
  display: block;
  margin-top: 10px;
}

/* PDF Student Profile Card */
.student-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 30px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.student-card .meta-item small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--berry-magenta);
  text-transform: uppercase;
}

.student-card .meta-item strong {
  display: block;
  font-size: 14px;
  color: var(--primary-violet-dark);
  margin-top: 4px;
}

/* Two-tone Trait Panels */
.two-tone-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 18px;
  background: #ffffff;
}

.two-tone-header {
  padding: 12px 18px;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
}

.two-tone-header.berry { background: var(--berry-magenta); }
.two-tone-header.violet { background: var(--primary-violet); }
.two-tone-header.cobalt { background: var(--cobalt-indigo); }

.two-tone-body {
  padding: 16px 20px;
  font-size: 12px;
  color: var(--muted);
}

.two-tone-body ul {
  margin: 0;
  padding-left: 18px;
}

.two-tone-body li {
  margin-bottom: 6px;
}

/* Interest Code Pills */
.interest-pills {
  display: flex;
  gap: 12px;
  margin: 16px 0 24px;
}

.interest-pill {
  flex: 1;
  padding: 14px 10px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
}

.interest-pill.artistic { background: var(--berry-magenta); }
.interest-pill.social { background: #644293; }
.interest-pill.investigative { background: var(--cobalt-indigo); }

.interest-pill strong {
  display: block;
  font-size: 20px;
}

.interest-pill span {
  display: block;
  font-size: 10px;
  margin-top: 2px;
  opacity: 0.9;
}

/* Radial Donut Gauges for Skills & Abilities */
.gauges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.gauge-item {
  text-align: center;
}

.gauge-svg {
  width: 90px;
  height: 90px;
  transform: rotate(-90deg);
  margin: auto;
}

.gauge-track {
  fill: none;
  stroke: var(--track);
  stroke-width: 8;
}

.gauge-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}

.gauge-fill.berry { stroke: var(--berry-magenta); }
.gauge-fill.violet { stroke: var(--primary-violet); }
.gauge-fill.cobalt { stroke: var(--cobalt-indigo); }
.gauge-fill.plum { stroke: #6b388e; }
.gauge-fill.slate { stroke: #6e519f; }

.gauge-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-violet-dark);
  margin-top: -58px;
  margin-bottom: 38px;
}

.gauge-item h4 {
  font-size: 13px;
  margin: 0;
  color: var(--primary-violet-dark);
}

.gauge-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--subtle);
  margin-top: 2px;
}

/* Career Clusters & Paths Matrix */
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 12px;
}

.matrix-table th {
  background: var(--primary-violet);
  color: white;
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
}

.matrix-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  min-width: 58px;
}

.chip.high {
  background: var(--primary-violet);
  color: white;
}

.chip.medium {
  background: #ede6f8;
  color: var(--primary-violet);
}

.chip.low {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--subtle);
}

.compact {
  min-height: 200px;
  margin-bottom: 25px;
}

.reflection textarea {
  width: 100%;
  min-height: 100px;
}

.panel p {
  font-size: 12px;
}

.panel {
  margin-bottom: 20px;
}

/* Mountain Page Footer Graphic */
.footer-mountains {
  margin-top: 36px;
  height: 60px;
  width: 100%;
  opacity: 0.6;
}

/* Media Queries */
@media (min-width: 1500px) {
  .hero { min-height: 350px; }
  .hero h2 { font-size: 44px; }
  .mountain-art { margin-right: 40px; }
  .assessment-card { padding: 26px; }
}

@media (max-width: 1150px) {
  aside { width: 220px; padding: 28px 16px; }
  .shell { margin-left: 220px; }
  main { padding: 28px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .mountain-art { width: 280px; }
  .hero h2 { font-size: 30px; }
  .hero { padding: 28px; }
  .student-card { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  aside { position: static; width: 100%; padding: 18px; }
  .workspace, .sidebar-note, .profile { display: none; }
  nav { display: flex; margin-top: 14px; gap: 4px; overflow-x: auto; }
  nav button { padding: 10px 12px; font-size: 11px; white-space: nowrap; }
  nav b { display: none; }
  .shell { margin: 0; }
  header { height: 56px; padding: 0 20px; }
  main { padding: 22px 16px; }
  .page-heading { gap: 10px; flex-direction: column; align-items: flex-start; }
  .page-heading > .outline { display: none; }
  h1 { font-size: 26px; }
  .hero { min-height: 280px; flex-direction: column; padding: 24px; }
  .hero h2 { font-size: 28px; }
  .mountain-art { display: none; }
  .stats { grid-template-columns: 1fr; gap: 10px; }
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .report-grid { grid-template-columns: 1fr; }
  .report-banner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .student-card { grid-template-columns: 1fr; }
  .gauges-grid { grid-template-columns: repeat(2, 1fr); }
  .options { flex-direction: column; }
  .legal { flex-direction: column; gap: 6px; }
}

@media print {
  aside, header, .page-heading, .legal, .report-banner button, .text-btn, .setup {
    display: none;
  }
  .shell { margin: 0; }
  main { padding: 0; }
  .panel, .student-card { break-inside: avoid; border: 1px solid #d5c6ea; }
  .report-grid { grid-template-columns: 1fr 1fr; }
  body { background: white; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Modal and Registration Access Code Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(38, 25, 74, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.modal-dialog {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(61, 38, 112, 0.2);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
}

.modal-dialog h2 {
  font-family: 'Manrope', sans-serif;
  color: var(--primary-violet);
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 22px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-group input, .form-group select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fdfcfe;
  color: var(--ink);
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--berry-magenta);
  outline: none;
  box-shadow: 0 0 0 3px rgba(158, 40, 123, 0.1);
}

.code-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
}

.code-status-valid {
  background: #e6f9ed;
  color: #1a7f37;
  border: 1px solid #b4f0c4;
}

.code-status-invalid {
  background: #ffebe9;
  color: #cf222e;
  border: 1px solid #ffc1ba;
}

