:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #667085;
  --line: #d8dee8;
  --surface: #ffffff;
  --surface-soft: #f6f8fb;
  --pink: #d3165f;
  --green: #12805c;
  --blue: #2563eb;
  --amber: #c27a13;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(211, 22, 95, 0.05), rgba(18, 128, 92, 0.04)),
    var(--surface-soft);
}

.quiz-diagram-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px auto;
  padding: 8px 12px;
  background: rgba(240, 244, 248, 0.95);
  border-radius: 10px;
  border: 1px solid #d0d7de;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  max-width: 100%;
}

.quiz-diagram-container svg {
  max-width: 100%;
  height: auto;
  max-height: 190px;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 56px;
  border-bottom: 1px solid rgba(216, 222, 232, 0.86);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.header-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  border-color: var(--line);
  background: #ffffff;
}

.site-nav a[aria-current="page"] {
  border-color: rgba(211, 22, 95, 0.28);
  color: var(--pink);
  background: #fff5f8;
}

.home-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #344054;
  background: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.home-button:hover {
  border-color: rgba(211, 22, 95, 0.32);
  color: var(--pink);
}

main {
  display: grid;
  gap: 34px;
  padding-bottom: 48px;
}

.home-page main {
  gap: 0;
  padding-bottom: 40px;
}

.update-banner {
  position: sticky;
  top: 0;
  z-index: 1200;
  width: min(1240px, calc(100vw - 36px));
  margin: 12px auto 0;
  border: 1px solid rgba(211, 22, 95, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.1);
  overflow: hidden;
  animation: updateBannerPulse 1.25s ease-in-out 3;
}

.update-banner[hidden] {
  display: none;
}

.update-banner-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.update-banner-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 6px;
  color: #ffffff;
  background: var(--pink);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.update-banner-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.update-banner-copy strong {
  color: #1d2939;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
}

