:root {
  --exgen-bg: radial-gradient(circle at 12% 10%, #dff7ff 0%, #eef8ff 38%, #f7fbff 100%);
  --exgen-ink: #112132;
  --exgen-muted: #4f6578;
  --exgen-surface: #ffffff;
  --exgen-border: #cdddeb;
  --exgen-primary: #0b5ecf;
  --exgen-primary-strong: #0947a1;
  --exgen-accent: #0aa07a;
  --exgen-warn: #b86400;
  --exgen-shadow: 0 12px 30px rgba(13, 43, 77, 0.12);
}

.exgen {
  max-width: 1180px;
  margin: 2.25rem auto 3rem;
  padding: 0 1rem;
  color: var(--exgen-ink);
  font-family: Aptos, "Trebuchet MS", "Gill Sans", sans-serif;
}

.exgen-hero {
  border: 1px solid #c3d9ea;
  border-radius: 18px;
  background: var(--exgen-bg);
  padding: 1.25rem 1.2rem 1.4rem;
  box-shadow: var(--exgen-shadow);
  position: relative;
  overflow: hidden;
}

.exgen-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -100px;
  width: 220px;
  height: 220px;
  border-radius: 100%;
  background: linear-gradient(135deg, rgba(10, 160, 122, 0.18), rgba(11, 94, 207, 0.08));
}

.exgen-hero__eyebrow {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: #376a7f;
  font-weight: 700;
}

.exgen-hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3.3vw, 2.6rem);
  letter-spacing: -0.02em;
}

.exgen-hero__subtitle {
  margin: 0.6rem 0 0;
  max-width: 70ch;
  line-height: 1.45;
  color: var(--exgen-muted);
}

.exgen-hero__meta {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  position: relative;
  z-index: 1;
}

.exgen-pill {
  border: 1px solid #bad2e7;
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.87);
}

.exgen-pill__label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #4f6679;
}

.exgen-pill strong {
  display: block;
  margin-top: 0.18rem;
  font-size: 1.07rem;
}

.exgen-card {
  margin-top: 1rem;
  border: 1px solid var(--exgen-border);
  background: var(--exgen-surface);
  border-radius: 14px;
  box-shadow: 0 7px 18px rgba(8, 37, 67, 0.07);
  padding: 0.95rem;
}

.exgen-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
}

.exgen-card__head h2 {
  margin: 0;
  font-size: 1.22rem;
}

.exgen-card__hint {
  margin: 0;
  color: var(--exgen-muted);
  font-size: 0.9rem;
}

