@font-face {
  font-family: Avenir;
  src: url("/brand/fonts/AvenirLTStd-Book.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Avenir;
  src: url("/brand/fonts/AvenirLTStd-Heavy.otf") format("opentype");
  font-weight: 700 900;
  font-display: swap;
}
:root {
  --purple: #6a4c93;
  --purple-dark: #50366f;
  --purple-light: #f1eef6;
  --purple-mid: #d6cce4;
  --green: #8bc34a;
  --ink: #282536;
  --muted: #797584;
  --line: #eae6ee;
  --paper: #faf9fc;
  --cream: #fef9f0;
  --white: #fff;
  --coral: #f66a58;
  --sky: #99dff9;
  --radius: 18px;
  --shadow: 0 5px 24px #33244306;
  color-scheme: light;
  font-family: Avenir, "Segoe UI", sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--purple);
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.22;
}
h1 {
  font-size: clamp(28px, 3vw, 39px);
  letter-spacing: -1.2px;
  margin-bottom: 12px;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.55px;
  margin-bottom: 12px;
}
h3 {
  font-size: 19px;
  letter-spacing: -0.3px;
}
h4 {
  font-size: 17px;
}
p {
  line-height: 1.7;
}
small {
  font-size: 12px;
}
.icon {
  flex-shrink: 0;
  vertical-align: middle;
}
.muted,
.text-secondary {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.75px;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 12px;
  line-height: 1.6;
}
.hello-dot {
  color: var(--green);
}
.button-row,
.form-actions,
.tag-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.form-actions {
  margin-top: 22px;
}
.btn {
  border: 1px solid transparent;
  border-radius: 9px;
  min-height: 43px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  line-height: 1.3;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 3px 8px #6a4c9320;
}
.btn-primary:hover {
  background: var(--purple-dark);
  color: #fff;
}
.btn-secondary {
  background: #fff;
  border-color: var(--purple-mid);
  color: var(--purple);
}
.btn-secondary:hover {
  background: var(--purple-light);
}
.btn-ghost {
  background: transparent;
  color: var(--purple);
}
.btn-ghost:hover {
  background: var(--purple-light);
}
.btn-danger {
  background: #b83c34;
  color: #fff;
}
.btn-small {
  min-height: 34px;
  padding: 8px 12px;
  font-size: 12px;
}
.full-width {
  width: 100%;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}