.update-banner-copy p {
  margin: 0;
  color: #526070;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.update-banner-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.update-banner-button,
.update-banner-close {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #344054;
  background: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.update-banner-button {
  border-color: rgba(211, 22, 95, 0.28);
  color: var(--pink);
}

.update-banner-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
  border-top: 1px solid rgba(216, 222, 232, 0.8);
}

.update-banner-details[hidden] {
  display: none;
}

.update-banner-section {
  min-width: 0;
  padding-top: 12px;
}

.update-banner-section strong {
  display: block;
  margin-bottom: 5px;
  color: #344054;
  font-size: 12px;
  font-weight: 950;
}

.update-banner-section ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 16px;
  color: #526070;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

@keyframes updateBannerPulse {
  0%, 100% {
    box-shadow: 0 12px 30px rgba(23, 32, 51, 0.1);
  }
  50% {
    box-shadow: 0 12px 34px rgba(211, 22, 95, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .update-banner {
    animation: none;
  }
}

.home-section {
  width: min(1240px, calc(100vw - 36px));
  display: grid;
  gap: 14px;
  margin-inline: auto;
  padding: 18px 0 8px;
  border-bottom: 1px solid rgba(216, 222, 232, 0.75);
}

.intro-copy {
  display: grid;
  grid-template-columns: minmax(220px, max-content) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-width: 0;
  max-width: none;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(216, 222, 232, 0.75);
}

.hero-brand {
  grid-column: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.hero-brand .brand-mark {
  width: 44px;
  height: 44px;
  font-size: 22px;
}

.hero-brand h1,
.hero-brand small {
  display: block;
  line-height: 1.05;
}

.hero-brand h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 950;
}

.hero-brand small {
  margin-top: 5px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 950;
}

.intro-copy > p {
  grid-column: 2;
  min-width: 0;
}

.hero-actions {
  grid-column: 1 / -1;
  justify-self: stretch;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.shared-quiz-pack-field {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 6px 4px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #344054;
  background: #ffffff;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.shared-quiz-pack-field.is-inactive {
  opacity: 0.64;
}

.shared-quiz-pack-field span {
  flex: 0 0 auto;
}

.shared-quiz-pack-field select {
  width: 238px;
  max-width: 42vw;
  min-height: 30px;
  min-width: 0;
  padding: 0 8px;
  border: 1px solid rgba(216, 222, 232, 0.96);
  border-radius: 7px;
  color: #172033;
  background: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.lock-mode-field select {
  width: 150px;
}

.curriculum-lock-field select {
  width: 278px;
}

.shared-quiz-pack-field select:disabled {
  color: #667085;
  background: #f6f8fb;
  cursor: not-allowed;
}

.shared-quiz-pack-field select:focus-visible {
  outline: 3px solid rgba(211, 22, 95, 0.18);
  outline-offset: 2px;
}

.shared-quiz-pack-field select:disabled {
  color: #667085;
  background: #f8fafc;
  cursor: not-allowed;
}

.eyebrow {
  color: var(--pink);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 46px;
  line-height: 0.95;
}

.intro-copy p {
  max-width: none;
  margin-bottom: 0;
  color: #344054;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.25;
}

.content-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.content-section {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
}

.library-panel {
  min-width: 0;
  width: 100%;
}

.library-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 10px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 27px;
  line-height: 1.05;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.55;
}

.filter-toolbar {
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.filter-toolbar[hidden] {
  display: none;
}

.filter-chip-list {
  grid-column: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-height: 90px;
  overflow: hidden;
}

.filter-chip-list.is-expanded {
  max-height: none;
}

.filter-button {
  flex: 0 0 auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #344054;
  background: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.filter-button-mode {
  border-color: rgba(211, 22, 95, 0.24);
  color: #be185d;
  background: #fff5f8;
}

.filter-button-mode[data-filter="__favorites"] {
  border-color: rgba(37, 99, 235, 0.22);
  color: #1d4ed8;
  background: #eef4ff;
}

.filter-button.is-active {
  border-color: rgba(211, 22, 95, 0.32);
  color: #ffffff;
  background: var(--pink);
}

.filter-button-mode.is-active {
  border-color: #172033;
  color: #ffffff;
  background: #172033;
}

.filter-button-mode[data-filter="__favorites"].is-active {
  border-color: var(--blue);
  background: var(--blue);
}

.filter-toggle {
  grid-column: 2;
  align-self: start;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(217, 119, 6, 0.26);
  border-radius: 8px;
  color: #9a3412;
  background: #fff7ed;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
  cursor: pointer;
}

.filter-toggle[hidden] {
  display: none;
}

.filter-toggle:hover {
  border-color: rgba(217, 119, 6, 0.38);
  background: #ffedd5;
}

.favorite-page {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
}

.favorite-page-head,
.favorite-editor,
.favorite-subhead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.favorite-page-head h3,
.favorite-subhead h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.12;
}

.favorite-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.favorite-tab {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #344054;
  background: #ffffff;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.favorite-tab small {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.favorite-tab.is-active {
  border-color: rgba(211, 22, 95, 0.35);
  color: var(--pink);
  background: #fff5f8;
}

.favorite-name-field {
  min-width: min(360px, 100%);
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 950;
}

.favorite-name-field input {
  min-height: 44px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
}

.favorite-name-field input:focus {
  border-color: rgba(211, 22, 95, 0.45);
  outline: 3px solid rgba(211, 22, 95, 0.14);
}

.favorite-board,
.favorite-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 12px;
}

.favorite-qr-tile,
.favorite-add-tile,
.favorite-candidate {
  min-height: 278px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.06);
}

.favorite-add-tile {
  place-items: center;
  border-style: dashed;
  color: var(--pink);
  background: #fff8fb;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.favorite-add-tile span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(211, 22, 95, 0.26);
  border-radius: 999px;
  background: #ffffff;
  font-size: 34px;
  line-height: 1;
}

.favorite-qr-tile strong,
.favorite-candidate strong,
.favorite-add-tile strong {
  color: #172033;
  font-size: 16px;
  line-height: 1.25;
}

.favorite-qr-tile img {
  width: min(138px, 100%);
  aspect-ratio: 1;
  padding: 8px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  background: #ffffff;
}

.favorite-qr-tile p {
  margin: 0;
  overflow-wrap: anywhere;
  color: #667085;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.favorite-tile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.favorite-qr-tile .content-action,
.favorite-candidate .content-action {
  min-height: 38px;
  min-width: 84px;
  padding: 0 12px;
  font-size: 13px;
}

.favorite-picker {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.favorite-empty-text {
  margin: 0;
  color: #667085;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.5;
}

.favorite-candidate {
  min-height: 226px;
  align-content: space-between;
}

.favorite-candidate span {
  display: block;
  margin-bottom: 5px;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.favorite-candidate-art {
  width: 100%;
  min-height: 96px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fbff, #ffffff);
}

.favorite-candidate-art img {
  max-height: 92px;
  object-fit: contain;
}

.danger-button {
  border-color: rgba(190, 24, 93, 0.28);
  color: #be185d;
}

.danger-button:hover {
  border-color: rgba(190, 24, 93, 0.45);
  color: #be185d;
}

.content-count {
  min-height: 22px;
  margin: 0;
  color: #526070;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.content-grid {
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 16px;
}

.content-card {
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.08);
  perspective: 1200px;
}

.content-card.is-muted {
  background: #fbfcfd;
}

.content-card-inner {
  position: relative;
  min-height: inherit;
  transform-style: preserve-3d;
  transition: transform 0.48s ease;
}

.content-card.is-flipped .content-card-inner {
  transform: rotateY(180deg);
}

.content-card-face {
  min-height: inherit;
  backface-visibility: hidden;
}

.content-card-front {
  display: grid;
  grid-template-rows: 164px 1fr;
}

.content-card-back {
  position: absolute;
  inset: 0;
  overflow: auto;
  transform: rotateY(180deg);
  background: #ffffff;
}

.content-art {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #e5f7ff, #eefaf2);
}

.content-card[data-accent="green"] .content-art {
  background: linear-gradient(180deg, #e4faf0, #f7fbff);
}

.content-card[data-accent="blue"] .content-art {
  background: linear-gradient(180deg, #e7f0ff, #f9fbff);
}

.content-card[data-accent="amber"] .content-art {
  background: linear-gradient(180deg, #fff6df, #f9fbff);
}

.content-art img {
  max-width: 92%;
  max-height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 12px 9px rgba(23, 32, 51, 0.18));
}

.content-placeholder {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(23, 32, 51, 0.12);
  border-radius: 8px;
  color: #344054;
  background: rgba(255, 255, 255, 0.76);
  font-size: 30px;
  font-weight: 950;
}

.content-body {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
}

.content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.content-subject,
.content-player,
.content-curriculum,
.content-type,
.content-status {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.content-subject {
  border: 1px solid rgba(217, 119, 6, 0.22);
  color: #9a3412;
  background: #fff7ed;
}

.content-player {
  border: 1px solid rgba(37, 99, 235, 0.18);
  color: #1d4ed8;
  background: #eef4ff;
}

.content-curriculum {
  border: 1px solid rgba(18, 128, 92, 0.2);
  color: #0f766e;
  background: #e7f8f1;
}

.content-type {
  color: #0f766e;
  background: #dff8ee;
}

.content-status {
  color: #7c2d12;
  background: #fff1dc;
}

.content-status.is-live {
  color: #be185d;
  background: #ffe4ef;
}

.content-body h3 {
  margin-bottom: 0;
  font-size: 23px;
  line-height: 1.16;
}

.content-body p {
  margin-bottom: 0;
  color: #526070;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.content-description {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 6px 8px;
}

.content-summary {
  grid-column: 1;
}

.content-description-toggle {
  grid-column: 2;
  align-self: start;
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  color: #be185d;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.content-description-toggle:hover {
  color: #9d174d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-detail {
  grid-column: 1 / -1;
  padding-left: 10px;
  border-left: 3px solid #f9a8d4;
}

.content-tags {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-tags li {
  max-width: 100%;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #667085;
  background: #ffffff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: center;
}

.content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.content-action {
  width: fit-content;
  min-width: 92px;
  min-height: 40px;
  color: #ffffff;
  background: #172033;
}

.qr-card-action {
  border: 1px solid var(--line);
  color: #172033;
  background: #ffffff;
}

.qr-card-action:hover {
  border-color: rgba(211, 22, 95, 0.32);
  color: var(--pink);
}

.qr-card-panel {
  min-height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  background: linear-gradient(180deg, #fff7fb, #f7fbff);
}

.content-card[data-accent="green"] .qr-card-panel {
  background: linear-gradient(180deg, #f0fff8, #f8fbff);
}

.content-card[data-accent="blue"] .qr-card-panel {
  background: linear-gradient(180deg, #f1f6ff, #fbfdff);
}

.content-card[data-accent="amber"] .qr-card-panel {
  background: linear-gradient(180deg, #fff9e8, #fbfdff);
}

.qr-card-panel h3 {
  margin: 0;
  color: #172033;
  font-size: 22px;
  line-height: 1.16;
}

.qr-card-image {
  width: clamp(138px, 54%, 178px);
  aspect-ratio: 1;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(23, 32, 51, 0.12);
}

.qr-card-url {
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  color: #526070;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.qr-card-notice {
  max-width: 100%;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  color: #344054;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.qr-card-actions {
  justify-content: center;
  margin-top: 2px;
}

.content-action.is-disabled {
  color: #667085;
  background: #e9eef5;
}

.direction-section {
  padding-top: 8px;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.direction-grid div,
.noscript-list {
  min-height: 134px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.direction-grid strong,
.direction-grid span {
  display: block;
}

.direction-grid strong {
  margin-bottom: 8px;
  font-size: 17px;
}

.direction-grid span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.noscript-list {
  display: grid;
  gap: 10px;
}

.noscript-list a {
  font-weight: 900;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 28px 20px 36px;
  border-top: 1px solid rgba(216, 222, 232, 0.8);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  background: #ffffff;
}

.footer-links {
  width: min(480px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.footer-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  color: #344054;
  background: #ffffff;
  text-decoration: none;
}

.footer-links a:hover {
  border-color: rgba(211, 22, 95, 0.3);
  color: var(--pink);
}

.footer-copyright {
  color: #8a95a5;
  font-size: 13px;
  font-weight: 850;
}

.qr-modal,
.class-access-modal {
  position: fixed;
  inset: 0;
  z-index: 1700;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

.qr-modal.is-hidden,
.class-access-modal.is-hidden {
  display: none;
}

.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.48);
}

.qr-modal-card {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 40px));
  max-height: min(720px, calc(100dvh - 40px));
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: auto;
  overscroll-behavior: contain;
}

.class-access-card {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 40px));
  max-height: min(720px, calc(100dvh - 40px));
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: auto;
  overscroll-behavior: contain;
}

.qr-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  flex-shrink: 0;
  min-width: 0;
}

.qr-modal-head > div {
  min-width: 0;
}

.qr-modal-head h2 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.qr-modal-head .home-button {
  flex: 0 0 auto;
}

.qr-modal-image {
  width: min(320px, calc(100vw - 88px), 100%);
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.qr-modal-url {
  margin-bottom: 0;
  overflow-wrap: anywhere;
  color: #526070;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}

body.qr-modal-open,
body.class-access-open,
body.teacher-console-modal-open {
  overflow: hidden;
}

.class-access-notice {
  margin-bottom: 0;
  color: #344054;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.7;
}

.class-access-notice a {
  color: var(--pink);
  font-weight: 950;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.class-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.class-access-actions .content-action {
  min-width: 160px;
}

.info-page {
  width: min(1040px, calc(100% - 56px));
  margin-inline: auto;
  padding: 32px 0 56px;
}

.info-hero {
  display: grid;
  gap: 12px;
  padding-bottom: 18px;
}

.info-hero h1 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: 44px;
  line-height: 1.08;
}

.info-hero p {
  max-width: 820px;
  margin-bottom: 0;
  color: #475467;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.65;
}

.info-updated {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 999px;
  color: #526070;
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.info-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 18px;
}

.info-summary article {
  min-height: 128px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.06);
}

.info-summary strong {
  color: #172033;
  font-size: 17px;
  line-height: 1.25;
}

.info-summary span {
  color: #526070;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.55;
}

.info-content {
  display: grid;
  gap: 12px;
}

.info-block {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  background: #ffffff;
}

.info-block-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.info-block-head span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--pink);
  font-size: 13px;
  font-weight: 950;
}

.info-block h2,
.info-block-head h2 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.2;
}

.info-block p {
  max-width: 820px;
  margin-bottom: 0;
  color: #526070;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}

.info-block a {
  color: var(--pink);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: minmax(110px, 150px) 1fr;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(216, 222, 232, 0.78);
}

.info-list dt {
  color: #344054;
  font-size: 14px;
  font-weight: 950;
}

.info-list dd {
  margin: 0;
  color: #526070;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
}

/* Info Page Timeline */
.timeline-container {
  display: grid;
  gap: 18px;
  position: relative;
  padding-left: 20px;
  margin-top: 8px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(216, 222, 232, 0.78);
}

.timeline-item {
  position: relative;
  display: grid;
  gap: 4px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--pink);
  box-sizing: border-box;
}

.timeline-item.item-award::before {
  border-color: #d97706;
}

.timeline-badge {
  font-size: 13px;
  font-weight: 800;
  color: var(--pink);
}

.timeline-badge-award {
  font-size: 13px;
  font-weight: 900;
  color: #d97706;
}

.timeline-panel h3 {
  margin: 0 0 2px 0;
  font-size: 16px;
  font-weight: 850;
  color: #1d2939;
}

.timeline-panel p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #475467 !important;
  line-height: 1.6;
}

.panel-award {
  padding: 10px 12px;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 6px;
}

.timeline-item.item-live::before {
  border-color: #10b981;
  animation: pulse-green 2s ease-in-out infinite;
}

.timeline-badge-live {
  font-size: 13px;
  font-weight: 900;
  color: #10b981;
}

.panel-live {
  padding: 10px 12px;
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  border-radius: 6px;
}

@keyframes pulse-green {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

.info-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 24px;
}

.math-map-page {
  width: min(1180px, calc(100% - 36px));
  display: grid;
  gap: 24px;
  margin-inline: auto;
  padding: 30px 0 58px;
}

.math-map-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  align-items: center;
  gap: 24px;
  padding: 18px 0 24px;
  border-bottom: 1px solid rgba(216, 222, 232, 0.82);
}

.math-map-hero-copy {
  display: grid;
  gap: 12px;
}

.math-map-hero h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 44px;
  line-height: 1.08;
}

.math-map-hero p {
  max-width: 860px;
  margin-bottom: 0;
  color: #475467;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.7;
}

.math-map-hero-visual {
  min-height: 230px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(211, 22, 95, 0.08), rgba(18, 128, 92, 0.08)),
    #ffffff;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.06);
}

.math-map-hero-visual span {
  min-height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  font-size: 30px;
  font-weight: 950;
}

.math-map-hero-visual span:nth-child(1) {
  height: 76px;
  background: var(--pink);
}

.math-map-hero-visual span:nth-child(2) {
  height: 98px;
  background: var(--green);
}

.math-map-hero-visual span:nth-child(3) {
  height: 120px;
  background: var(--amber);
}

.math-map-hero-visual span:nth-child(4) {
  height: 142px;
  background: var(--blue);
}

.math-map-hero-visual span:nth-child(5) {
  height: 164px;
  background: #be185d;
}

.math-map-hero-visual span:nth-child(6) {
  height: 188px;
  background: #0f766e;
}

.math-grade-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.math-grade-nav a,
.math-source-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid rgba(216, 222, 232, 0.95);
  border-radius: 8px;
  color: #344054;
  background: #ffffff;
  font-size: 14px;
  font-weight: 950;
  text-decoration: none;
}

.math-grade-nav a:hover,
.math-source-links a:hover {
  border-color: rgba(211, 22, 95, 0.32);
  color: var(--pink);
}

.math-grade-nav a[aria-current="true"],
.math-grade-nav a[aria-current="page"] {
  border-color: rgba(211, 22, 95, 0.36);
  color: #ffffff;
  background: var(--pink);
}

.math-strands,
.math-grade-section,
.math-source-note {
  display: grid;
  gap: 14px;
}

.math-section-heading,
.math-grade-head {
  display: grid;
  gap: 6px;
}

.math-section-heading h2,
.math-grade-head h2,
.math-source-note h2 {
  margin-bottom: 0;
  font-size: 25px;
  line-height: 1.18;
}

.math-grade-head span {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #be185d;
  background: #fff5f8;
  font-size: 13px;
  font-weight: 950;
}

.math-semester-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.math-semester-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(216, 222, 232, 0.95);
  border-radius: 8px;
  color: #344054;
  background: #ffffff;
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
}

.math-semester-links a:hover,
.math-semester-links a:focus-visible,
.math-semester-links a[aria-current="page"] {
  border-color: rgba(211, 22, 95, 0.32);
  color: var(--pink);
  background: #fff5f8;
}

.math-strand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.math-strand-grid article,
.math-semester-card,
.math-source-note {
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.06);
}

.math-strand-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
}

