:root {
  --purple: #2b1262;
  --dark: #1d103d;
  --lavender: #eadefa;
  --mint: #d1f5e8;
  --yellow: #ffda4b;
  --green: #00a85f;
  --paper: #fffdf9;
  --line: #e4dced;
  --muted: #736780;
  --shadow: 0 6px 22px #36215e06;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--dark);
  font-family: 'Avenir Next', 'Trebuchet MS', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
a {
  color: var(--purple);
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #8151cc;
  outline-offset: 4px;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(29px, 3vw, 46px);
  line-height: 1.13;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}
h2 {
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.6px;
}
h3 {
  font-size: 20px;
  line-height: 1.3;
}
p {
  margin-bottom: 16px;
}
small {
  font-size: 13px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-weight: 700;
  color: #675577;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.skip-link {
  position: fixed;
  top: -70px;
  left: 20px;
  z-index: 100;
  background: var(--yellow);
  padding: 12px 20px;
  border-radius: 10px;
}
.skip-link:focus {
  top: 12px;
}
.shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  background: linear-gradient(165deg, #25104e, #32146e 80%);
  padding: 32px 17px;
  color: white;
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  z-index: 10;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: white;
  margin: 0 8px 48px;
}
.brand img {
  width: 45px;
  height: 45px;
}
.brand strong {
  font-size: 23px;
  letter-spacing: -0.8px;
  display: block;
  line-height: 1.2;
}
.brand small {
  font-size: 11px;
  color: #e6d7fb;
}
.sidebar nav {
  display: grid;
  gap: 13px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 15px;
  color: #f5f0ff;
  text-decoration: none;
  border-radius: 15px;
  font-weight: 600;
  min-height: 52px;
}
.nav-link.active {
  background: linear-gradient(110deg, #d3f6e7, #b9efdd);
  color: #23124a;
  box-shadow: 0 3px 10px #10052b20;
}
.nav-link:not(.active):hover {
  background: #ffffff14;
}
.icon {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 36px 8px 65px;
  z-index: 1;
}
.sidebar-bottom p {
  font-size: 12px;
  color: #ded1ee;
  max-width: 155px;
}
.sidebar-bottom button {
  background: #ffffff14;
  color: white;
  border: 1px solid #ffffff36;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  width: 100%;
}
.ribbons {
  position: absolute;
  bottom: -48px;
  left: -65px;
  width: 370px;
  height: 110px;
  border: 22px solid var(--mint);
  border-radius: 50%;
  transform: rotate(-25deg);
}
.ribbons:after {
  content: '';
  position: absolute;
  left: -35px;
  top: -56px;
  width: 270px;
  height: 100px;
  border: 18px solid var(--yellow);
  border-radius: 50%;
  transform: rotate(38deg);
}
.workspace {
  grid-column: 2;
  padding: 26px 36px 24px;
  min-width: 0;
  max-width: 1650px;
  width: 100%;
  margin: auto;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  margin-bottom: 25px;
}
.breadcrumb {
  font-size: 13px;
  color: #736681;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a {
  font-weight: 700;
  text-decoration: none;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.level-select {
  background: white;
  border: 1px solid #ab93cd;
  border-radius: 12px;
  color: var(--purple);
  font-weight: 700;
  padding: 9px 30px 9px 13px;
  max-width: 170px;
}
.avatar {
  border: 0;
  border-radius: 50%;
  width: 43px;
  height: 43px;
  background: #ffe58b;
  display: grid;
  place-items: center;
  font-size: 24px;
}
.status {
  font-size: 11px;
  font-weight: 700;
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
  color: #5d5370;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #06a765;
}
.status.offline .dot {
  background: #d69318;
}
.heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.heading-row p {
  color: var(--muted);
  margin-bottom: 0;
}
.underlined {
  position: relative;
  display: inline-block;
}
.underlined:after {
  content: '';
  position: absolute;
  width: 100px;
  height: 6px;
  background: var(--yellow);
  border-radius: 50%;
  bottom: -9px;
  left: 1px;
  transform: rotate(-3deg);
}
.greeting {
  font-size: 18px;
  margin-bottom: 4px;
  color: #574167;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 30px;
  background: var(--mint);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  color: #2c1b4b;
}
.pill.gold {
  background: #fff0ad;
  border: 1px solid #f0cb58;
}
.pill.lavender {
  background: var(--lavender);
}
.card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pad {
  padding: 24px;
}
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: stretch;
}
.hero {
  background: linear-gradient(105deg, #ecddff, #e8d5fa);
  position: relative;
  padding: 30px;
  min-height: 355px;
  border: 0;
  isolation: isolate;
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: 62%;
  max-width: 410px;
}
.hero h2 {
  font-size: 32px;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.hero .topic-title {
  font-size: 29px;
  margin-top: 19px;
  margin-bottom: 22px;
  line-height: 1.16;
}
.hero p {
  font-size: 14px;
  color: #5a4375;
}
.hero-art {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 48%;
  z-index: 0;
  overflow: hidden;
}
.hero-art:before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("assets/learner-home.png");
  background-size: auto 191%;
  background-position: 74.5% 42.8%;
  mask-image: linear-gradient(to right, transparent, black 25%);
}
.hero-progress {
  margin-top: 27px;
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
}
.track {
  height: 9px;
  background: #ffffff85;
  border: 1px solid #ffffffc9;
  border-radius: 20px;
  overflow: hidden;
  flex: 1;
}
.track span {
  height: 100%;
  display: block;
  border-radius: 20px;
  background: var(--green);
  transition: width 0.3s;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  padding: 12px 20px;
  min-height: 45px;
  font-size: 14px;
  font-weight: 700;
  background: var(--purple);
  color: white;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform 0.12s,
    background 0.12s;
}
.btn:hover {
  background: #452084;
  transform: translateY(-1px);
}
.btn.secondary {
  background: white;
  color: var(--purple);
  border-color: #bba5d8;
}
.btn.secondary:hover {
  background: #f7f0ff;
}
.btn.mint {
  background: var(--mint);
  color: var(--purple);
}
.btn.yellow {
  background: var(--yellow);
  color: var(--purple);
}
.btn.small {
  padding: 8px 13px;
  font-size: 12px;
  min-height: 36px;
}
.btn:disabled:hover {
  transform: none;
}
.arrow {
  font-size: 22px;
  line-height: 1;
}
.helper {
  background: linear-gradient(150deg, #f0fff9, #f7fbf8);
  border-color: #b3e6d6;
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-height: 355px;
}
.helper-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.robot {
  font-size: 36px;
  filter: drop-shadow(0 3px 0 #2b126212);
}
.helper h2 {
  font-size: 22px;
  margin: 0 0 4px;
}
.helper .pill {
  font-size: 10px;
  padding: 4px 10px;
}
.chat-log {
  flex: 1;
  min-height: 140px;
  max-height: 290px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 3px 0;
}
.bubble {
  background: white;
  border: 1px solid #d2ded9;
  border-radius: 15px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  max-width: 95%;
}
.bubble.user {
  background: #e9ddfb;
  border: 0;
  align-self: flex-end;
}
.chat-form {
  display: flex;
  border: 1px solid #cfc4dc;
  border-radius: 12px;
  background: white;
  margin-top: 16px;
  padding: 6px;
  gap: 5px;
}
.chat-form input {
  width: 100%;
  border: 0;
  outline: none;
  background: none;
  font-size: 12px;
  min-width: 0;
  padding: 6px;
}
.chat-form button {
  border-radius: 9px;
  background: var(--purple);
  color: white;
  width: 35px;
  flex-shrink: 0;
}
.subject-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-top: 22px;
}
.subject-card {
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.subject-card h3 {
  font-size: 18px;
  margin: 8px 0 0;
}
.subject-card p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.subject-icon {
  font-size: 26px;
  width: 55px;
  height: 55px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: var(--mint);
}
.subject-card:nth-child(2) .subject-icon {
  background: #fff0b0;
}
.subject-card:nth-child(3) .subject-icon {
  background: #e2f2d0;
}
.subject-card:nth-child(4) .subject-icon {
  background: #eaddfc;
}
.subject-card .btn {
  margin-top: auto;
  width: 100%;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 27px 0 14px;
}
.section-title h2 {
  font-size: 21px;
  margin: 0;
}
.link-button {
  border: 0;
  background: transparent;
  color: var(--purple);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 8px;
}
.offline-banner {
  display: flex;
  gap: 13px;
  align-items: center;
  justify-content: space-between;
  background: #f6f2fc;
  border: 1px solid #e5dbf1;
  padding: 15px 20px;
  border-radius: 16px;
  margin-top: 22px;
}
.offline-banner p {
  font-size: 12px;
  margin: 0;
  color: #675775;
}
.offline-banner strong {
  display: block;
  font-size: 13px;
  color: var(--purple);
}
footer {
  font-size: 11px;
  color: #887e92;
  margin-top: 25px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
footer button {
  font: inherit;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.search {
  border: 1px solid #cdbde0;
  border-radius: 13px;
  padding: 12px 15px;
  background: white;
  flex: 1;
  min-width: 180px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter {
  border: 1px solid #dfd1ef;
  border-radius: 30px;
  padding: 9px 14px;
  background: white;
  color: #6a547e;
  font-weight: 600;
  font-size: 12px;
  min-height: 38px;
}
.filter.active {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
}
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.mission-card {
  display: flex;
  flex-direction: column;
  padding: 23px;
}
.mission-card .mission-icon {
  font-size: 32px;
  width: 65px;
  height: 65px;
  border-radius: 19px;
  background: var(--lavender);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.mission-card h3 {
  margin-bottom: 7px;
}
.mission-card p {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
}
.mission-meta {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 10px 0 18px;
  font-size: 11px;
  color: #7d6c8b;
}
.completed-label {
  color: #07864e;
  font-weight: 700;
}
.mission-card .btn {
  width: 100%;
}
.mission-story {
  background: var(--lavender);
  border-radius: 16px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
  font-size: 14px;
}
.mission-story .pill {
  background: var(--yellow);
  white-space: nowrap;
}
.learning-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(270px, 1fr);
  gap: 21px;
  align-items: start;
}
.challenge {
  background: linear-gradient(135deg, #f3eafd, #e9dcfb);
  padding: 27px;
  border: 0;
  min-height: 390px;
}
.challenge-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}
.challenge-title .pill {
  background: var(--yellow);
  font-size: 15px;
}
.challenge h2 {
  font-size: 25px;
  line-height: 1.4;
  margin: 15px 0 22px;
}
.visual {
  font-size: clamp(34px, 4vw, 57px);
  text-align: center;
  line-height: 1.6;
  letter-spacing: 7px;
  padding: 15px 10px;
  margin: 0 0 18px;
  border-radius: 18px;
  background: #ffffff5e;
  overflow-wrap: anywhere;
}
.options {
  display: grid;
  gap: 11px;
  margin: 20px 0;
}
.option {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  background: #fffcff;
  border: 1.5px solid #c2a7e3;
  color: var(--purple);
  border-radius: 13px;
  padding: 13px 16px;
  font-size: 16px;
  font-weight: 600;
}
.option:before {
  content: '';
  width: 17px;
  height: 17px;
  border: 1.5px solid #9b81ba;
  border-radius: 50%;
  flex-shrink: 0;
}
.option.selected {
  background: #d5f8ea;
  border-color: #249e76;
  box-shadow: 0 0 0 1px #249e76;
}
.option.selected:before {
  border: 5px solid #199365;
  background: white;
}
.task-number {
  width: 100%;
  max-width: 260px;
  margin: 8px 0 25px;
  border: 2px solid #b99adf;
  background: white;
  border-radius: 14px;
  padding: 18px;
  font-size: 29px;
  font-weight: 700;
  color: var(--purple);
  text-align: center;
}
.challenge-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.challenge-actions .btn:first-child {
  flex: 1;
}
.feedback {
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 18px;
  border: 1px solid #a5dfbd;
  background: #ddf8e6;
}
.feedback strong {
  display: block;
  margin-bottom: 4px;
}
.feedback p {
  font-size: 14px;
  margin-bottom: 0;
}
.feedback.retry {
  background: #fff4c7;
  border-color: #eed781;
}
.right-stack {
  display: grid;
  gap: 17px;
}
.trail {
  background: linear-gradient(135deg, #d9fff1, #d0f3e5);
  border-color: #a8e7d4;
  padding: 23px;
}
.trail h2 {
  font-size: 23px;
  display: flex;
  gap: 9px;
  margin-bottom: 18px;
}
.trail-item {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 10px 0;
  background: #ffffffb8;
  padding: 11px 12px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #e1d4f0;
}
.trail-item.current {
  background: #ffe875;
  border-color: #f4d65e;
}
.trail-item.done {
  background: #ebfff5;
}
.step-number {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background: #e4d4f8;
  border-radius: 50%;
  color: #4a257c;
}
.trail-item.done .step-number {
  background: #1dbf76;
  color: white;
}
.badge-card {
  background: var(--lavender);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.medal {
  font-size: 51px;
}
.badge-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.badge-card p {
  font-size: 12px;
  margin-bottom: 10px;
}
.hint-card {
  border: 1px solid #b795e1;
  background: #faf6ff;
  border-radius: 17px;
  padding: 16px;
  display: flex;
  gap: 13px;
  align-items: center;
  text-align: left;
  color: var(--purple);
  font-weight: 700;
  width: 100%;
}
.hint-card span:first-child {
  font-size: 30px;
}
.hint-card small {
  font-weight: 400;
  display: block;
}
.home-activity {
  padding: 20px;
  border: 1px dashed #cab5e1;
  border-radius: 17px;
  font-size: 12px;
  color: #705c87;
}
.home-activity strong {
  display: block;
  color: var(--purple);
  font-size: 14px;
  margin-bottom: 7px;
}
.stage-progress {
  display: flex;
  gap: 6px;
  align-items: center;
  background: var(--mint);
  border-radius: 30px;
  padding: 8px 14px;
  font-size: 12px;
  white-space: nowrap;
}
.stage-progress i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c8d2ce;
}
.stage-progress i.done {
  background: var(--green);
}
.intro-example {
  font-size: 19px;
  background: #ffffff85;
  border: 1px solid #fff;
  border-radius: 17px;
  padding: 24px;
  line-height: 1.7;
  margin: 20px 0;
}
.intro-example .example-symbol {
  font-size: 45px;
  display: block;
  margin-bottom: 10px;
}
.intro-example strong {
  color: var(--purple);
}
.lesson-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  gap: 15px;
}
.letter-bank,
.order-bank,
.built-word {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  min-height: 60px;
  margin: 20px 0;
}
.letter {
  background: white;
  color: var(--purple);
  border: 1.5px solid #b39ad2;
  border-radius: 12px;
  min-width: 49px;
  padding: 12px 15px;
  font-size: 23px;
  font-weight: 700;
  box-shadow: 0 3px 0 #bda9d6;
}
.order-bank .letter,
.built-word.order .letter {
  font-size: 15px;
}
.built-word {
  background: #ffffff70;
  border: 2px dashed #c4a9e5;
  border-radius: 15px;
  padding: 12px;
  align-items: center;
}
.built-word .letter {
  background: var(--yellow);
  border-color: #e9bd3e;
}
.bank-note {
  text-align: center;
  font-size: 12px;
  color: #746181;
}
.match-row {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) minmax(100px, 1.3fr);
  gap: 15px;
  align-items: center;
  background: #ffffff95;
  border-radius: 13px;
  padding: 12px 15px;
  margin: 11px 0;
}
.match-row label {
  font-weight: 700;
  font-size: 17px;
}
.match-row select {
  min-width: 0;
  width: 100%;
  border: 1px solid #b69bdb;
  border-radius: 10px;
  padding: 11px;
  background: white;
  color: var(--purple);
}
.success {
  background: linear-gradient(135deg, #f4eaff, #e7d8fa);
  text-align: center;
  padding: 38px 25px;
}
.success .trophy {
  font-size: 90px;
  line-height: 1.4;
}
.success h2 {
  font-size: 36px;
  margin: 12px 0 16px;
}
.success .reward {
  display: inline-block;
  background: #ffe26a;
  padding: 9px 25px;
  border-radius: 30px;
  font-size: 24px;
  font-weight: 800;
  margin: 13px 0;
}
.success-list {
  display: grid;
  gap: 10px;
  text-align: left;
  max-width: 470px;
  margin: 25px auto;
}
.success-list div {
  padding: 12px 15px;
  background: #ffffffa6;
  border-radius: 12px;
  font-size: 14px;
}
.success-list div:before {
  content: '✓';
  color: #06a764;
  font-weight: bold;
  margin-right: 12px;
}
.success-actions {
  display: flex;
  justify-content: center;
  gap: 13px;
  flex-wrap: wrap;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 23px;
}
.stat-card {
  padding: 23px;
  background: #f0e7fc;
}
.stat-card:nth-child(2) {
  background: #e3f9ef;
}
.stat-card:nth-child(3) {
  background: #fff4c9;
}
.stat-card:nth-child(4) {
  background: #e9efff;
}
.stat-card .stat-value {
  font-size: 34px;
  font-weight: 800;
  display: block;
  line-height: 1.2;
  margin: 9px 0 3px;
}
.stat-card p {
  margin: 0;
  font-size: 12px;
  color: #6f5d80;
}
.progress-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}
.progress-row {
  display: grid;
  grid-template-columns: 140px 1fr 40px;
  gap: 13px;
  align-items: center;
  margin: 23px 0;
  font-size: 13px;
}
.progress-row .track {
  background: #eee6f7;
  border: 0;
}
.progress-row:nth-child(2) .track span {
  background: #ffd631;
}
.progress-row:nth-child(3) .track span {
  background: #a897e2;
}
.progress-row:nth-child(4) .track span {
  background: #88d5bd;
}
.badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}
.earned-badge {
  background: #fff6d7;
  border: 1px solid #e9cf76;
  border-radius: 15px;
  padding: 15px;
  width: calc(50% - 6px);
  font-size: 11px;
  text-align: center;
}
.earned-badge span {
  display: block;
  font-size: 32px;
  margin-bottom: 7px;
}
.activity-list {
  display: grid;
  gap: 8px;
}
.activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 15px;
  border-radius: 12px;
  background: #f6f1fc;
  font-size: 13px;
}
.activity-item small {
  color: #6e617d;
}
.empty {
  padding: 35px;
  text-align: center;
  color: #746780;
}
.empty span {
  font-size: 45px;
  display: block;
  margin-bottom: 12px;
}
.empty h2 {
  color: var(--purple);
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.setting-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #eee7f4;
}
.setting-row:last-child {
  border: 0;
}
.setting-row p {
  font-size: 12px;
  margin: 4px 0 0;
  color: var(--muted);
}
.setting-row strong {
  font-size: 14px;
}
.switch {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.switch input {
  accent-color: var(--purple);
  width: 22px;
  height: 22px;
}
.profile-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}
.profile-option {
  width: 100%;
  padding: 15px;
  background: #f4edfc;
  border-radius: 13px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid transparent;
  color: var(--purple);
}
.profile-option.active {
  background: var(--mint);
  border-color: #80cbae;
}
.profile-option span:first-child {
  font-size: 29px;
}
.profile-option small {
  display: block;
  color: #756381;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 16px 0 6px;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #bca7d6;
  border-radius: 11px;
  background: white;
  color: var(--purple);
}
.avatar-options {
  display: flex;
  gap: 9px;
  margin: 12px 0;
  flex-wrap: wrap;
}
.avatar-choice {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 26px;
  background: #f0e7fc;
  border: 2px solid transparent;
}
.avatar-choice.active {
  border-color: var(--purple);
  background: var(--yellow);
}
dialog {
  border: 1px solid #d9c8ee;
  border-radius: 24px;
  padding: 30px;
  max-width: 560px;
  width: calc(100% - 32px);
  max-height: 90dvh;
  box-shadow: 0 20px 100px #18083366;
  background: var(--paper);
  color: var(--dark);
}
dialog::backdrop {
  background: #1b0a447a;
  backdrop-filter: blur(4px);
}
dialog h2 {
  padding-right: 23px;
}
dialog p {
  font-size: 14px;
  color: #766586;
}
.icon-button {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eee4fb;
  color: var(--purple);
  font-size: 24px;
}
.close {
  position: absolute;
  right: 17px;
  top: 17px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}
.loading {
  min-height: 100dvh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  background: #f0e7fb;
}
.loading span {
  font-size: 65px;
}
.loading h1 {
  color: var(--purple);
}
.loading p {
  color: #77618d;
}
.read-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffffaa;
  border: 1px solid #d4bee8;
  border-radius: 20px;
  padding: 7px 12px;
  color: var(--purple);
  font-size: 11px;
  min-height: 35px;
}
.storage-alert {
  background: #fff0c3;
  border: 1px solid #dba630;
  padding: 15px;
  border-radius: 14px;
  margin-bottom: 20px;
  font-size: 13px;
}
.offline-detail {
  padding: 15px;
  background: #f0e9fc;
  border-radius: 14px;
  font-size: 13px;
  margin-bottom: 15px;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 22px;
  background: #26104f;
  color: white;
  border-radius: 14px;
  box-shadow: 0 4px 24px #0003;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  max-width: 90%;
  z-index: 100;
  font-size: 13px;
}
#toast.visible {
  opacity: 1;
}
.adult-note {
  font-size: 12px;
  background: #f7f2fc;
  border-radius: 12px;
  padding: 14px;
  margin-top: 20px;
}
.review-card {
  padding: 20px;
  margin: 12px 0;
  background: white;
}
.review-card h3 {
  font-size: 16px;
}
.review-card .answer {
  background: #e3f8ec;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
}
.review-card p {
  font-size: 13px;
}
.print-only {
  display: none;
}
.menu-button {
  display: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1500px) {
  .workspace {
    padding: 34px 42px;
  }
  .hero {
    min-height: 410px;
    padding: 36px;
  }
  .hero h2 {
    font-size: 37px;
  }
  .hero .topic-title {
    font-size: 35px;
  }
  .helper {
    padding: 28px;
  }
  .subject-card {
    padding: 26px;
  }
}
@media (max-width: 1190px) {
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    width: 190px;
    padding: 26px 12px;
  }
  .brand {
    gap: 7px;
    margin-left: 3px;
  }
  .brand strong {
    font-size: 19px;
  }
  .brand img {
    width: 37px;
    height: 37px;
  }
  .brand small {
    font-size: 9px;
  }
  .workspace {
    padding: 23px;
  }
  .nav-link {
    font-size: 14px;
    padding: 12px;
    gap: 10px;
  }
  .home-grid {
    grid-template-columns: 1.6fr 1fr;
  }
  .hero {
    padding: 23px;
  }
  .hero h2 {
    font-size: 28px;
  }
  .hero .topic-title {
    font-size: 25px;
  }
  .subject-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mission-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .helper {
    padding: 18px;
  }
  .helper h2 {
    font-size: 19px;
  }
  .status {
    font-size: 10px;
  }
  .learning-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(230px, 1fr);
  }
  .challenge {
    padding: 21px;
  }
  .trail {
    padding: 19px;
  }
  .progress-row {
    grid-template-columns: 100px 1fr 35px;
  }
}
@media (max-width: 900px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
  .home-grid .helper {
    min-height: 240px;
  }
  .hero {
    min-height: 350px;
  }
  .hero-art {
    width: 45%;
  }
  .chat-log {
    min-height: 70px;
  }
  .home-grid .helper .chat-log {
    max-height: 160px;
  }
  .learning-grid {
    grid-template-columns: 1fr;
  }
  .right-stack {
    grid-template-columns: 1fr 1fr;
  }
  .right-stack .trail {
    grid-row: span 2;
  }
  .right-stack .home-activity {
    grid-column: 1/-1;
  }
  .progress-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .top-actions {
    gap: 7px;
  }
  .level-select {
    max-width: 140px;
    padding-left: 9px;
  }
  .status {
    max-width: 95px;
    white-space: normal;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mission-story {
    align-items: flex-start;
  }
  .heading-row h1 {
    font-size: 32px;
  }
  .progress-row {
    grid-template-columns: 140px 1fr 40px;
  }
}
@media (max-width: 650px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    overflow: visible;
  }
  .brand {
    margin: 0;
    gap: 7px;
  }
  .brand strong {
    font-size: 18px;
  }
  .brand small {
    font-size: 9px;
  }
  .brand img {
    width: 33px;
    height: 33px;
  }
  .sidebar nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    gap: 0;
    background: #2b1262;
    padding: 7px 8px max(8px, env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -4px 24px #21104e20;
  }
  .nav-link {
    flex-direction: column;
    gap: 3px;
    min-height: 48px;
    border-radius: 12px;
    padding: 6px 10px;
    font-size: 9px;
    min-width: 60px;
  }
  .nav-link .icon {
    width: 20px;
    height: 20px;
  }
  .sidebar-bottom {
    margin: 0;
    padding: 0;
  }
  .sidebar-bottom p,
  .ribbons {
    display: none;
  }
  .sidebar-bottom button {
    width: auto;
    padding: 7px 10px;
    font-size: 10px;
  }
  .workspace {
    padding: 17px 15px 100px;
  }
  .topbar {
    margin-bottom: 22px;
    gap: 8px;
  }
  .breadcrumb {
    font-size: 10px;
    max-width: 46%;
  }
  .top-actions {
    gap: 8px;
  }
  .top-actions .status {
    display: none;
  }
  .level-select {
    font-size: 12px;
    max-width: 128px;
    padding: 7px 21px 7px 8px;
    border-radius: 10px;
  }
  .avatar {
    width: 33px;
    height: 33px;
    font-size: 20px;
  }
  h1,
  .heading-row h1 {
    font-size: 30px;
  }
  .heading-row {
    margin-bottom: 24px;
  }
  .heading-row p {
    font-size: 12px;
  }
  .heading-row > .pill {
    font-size: 10px;
    padding: 6px 9px;
  }
  .greeting {
    font-size: 15px;
  }
  .home-grid {
    gap: 15px;
  }
  .hero {
    padding: 23px 20px;
    min-height: 330px;
  }
  .hero-copy {
    width: 65%;
  }
  .hero h2 {
    font-size: 26px;
  }
  .hero .topic-title {
    font-size: 25px;
    max-width: 220px;
  }
  .hero .pill {
    font-size: 10px;
  }
  .hero p {
    font-size: 12px;
  }
  .hero .btn {
    font-size: 12px;
    padding: 10px 13px;
  }
  .hero-progress {
    font-size: 9px;
    gap: 7px;
    margin-top: 24px;
    white-space: nowrap;
  }
  .hero-art {
    width: 49%;
  }
  .hero-art:before {
    background-size: auto 191%;
    background-position: 74.5% 42.8%;
    mask-image: linear-gradient(to right, transparent, black 35%);
  }
  .hero-copy .topic-title {
    overflow-wrap: anywhere;
  }
  .subject-grid {
    gap: 11px;
    margin-top: 16px;
  }
  .subject-card {
    padding: 16px;
  }
  .subject-card h3 {
    font-size: 16px;
  }
  .subject-card p {
    font-size: 11px;
  }
  .subject-icon {
    width: 46px;
    height: 46px;
    font-size: 24px;
  }
  .subject-card .btn {
    font-size: 10px;
    padding: 8px 6px;
  }
  .helper {
    padding: 19px;
  }
  .helper h2 {
    font-size: 21px;
  }
  .offline-banner {
    padding: 14px;
    align-items: flex-start;
    gap: 8px;
  }
  .offline-banner .btn {
    font-size: 10px;
    padding: 8px 10px;
    white-space: nowrap;
  }
  .offline-banner p {
    font-size: 10px;
  }
  .offline-banner strong {
    font-size: 12px;
  }
  .mission-grid {
    grid-template-columns: 1fr;
  }
  .mission-card {
    padding: 22px;
  }
  .mission-card h3 {
    font-size: 21px;
  }
  .mission-card .mission-icon {
    float: left;
  }
  .toolbar {
    gap: 10px;
  }
  .search {
    width: 100%;
    flex-basis: 100%;
  }
  .filters {
    gap: 6px;
  }
  .filter {
    padding: 8px 11px;
    font-size: 10px;
  }
  .learning-grid {
    gap: 15px;
  }
  .right-stack {
    grid-template-columns: 1fr;
  }
  .right-stack .trail {
    grid-row: auto;
  }
  .trail {
    order: 0;
  }
  .badge-card {
    order: 1;
  }
  .hint-card {
    order: 2;
  }
  .home-activity {
    order: 3;
  }
  .challenge {
    padding: 19px;
    min-height: 300px;
  }
  .challenge h2 {
    font-size: 22px;
  }
  .challenge-title .pill {
    font-size: 12px;
  }
  .challenge-title {
    gap: 5px;
  }
  .read-button {
    font-size: 10px;
    padding: 6px 9px;
  }
  .mission-story {
    font-size: 12px;
    padding: 13px;
    gap: 10px;
  }
  .mission-story .pill {
    font-size: 10px;
    padding: 6px 9px;
  }
  .heading-row .stage-progress {
    font-size: 10px;
    padding: 7px 9px;
    gap: 4px;
  }
  .stage-progress i {
    width: 7px;
    height: 7px;
  }
  .letter {
    min-width: 43px;
    padding: 11px 12px;
    font-size: 21px;
  }
  .option {
    font-size: 14px;
    padding: 13px;
  }
  .match-row {
    grid-template-columns: minmax(70px, 1fr) minmax(120px, 1.4fr);
    gap: 8px;
    padding: 10px;
  }
  .match-row label {
    font-size: 14px;
  }
  .match-row select {
    font-size: 13px;
    padding: 10px;
  }
  .stat-card {
    padding: 19px;
  }
  .stat-card .stat-value {
    font-size: 30px;
  }
  .progress-row {
    grid-template-columns: 100px 1fr 35px;
    font-size: 11px;
    gap: 8px;
  }
  .pad {
    padding: 20px;
  }
  .success {
    padding: 26px 18px;
  }
  .success h2 {
    font-size: 30px;
  }
  .success-actions .btn {
    width: 100%;
  }
  .lesson-bottom .btn {
    font-size: 11px;
    padding: 10px 12px;
  }
  .topbar .breadcrumb span:last-child {
    display: none;
  }
  .intro-example {
    font-size: 17px;
    padding: 19px;
  }
  dialog {
    padding: 25px 20px;
  }
  .activity-item {
    font-size: 12px;
  }
  .hero .topic-title {
    font-size: 24px;
  }
  footer {
    font-size: 10px;
  }
  .toolbar .link-button {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  body {
    background: white;
    font-size: 12px;
  }
  .sidebar,
  .topbar,
  footer,
  .btn,
  .toolbar,
  .offline-banner,
  .chat-form,
  .skip-link,
  #toast,
  dialog {
    display: none !important;
  }
  .shell {
    display: block;
  }
  .workspace {
    padding: 0;
    max-width: none;
  }
  .card,
  .stat-card {
    break-inside: avoid;
    box-shadow: none;
  }
  .print-only {
    display: block;
  }
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .progress-grid {
    grid-template-columns: 1fr 1fr;
  }
  .heading-row h1 {
    font-size: 28px;
  }
}
/* Match the supplied sidebar wordmark and isolate the learner illustration. */
.brand strong {
  white-space: nowrap;
  font-size: 21px;
}
.brand img {
  width: 38px;
  height: 38px;
}
.hero-art:before {
  background-position: 59% 42.8%;
}
@media (max-width: 1190px) {
  .brand strong {
    font-size: 18px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .hero-art:before {
    background-position: 64% 42.8%;
  }
}
@media (max-width: 900px) {
  .hero-art:before {
    background-position: 55% 42.8%;
  }
}
@media (max-width: 650px) {
  .brand strong {
    font-size: 18px;
  }
  .brand img {
    width: 33px;
    height: 33px;
  }
  .hero-art:before {
    background-position: 70% 42.8%;
  }
}
.hero-art:before {
  content: none;
}
.hero-art svg {
  display: block;
  width: 100%;
  height: 100%;
  mask-image: linear-gradient(to right, transparent, black 35%);
}
@media (max-width: 650px) {
  #toast {
    bottom: 88px;
  }
  .hero-art {
    width: 46%;
  }
  .hero-art svg {
    mask-image: linear-gradient(to right, transparent, black 30%);
  }
}
/* Blend the isolated reference illustration into its lavender learning card. */
.hero-art svg {
  mask-image: linear-gradient(to right, transparent 38%, black 78%);
}
@media (max-width: 650px) {
  .hero-art svg {
    mask-image: linear-gradient(to right, transparent, black 45%);
  }
}
.account-panel,
.language-panel {
  margin-bottom: 22px;
}
.button-wrap {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.button-wrap select {
  max-width: 220px;
}
.form-error {
  color: #a32846;
  font-weight: 600;
}
.report-row {
  padding: 15px;
  background: #f2ebfa;
  border-radius: 13px;
  margin: 12px 0;
}
.report-row small {
  display: block;
  color: #736380;
  margin: 5px 0 10px;
}
.break-word {
  overflow-wrap: anywhere;
  font-size: 12px;
}
.language-banner {
  background: #fff2bd;
  border: 1px solid #e7cb68;
  padding: 12px 16px;
  border-radius: 13px;
  margin-bottom: 20px;
  font-size: 12px;
}
.bilingual-note {
  font-size: 12px;
  background: #f8f3ff;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 15px;
}
.language-select {
  border: 1px solid #b9a3d5;
  border-radius: 10px;
  padding: 8px;
  background: white;
  color: #2b1262;
  max-width: 140px;
}
.studio-json {
  font-family: monospace;
  font-size: 11px;
  max-height: 250px;
  overflow: auto;
  white-space: pre-wrap;
}
.recording-form {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px dashed #c4addf;
  border-radius: 12px;
  margin-top: 10px;
}
@media (max-width: 650px) {
  .language-select {
    max-width: 95px;
    font-size: 11px;
  }
  .top-actions {
    gap: 5px;
  }
  .topbar .breadcrumb {
    max-width: 25%;
  }
  .level-select {
    max-width: 110px;
  }
  .button-wrap .btn {
    flex: 1;
    min-width: 100px;
  }
}
/* Adult portals share the supplied Teacher Ade palette and visual language. */
.portal-shell {
  grid-template-columns: 244px minmax(0, 1fr);
  background: #fbf9fe;
}
.portal-shell .workspace {
  padding: 0 32px 22px;
  max-width: 1660px;
}
.portal-sidebar {
  width: 244px;
  padding: 28px 15px 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #7653a3 transparent;
}
.portal-sidebar .brand {
  margin: 0 8px 32px;
}
.portal-sidebar-label {
  color: #a99ac2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  margin: 0 17px 13px;
}
.portal-sidebar nav {
  gap: 5px;
  position: relative;
  z-index: 1;
}
.portal-sidebar .nav-link {
  font-size: 12px;
  padding: 11px 14px;
  gap: 12px;
  min-height: 42px;
  border-radius: 12px;
  font-weight: 600;
}
.portal-nav-icon {
  font-size: 20px;
  width: 23px;
  display: inline-grid;
  place-items: center;
  color: #c9b9e9;
}
.portal-sidebar .nav-link.active .portal-nav-icon {
  color: #2b1262;
}
.portal-sidebar-bottom {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 25px 14px 37px;
  display: grid;
  gap: 12px;
}
.portal-sidebar-bottom a,
.portal-sidebar-bottom button {
  font-size: 11px;
  color: #e3d7f4;
  text-align: left;
  text-decoration: none;
  background: none;
  padding: 0;
}
.portal-sidebar-bottom small {
  color: #a893c2;
  font-size: 10px;
  margin-top: 7px;
}
.portal-shell .ribbons {
  opacity: 0.8;
  bottom: -65px;
}
.portal-topbar {
  min-height: 91px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #eee7f5;
  margin-bottom: 30px;
}
.portal-topbar > div:first-child small {
  display: block;
  font-size: 10px;
  color: #9486a1;
  margin-top: 5px;
}
.portal-breadcrumb {
  font-size: 12px;
  color: #685580;
  font-weight: 600;
}
.portal-breadcrumb > span {
  margin: 0 10px;
  color: #c4b7d3;
}
.portal-topbar-actions {
  display: flex;
  gap: 17px;
  align-items: center;
}
.portal-top-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: white;
  border: 1px solid #e4daee;
  border-radius: 11px;
  text-decoration: none;
  color: #6b4a93;
  font-size: 19px;
}
.portal-scope {
  font-size: 10px;
  color: #7b688c;
  border-right: 1px solid #e7def0;
  padding-right: 16px;
}
.portal-identity {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #24113e;
  text-decoration: none;
  min-width: 0;
}
.portal-identity > span {
  width: 37px;
  height: 37px;
  background: #eadefa;
  border: 3px solid white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: bold;
}
.portal-identity strong {
  display: block;
  max-width: 195px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.portal-identity small {
  color: #8f7b9e;
  font-size: 10px;
  display: block;
}
.portal-mobile-nav {
  display: none;
}
.portal-page-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}
.portal-page-heading .eyebrow {
  font-size: 10px;
  color: #927aa9;
  letter-spacing: 1.5px;
}
.portal-page-heading h1 {
  font-size: clamp(27px, 2.7vw, 40px);
  margin: 7px 0 12px;
  position: relative;
  display: inline-block;
  letter-spacing: -1.5px;
}
.portal-page-heading h1:after {
  content: '';
  position: absolute;
  left: 1px;
  bottom: -4px;
  width: 75px;
  height: 5px;
  border-radius: 50%;
  background: #ffdc59;
  transform: rotate(-3deg);
}
.portal-page-heading p {
  font-size: 12px;
  color: #8b799a;
  margin: 3px 0 0;
  max-width: 530px;
}
.portal-page-heading > .button-wrap {
  justify-content: flex-end;
}
.portal-shell .btn {
  font-size: 11px;
  padding: 10px 14px;
  min-height: 38px;
  border-radius: 11px;
  white-space: normal;
}
.portal-shell .btn.small {
  font-size: 10px;
  min-height: 31px;
  padding: 7px 11px;
}
.portal-shell .btn.secondary {
  border-color: #dfd2ed;
  background: white;
  color: #634584;
}
.portal-toolbar {
  padding: 14px 16px;
  background: white;
  border: 1px solid #ede5f5;
  border-radius: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 23px;
}
.portal-search {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 160px;
  max-width: 300px;
  width: 100%;
  color: #a08aac;
  font-size: 23px;
}
.portal-search input {
  border: 0;
  background: none;
  outline: none;
  width: 100%;
  min-width: 0;
  font-size: 11px;
  color: #473056;
  padding: 5px;
}
.portal-filters {
  display: flex;
  gap: 13px;
  align-items: center;
  flex-wrap: wrap;
}
.portal-filters label {
  font-size: 9px;
  color: #9b88ab;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.portal-filters select {
  border: 1px solid #e4d9ef;
  background: #fdfbff;
  border-radius: 9px;
  padding: 8px;
  font-size: 10px;
  color: #62467e;
  max-width: 150px;
}
.portal-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 24px;
}
.portal-kpi {
  border: 1px solid #e9e0f1;
  background: white;
  border-radius: 18px;
  padding: 21px;
  position: relative;
  overflow: hidden;
}
.portal-kpi > div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}
.kpi-icon {
  width: 33px;
  height: 33px;
  border-radius: 11px;
  background: #eee5fb;
  color: #7754b1;
  display: grid;
  place-items: center;
  font-size: 19px;
}
.portal-kpi.kpi-1 .kpi-icon {
  background: #d9f5e9;
  color: #32976f;
}
.portal-kpi.kpi-2 .kpi-icon {
  background: #fff1bf;
  color: #b88c18;
}
.portal-kpi.kpi-3 .kpi-icon {
  background: #e4edfc;
  color: #658ac0;
}
.portal-kpi small {
  font-size: 11px;
  font-weight: 600;
  color: #806a90;
}
.portal-kpi > strong {
  font-size: 34px;
  letter-spacing: -1px;
  line-height: 1.2;
  display: block;
}
.portal-kpi p {
  font-size: 9px;
  color: #a08eac;
  margin: 8px 0 0;
  line-height: 1.5;
}
.portal-grid {
  display: grid;
  gap: 20px;
  align-items: start;
}
.portal-grid.wide {
  grid-template-columns: minmax(0, 1.65fr) minmax(270px, 1fr);
}
.portal-grid.equal {
  grid-template-columns: 1fr 1fr;
}
.portal-grid > div {
  min-width: 0;
}
.portal-panel {
  background: white;
  border: 1px solid #e9e0f1;
  border-radius: 18px;
  padding: 23px;
  margin-bottom: 20px;
  min-width: 0;
  box-shadow: 0 3px 12px #32165502;
}
.portal-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.portal-panel h2 {
  font-size: 17px;
  font-weight: 750;
  margin: 0;
  line-height: 1.4;
  letter-spacing: -0.3px;
}
.portal-panel-head p {
  font-size: 10px;
  color: #a08dac;
  margin: 6px 0 0;
  line-height: 1.6;
  max-width: 560px;
}
.portal-panel .link-button {
  font-size: 10px;
  white-space: nowrap;
  padding: 3px 0;
}
.portal-legend {
  font-size: 9px;
  color: #937ca8;
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
  margin-top: 5px;
}
.portal-legend i,
.portal-bars i,
.portal-donut i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7752bc;
  display: inline-block;
  margin-right: 6px;
}
.portal-chart {
  margin-top: 10px;
  min-width: 0;
}
.portal-chart svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 220px;
}
.portal-bars {
  display: grid;
  gap: 17px;
  margin: 8px 0 5px;
}
.portal-bar > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11px;
  color: #715881;
}
.portal-bar > div:first-child strong {
  font-size: 11px;
  color: #4e356b;
}
.portal-bar-track {
  height: 7px;
  border-radius: 10px;
  background: #f4eff9;
  overflow: hidden;
}
.portal-bar-track > span {
  display: block;
  height: 100%;
  border-radius: 10px;
  background: #9772ca;
  transition: width 0.2s;
}
.portal-bar > small {
  display: block;
  font-size: 9px;
  color: #a28daf;
  margin-top: 5px;
}
.portal-checklist {
  display: grid;
  gap: 3px;
}
.portal-checklist > a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #f2edf7;
  color: #8e75a5;
  text-decoration: none;
  font-size: 14px;
}
.portal-checklist > a:last-child {
  border: 0;
}
.portal-checklist > a > span {
  width: 34px;
  height: 34px;
  background: #f0e8fa;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 17px;
  flex-shrink: 0;
}
.portal-checklist > a > div {
  flex: 1;
}
.portal-checklist strong {
  font-size: 11px;
  color: #503566;
  display: block;
}
.portal-checklist small {
  font-size: 9px;
  color: #a08dab;
  display: block;
  margin-top: 3px;
}
.portal-tip {
  background: linear-gradient(135deg, #f6efff, #f0fff7);
  border-radius: 14px;
  padding: 23px;
  text-align: left;
}
.portal-tip > span {
  font-size: 35px;
  display: block;
  margin-bottom: 11px;
}
.portal-tip h3 {
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 10px;
}
.portal-tip p {
  font-size: 11px;
  line-height: 1.8;
  color: #8c779c;
  margin-bottom: 16px;
}
.portal-donut {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 15px;
  align-items: center;
}
.portal-donut svg {
  width: 130px;
  height: 130px;
}
.portal-donut p {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: #8e789e;
  margin: 10px 0;
}
.portal-donut p span {
  flex: 1;
}
.portal-donut p strong {
  color: #4e3268;
  font-size: 11px;
}
.portal-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}
.portal-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: normal;
  min-width: 600px;
}
.portal-table th {
  font-size: 9px;
  letter-spacing: 0.3px;
  color: #a18aac;
  font-weight: 600;
  padding: 11px 13px;
  background: #faf7fd;
  border-bottom: 1px solid #f1eaf7;
  white-space: nowrap;
}
.portal-table td {
  padding: 16px 13px;
  border-bottom: 1px solid #f4eef8;
  font-size: 11px;
  color: #795f8c;
  vertical-align: middle;
}
.portal-table tr:last-child td {
  border-bottom: 0;
}
.portal-table td strong {
  font-size: 11px;
  color: #503465;
  font-weight: 650;
}
.portal-table td small {
  display: block;
  font-size: 9px;
  color: #a28caf;
  margin-top: 4px;
  max-width: 340px;
  overflow-wrap: anywhere;
}
.portal-table td:first-child {
  min-width: 150px;
}
.portal-table td .btn {
  white-space: nowrap;
}
.portal-person {
  display: flex;
  gap: 11px;
  align-items: center;
}
.portal-person > span {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 11px;
  background: #f1e8fb;
  font-size: 19px;
  flex-shrink: 0;
}
.portal-person small {
  max-width: 210px;
}
.portal-status {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 650;
  background: #f2eafa;
  color: #8f6bb5;
  white-space: nowrap;
}
.portal-status.green {
  background: #e0f8ed;
  color: #409879;
}
.portal-status.yellow {
  background: #fff3ca;
  color: #b49230;
}
.portal-status.quiet {
  background: #f1eef5;
  color: #a08baa;
}
.portal-status.purple {
  background: #eee4fa;
  color: #9771bf;
}
.portal-table .table-empty {
  padding: 32px;
  text-align: center;
  color: #a28caf;
}
.portal-empty {
  text-align: center;
  padding: 33px 22px;
  color: #9b86aa;
}
.portal-empty > span {
  display: block;
  font-size: 34px;
  color: #b29acb;
  margin-bottom: 12px;
}
.portal-empty h3 {
  font-size: 18px;
  color: #6b4f85;
  margin-bottom: 9px;
}
.portal-empty p {
  font-size: 11px;
  line-height: 1.8;
  max-width: 450px;
  margin: 0 auto 18px;
}
.portal-class-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.portal-class {
  background: #fcfaff;
  border: 1px solid #e9def3;
  border-radius: 15px;
  padding: 21px;
}
.portal-class > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.portal-class > div:first-child > span:first-child {
  font-size: 29px;
  color: #9568c0;
}
.portal-class h3 {
  font-size: 18px;
  margin: 11px 0 10px;
}
.portal-class p {
  font-size: 11px;
  color: #9179a2;
}
.portal-class > small {
  display: block;
  font-size: 10px;
  color: #a18cad;
  overflow-wrap: anywhere;
  margin-bottom: 17px;
}
.portal-class .eyebrow {
  font-size: 9px;
}
.portal-goal-number {
  font-size: 32px;
  font-weight: 750;
  color: #694591;
  margin: 20px 0 12px;
}
.portal-goal-number small {
  font-size: 12px;
  color: #a68db9;
  font-weight: 400;
}
.portal-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.portal-notes article {
  background: #fcfaff;
  border: 1px solid #ede3f6;
  border-radius: 14px;
  padding: 21px;
}
.portal-notes article > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.portal-notes p {
  font-size: 12px;
  color: #765d8c;
  line-height: 1.8;
  white-space: pre-wrap;
}
.portal-notes small {
  font-size: 9px;
  color: #a18aaf;
}
.portal-message {
  display: flex;
  gap: 15px;
  width: 100%;
  text-align: left;
  padding: 19px 14px;
  background: white;
  border-bottom: 1px solid #f1eaf7;
  color: #7e6393;
  align-items: flex-start;
}
.portal-message.unread {
  background: #fcf9ff;
}
.message-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e9dcf8;
  flex-shrink: 0;
  color: #9369b7;
  font-weight: bold;
}
.portal-message > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.portal-message strong {
  font-size: 12px;
  display: block;
}
.portal-message small {
  font-size: 9px;
  color: #a68cb4;
  display: block;
  margin-top: 4px;
}
.portal-message p {
  font-size: 11px;
  margin: 8px 0 0;
  color: #a188b1;
  overflow-wrap: anywhere;
}
.portal-message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #624777;
  font-size: 14px;
  line-height: 1.9;
}
.portal-report-summary {
  display: flex;
  gap: 23px;
  flex-wrap: wrap;
}
.portal-report-summary p {
  font-size: 10px;
  color: #9a82ab;
}
.portal-report-summary strong {
  display: block;
  font-size: 25px;
  color: #69438c;
  margin-bottom: 5px;
}
.portal-suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #f1eaf6;
}
.portal-suggestion > span {
  font-size: 25px;
}
.portal-suggestion > div {
  flex: 1;
}
.portal-suggestion strong {
  font-size: 12px;
  color: #694882;
}
.portal-suggestion p {
  font-size: 10px;
  color: #a188b1;
  margin: 5px 0 0;
}
.portal-loading {
  padding: 65px 24px;
  text-align: center;
  font-size: 12px;
  color: #9c83ad;
  background: white;
  border-radius: 18px;
  border: 1px solid #eee5f6;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.portal-loading > span {
  width: 17px;
  height: 17px;
  border: 2px solid #dfcfec;
  border-top-color: #9164be;
  border-radius: 50%;
  animation: portal-spin 1s linear infinite;
}
@keyframes portal-spin {
  to {
    transform: rotate(360deg);
  }
}
.portal-form {
  display: grid;
  gap: 10px;
}
.portal-form.narrow {
  max-width: 550px;
}
.portal-form .form-label {
  font-size: 12px;
  margin: 0;
  color: #7d608f;
}
.portal-form .form-control {
  margin-top: 6px;
  font-size: 13px;
  border-color: #d9c6e9;
  border-radius: 10px;
}
.portal-form select[multiple] {
  min-height: 110px;
}
.portal-form-help {
  font-size: 11px !important;
  line-height: 1.8;
  color: #a089ae !important;
  margin: 5px 0;
}
.portal-form textarea {
  resize: vertical;
}
.portal-attendance-toolbar {
  display: flex;
  gap: 15px;
  align-items: flex-end;
  margin-bottom: 23px;
  flex-wrap: wrap;
}
.portal-attendance-toolbar .form-label {
  margin: 0;
  font-size: 11px;
  color: #8f73a3;
}
.portal-attendance-toolbar input {
  margin-top: 6px;
  font-size: 12px;
}
.portal-table .attendance-status {
  font-size: 11px;
  padding: 8px;
  max-width: 130px;
}
.portal-system-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.portal-system-grid > div {
  padding: 18px;
  border: 1px solid #eee4f6;
  border-radius: 12px;
  background: #fcfaff;
}
.portal-system-grid small {
  font-size: 10px;
  color: #a48ab3;
  display: block;
  margin-bottom: 8px;
}
.portal-system-grid strong {
  display: block;
  font-size: 12px;
  color: #74558a;
  font-weight: 600;
  line-height: 1.8;
}
.portal-account-summary {
  display: flex;
  gap: 17px;
  align-items: center;
  padding: 20px 0 27px;
}
.portal-account-avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: #e9dcf8;
  border-radius: 50%;
  font-size: 26px;
  color: #8d60b9;
}
.portal-account-summary h3 {
  font-size: 20px;
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}
.portal-account-summary p {
  font-size: 12px;
  color: #a48ab3;
  margin: 0;
}
.portal-safety-note {
  background: #fff8e2;
  border: 1px solid #f4e9ba;
  border-radius: 13px;
  padding: 16px;
  font-size: 11px;
  line-height: 1.8;
  color: #a58a4b;
  margin-top: 25px;
}
.portal-auth {
  min-height: 65dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 50px;
  position: relative;
  overflow: hidden;
  border: 1px solid #e7dcf1;
  border-radius: 26px;
  background: linear-gradient(120deg, #f3e9ff, #f8fff9);
}
.portal-auth:after {
  content: '';
  position: absolute;
  right: -100px;
  bottom: -200px;
  width: 480px;
  height: 480px;
  border: 70px solid #dbc6ef;
  border-radius: 50%;
  opacity: 0.3;
  pointer-events: none;
}
.portal-auth-mark {
  font-size: 55px;
  margin-bottom: 23px;
}
.portal-auth .eyebrow {
  font-size: 10px;
  color: #a07ab8;
  margin-bottom: 15px;
}
.portal-auth h1 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.12;
  letter-spacing: -2px;
  margin-bottom: 22px;
  color: #382052;
}
.portal-auth p {
  font-size: 13px;
  line-height: 1.9;
  max-width: 470px;
  color: #9075a1;
  margin-bottom: 25px;
}
.portal-auth .button-wrap {
  z-index: 1;
}
.portal-shell #main:focus {
  outline: none;
}
.portal-shell footer {
  font-size: 9px;
  color: #b09abe;
}
.portal-shell .section-title h2 {
  font-size: 18px;
}
.portal-shell .form-control {
  min-width: 0;
}
@media (min-width: 1700px) {
  .portal-shell .workspace {
    padding-left: 44px;
    padding-right: 44px;
  }
  .portal-panel {
    padding: 27px;
  }
  .portal-kpi {
    padding: 25px;
  }
  .portal-page-heading h1 {
    font-size: 42px;
  }
  .portal-table td {
    padding: 18px 15px;
  }
}
@media (max-width: 1190px) {
  .portal-shell {
    grid-template-columns: 210px 1fr;
  }
  .portal-sidebar {
    width: 210px;
  }
  .portal-sidebar .brand strong {
    font-size: 18px;
  }
  .portal-sidebar .brand {
    margin-left: 2px;
  }
  .portal-shell .workspace {
    padding: 0 22px 20px;
  }
  .portal-topbar {
    gap: 10px;
  }
  .portal-topbar-actions {
    gap: 10px;
  }
  .portal-scope {
    display: none;
  }
  .portal-grid.wide {
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr);
  }
  .portal-kpi {
    padding: 17px;
  }
  .portal-kpi > div {
    gap: 7px;
  }
  .portal-kpi small {
    font-size: 10px;
  }
  .portal-page-heading {
    align-items: flex-start;
  }
  .portal-page-heading > .button-wrap {
    max-width: 220px;
  }
  .portal-toolbar {
    flex-wrap: wrap;
  }
  .portal-search {
    max-width: none;
    flex: 1;
    min-width: 180px;
  }
  .portal-class-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portal-donut {
    grid-template-columns: 100px 1fr;
  }
  .portal-donut svg {
    width: 100px;
    height: 100px;
  }
  .portal-panel {
    padding: 19px;
  }
}
@media (max-width: 950px) {
  .portal-grid.wide,
  .portal-grid.equal {
    grid-template-columns: 1fr;
  }
  .portal-grid.wide > div:nth-child(2) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .portal-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .portal-kpi > strong {
    font-size: 31px;
  }
  .portal-topbar {
    margin-bottom: 23px;
  }
  .portal-identity strong {
    max-width: 145px;
  }
  .portal-page-heading > .button-wrap {
    max-width: 190px;
  }
  .portal-class-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 650px) {
  .portal-shell {
    display: block;
  }
  .portal-sidebar {
    position: relative;
    top: auto;
    width: 100%;
    height: auto;
    padding: 14px 16px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .portal-sidebar .brand {
    margin: 0;
  }
  .portal-sidebar nav,
  .portal-sidebar-label,
  .portal-sidebar .ribbons {
    display: none;
  }
  .portal-sidebar-bottom {
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
  }
  .portal-sidebar-bottom a {
    display: none;
  }
  .portal-sidebar-bottom small {
    display: none;
  }
  .portal-sidebar-bottom button {
    font-size: 10px;
    border: 1px solid #ffffff40;
    border-radius: 8px;
    padding: 7px 9px;
  }
  .portal-shell .workspace {
    padding: 0 15px 25px;
  }
  .portal-topbar {
    min-height: 79px;
    margin-bottom: 13px;
    gap: 8px;
  }
  .portal-topbar > div:first-child {
    max-width: 47%;
  }
  .portal-breadcrumb {
    font-size: 10px;
  }
  .portal-breadcrumb > span {
    margin: 0 5px;
  }
  .portal-topbar > div:first-child small {
    font-size: 8px;
  }
  .portal-identity strong {
    max-width: 112px;
    font-size: 9px;
  }
  .portal-identity small {
    font-size: 8px;
  }
  .portal-identity > span {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
  .portal-topbar-actions {
    gap: 7px;
  }
  .portal-top-icon {
    width: 29px;
    height: 29px;
    font-size: 15px;
  }
  .portal-mobile-nav {
    display: flex;
    align-items: center;
    gap: 13px;
    background: #f0e7fa;
    border: 1px solid #e6d8f2;
    padding: 10px 13px;
    font-size: 10px;
    color: #9c7eb0;
    border-radius: 12px;
    margin-bottom: 24px;
  }
  .portal-mobile-nav select {
    flex: 1;
    background: white;
    border: 1px solid #deceeb;
    border-radius: 8px;
    padding: 8px;
    color: #704c8a;
    font-size: 12px;
    min-width: 0;
  }
  .portal-page-heading {
    display: block;
    margin-bottom: 20px;
  }
  .portal-page-heading h1 {
    font-size: 31px;
    letter-spacing: -1.3px;
    margin-top: 9px;
  }
  .portal-page-heading .eyebrow {
    font-size: 9px;
  }
  .portal-page-heading p {
    font-size: 11px;
    line-height: 1.8;
    margin-top: 12px;
  }
  .portal-page-heading > .button-wrap {
    max-width: none;
    justify-content: flex-start;
    margin-top: 17px;
  }
  .portal-page-heading .btn {
    font-size: 10px;
  }
  .portal-toolbar {
    padding: 13px;
    gap: 10px;
    margin-bottom: 18px;
  }
  .portal-search {
    min-width: 100%;
    width: 100%;
  }
  .portal-filters {
    gap: 8px;
    width: 100%;
    align-items: flex-start;
  }
  .portal-filters label {
    display: block;
    flex: 1;
    min-width: 80px;
    font-size: 8px;
  }
  .portal-filters select {
    display: block;
    width: 100%;
    max-width: none;
    margin-top: 5px;
    padding: 8px 5px;
    font-size: 9px;
  }
  .portal-kpis {
    gap: 11px;
    margin-bottom: 18px;
  }
  .portal-kpi {
    padding: 15px;
  }
  .portal-kpi small {
    font-size: 9px;
  }
  .portal-kpi > div {
    gap: 7px;
  }
  .portal-kpi .kpi-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    font-size: 16px;
    flex-shrink: 0;
  }
  .portal-kpi > strong {
    font-size: 30px;
  }
  .portal-kpi p {
    font-size: 8px;
  }
  .portal-panel {
    padding: 17px;
    border-radius: 15px;
    margin-bottom: 16px;
  }
  .portal-panel h2 {
    font-size: 16px;
  }
  .portal-panel-head {
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 17px;
  }
  .portal-panel-head p {
    font-size: 9px;
  }
  .portal-panel-head > .btn {
    font-size: 10px;
  }
  .portal-grid.wide > div:nth-child(2) {
    display: block;
  }
  .portal-panel-head .portal-legend {
    margin-left: auto;
  }
  .portal-class-grid,
  .portal-notes,
  .portal-system-grid {
    grid-template-columns: 1fr;
  }
  .portal-class {
    padding: 19px;
  }
  .portal-grid {
    gap: 0;
  }
  .portal-donut {
    grid-template-columns: 120px 1fr;
  }
  .portal-donut svg {
    width: 120px;
    height: 120px;
  }
  .portal-table {
    min-width: 580px;
  }
  .portal-table td {
    padding: 14px 10px;
  }
  .portal-table th {
    padding: 10px;
  }
  .portal-report-summary {
    gap: 14px;
  }
  .portal-report-summary p {
    font-size: 9px;
    flex: 1;
  }
  .portal-report-summary strong {
    font-size: 22px;
  }
  .portal-shell .button-wrap > .btn {
    flex: 0 1 auto;
    min-width: 0;
  }
  .portal-message {
    padding: 16px 6px;
    gap: 11px;
  }
  .portal-message > small {
    font-size: 8px;
  }
  .portal-auth {
    padding: 30px 23px;
    min-height: 60dvh;
  }
  .portal-auth h1 {
    font-size: 37px;
  }
  .portal-auth p {
    font-size: 12px;
  }
  .portal-auth .eyebrow {
    font-size: 8px;
  }
  .portal-account-summary h3 {
    font-size: 16px;
  }
  .portal-account-avatar {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
  }
  .portal-shell footer {
    font-size: 8px;
    margin-top: 20px;
  }
  .portal-shell #toast {
    bottom: 20px;
  }
}
@media print {
  .portal-sidebar,
  .portal-topbar,
  .portal-mobile-nav,
  .portal-toolbar,
  .portal-page-heading > .button-wrap,
  .portal-panel-head > .btn,
  .portal-shell footer {
    display: none !important;
  }
  .portal-shell {
    display: block;
  }
  .portal-shell .workspace {
    padding: 0;
    max-width: none;
  }
  .portal-kpis {
    grid-template-columns: repeat(4, 1fr);
  }
  .portal-grid.wide,
  .portal-grid.equal {
    grid-template-columns: 1fr;
  }
  .portal-grid.wide > div:nth-child(2) {
    display: block;
  }
  .portal-panel {
    break-inside: avoid;
    box-shadow: none;
  }
  .portal-table {
    min-width: 0;
    font-size: 9px;
  }
  .portal-table td,
  .portal-table th {
    font-size: 9px;
    padding: 8px;
  }
  .portal-panel a {
    color: #32194c;
    text-decoration: none;
  }
  .portal-page-heading h1 {
    font-size: 28px;
  }
}
/* Keep adult reporting text comfortably readable at normal desktop zoom. */
.portal-page-heading .eyebrow {
  display: block;
}
.portal-page-heading p {
  font-size: 13px;
}
.portal-sidebar .nav-link {
  font-size: 13px;
}
.portal-panel-head p {
  font-size: 11px;
}
.portal-kpi small {
  font-size: 12px;
}
.portal-kpi p {
  font-size: 11px;
}
.portal-kpi > strong {
  font-size: 36px;
}
.portal-table th {
  font-size: 11px;
}
.portal-table td,
.portal-table td strong {
  font-size: 12px;
}
.portal-table td small {
  font-size: 10px;
}
.portal-status {
  font-size: 10px;
}
.portal-bar > div:first-child,
.portal-bar > div:first-child strong {
  font-size: 12px;
}
.portal-bar > small {
  font-size: 10px;
}
.portal-checklist strong {
  font-size: 12px;
}
.portal-checklist small {
  font-size: 10px;
}
.portal-tip p {
  font-size: 12px;
}
.portal-shell .btn {
  font-size: 12px;
}
.portal-shell .btn.small {
  font-size: 11px;
}
.portal-topbar > div:first-child small {
  font-size: 10px;
}
.portal-identity strong {
  font-size: 12px;
}
.portal-donut p {
  font-size: 11px;
}
.portal-topbar {
  overflow: hidden;
}
.portal-shell .workspace {
  min-width: 0;
}
@media (max-width: 650px) {
  .portal-page-heading p {
    font-size: 12px;
  }
  .portal-kpi small {
    font-size: 10px;
  }
  .portal-kpi p {
    font-size: 9px;
  }
  .portal-kpi > strong {
    font-size: 30px;
  }
  .portal-filters select {
    font-size: 11px;
  }
  .portal-filters label {
    font-size: 10px;
  }
  .portal-identity strong {
    font-size: 10px;
    max-width: 105px;
  }
  .portal-identity small {
    font-size: 9px;
  }
  .portal-topbar > div:first-child small {
    font-size: 9px;
  }
  .portal-panel-head p {
    font-size: 10px;
  }
  .portal-page-heading .btn {
    font-size: 10px;
  }
  .portal-toolbar {
    min-width: 0;
  }
}
.portal-filters .portal-test-toggle {
  min-width: 180px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: normal;
}
.portal-test-toggle input {
  accent-color: #6940b2;
  width: 14px;
  height: 14px;
  margin: 0;
}
.portal-message-body {
  max-height: 50dvh;
  overflow: auto;
}
.learner-homework {
  margin-top: 22px;
  background: linear-gradient(130deg, #fffdf5, #f6efff);
}
.learner-homework .section-title h2 {
  margin-top: 7px;
}
.homework-list {
  display: grid;
  gap: 12px;
}
.homework-list article {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px;
  background: #ffffffc9;
  border: 1px solid #e9def3;
  border-radius: 16px;
}
.homework-list article > div {
  flex: 1;
}
.homework-list strong {
  display: block;
  font-size: 16px;
  color: #331b56;
}
.homework-list small {
  display: block;
  color: #927aab;
  font-size: 11px;
  margin-top: 4px;
}
.homework-list p {
  font-size: 12px;
  color: #877197;
  margin: 8px 0 0;
}
.homework-list .subject-icon {
  flex-shrink: 0;
}
@media (max-width: 650px) {
  .homework-list article {
    flex-wrap: wrap;
    gap: 12px;
  }
  .homework-list article > div {
    min-width: 65%;
  }
  .homework-list article > .btn {
    margin-left: auto;
  }
  .homework-list strong {
    font-size: 14px;
  }
  .homework-list small {
    font-size: 10px;
  }
}
.teacher-quick{display:flex;gap:10px;margin:12px 0;}.teacher-quick button{flex:1;min-height:54px;border:2px solid #ab91c7;border-radius:14px;background:#fff9e7;color:#35204f;font-size:1.5rem;cursor:pointer;}.teacher-quick small{font-size:.8rem;display:block;}.teacher-visual{display:block;font-size:1.6rem;margin-top:8px;}.teacher-conversation .chat-log{max-height:260px;overflow:auto;}.teacher-conversation .bubble{line-height:1.5;font-size:1rem;}
.enrolment-form{display:grid;gap:16px;max-width:760px;margin:20px 0;}.enrolment-form label{display:grid;gap:7px;}.enrolment-form input:not([type=checkbox]),.enrolment-form select,.enrolment-form textarea{width:100%;padding:12px;border:1px solid #a68cc0;border-radius:10px;background:white;color:#35204f;}.enrolment-form fieldset{border:1px solid #d0bfe0;border-radius:14px;padding:18px;display:grid;gap:12px;}.enrolment-form legend{font-weight:700;}.enrolment-existing{max-height:260px;overflow:auto;}.enrolment-existing label{display:block;margin:12px 0;}.enrolment-price,.enrolment-invoice{padding:22px;margin:18px 0;border:1px solid #cbb8dd;border-radius:18px;}.enrolment-payment{padding:12px;border-top:1px solid #dacde6;margin-top:14px;}.enrolment-page>.card{margin-bottom:24px;}
.profile-teaching{display:grid;gap:12px;margin-top:18px;}.teacher-quick{flex-wrap:wrap;}.teacher-quick button{min-width:55px;}