.text-link .icon {
  width: 16px;
  height: 16px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 25px;
  color: var(--muted);
}
.back-link:hover {
  color: var(--purple);
}
.badge,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--purple);
  background: var(--purple-light);
}
.badge-green {
  background: #edf5e5;
  color: #4b772a;
}
.badge-draft {
  background: #fff4dc;
  color: #8d6821;
}
.tag-row {
  font-size: 12px;
  margin-top: 18px;
}
.tag-row > .icon {
  width: 16px;
}
.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.6;
}
.notice-error {
  background: #fff0ef;
  border: 1px solid #f5c8c4;
  color: #96362d;
}
.notice-success {
  background: #eff6e8;
  border: 1px solid #d5e6c6;
  color: #4b702f;
}
.notice-info {
  background: #eff4fc;
  border: 1px solid #d8e3f4;
  color: #3e6085;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 1000;
  background: var(--purple);
  color: white;
  padding: 14px;
}
.skip-link:focus {
  top: 8px;
}
:focus-visible {
  outline: 3px solid #a28cc2;
  outline-offset: 4px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 230px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 33px 21px 20px;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 3px;
}
.brand img {
  width: 155px;
  height: 65px;
  object-fit: contain;
}
.brand > span {
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--muted);
  font-weight: 700;
}
.workspace-label {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #aaa3b3;
  font-weight: 700;
  margin: 46px 13px 16px;
}
.main-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.main-nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 46px;
  padding: 12px 15px;
  border-radius: 9px;
  color: #777080;
  font-size: 13px;
}
.main-nav a:hover {
  background: var(--paper);
  color: var(--purple);
}
.main-nav a.active {
  background: var(--purple-light);
  color: var(--purple);
  font-weight: 700;
}
.main-nav .icon {
  width: 19px;
  height: 19px;
}
.sidebar-note {
  margin: 65px 1px 24px;
  padding: 50px 14px 16px;
  background: var(--cream);
  border: 1px solid #f3eadb;
  border-radius: 14px;
  position: relative;
  text-align: center;
}
.sidebar-note img {
  position: absolute;
  height: 70px;
  max-width: 85px;
  object-fit: contain;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
}
.sidebar-note strong {
  font-size: 16px;
}
.sidebar-note p {
  font-size: 11px;
  color: #92836f;
  line-height: 1.65;
  margin: 7px 0 0;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.sidebar-bottom a,
.sidebar-bottom button {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8c8594;
  font-size: 12px;
  background: none;
  border: 0;
  padding: 10px 12px;
}
.sidebar-bottom button:hover,
.sidebar-bottom a:hover {
  color: var(--purple);
}
.sidebar-bottom .icon {
  width: 17px;
  height: 17px;
}
.workspace {
  margin-left: 230px;
  min-width: 0;
  width: calc(100% - 230px);
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 91px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  gap: 20px;
}
.topbar-title {
  font-size: 11px;
  color: #98909f;
}
.topbar-title strong {
  color: #696171;
  font-weight: 400;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}
.user-chip strong {
  font-size: 12px;
  display: block;
}
.user-chip small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: #f0eaf5;
  color: var(--purple);
  font-size: 12px;
  font-weight: 700;
}
.demo-badge {
  font-size: 10px;
  color: #8b7f91;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 50px;
}
.page-content {
  padding: 36px 42px 60px;
  max-width: 1540px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.page-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 0;
}
.date-label {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 11px;
  color: var(--muted);
}
.date-label .icon {
  width: 15px;
}
.welcome-hero {
  background: #f7f0e4;
  border: 1px solid #f0e7d8;
  border-radius: 20px;
  min-height: 315px;
  display: flex;
  position: relative;
  overflow: hidden;
  margin-bottom: 27px;
}
.hero-copy {
  padding: 33px 39px;
  width: 65%;
  z-index: 2;
}
.hero-copy .pill {
  background: #ffffffa6;
  color: #8c7151;
  border: 1px solid #eae0d1;
  border-radius: 30px;
  font-size: 9px;
  padding: 5px 10px;
}
.hero-copy .pill .icon {
  width: 12px;
  height: 12px;
}
.hero-copy h2 {
  font-size: clamp(26px, 3.2vw, 42px);
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin: 18px 0 15px;
}
.hero-copy h2 span {
  color: var(--purple);
}
.hero-copy p {
  color: #8d8074;
  max-width: 360px;
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.hero-art {
  position: absolute;
  right: 0;
  width: 40%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art img {
  max-height: 240px;
  max-width: 230px;
  object-fit: contain;
  z-index: 2;
  transform: rotate(4deg);
  filter: drop-shadow(0 10px 15px #8b735425);
}
.art-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed #d6c4a8;
  transform: rotate(-15deg);
  width: 240px;
  height: 240px;
}
.orbit-two {
  width: 300px;
  height: 180px;
  transform: rotate(35deg);
}
.art-spark {
  position: absolute;
  font-size: 38px;
  color: #d4b078;
}
.spark-one {
  right: 30px;
  top: 32px;
}
.spark-two {
  left: 6px;
  bottom: 60px;
  font-size: 26px;
  color: var(--purple);
}
.art-caption {
  position: absolute;
  bottom: 18px;
  font-size: 10px;
  color: #a08a70;
  transform: rotate(-4deg);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 21px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.stat-card > .icon {
  margin-left: auto;
  width: 16px;
  color: #bab1c2;
}
.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lavender {
  background: #efe9f6;
  color: var(--purple);
}
.mint {
  background: #eef5e7;
  color: #7a9f50;
}
.peach {
  background: #fcf0e5;
  color: #c2945d;
}
.stat-card strong {
  display: block;
  font-size: 26px;
  line-height: 1.1;
}
.stat-card div > span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-top: 7px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 22px;
}
.section-heading .eyebrow {
  margin-bottom: 5px;
}
.section-heading h2 {
  margin: 0;
  font-size: 22px;
}
.unit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.unit-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  display: block;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.18s;
}
.unit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px #3524440f;
}
.unit-art {
  height: 183px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  overflow: hidden;
}
.unit-art:after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border: 1px dashed #ffffffb0;
  right: -50px;
  bottom: -80px;
  border-radius: 50%;
}
.unit-art img {
  height: 125px;
  max-width: 80%;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px #38244b12);
  transition: transform 0.2s;
}
.unit-card:hover img {
  transform: rotate(-3deg) scale(1.03);
}
.grade-chip {
  position: absolute;
  top: 15px;
  left: 16px;
  font-size: 9px;
  letter-spacing: 0.8px;
  font-weight: 700;
  color: #6d626f;
  background: #ffffffb8;
  border-radius: 5px;
  padding: 5px 8px;
}
.tint-lavender {
  background: #eee8f4;
}
.tint-mint {
  background: #edf2e3;
}
.tint-sky {
  background: #e3f1f3;
}
.unit-card-body {
  padding: 23px;
}
.unit-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #a199aa;
  font-size: 9px;
  letter-spacing: 1px;
  margin-bottom: 13px;
}
.unit-meta .badge {
  font-size: 8px;
  letter-spacing: 0;
  padding: 3px 7px;
}
.unit-card h3 {
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 12px;
}
.unit-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  min-height: 40px;
  margin-bottom: 19px;
}
.unit-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1eef4;
  padding-top: 15px;
  color: #99919f;
  font-size: 10px;
  gap: 12px;
}
.unit-card-footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.unit-card-footer .icon {
  width: 14px;
  height: 14px;
}
.circle-link {
  background: var(--purple-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--purple);
}
.dashboard-bottom {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 27px;
  box-shadow: var(--shadow);
  margin-bottom: 23px;
}
.panel .section-heading h2 {
  font-size: 18px;
}
.class-row {
  display: flex;
  gap: 13px;
  align-items: center;
  color: var(--ink);
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.class-row > .icon {
  margin-left: auto;
  width: 16px;
  color: #a99bb6;
}
.class-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #edf5e5;
  color: #82a455;
  display: flex;
  align-items: center;
  justify-content: center;
}
.class-row strong {
  font-size: 12px;
  display: block;
}
.class-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.discovery-note {
  background: #f0edf6;
  border: 1px solid #e8e2f0;
  border-radius: 14px;
  display: flex;
  gap: 16px;
  padding: 27px;
  margin-bottom: 23px;
}
.discovery-note > .icon {
  color: #a78dbb;
  width: 26px;
  height: 26px;
}
.discovery-note h3 {
  font-size: 18px;
}
.discovery-note p {
  font-size: 12px;
  color: #91859d;
  line-height: 1.8;
}
.app-footer {
  padding: 0 42px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: #a69daf;
}
.filter-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 26px;
}
.search-input {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
}
.search-input .icon {
  color: #a798b7;
  width: 18px;
}
.search-input input {
  border: 0;
  padding: 8px;
  box-shadow: none;
  background: none;
  font-size: 12px;
  width: 100%;
}
.inline-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.inline-label select {
  margin: 0;
  min-height: 36px;
  padding: 7px 25px 7px 10px;
  min-width: 110px;
}
.result-count {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
label {
  display: block;
  font-weight: 700;
  font-size: 12px;
  color: #5d5267;
  margin-bottom: 9px;
}
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #ded7e5;
  border-radius: 8px;
  min-height: 43px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  margin: 7px 0 15px;
  max-width: 100%;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--purple);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin: 0;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.form-panel {
  max-width: 850px;
}
.form-panel label {
  margin-top: 10px;
}
.empty-state {
  padding: 60px 25px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--purple-mid);
  border-radius: 15px;
  margin: 25px 0;
}
.empty-state > .icon {
  width: 40px;
  height: 40px;
  color: #b3a2c7;
  margin-bottom: 20px;
}
.empty-state img {
  height: 130px;
  object-fit: contain;
  margin-bottom: 20px;
}
.empty-state h2,
.empty-state h3 {
  color: var(--ink);
  font-size: 21px;
}
.empty-state p {
  font-size: 13px;
}
.unit-overview-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cream);
  border: 1px solid #eee5d6;
  border-radius: 18px;
  padding: 35px;
  margin-bottom: 30px;
  gap: 35px;
}
.unit-overview-hero > div {
  max-width: 70%;
}
.unit-overview-hero p:not(.eyebrow) {
  color: #8d8074;
  font-size: 13px;
}
.unit-overview-hero > img {
  max-width: 200px;
  max-height: 170px;
  object-fit: contain;
}
.lesson-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lesson-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 25px;
}
.lesson-number {
  width: 43px;
  height: 43px;
  border-radius: 10px;
  background: var(--purple-light);
  color: #a08ab8;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 19px;
  font-weight: 700;
  flex-shrink: 0;
}
.lesson-info {
  flex: 1;
}
.lesson-info h3 {
  font-size: 18px;
  margin-bottom: 7px;
}
.lesson-info p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.lesson-info small {
  color: #a095aa;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #21172e66;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 25px;
  backdrop-filter: blur(3px);
}
.modal-card {
  background: #fff;
  border-radius: 18px;
  padding: 32px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 80px #21172e33;
}
.modal-wide {
  max-width: 800px;
}
.modal-card p {
  font-size: 13px;
  color: var(--muted);
}
.modal-card label {
  margin-top: 15px;
}
.modal-card .notice p {
  margin: 0;
}
.builder-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 25px;
}
.page-sidebar {
  align-self: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  position: sticky;
  top: 20px;
}
.page-sidebar > .eyebrow {
  font-size: 9px;
}
.page-tab {
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 9px;
  row-gap: 5px;
  width: 100%;
  border: 1px solid transparent;
  background: #fff;
  text-align: left;
  padding: 12px 9px;
  border-radius: 8px;
  margin-bottom: 7px;
  color: var(--muted);
}
.page-tab > span {
  grid-row: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  background: #f6f3f8;
  border-radius: 5px;
  font-size: 10px;
}
.page-tab strong {
  font-size: 11px;
  line-height: 1.6;
}
.page-tab small {
  font-size: 9px;
  color: #b1a5bb;
}
.page-tab.selected {
  background: var(--purple-light);
  border-color: #e0d6eb;
  color: var(--purple);
}
.add-page {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 17px;
}
.add-page label {
  font-size: 10px;
}
.add-page input {
  font-size: 11px !important;
  padding: 8px !important;
}
.add-page .btn {
  font-size: 10px;
  min-height: 34px;
  padding: 7px;
  width: 100%;
}
.canvas-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0 20px;
}
.canvas-heading h2 {
  margin: 0;
  font-size: 23px;
}
.canvas-heading > .muted {
  font-size: 11px;
}
.builder-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 20px;
  overflow: hidden;
}
.block-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 17px;
  border-bottom: 1px solid #f0ecf5;
  background: #fdfcfe;
}
.block-type {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  font-weight: 700;
  color: #a294ae;
}
.block-type .icon {
  width: 15px;
  height: 15px;
}
.block-actions {
  display: flex;
  gap: 5px;
}
.icon-button {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: transparent;
  color: #a195aa;
}
.icon-button:hover {
  background: var(--purple-light);
  color: var(--purple);
}
.icon-button .icon {
  width: 16px;
  height: 16px;
}
.icon-button.danger:hover {
  background: #ffeded;
  color: #c14a42;
}
.block-body {
  padding: 25px 28px;
}
.block-move {
  padding: 8px 17px;
  border-top: 1px solid var(--line);
  font-size: 10px;
}
.block-move label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 10px;
  color: var(--muted);
}
.block-move select {
  width: auto;
  min-height: 28px;
  padding: 5px;
  font-size: 10px;
  margin: 0;
}
.lesson-prose {
  font-size: 15px;
  line-height: 1.9;
  color: #61586a;
}
.lesson-prose h2 {
  font-size: 25px;
  color: var(--ink);
  margin: 5px 0 20px;
}
.lesson-prose h3 {
  color: var(--ink);
}
.lesson-prose p:last-child {
  margin-bottom: 0;
}
.lesson-image {
  margin: 0;
  text-align: center;
  background: #fbfafc;
  border-radius: 10px;
  padding: 25px;
}
.lesson-image img {
  max-width: 100%;
  max-height: 330px;
  object-fit: contain;
}
.lesson-image figcaption {
  font-size: 12px;
  color: var(--muted);
  margin: 15px 0 0;
  line-height: 1.7;
}
.add-block-panel {
  border: 1px dashed #d7c9e3;
  border-radius: 13px;
  background: #f6f3fa;
  padding: 23px;
  text-align: center;
}
.add-block-panel > p {
  color: #9c8baa;
  font-size: 12px;
  margin-bottom: 20px;
}
.block-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.block-picker button {
  background: #fff;
  border: 1px solid #e6dfed;
  min-width: 64px;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: center;
  padding: 12px 9px;
  color: #8c76a3;
  font-size: 9px;
}
.block-picker button:hover {
  background: var(--purple-light);
  border-color: var(--purple);
}
.block-picker .icon {
  width: 20px;
  height: 20px;
}
.rich-editor .ck-editor__editable {
  min-height: 230px;
  max-height: 400px;
}
.ck.ck-editor {
  --ck-color-focus-border: var(--purple);
  --ck-color-base-border: #ded7e5;
  --ck-font-face: Avenir, sans-serif;
  --ck-border-radius: 7px;
}
.upload-zone {
  padding: 25px;
  border: 1px dashed #cdbddd;
  border-radius: 10px;
  background: var(--purple-light);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-direction: column;
  color: var(--purple);
}
.upload-zone input[type="file"] {
  margin: 8px 0 0 !important;
  font-size: 11px !important;
  background: #fff;
}
.upload-zone small {
  color: var(--muted);
  font-weight: 400;
}
.author-question-group {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 18px;
}
.author-question-group h4 {
  color: #8a739f;
  font-size: 13px;
}
.author-question {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.author-question > .badge {
  margin-bottom: 10px;
}
.author-question > strong {
  display: block;
  font-size: 13px;
  margin-bottom: 15px;
  line-height: 1.7;
}
.author-choice {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 9px;
}
.author-choice .icon {
  width: 14px;
  height: 14px;
}
.author-choice.correct {
  color: #6e963d;
}
.choice-editor {
  display: flex;
  align-items: center;
  gap: 10px;
}
.choice-editor input:not([type="checkbox"]) {
  margin: 5px 0;
}
.class-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.class-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}
.class-card-art {
  height: 165px;
  background: #edf3e4;
  position: relative;
  text-align: center;
  padding: 20px;
}
.class-card-art img {
  height: 125px;
  max-width: 90%;
  object-fit: contain;
}
.class-card-body {
  padding: 25px;
}
.class-card-body h2 {
  font-size: 21px;
}
.class-card-body p {
  font-size: 12px;
  color: var(--muted);
}
.class-code {
  padding: 15px;
  background: #f7f5fa;
  border-radius: 8px;
  margin: 20px 0;
}
.class-code small {
  display: block;
  color: var(--muted);
  letter-spacing: 1px;
  font-size: 8px;
}
.class-code strong {
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--purple);
  display: block;
  margin-top: 8px;
}
.classroom-code {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}
.classroom-code h2 {
  font-size: 22px;
}
.classroom-code p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.classroom-code > strong {
  padding: 18px 25px;
  background: var(--purple-light);
  border-radius: 10px;
  letter-spacing: 4px;
  color: var(--purple);
  font-size: 22px;
}
.join-form {
  display: flex;
  align-items: center;
  gap: 20px;
}
.join-form > div {
  flex: 1;
}
.join-form h3 {
  margin-bottom: 7px;
}
.join-form p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.join-form > input {
  max-width: 180px;
  margin: 0 !important;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9f94aa;
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 20px 15px;
  border-bottom: 1px solid #f2eef6;
  line-height: 1.6;
}
td:first-child {
  padding-left: 0;
}
tr:last-child td {
  border-bottom: 0;
}
td strong {
  font-size: 12px;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.mini-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--purple-light);
  color: var(--purple);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
  font-size: 11px;
}
.progress-track {
  height: 6px;
  background: #eee8f5;
  border-radius: 8px;
  overflow: hidden;
  min-width: 90px;
}
.progress-track > span {
  height: 100%;
  display: block;
  background: #a6bf7b;
  border-radius: 8px;
}
.lesson-intro {
  max-width: 850px;
  margin: 15px auto 30px;
}
.lesson-intro h1 {
  font-size: 39px;
}
.lesson-intro > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.lesson-reading {
  max-width: 850px;
  margin: 0 auto;
}
.learning-page {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  margin: 25px 0;
}
.learning-page-heading {
  padding: 25px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: #fefdfd;
}
.learning-page-heading h2 {
  margin: 0;
  font-size: 22px;
}
.learning-block {
  padding: 30px 35px;
}
.learning-block + .learning-block {
  border-top: 1px solid #f3eff6;
}
.learning-block .lesson-image {
  background: #f7f7f1;
}
.assessment-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}
.assessment-heading h2 {
  margin: 0;
  font-size: 23px;
}
.learning-group > h3 {
  color: #9a8ba9;
  font-size: 13px;
  margin: 25px 0;
}
.response-editor,
.preview-question {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 20px 0;
}
.question-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 15px;
}
.response-editor h4,
.preview-question h4 {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.answer-choice {
  font-size: 13px;
  line-height: 1.7;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 9px 0;
  cursor: pointer;
  font-weight: 400;
  color: #776880;
}
.answer-choice:hover {
  background: #fcfaff;
}
.answer-choice.selected {
  background: var(--purple-light);
  border-color: #b7a2cc;
  color: var(--purple);
}
.saved-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #84a35d;
}
.saved-label .icon {
  width: 14px;
  height: 14px;
}
.response-footer {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.teacher-feedback {
  padding: 12px 15px;
  background: var(--cream);
  border-radius: 8px;
  font-size: 12px;
  width: 100%;
  margin: 0;
}
.lesson-progress {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 850px;
  margin: 0 auto;
  font-size: 12px;
  color: var(--muted);
}
.lesson-progress .progress-track {
  flex: 1;
}
.submission-panel {
  max-width: 850px;
  margin: 25px auto;
  padding: 30px;
  background: #f0edf6;
  border: 1px solid #e1d8eb;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.submission-panel h2 {
  font-size: 21px;
}
.submission-panel p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.submission-panel .btn {
  flex-shrink: 0;
}
.preview-choice {
  padding: 12px 15px;
  border: 1px solid var(--line);
  margin: 8px 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.choice-circle {
  width: 16px;
  height: 16px;
  border: 1px solid #c6b6d6;
  border-radius: 50%;
  display: inline-block;
}
.preview-writing {
  padding: 40px 20px;
  border: 1px dashed var(--purple-mid);
  color: #b1a2bf;
  border-radius: 8px;
  font-size: 13px;
}
.audio-block audio {
  width: 100%;
  margin: 15px 0;
}
.audio-block details {
  font-size: 13px;
  line-height: 1.8;
}
.audio-block summary {
  color: var(--purple);
  cursor: pointer;
}
.document-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: var(--purple-light);
  border-radius: 9px;
  font-size: 14px;
}
.embed-block iframe,
.document-block iframe {
  border: 0;
  border-radius: 10px;
  width: 100%;
  aspect-ratio: 16/10;
  margin-top: 18px;
}
.document-block iframe {
  aspect-ratio: 4/5;
}
.grading-card {
  max-width: 900px;
}
.grading-card h2 {
  font-size: 20px;
  line-height: 1.6;
}
.student-answer {
  padding: 20px 25px;
  background: #f9f7fb;
  border-radius: 10px;
  margin-bottom: 23px;
}
.student-answer small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #b09ac2;
}
.student-answer p {
  margin: 10px 0 0;
  font-size: 14px;
  white-space: pre-wrap;
}
.grading-card .form-grid {
  grid-template-columns: 160px 1fr;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}