.math-strand-grid strong {
  color: #172033;
  font-size: 17px;
  line-height: 1.25;
}

.math-strand-grid p,
.math-source-note p {
  margin-bottom: 0;
  color: #526070;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.65;
}

.math-semester-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.math-semester-card {
  overflow: hidden;
}

.math-semester-card h3 {
  margin: 0;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(216, 222, 232, 0.82);
  color: #172033;
  background: #f8fafc;
  font-size: 18px;
  line-height: 1.2;
}

.math-unit-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.math-unit-list li {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: 12px;
  padding: 13px 18px;
  border-top: 1px solid rgba(216, 222, 232, 0.62);
}

.math-unit-list li:first-child {
  border-top: 0;
}

.math-unit-list strong {
  color: #172033;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.45;
}

.math-unit-list span {
  min-width: 0;
  color: #526070;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.55;
}

.math-source-note {
  padding: 20px;
}

.math-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


@media (max-width: 980px) {
  .site-header {
    padding-inline: 24px;
  }

  .update-banner-main {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .update-banner-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .update-banner-details {
    grid-template-columns: 1fr;
  }

  .home-section {
    width: min(820px, calc(100vw - 32px));
    gap: 14px;
    padding-top: 24px;
  }

  .intro-copy {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 10px 14px;
  }

  .intro-copy p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .hero-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
    width: 100%;
    justify-content: flex-start;
  }

  .shared-quiz-pack-field {
    flex: 1 1 320px;
    max-width: 520px;
  }

  .shared-quiz-pack-field select {
    width: 100%;
    max-width: none;
  }

  h1 {
    font-size: 44px;
  }

  .intro-copy p {
    font-size: 17px;
  }

  .math-map-hero,
  .math-semester-grid {
    grid-template-columns: 1fr;
  }

  .math-strand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 720px) {
  .site-header {
    position: static;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 14px 18px;
  }

  .header-left {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .home-section {
    width: calc(100vw - 24px);
    gap: 10px;
    padding-top: 10px;
  }

  .intro-copy {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 8px;
    padding-bottom: 8px;
  }

  .hero-brand .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 19px;
  }

  .hero-brand h1 {
    font-size: 25px;
  }

  .hero-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    justify-items: stretch;
    gap: 7px;
  }

  .hero-actions .teacher-console-toggle,
  .hero-actions .home-button {
    width: 100%;
    min-height: 36px;
    padding-inline: 8px;
    font-size: 13px;
  }

  .hero-actions .content-count {
    grid-column: 1 / -1;
    min-height: 16px;
    font-size: 12px;
    line-height: 1.25;
  }

  .shared-quiz-pack-field {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
  }

  h1 {
    font-size: 40px;
  }

  .intro-copy p {
    font-size: 15px;
    line-height: 1.2;
  }

  .library-top {
    display: grid;
    gap: 4px;
  }

  .favorite-page-head,
  .favorite-editor {
    display: grid;
    gap: 10px;
  }

  .favorite-page-head .home-button,
  .favorite-editor .home-button {
    width: fit-content;
  }

  .favorite-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .favorite-tab {
    flex: 0 0 auto;
  }

  .favorite-board,
  .favorite-picker-grid {
    grid-template-columns: 1fr;
  }

  .content-count {
    margin: 0;
    white-space: normal;
  }

  .filter-toolbar {
    gap: 7px;
    margin-bottom: 10px;
    padding: 8px;
  }

  .filter-chip-list {
    gap: 6px;
    max-height: 74px;
  }

  .filter-button {
    flex: 0 0 auto;
    min-height: 34px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .filter-toggle {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .content-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
    gap: 12px;
  }

  .direction-grid {
    grid-template-columns: 1fr;
  }

  .section-heading h2 {
    font-size: 29px;
  }

  .content-card {
    min-height: 326px;
  }

  .content-card-front {
    grid-template-rows: 132px 1fr;
  }

  .content-art img {
    max-height: 120px;
  }

  .content-body {
    gap: 8px;
    padding: 14px;
  }

  .content-body h3 {
    font-size: 21px;
  }

  .content-body p {
    font-size: 14px;
    line-height: 1.45;
  }

  .content-subject,
  .content-player,
  .content-curriculum,
  .content-type,
  .content-status,
  .content-tags li {
    min-height: 22px;
    padding-inline: 7px;
    font-size: 11px;
  }

  .content-actions {
    gap: 7px;
  }

  .content-action {
    min-height: 38px;
    padding-inline: 12px;
  }

  .content-description-toggle {
    min-width: 42px;
    justify-content: flex-end;
  }

  .site-footer {
    padding-inline: 18px;
  }

  .info-page {
    width: calc(100% - 36px);
    padding-top: 22px;
  }

  .info-summary {
    grid-template-columns: 1fr;
  }

  .info-hero h1 {
    font-size: 34px;
  }

  .info-hero p,
  .info-block p {
    font-size: 15px;
  }

  .info-block {
    padding: 18px;
  }

  .info-block-head {
    align-items: start;
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .math-map-page {
    width: calc(100% - 24px);
    padding-top: 20px;
  }

  .math-map-hero h1 {
    font-size: 34px;
  }

  .math-map-hero p,
  .math-source-note p {
    font-size: 15px;
  }

  .math-map-hero-visual {
    min-height: 184px;
    padding: 12px;
  }

  .math-map-hero-visual span {
    min-height: 48px;
    font-size: 23px;
  }

  .math-map-hero-visual span:nth-child(1) {
    height: 58px;
  }

  .math-map-hero-visual span:nth-child(2) {
    height: 72px;
  }

  .math-map-hero-visual span:nth-child(3) {
    height: 86px;
  }

  .math-map-hero-visual span:nth-child(4) {
    height: 104px;
  }

  .math-map-hero-visual span:nth-child(5) {
    height: 124px;
  }

  .math-map-hero-visual span:nth-child(6) {
    height: 144px;
  }

  .math-strand-grid {
    grid-template-columns: 1fr;
  }

  .math-unit-list li {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 12px 14px;
  }
}

@media (max-width: 480px) {
  .qr-modal,
  .class-access-modal {
    padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  }

  .qr-modal-card,
  .class-access-card {
    width: min(100%, calc(100vw - 20px));
    max-height: calc(100dvh - 20px);
    gap: 12px;
    padding: 14px;
  }

  .qr-modal-head {
    gap: 10px;
  }

  .qr-modal-head h2 {
    font-size: 20px;
    line-height: 1.18;
  }

  .qr-modal-head .home-button {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 13px;
  }

  .qr-modal-image {
    width: min(250px, calc(100vw - 64px));
  }

  .qr-modal-url {
    font-size: 12px;
    line-height: 1.35;
  }

  .class-access-notice {
    font-size: 14px;
    line-height: 1.55;
  }

  .class-access-actions .content-action {
    width: 100%;
    min-width: 0;
  }

  .update-banner {
    width: min(calc(100vw - 20px), 354px);
    margin-top: 8px;
  }

  .update-banner-main {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 9px;
  }

  .update-banner-badge {
    width: fit-content;
    min-height: 26px;
    padding-inline: 8px;
    font-size: 11px;
  }

  .update-banner-copy strong {
    font-size: 13px;
  }

  .update-banner-copy p {
    font-size: 12px;
    line-height: 1.3;
  }

  .update-banner-actions {
    justify-content: stretch;
    gap: 7px;
  }

  .update-banner-button,
  .update-banner-close {
    flex: 1 1 0;
    min-height: 30px;
  }

  .home-section {
    width: min(calc(100vw - 24px), 354px);
  }

  .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-actions .teacher-console-toggle {
    grid-column: 1 / -1;
  }

  .hero-actions .content-count {
    text-align: left;
  }

  .home-button {
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }

  .shared-quiz-pack-field {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .content-grid {
    gap: 10px;
  }

  .content-card {
    min-height: 306px;
  }

  .content-card-front {
    grid-template-rows: 118px 1fr;
  }

  .content-art img {
    max-height: 106px;
  }

  .content-body {
    padding: 12px;
  }

  .content-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-actions .content-action {
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
  }

  .content-actions .content-action:only-child {
    grid-column: 1 / -1;
  }

  .qr-card-panel {
    gap: 8px;
    padding: 14px;
  }

  .qr-card-image {
    width: clamp(122px, 48%, 156px);
    padding: 8px;
  }
}

/* --- ABOUT PAGE CUSTOM STYLES (NATIVE NOL QUIZ THEME) --- */
.about-page {
  width: min(1200px, calc(100vw - 36px));
  margin-inline: auto;
  padding: 40px 0;
  display: grid;
  gap: 56px;
}

/* Hero Section */
.about-hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
  padding: 24px 0;
}

.about-hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.about-hero-badges .badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 850;
  border: 1px solid;
}