.exgen-grade-list {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.exgen-grade-btn {
  border: 1px solid #91b4d6;
  border-radius: 999px;
  background: #f8fcff;
  color: #184165;
  padding: 0.44rem 0.84rem;
  font-family: Aptos, "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.exgen-grade-btn:hover {
  transform: translateY(-1px);
  border-color: #568ec5;
}

.exgen-grade-btn[aria-selected="true"] {
  background: var(--exgen-primary);
  border-color: var(--exgen-primary);
  color: #fff;
}

.exgen-category-list {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.exgen-recommend {
  margin-top: 0.82rem;
  border: 1px solid #c7d9ea;
  border-radius: 12px;
  background: #f8fcff;
  padding: 0.66rem;
}

.exgen-recommend__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.55rem;
}

.exgen-recommend__head h3 {
  margin: 0;
  font-size: 0.97rem;
}

.exgen-recommend__status {
  margin: 0;
  color: #4f6578;
  font-size: 0.82rem;
  font-weight: 700;
}

.exgen-recommend__list {
  margin-top: 0.52rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
}

.exgen-recommend-card {
  border: 1px solid #bfd5e8;
  border-radius: 10px;
  background: #fff;
  padding: 0.52rem;
}

.exgen-recommend-card h4 {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.3;
}

.exgen-recommend-card p {
  margin: 0.3rem 0 0;
  color: #526d83;
  font-size: 0.79rem;
}

.exgen-recommend-card button {
  margin-top: 0.46rem;
  border: 1px solid #8db3d4;
  border-radius: 8px;
  background: #f4f9ff;
  color: #1a4a6c;
  padding: 0.27rem 0.55rem;
  font-size: 0.76rem;
  font-family: Aptos, "Trebuchet MS", "Gill Sans", sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.exgen-recommend-card button:hover {
  border-color: #5f95c5;
}

.exgen-category-btn {
  border: 1px solid #c4d8ea;
  border-radius: 10px;
  padding: 0.42rem 0.68rem;
  background: #f8fbff;
  color: #2a506f;
  font-family: Aptos, "Trebuchet MS", "Gill Sans", sans-serif;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}

.exgen-category-btn[aria-pressed="true"] {
  background: #eaf3ff;
  border-color: #79a6d3;
  color: #164368;
}

.exgen-profile-row {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.exgen-profile-field {
  display: grid;
  gap: 0.22rem;
}

.exgen-profile-field span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #4d6577;
}

.exgen-profile-field input {
  border: 1px solid #b9d1e5;
  border-radius: 10px;
  padding: 0.42rem 0.56rem;
  font-family: Aptos, "Trebuchet MS", "Gill Sans", sans-serif;
  color: #1d4564;
  background: #fff;
}

.exgen-profile-actions {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.exgen-profile-exports {
  margin-top: 0.42rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.exgen-profile-btn {
  border: 1px solid #93b8d7;
  border-radius: 10px;
  background: #f8fbff;
  color: #1d4b6c;
  padding: 0.4rem 0.7rem;
  font-family: Aptos, "Trebuchet MS", "Gill Sans", sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.exgen-profile-btn--primary {
  border-color: #0b5ecf;
  background: #0b5ecf;
  color: #fff;
}

.exgen-profile-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.exgen-profile-status {
  margin: 0.62rem 0 0;
  min-height: 1.2rem;
  color: #2a526f;
  font-weight: 700;
  font-size: 0.88rem;
}

.exgen-profile-stats {
  margin-top: 0.62rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.exgen-attempts {
  margin-top: 0.72rem;
  border: 1px solid #c6d9ea;
  border-radius: 12px;
  background: #f7fbff;
  padding: 0.6rem;
}

.exgen-attempts__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.exgen-attempts__head h3 {
  margin: 0;
  font-size: 0.94rem;
}

.exgen-attempts__filter {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
}

.exgen-attempts__filter span {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #4e6678;
}

.exgen-attempts__filter select {
  border: 1px solid #b8d0e4;
  border-radius: 8px;
  background: #fff;
  color: #214968;
  padding: 0.26rem 0.42rem;
  font-family: Aptos, "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.8rem;
}

.exgen-attempts__list {
  margin-top: 0.48rem;
  display: grid;
  gap: 0.4rem;
}

.exgen-attempt-row {
  border: 1px solid #bfd5e8;
  border-radius: 10px;
  background: #fff;
  padding: 0.42rem 0.48rem;
}

.exgen-attempt-row__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.44rem;
}

.exgen-attempt-row__title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.exgen-attempt-row__badge {
  border-radius: 999px;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  padding: 0.14rem 0.46rem;
  background: #eaf2fb;
  color: #2d5878;
}

.exgen-attempt-row__badge[data-kind="correct"] {
  background: #e2f8ef;
  color: #0e6e57;
}

.exgen-attempt-row__badge[data-kind="review"] {
  background: #fff1e4;
  color: #925608;
}

.exgen-attempt-row__badge[data-kind="pending"] {
  background: #e9f2ff;
  color: #1f5b94;
}

.exgen-attempt-row__meta {
  margin: 0.18rem 0 0;
  color: #4f677a;
  font-size: 0.76rem;
  line-height: 1.35;
}

.exgen-assignment-controls {
  margin-top: 0.78rem;
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) minmax(120px, 0.65fr) minmax(140px, 0.8fr) auto;
  gap: 0.56rem;
  align-items: end;
}

.exgen-assignment-field {
  display: grid;
  gap: 0.24rem;
}

.exgen-assignment-field span {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #4d6578;
}

.exgen-assignment-field select {
  border: 1px solid #b9d1e5;
  border-radius: 10px;
  padding: 0.42rem 0.5rem;
  background: #fff;
  color: #1a476b;
  font-family: Aptos, "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.88rem;
}

.exgen-assignment-add {
  border: 1px solid #0b5ecf;
  border-radius: 10px;
  background: #0b5ecf;
  color: #fff;
  padding: 0.44rem 0.72rem;
  font-size: 0.84rem;
  font-family: Aptos, "Trebuchet MS", "Gill Sans", sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.exgen-assignment-add:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.exgen-assignment-bulk {
  margin-top: 0.46rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.exgen-assignment-bulk__btn {
  border: 1px solid #8eb3d4;
  border-radius: 10px;
  background: #f8fbff;
  color: #1e4b6d;
  padding: 0.34rem 0.6rem;
  font-size: 0.8rem;
  font-family: Aptos, "Trebuchet MS", "Gill Sans", sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.exgen-assignment-bulk__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.exgen-assignment-bulk__btn--warn {
  border-color: #d0ab89;
  color: #7b4b11;
  background: #fffaf4;
}

.exgen-assignment-status {
  margin: 0.62rem 0 0;
  min-height: 1.05rem;
  color: #2f5575;
  font-weight: 700;
  font-size: 0.85rem;
}

.exgen-assignment-list {
  margin-top: 0.45rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.48rem;
}

.exgen-assignment-card {
  border: 1px solid #bfd4e8;
  border-radius: 11px;
  background: #f9fcff;
  padding: 0.58rem;
}

.exgen-assignment-card h3 {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.3;
}

.exgen-assignment-card p {
  margin: 0.26rem 0 0;
  color: #526e83;
  font-size: 0.8rem;
}

.exgen-assignment-card__actions {
  margin-top: 0.44rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}

.exgen-assignment-card__actions button {
  border: 1px solid #93b7d6;
  border-radius: 8px;
  background: #fff;
  color: #204c6d;
  padding: 0.24rem 0.52rem;
  font-size: 0.76rem;
  font-family: Aptos, "Trebuchet MS", "Gill Sans", sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.exgen-assignment-card__actions button[data-action="start"] {
  border-color: #0f9b7a;
  color: #0f6853;
}

.exgen-assignment-card__actions button[data-action="remove"] {
  border-color: #d1aa84;
  color: #8c4e06;
}

.exgen-mastery-status {
  margin: 0.58rem 0 0;
  min-height: 1.1rem;
  color: #2f5575;
  font-weight: 700;
  font-size: 0.86rem;
}

.exgen-mastery-controls {
  margin-top: 0.5rem;
}

.exgen-mastery-controls label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.exgen-mastery-controls span {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #4d6679;
}

.exgen-mastery-controls select {
  border: 1px solid #b8d0e4;
  border-radius: 8px;
  background: #fff;
  color: #214968;
  padding: 0.25rem 0.42rem;
  font-family: Aptos, "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.8rem;
}

.exgen-mastery-grid {
  margin-top: 0.5rem;
  overflow-x: auto;
}

.exgen-mastery-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.exgen-mastery-table th,
.exgen-mastery-table td {
  border: 1px solid #d0e0ee;
  padding: 0.34rem;
  text-align: center;
  vertical-align: middle;
}

.exgen-mastery-table th {
  background: #f3f8fd;
  font-size: 0.78rem;
  color: #345870;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.exgen-mastery-table th:first-child,
.exgen-mastery-table td:first-child {
  text-align: left;
  min-width: 235px;
}

.exgen-mastery-row-title {
  display: grid;
  gap: 0.16rem;
}

.exgen-mastery-row-title strong {
  font-size: 0.82rem;
  line-height: 1.25;
}

.exgen-mastery-row-title span {
  font-size: 0.72rem;
  color: #597387;
}

.exgen-mastery-cell {
  border: 1px solid #b6cde2;
  border-radius: 10px;
  background: #fff;
  width: 100%;
  display: grid;
  gap: 0.18rem;
  padding: 0.2rem;
  font-family: Aptos, "Trebuchet MS", "Gill Sans", sans-serif;
  color: #1d4462;
}

.exgen-mastery-cell:hover {
  border-color: #5f92bf;
}

.exgen-mastery-cell__launch {
  border: 0;
  background: transparent;
  width: 100%;
  display: grid;
  gap: 0.08rem;
  padding: 0.08rem 0.1rem;
  cursor: pointer;
  color: #1d4462;
  font-family: Aptos, "Trebuchet MS", "Gill Sans", sans-serif;
}

.exgen-mastery-cell__launch:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.exgen-mastery-cell__accuracy {
  font-size: 0.79rem;
  font-weight: 700;
}

.exgen-mastery-cell__meta {
  font-size: 0.7rem;
  color: #587184;
}

.exgen-mastery-cell__toggle {
  border: 1px solid #93b7d6;
  border-radius: 8px;
  background: #fff;
  color: #204c6d;
  padding: 0.2rem 0.32rem;
  font-size: 0.7rem;
  font-family: Aptos, "Trebuchet MS", "Gill Sans", sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.exgen-mastery-cell__toggle:hover {
  border-color: #5f95c5;
}

.exgen-mastery-cell__toggle:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.exgen-mastery-cell.is-unstarted {
  background: #f7fafc;
}

.exgen-mastery-cell.is-needs-review {
  background: #fff1e4;
  border-color: #e4b98e;
}

.exgen-mastery-cell.is-developing {
  background: #eef6ff;
  border-color: #9bc0e2;
}

.exgen-mastery-cell.is-mastered {
  background: #e9f9f1;
  border-color: #8fcdb5;
}

.exgen-mastery-cell.is-assigned {
  box-shadow: 0 0 0 2px rgba(15, 155, 122, 0.18);
}

.exgen-focus-metrics {
  margin-top: 0.62rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.exgen-focus-status {
  margin: 0.62rem 0 0;
  min-height: 1.1rem;
  color: #2f5575;
  font-weight: 700;
  font-size: 0.86rem;
}

.exgen-focus-list {
  margin-top: 0.45rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.45rem;
}

.exgen-focus-card {
  border: 1px solid #c2d6e8;
  border-radius: 11px;
  background: #fbfdff;
  padding: 0.56rem;
}

.exgen-focus-card h3 {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.3;
}

.exgen-focus-card p {
  margin: 0.26rem 0 0;
  color: #516d82;
  font-size: 0.79rem;
}

.exgen-focus-card button {
  margin-top: 0.44rem;
  border: 1px solid #8fb3d3;
  border-radius: 8px;
  background: #fff;
  color: #1f4d6e;
  padding: 0.24rem 0.52rem;
  font-size: 0.76rem;
  font-family: Aptos, "Trebuchet MS", "Gill Sans", sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.exgen-focus-card button:hover {
  border-color: #5f93c1;
}

.exgen-type-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 0.72rem;
}

.exgen-type-card {
  border: 1px solid #c8dbec;
  border-radius: 12px;
  background: #fdfefe;
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  cursor: pointer;
  text-align: left;
  transform-origin: left center;
  animation: exgen-in 0.25s ease;
}

.exgen-type-card:hover {
  border-color: #6ea0d2;
  box-shadow: 0 6px 14px rgba(9, 42, 72, 0.12);
}

.exgen-type-card[aria-selected="true"] {
  border-color: var(--exgen-primary);
  box-shadow: 0 0 0 2px rgba(11, 94, 207, 0.15);
}

.exgen-type-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.exgen-tag {
  border-radius: 999px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 0.18rem 0.45rem;
  color: #194564;
  background: #e7f4ff;
}

.exgen-tag[data-status="active"] {
  background: #e4f9f2;
  color: #0f6f57;
}

.exgen-tag[data-status="planned"] {
  background: #fff4e2;
  color: #8c5107;
}

.exgen-type-card h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.3;
}

.exgen-type-card p {
  margin: 0;
  color: #567086;
  font-size: 0.84rem;
}

.exgen-coverage {
  margin-top: 0.2rem;
  height: 7px;
  border-radius: 999px;
  background: #eaf2f8;
  overflow: hidden;
}

.exgen-coverage > span {
  display: block;
  height: 100%;
  width: var(--percent, 0%);
  background: linear-gradient(90deg, #0aa07a, #0b5ecf);
}

.exgen-status {
  min-height: 1.5rem;
  margin: 0.6rem 0 0;
  font-weight: 700;
  color: #1b4364;
}

.exgen-session-list {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.75rem;
}

.exgen-practice {
  margin-top: 0.65rem;
  border: 1px solid #c3d7e9;
  border-radius: 12px;
  background: #f6fbff;
  padding: 0.75rem;
}

.exgen-practice__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.exgen-practice__head h3 {
  margin: 0;
  font-size: 1rem;
}

.exgen-practice__score {
  margin: 0;
  font-weight: 700;
  color: #1d4868;
}

.exgen-practice__meta {
  margin-top: 0.35rem;
  font-size: 0.86rem;
  color: #4f6578;
}

.exgen-practice__prompt {
  margin: 0.45rem 0 0;
  font-weight: 700;
}

.exgen-practice__sentence {
  margin: 0.3rem 0 0;
  line-height: 1.45;
}

.exgen-practice__tokens,
.exgen-practice__options {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.exgen-practice__links {
  margin-top: 0.55rem;
}

.exgen-practice__link-hint {
  margin: 0;
  font-size: 0.84rem;
  color: #3e6078;
}

.exgen-practice__pair-list {
  margin-top: 0.42rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.exgen-practice__pair-empty {
  margin: 0;
  color: #5a7589;
  font-size: 0.83rem;
}

.exgen-link-pill {
  border: 1px solid #9bbfe0;
  border-radius: 999px;
  background: #edf5ff;
  color: #153f69;
  padding: 0.16rem 0.44rem 0.16rem 0.58rem;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.exgen-link-pill__remove {
  border: 0;
  background: #cfe3f7;
  color: #184770;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 100%;
  line-height: 1;
  font-size: 0.85rem;
  cursor: pointer;
}

.exgen-practice__clear-links {
  border: 1px solid #aac7df;
  border-radius: 999px;
  background: #fff;
  color: #2f5673;
  padding: 0.16rem 0.5rem;
  font-size: 0.77rem;
  cursor: pointer;
}

.exgen-token-choice,
.exgen-option-choice {
  border: 1px solid #b7d1e6;
  border-radius: 999px;
  background: #fff;
  color: #224d6d;
  padding: 0.28rem 0.62rem;
  font-size: 0.84rem;
  font-family: Aptos, "Trebuchet MS", "Gill Sans", sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.exgen-option-choice {
  border-radius: 10px;
}

.exgen-token-choice:hover,
.exgen-option-choice:hover {
  transform: translateY(-1px);
  border-color: #6f9fc9;
}

.exgen-token-choice.is-selected,
.exgen-option-choice.is-selected {
  border-color: #0b5ecf;
  background: #e8f2ff;
  color: #083f86;
}

.exgen-token-choice.is-draft-source {
  border-color: #0f9b7a;
  background: #e3f8f2;
  color: #0f5f4d;
}

.exgen-token-choice.is-linked:not(.is-draft-source) {
  border-color: #5f92bf;
  background: #f1f7ff;
}

.exgen-practice__feedback {
  min-height: 1.2rem;
  margin: 0.6rem 0 0;
  font-weight: 700;
  color: #16486d;
}

.exgen-practice__actions {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.exgen-practice__btn {
  border: 1px solid #8eb3d4;
  border-radius: 10px;
  background: #fff;
  color: #1a4667;
  padding: 0.42rem 0.72rem;
  font-family: Aptos, "Trebuchet MS", "Gill Sans", sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.exgen-practice__btn--primary {
  background: #0b5ecf;
  border-color: #0b5ecf;
  color: #fff;
}

.exgen-practice__btn:disabled,
.exgen-token-choice:disabled,
.exgen-option-choice:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.exgen-session-item {
  border: 1px solid #c6daeb;
  border-radius: 12px;
  padding: 0.75rem;
  background: #fbfdff;
}

.exgen-session-item h3 {
  margin: 0;
  font-size: 0.99rem;
}

.exgen-session-item p {
  margin: 0.35rem 0 0;
  line-height: 1.42;
}

.exgen-token-line {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.exgen-token {
  border: 1px solid #c0d7ea;
  border-radius: 999px;
  background: #fff;
  padding: 0.15rem 0.5rem;
  font-size: 0.82rem;
  color: #204764;
}

.exgen-answer {
  margin-top: 0.55rem;
}

.exgen-answer summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--exgen-primary-strong);
}

.exgen-answer ul {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
}

@keyframes exgen-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .exgen-hero__meta {
    grid-template-columns: 1fr;
  }
  .exgen-profile-row,
  .exgen-profile-stats {
    grid-template-columns: 1fr;
  }
  .exgen-focus-metrics {
    grid-template-columns: 1fr;
  }
  .exgen-assignment-controls {
    grid-template-columns: 1fr;
  }
  .exgen-card__head {
    flex-direction: column;
    align-items: flex-start;
  }
}