.login-story {
  background: var(--cream);
  padding: 38px 55px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.login-story:after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border: 1px dashed #e7d9c3;
  border-radius: 50%;
  bottom: -400px;
  left: -150px;
  pointer-events: none;
}
.login-story .brand {
  align-self: flex-start;
}
.login-story-copy {
  margin: auto 0;
  padding: 45px 0 15px;
  position: relative;
}
.login-story-copy h1 {
  font-size: clamp(35px, 4vw, 56px);
  letter-spacing: -1.7px;
  line-height: 1.15;
}
.login-story-copy h1 span {
  color: var(--purple);
}
.login-story-copy > p:not(.eyebrow) {
  color: #9b8c79;
  max-width: 360px;
  font-size: 14px;
}
.login-owl {
  height: 200px;
  max-width: 240px;
  object-fit: contain;
  display: block;
  margin: 30px auto 0;
  transform: rotate(4deg);
  filter: drop-shadow(0 10px 15px #8b735425);
}
.login-story > small {
  font-size: 10px;
  color: #b3a38c;
  margin-top: 25px;
}
.login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 55px;
}
.login-form {
  width: 100%;
  max-width: 380px;
}
.login-form h2 {
  font-size: 36px;
  letter-spacing: -1.2px;
}
.login-form > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 26px;
}
.login-form label {
  margin: 22px 0 7px;
}
.login-form input:not([type="checkbox"]) {
  min-height: 49px;
}
.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  margin: 17px 0 28px;
}
.login-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.login-form .btn-primary {
  min-height: 49px;
}
.demo-signin {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 26px;
  text-align: center;
}
.demo-signin > span {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #b1a2bf;
  font-weight: 700;
}
.demo-signin > p {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0;
}
.demo-actions {
  display: flex;
  gap: 9px;
  justify-content: center;
}
.demo-actions .btn {
  font-size: 11px;
  padding: 9px 12px;
  min-height: 38px;
}
.demo-actions .icon {
  width: 14px;
  height: 14px;
}
.demo-signin > small {
  font-size: 9px;
  color: #b5a8c0;
  display: block;
  margin-top: 13px;
}
.login-register {
  font-size: 11px !important;
  text-align: center;
  margin: 27px 0 0 !important;
}
.public-main:has(.login-page) {
  padding: 0;
}
.public-main:not(:has(.login-page)) {
  max-width: 900px;
  margin: 50px auto;
  padding: 30px;
  background: #fff;
  border-radius: 15px;
}
.public-main .form-control {
  width: 100%;
}
.public-main .row {
  display: flex;
  gap: 35px;
}
.public-main .row > div {
  flex: 1;
}
.text-danger,
.validation-message {
  color: #a94037;
  font-size: 12px;
}
.valid.modified:not([type="checkbox"]) {
  outline: 1px solid #8bc34a;
}
.invalid {
  outline: 1px solid #c34e45;
}
#blazor-error-ui {
  background: #fff4dc;
  bottom: 0;
  box-shadow: 0 -1px 2px #0003;
  display: none;
  left: 0;
  padding: 12px 24px;
  position: fixed;
  width: 100%;
  z-index: 1000;
  font-size: 13px;
}
#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 16px;
  top: 12px;
}
.loading-state {
  padding: 40px;
  text-align: center;
  color: var(--muted);
}
.mb-3 {
  margin-bottom: 16px;
}
.mt-3 {
  margin-top: 16px;
}
.mt-4 {
  margin-top: 24px;
}
.d-flex {
  display: flex;
}
.flex-column {
  flex-direction: column;
}
.gap-2 {
  gap: 12px;
}
.nav {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.nav-link {
  display: block;
  padding: 9px;
}
.form-floating label {
  margin: 8px 0;
}
.row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.row > div {
  flex: 1;
}
.form-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (min-width: 1500px) {
  .page-content {
    padding-top: 45px;
  }
  .welcome-hero {
    min-height: 350px;
  }
  .hero-copy {
    padding: 40px 45px;
  }
  .hero-art img {
    max-height: 270px;
    max-width: 270px;
  }
  .unit-art {
    height: 210px;
  }
  .unit-art img {
    height: 150px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 205px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .workspace {
    margin-left: 205px;
    width: calc(100% - 205px);
  }
  .topbar {
    padding: 0 27px;
  }
  .topbar-title {
    display: none;
  }
  .topbar-right {
    margin-left: auto;
  }
  .page-content {
    padding: 30px 27px 45px;
  }
  .app-footer {
    padding: 0 27px 20px;
  }
  .hero-copy {
    padding: 30px;
    width: 66%;
  }
  .hero-art img {
    max-width: 175px;
    max-height: 200px;
  }
  .hero-copy h2 {
    font-size: 34px;
  }
  .hero-copy p {
    max-width: 290px;
  }
  .unit-card-body {
    padding: 20px;
  }
  .unit-card h3 {
    font-size: 17px;
  }
  .stats-grid {
    gap: 14px;
  }
  .stat-card {
    padding: 17px;
    gap: 12px;
  }
  .stat-card strong {
    font-size: 23px;
  }
  .stat-card .stat-icon {
    width: 39px;
    height: 39px;
  }
  .unit-grid {
    gap: 16px;
  }
  .date-label {
    display: none;
  }
  .lesson-row {
    flex-wrap: wrap;
  }
  .lesson-row > .button-row {
    margin-left: 65px;
  }
  .builder-layout {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 18px;
  }
}
@media (max-width: 950px) {
  .sidebar {
    width: 185px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .workspace {
    margin-left: 185px;
    width: calc(100% - 185px);
  }
  .brand img {
    width: 138px;
  }
  .brand > span {
    font-size: 7px;
  }
  .workspace-label {
    font-size: 8px;
  }
  .main-nav a {
    font-size: 12px;
    gap: 10px;
  }
  .page-content {
    padding: 27px 23px 40px;
  }
  .stats-grid {
    gap: 10px;
  }
  .stat-card {
    padding: 15px;
    gap: 9px;
  }
  .stat-card .stat-icon {
    width: 34px;
    height: 34px;
  }
  .stat-card div > span {
    font-size: 9px;
  }
  .stat-card > .icon {
    display: none;
  }
  .unit-grid,
  .class-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-copy h2 {
    font-size: 31px;
  }
  .hero-art img {
    max-width: 155px;
  }
  .hero-copy {
    padding: 26px;
  }
  .hero-copy p {
    max-width: 240px;
    font-size: 11px;
  }
  .welcome-hero {
    min-height: 320px;
  }
  .hero-copy .pill {
    font-size: 8px;
  }
  .hero-art .art-orbit {
    width: 180px;
    height: 180px;
  }
  .orbit-two {
    display: none;
  }
  .art-caption {
    display: none;
  }
  .dashboard-bottom {
    grid-template-columns: 1fr;
  }
  .discovery-note {
    margin-top: -10px;
  }
  .section-heading {
    flex-wrap: wrap;
  }
  .filter-bar {
    flex-wrap: wrap;
  }
  .search-input {
    min-width: 200px;
  }
  .result-count {
    margin-left: auto;
  }
  .unit-overview-hero {
    padding: 28px;
  }
  .unit-overview-hero > img {
    max-width: 140px;
  }
  .unit-overview-hero h1 {
    font-size: 30px;
  }
  .builder-layout {
    grid-template-columns: 1fr;
  }
  .page-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
  }
  .page-sidebar > .eyebrow {
    width: 100%;
    margin: 0;
  }
  .page-tab {
    width: auto;
    max-width: 180px;
    margin: 0;
  }
  .add-page {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    margin-top: 4px;
  }
  .add-page label {
    display: none;
  }
  .add-page input {
    margin: 0 !important;
    flex: 1;
  }
  .add-page .btn {
    width: auto;
  }
  .modal-card {
    padding: 25px;
  }
  .join-form {
    flex-wrap: wrap;
  }
  .join-form > div {
    width: 100%;
    flex: auto;
  }
  .classroom-code {
    flex-wrap: wrap;
  }
  .classroom-code > strong {
    width: 100%;
    text-align: center;
  }
  .login-story {
    padding: 30px;
  }
  .login-form-wrap {
    padding: 35px;
  }
  .login-story-copy h1 {
    font-size: 36px;
  }
  .login-story-copy p {
    font-size: 12px;
  }
  .login-owl {
    height: 170px;
  }
  .submission-panel {
    flex-wrap: wrap;
  }
  .grading-card .form-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    padding: 14px 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    align-self: flex-start;
    gap: 0;
  }
  .sidebar .brand img {
    height: 40px;
    width: 130px;
  }
  .sidebar .brand > span {
    display: none;
  }
  .workspace-label,
  .sidebar-note {
    display: none;
  }
  .main-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 5px;
    margin-top: 14px;
    padding-bottom: 12px;
    scrollbar-width: none;
  }
  .main-nav a {
    white-space: nowrap;
    min-height: 37px;
    padding: 8px 10px;
    font-size: 10px;
    gap: 6px;
  }
  .main-nav .icon {
    width: 15px;
    height: 15px;
  }
  .sidebar-bottom {
    position: absolute;
    top: 15px;
    right: 18px;
    border: 0;
    padding: 0;
    display: flex;
    margin: 0;
  }
  .sidebar-bottom a {
    font-size: 0;
    padding: 8px;
  }
  .sidebar-bottom button {
    font-size: 0;
    padding: 8px;
  }
  .sidebar-bottom .icon {
    width: 18px;
    height: 18px;
  }
  .workspace {
    margin: 0;
    width: 100%;
  }
  .topbar {
    height: 62px;
    padding: 0 20px;
    justify-content: space-between;
  }
  .topbar-right {
    width: 100%;
    justify-content: space-between;
    margin: 0;
  }
  .user-chip .avatar {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }
  .user-chip strong {
    font-size: 11px;
  }
  .user-chip small {
    font-size: 8px;
    margin-top: 3px;
  }
  .user-chip {
    flex-direction: row-reverse;
    text-align: right;
    gap: 8px;
  }
  .demo-badge {
    font-size: 8px;
    padding: 5px 7px;
  }
  .page-content {
    padding: 25px 18px 40px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
    margin-bottom: 23px;
  }
  h1 {
    font-size: 29px;
    letter-spacing: -0.8px;
  }
  .page-heading p:not(.eyebrow) {
    font-size: 12px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.4px;
  }
  .welcome-hero {
    min-height: 350px;
  }
  .hero-copy {
    padding: 25px 21px;
    width: 75%;
  }
  .hero-copy h2 {
    font-size: 32px;
    margin-top: 20px;
  }
  .hero-copy p {
    max-width: 220px;
    font-size: 11px;
  }
  .hero-copy .pill {
    font-size: 7px;
  }
  .hero-art {
    right: -30px;
    bottom: -12px;
    width: 39%;
    height: 210px;
    align-items: flex-end;
  }
  .hero-art img {
    max-width: 135px;
    max-height: 160px;
    transform: rotate(7deg);
  }
  .art-orbit {
    display: none;
  }
  .spark-one {
    top: 0;
    right: 40px;
    font-size: 24px;
  }
  .spark-two {
    left: 5px;
    bottom: 140px;
    font-size: 22px;
  }
  .hero-copy .btn {
    font-size: 11px;
    padding: 11px 12px;
    max-width: 230px;
  }
  .stats-grid {
    gap: 8px;
    margin-bottom: 28px;
  }
  .stat-card {
    padding: 13px 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .stat-card .stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }
  .stat-card .stat-icon .icon {
    width: 17px;
    height: 17px;
  }
  .stat-card strong {
    font-size: 24px;
  }
  .stat-card div > span {
    font-size: 9px;
    line-height: 1.5;
    margin-top: 4px;
  }
  .section-heading h2 {
    font-size: 21px;
  }
  .section-heading .text-link {
    font-size: 10px;
  }
  .unit-grid,
  .class-grid {
    grid-template-columns: 1fr;
  }
  .unit-art {
    height: 200px;
  }
  .unit-art img {
    height: 150px;
  }
  .unit-card h3 {
    font-size: 21px;
  }
  .unit-card p {
    font-size: 12px;
    min-height: 0;
  }
  .unit-card-body {
    padding: 23px;
  }
  .unit-meta {
    font-size: 10px;
  }
  .unit-card-footer {
    font-size: 11px;
  }
  .panel {
    padding: 20px;
  }
  .dashboard-bottom {
    gap: 12px;
  }
  .app-footer {
    padding: 0 18px 20px;
    font-size: 8px;
    gap: 15px;
  }
  .app-footer span:last-child {
    display: none;
  }
  .filter-bar {
    gap: 12px;
    padding: 14px;
  }
  .search-input {
    min-width: 100%;
  }
  .inline-label {
    flex: 1;
    justify-content: space-between;
  }
  .result-count {
    font-size: 9px;
  }
  .unit-overview-hero {
    padding: 24px;
    gap: 10px;
    align-items: flex-start;
  }
  .unit-overview-hero > div {
    max-width: 100%;
    z-index: 1;
  }
  .unit-overview-hero > img {
    display: none;
  }
  .unit-overview-hero h1 {
    font-size: 31px;
  }
  .unit-overview-hero p:not(.eyebrow) {
    font-size: 12px;
  }
  .section-heading .button-row {
    width: 100%;
  }
  .section-heading .button-row .btn {
    font-size: 11px;
    flex: 1;
  }
  .lesson-row {
    padding: 20px;
    gap: 15px;
  }
  .lesson-info {
    min-width: calc(100% - 60px);
  }
  .lesson-row > .button-row {
    margin-left: 0;
    width: 100%;
  }
  .lesson-row .btn {
    font-size: 11px;
    flex: 1;
  }
  .lesson-info h3 {
    font-size: 19px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .modal-backdrop {
    padding: 13px;
  }
  .modal-card {
    padding: 23px 19px;
    max-height: 94vh;
  }
  .modal-card h2 {
    font-size: 24px;
  }
  .builder-layout {
    gap: 20px;
  }
  .page-tab {
    max-width: 100%;
    flex: 1;
    min-width: 140px;
  }
  .block-body {
    padding: 22px 19px;
  }
  .builder-block .lesson-prose h2 {
    font-size: 23px;
  }
  .block-picker {
    gap: 8px;
  }
  .block-picker button {
    min-width: 70px;
  }
  .lesson-image {
    padding: 15px;
  }
  .block-actions {
    gap: 0;
  }
  .builder-canvas .canvas-heading h2 {
    font-size: 21px;
  }
  .author-question-group {
    padding: 14px;
  }
  .lesson-intro h1 {
    font-size: 32px;
  }
  .lesson-intro > p:not(.eyebrow) {
    font-size: 13px;
  }
  .learning-page-heading {
    padding: 20px;
    gap: 13px;
  }
  .learning-page-heading h2 {
    font-size: 20px;
  }
  .learning-block {
    padding: 23px 20px;
  }
  .learning-block .lesson-prose {
    font-size: 14px;
  }
  .response-editor,
  .preview-question {
    padding: 18px 15px;
  }
  .answer-choice {
    font-size: 12px;
    padding: 12px;
  }
  .response-editor h4 {
    font-size: 16px;
  }
  .assessment-heading h2 {
    font-size: 21px;
  }
  .assessment-heading .stat-icon {
    width: 38px;
    height: 38px;
  }
  .lesson-progress {
    font-size: 10px;
    gap: 10px;
  }
  .submission-panel {
    padding: 24px;
  }
  .submission-panel h2 {
    font-size: 22px;
  }
  .class-card-art {
    height: 185px;
  }
  .class-card-art img {
    height: 140px;
  }
  .join-form > input {
    max-width: 100%;
    width: 100%;
  }
  .join-form > .btn {
    width: 100%;
  }
  .classroom-code > strong {
    font-size: 20px;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 22px;
    min-height: 180px;
  }
  .login-story-copy {
    padding: 25px 0 0;
  }
  .login-story-copy h1 {
    font-size: 28px;
    max-width: 80%;
    margin: 0;
  }
  .login-story-copy > p {
    display: none;
  }
  .login-story-copy > .eyebrow {
    font-size: 8px;
  }
  .login-story .brand img {
    height: 38px;
    width: 130px;
  }
  .login-story .brand > span {
    font-size: 6px;
  }
  .login-story > small {
    display: none;
  }
  .login-owl {
    height: 100px;
    position: absolute;
    right: -5px;
    bottom: 2px;
    margin: 0;
    max-width: 80px;
  }
  .login-form-wrap {
    padding: 35px 27px 45px;
  }
  .login-form {
    max-width: 450px;
  }
  .login-form h2 {
    font-size: 31px;
  }
  .login-form > p:not(.eyebrow) {
    margin-bottom: 18px;
  }
  .login-form > p.eyebrow {
    font-size: 8px;
  }
  .login-form label {
    margin-top: 18px;
  }
  .login-options label {
    margin: 0;
  }
  .demo-actions .btn {
    font-size: 11px;
    padding: 10px 14px;
  }
  .public-main:not(:has(.login-page)) {
    margin: 20px;
    padding: 20px;
  }
  .public-main .row {
    flex-direction: column;
  }
  .topbar-title {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

h1:focus {
  outline: none;
}