.badge-orange {
  background: #fff7ed;
  color: #c2410c;
  border-color: rgba(249, 115, 22, 0.28);
}

.badge-purple {
  background: #f5f3ff;
  color: #6d28d9;
  border-color: rgba(139, 92, 246, 0.28);
}

.badge-blue {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.28);
}

.about-hero-eyebrow {
  color: var(--pink);
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about-hero-title {
  font-size: 38px;
  font-weight: 950;
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
}

.about-hero-desc {
  font-size: 18px;
  line-height: 1.6;
  color: #344054;
  margin: 8px 0 0 0;
}

/* Sections Common Heading */
.about-section-heading {
  margin-bottom: 24px;
  border-left: 4px solid var(--pink);
  padding-left: 12px;
}

.about-section-heading h2 {
  font-size: 24px;
  font-weight: 950;
  color: var(--ink);
  margin: 0 0 6px 0;
}

.about-section-heading p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  font-weight: 750;
}

/* Principles / Features Grid */
.about-principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.about-principle-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.05);
  display: grid;
  gap: 12px;
  align-content: start;
}

.about-principle-card h3 {
  font-size: 18px;
  font-weight: 950;
  color: var(--ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-principle-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #475569;
  margin: 0;
  font-weight: 700;
}

/* Developer Story (Editorial block) */
.about-story-container {
  max-width: 760px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.06);
}

.about-story-container p {
  font-size: 16px;
  line-height: 1.8;
  color: #344054;
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 700;
}

.about-story-container p strong {
  color: var(--ink);
}

.about-story-quote {
  background: #fff5f8;
  border-left: 4px solid var(--pink);
  border-radius: 4px;
  padding: 18px 24px;
  margin: 24px 0;
}

.about-story-quote p {
  color: var(--pink) !important;
  font-weight: 950 !important;
  font-style: italic;
  font-size: 15.5px !important;
  line-height: 1.65 !important;
  margin: 0 0 12px 0 !important;
}

.about-story-quote p:last-child {
  margin-bottom: 0 !important;
}

.about-story-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}

.about-story-image-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-soft);
}

.about-story-image-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.about-story-image-card .caption {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.about-story-container a {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 900;
}

.about-story-container a:hover {
  color: #be1254;
}

/* Timeline */
.about-timeline {
  position: relative;
  padding-left: 24px;
  margin-top: 16px;
}

.about-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
}

.about-timeline-item {
  position: relative;
  margin-bottom: 24px;
}

.about-timeline-item:last-child {
  margin-bottom: 0;
}

.about-timeline-item::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--pink);
  z-index: 2;
}

.about-timeline-item.item-award::before {
  border-color: #d97706;
}

.about-timeline-item.item-live::before {
  border-color: #059669;
}

.about-timeline-badge {
  font-size: 12.5px;
  font-weight: 950;
  color: var(--pink);
  display: inline-block;
  margin-bottom: 4px;
}

.about-timeline-badge-award {
  font-size: 12.5px;
  font-weight: 950;
  color: #ea580c;
  display: inline-block;
  margin-bottom: 4px;
}

.about-timeline-badge-live {
  font-size: 12.5px;
  font-weight: 950;
  color: #059669;
  display: inline-block;
  margin-bottom: 4px;
}

.about-timeline-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(23, 32, 51, 0.03);
}

.about-timeline-panel h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 950;
  color: var(--ink);
}

.about-timeline-panel p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted) !important;
  font-weight: 750;
}

.about-timeline-panel.panel-award {
  background: #fffbeb;
  border-color: rgba(217, 119, 6, 0.22);
}

.about-timeline-panel.panel-live {
  background: #ecfdf5;
  border-color: rgba(16, 185, 129, 0.22);
}

/* Lineup overrides */
.about-lineup-section .content-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.about-lineup-section .content-card {
  display: grid;
  grid-template-rows: 164px 1fr;
  min-height: auto;
  perspective: none;
}

.about-lineup-section .content-card-front {
  display: contents;
}

.about-lineup-section .content-body {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
}

.about-lineup-section .content-body h3 {
  margin-top: 8px;
  margin-bottom: 4px;
}

.about-lineup-section .content-body p {
  color: #475569;
  font-size: 14.5px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.about-lineup-section .content-tags {
  margin-bottom: 14px;
}

/* Home Button Actions in About */
.about-actions {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}

.btn-about-home {
  min-height: 44px;
  padding: 0 24px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(23, 32, 51, 0.04);
}

.btn-about-home:hover {
  border-color: var(--pink);
  color: var(--pink);
  box-shadow: 0 4px 16px rgba(211, 22, 95, 0.08);
}

@media (max-width: 768px) {
  .about-hero-title {
    font-size: 30px;
  }
  .about-story-container {
    padding: 24px;
  }
  .about-story-images {
    grid-template-columns: 1fr;
  }
  .about-story-image-card img {
    height: 180px;
  }
}

/* Teacher Console Styles */
.teacher-console-toggle {
  width: auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px dashed var(--pink);
  border-radius: 10px;
  color: var(--pink);
  font-size: 14px;
  font-weight: 850;
  background: rgba(211, 22, 95, 0.04);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(211, 22, 95, 0.03);
}

.teacher-console-toggle:hover {
  background: rgba(211, 22, 95, 0.08);
  box-shadow: 0 6px 16px rgba(211, 22, 95, 0.06);
  transform: translateY(-1px);
}

/* Modal Layout */
.teacher-console-modal {
  position: fixed;
  z-index: 1500;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.teacher-console-modal.is-hidden {
  display: none !important;
}

.console-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(23, 32, 51, 0.4);
  backdrop-filter: blur(8px);
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.console-modal-card {
  position: relative;
  z-index: 2;
  width: min(780px, 92vw);
  height: min(800px, 88vh);
  height: min(800px, 88dvh);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(23, 32, 51, 0.15);
  text-align: left;
  animation: consoleModalZoom 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

@keyframes consoleModalZoom {
  from {
    transform: scale(0.94);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.console-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  min-height: 0;
}

.console-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #eaecf0;
  background: #fcfcfd;
  flex-shrink: 0;
}

.console-section {
  display: grid;
  gap: 8px;
}

.console-section h4 {
  margin: 0;
  color: #344054;
  font-size: 14px;
  font-weight: 850;
}

.console-section-desc {
  margin: 0;
  color: #667085;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.teacher-setting-slots-section {
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eaecf0;
}

.teacher-setting-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.teacher-setting-slot {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #eaecf0;
  border-radius: 10px;
  background: #fcfcfd;
  min-width: 0;
}

.teacher-setting-slot.has-value {
  border-color: rgba(211, 22, 95, 0.22);
  background: rgba(211, 22, 95, 0.035);
}

.teacher-setting-slot-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.teacher-setting-slot-title {
  color: #344054;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.teacher-setting-slot-memo {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  color: #1d2939;
  font-size: 12px;
  font-weight: 750;
  background: #ffffff;
}

.teacher-setting-slot-summary {
  min-height: 34px;
  margin: 0;
  color: #667085;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.45;
}

.teacher-setting-slot-actions {
  display: grid;
  grid-template-columns: minmax(78px, 0.9fr) minmax(112px, 1.1fr);
  gap: 6px;
}

.teacher-setting-slot-actions .preset-btn {
  width: 100%;
  min-height: 32px;
  padding: 5px 8px;
  font-size: 11px;
}

.teacher-setting-slot-actions .preset-clear {
  grid-column: 1 / -1;
}

.teacher-setting-slot-actions .preset-btn:disabled {
  border-color: #eaecf0;
  color: #98a2b3;
  background: #f9fafb;
  cursor: not-allowed;
}

.teacher-setting-slot-status {
  min-height: 16px;
  margin: 0;
  color: #175cd3;
  font-size: 11px;
  font-weight: 800;
}

.console-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preset-btn {
  padding: 6px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-btn:hover {
  border-color: var(--pink);
  color: var(--pink);
  background: rgba(211, 22, 95, 0.02);
}

.preset-btn.is-active {
  background: var(--pink);
  color: #ffffff;
  border-color: var(--pink);
}

.preset-btn.is-active:hover {
  background: #b5104f;
  border-color: #b5104f;
}

.preset-btn.preset-select-all {
  border-color: #6beb8e;
  color: #027a48;
  background: #ecfdf3;
}

.preset-btn.preset-select-all:hover {
  background: #d1fadf;
}

.preset-btn.preset-clear {
  border-color: #fda29b;
  color: #b42318;
  background: #fef3f2;
}

.preset-btn.preset-clear:hover {
  background: #fee4e2;
}

.quiz-pack-search-input {
  padding: 4px 10px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  font-size: 12px;
  width: 180px;
  outline: none;
  transition: border-color 0.15s ease;
}

.quiz-pack-search-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 2px rgba(211, 22, 95, 0.1);
}

.quiz-pack-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 8px;
  scrollbar-width: thin;
}

.quiz-pack-tab-btn {
  padding: 4px 10px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: #ffffff;
  color: #475467;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.quiz-pack-tab-btn:hover {
  background: #f9fafb;
  border-color: #d0d5dd;
  color: #1d2939;
}

.quiz-pack-tab-btn.is-active {
  background: var(--pink);
  color: #ffffff;
  border-color: var(--pink);
}

.quiz-pack-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid #eaecf0;
  border-radius: 10px;
  background: #fcfcfd;
}

.quiz-pack-group-heading {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 700;
  color: #475467;
  letter-spacing: 0.04em;
  padding: 6px 4px 2px;
  border-bottom: 1px solid #eaecf0;
  margin-top: 4px;
}

.quiz-pack-group-heading:first-child {
  margin-top: 0;
}

.quiz-pack-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #f2f4f7;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quiz-pack-check-item:hover {
  border-color: #d0d5dd;
  background: #f9fafb;
}

.quiz-pack-check-item:has(input[type="checkbox"]:checked) {
  border-color: var(--pink);
  background: rgba(211, 22, 95, 0.04);
  box-shadow: 0 0 0 2px rgba(211, 22, 95, 0.1);
}

.quiz-pack-check-item:has(input[type="checkbox"]:checked):hover {
  background: rgba(211, 22, 95, 0.07);
}

.quiz-pack-check-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--pink);
  cursor: pointer;
}

.quiz-pack-check-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  font-weight: 800;
  color: #1d2939;
  cursor: pointer;
}

.quiz-pack-check-meta {
  display: flex;
  align-items: center;
  gap: 4px;
}

.subject-badge {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
}

.subject-badge.math {
  color: #175cd3;
  background: #eff8ff;
}

.subject-badge.lang {
  color: #b93815;
  background: #fef0c7;
}

.quiz-pack-check-grade {
  color: #667085;
  font-size: 10px;
  font-weight: 800;
}

.selected-count {
  color: #475467;
  font-size: 14px;
  font-weight: 850;
}

@media (max-width: 640px) {
  .teacher-console-modal {
    align-items: stretch;
    justify-content: stretch;
    padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  }

  .console-modal-card {
    width: 100%;
    height: auto;
    max-height: calc(100dvh - 20px);
    align-self: center;
    border-radius: 14px;
  }

  .console-modal-card > .qr-modal-head {
    padding: 14px 14px 10px;
    border-bottom: 1px solid #eaecf0;
  }

  .console-modal-card > .qr-modal-head h2 {
    font-size: 20px;
  }

  .console-modal-body {
    padding: 14px;
  }

  .console-modal-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 14px max(12px, env(safe-area-inset-bottom));
  }

  .console-modal-footer .selected-count {
    font-size: 12px;
    line-height: 1.25;
  }

  .console-modal-footer .content-action {
    width: 100%;
    min-height: 40px;
  }

  .teacher-setting-slots {
    grid-template-columns: 1fr;
  }

  .quiz-pack-checklist {
    grid-template-columns: 1fr;
    max-height: 260px;
    padding: 10px;
  }

  .console-preset-row .preset-btn {
    flex: 1 1 82px;
    min-height: 34px;
    padding-inline: 8px;
    font-size: 12px;
  }
}

/* Sponsorship Support Styles */
.about-support-section {
  margin-top: 48px;
  margin-bottom: 24px;
}

.about-support-card {
  background: rgba(211, 22, 95, 0.03);
  border: 1px solid rgba(211, 22, 95, 0.15);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.about-support-info h3 {
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pink);
  font-size: 18px;
  font-weight: 950;
}

.about-support-info p {
  margin: 0;
  color: var(--muted) !important;
  font-size: 13.5px;
  line-height: 1.6;
  font-weight: 750;
}

.btn-support-coffee {
  background: var(--pink);
  color: #ffffff !important;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 950;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(211, 22, 95, 0.2);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-support-coffee:hover {
  background: #b5104f;
  box-shadow: 0 6px 16px rgba(211, 22, 95, 0.3);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .about-support-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 16px;
  }
  .about-support-info h3 {
    justify-content: center;
  }
  .btn-support-coffee {
    justify-content: center;
    width: 100%;
  }
}
