:root {
  --green: #17594d;
  --green-dark: #113d36;
  --orange: #da6d3d;
  --ink: #203d37;
  --muted: #657770;
  --line: #e0e6df;
  --cream: #fafbf7;
  --soft: #eef4ec;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled,
select:disabled {
  opacity: 0.55;
  cursor: default;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #cf713a;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.035em;
}
h1 {
  font-size: 40px;
  font-weight: 700;
}
h2 {
  font-size: 23px;
}
h3 {
  font-size: 20px;
}
p {
  color: var(--muted);
}
.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -70px;
  z-index: 20;
  padding: 12px;
  background: white;
}
.skip-link:focus {
  top: 12px;
}
.demo-banner {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #f2e6d1;
  color: #6d502b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.015em;
}
.demo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9a6b35;
}
.topbar {
  max-width: 1240px;
  margin: auto;
  height: 94px;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -1.2px;
}
.brand-mark {
  height: 35px;
  width: 35px;
  background: var(--green);
  border-radius: 11px 11px 11px 2px;
  color: white;
  font-size: 27px;
  margin-right: 10px;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-style: italic;
  padding-bottom: 4px;
}
.brand-dot {
  color: var(--orange);
}
.tagline {
  font-size: 13px;
  color: var(--muted);
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.student-label {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.035em;
  color: var(--green);
  border: 1px solid #dce6de;
  background: #f2f6ef;
  border-radius: 30px;
  padding: 7px 14px;
}
.header-school {
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 1px solid var(--line);
  padding-left: 26px;
  color: var(--muted);
  font-size: 13px;
}
main {
  max-width: 1240px;
  margin: auto;
  padding: 34px 36px 66px;
  min-height: 65vh;
}
main:focus {
  outline: none;
}
.eyebrow {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.13em;
  color: var(--green);
  display: block;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.small-label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.home-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 46px 0 68px;
}
.home-hero h1 {
  font-size: 45px;
  line-height: 1.27;
  letter-spacing: -1.8px;
  margin: 18px 0 23px;
}
.home-hero h1 em {
  font-style: normal;
  color: var(--green);
}
.home-hero p {
  font-size: 17px;
  line-height: 1.8;
}
.home-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
}
.home-note .icon {
  width: 17px;
  color: var(--green);
}
.hero-art {
  height: 340px;
  position: relative;
}
.art-circle {
  position: absolute;
  inset: 20px 22px;
  border-radius: 50%;
  background: #e9eee1;
}
.art-book {
  position: absolute;
  top: 83px;
  left: 83px;
  width: 240px;
  height: 210px;
  transform: rotate(-8deg);
  background: var(--green);
  border-radius: 4px 20px 20px 4px;
  color: #f5f4d9;
  padding: 33px;
  border-left: 10px solid #103f36;
  box-shadow: 15px 16px 0 #c8d1b8;
}
.art-book > .icon {
  width: 45px;
  height: 45px;
}
.art-book > span {
  display: block;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.4px;
  margin-top: 16px;
}
.art-card {
  position: absolute;
  background: white;
  padding: 15px 18px;
  border: 1px solid #e4e7dc;
  border-radius: 12px;
  box-shadow: 0 10px 30px #254a3310;
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 10px;
  min-width: 250px;
  font-size: 11px;
}
.art-card > .icon {
  grid-row: 1/3;
  color: var(--orange);
  align-self: center;
}
.art-card b {
  font-size: 13px;
  font-weight: 600;
}
.art-card span {
  color: var(--muted);
}
.art-card-top {
  z-index: 2;
  top: 24px;
  right: 8px;
  transform: rotate(5deg);
}
.art-card-bottom {
  z-index: 2;
  bottom: 7px;
  left: 36px;
  transform: rotate(3deg);
}
.art-spark {
  position: absolute;
  right: 6px;
  bottom: 35px;
  color: var(--orange);
  font-size: 55px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 23px;
  gap: 15px;
}
.section-heading h2 {
  margin-top: 9px;
}
.school-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.school-card {
  display: flex;
  align-items: center;
  gap: 19px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 28px;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.school-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}
.school-card > .icon {
  margin-left: auto;
  color: var(--green);
}
.school-emblem {
  height: 65px;
  width: 65px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #edf3e7;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 24px;
  border: 1px solid #dde7d5;
}
.school-card:nth-child(2) .school-emblem {
  background: #f9eee4;
  color: #935532;
  border-color: #efddce;
}
.school-card h3 {
  margin: 5px 0;
}
.school-card p {
  font-size: 13px;
}
.resume {
  display: block;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
}
.demo-explanation {
  margin: 17px 0;
  font-size: 12px;
}
.footer {
  max-width: 1168px;
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 25px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.footer-brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--green);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
  min-height: 40px;
}
.back-link .icon {
  width: 17px;
}
.selection-intro {
  margin: 30px 0 42px;
  max-width: 670px;
}
.selection-intro h1 {
  margin: 13px 0 17px;
  font-size: 37px;
}
.selection-intro p {
  font-size: 16px;
}
.selection-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 55px;
}
.class-group {
  margin-bottom: 30px;
}
.class-group h2 {
  font-size: 17px;
  margin-bottom: 16px;
}
.class-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.class-choice {
  padding: 22px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 104px;
}
.class-choice:hover,
.class-choice.remembered {
  border-color: #90b29c;
  background: #f3f7ef;
}
.class-choice h3 {
  font-size: 20px;
}
.class-choice span:not(.class-icon) {
  font-size: 11px;
  color: var(--muted);
}
.class-choice > .icon {
  margin-left: auto;
  width: 17px;
}
.class-icon {
  padding: 10px;
  background: #f1f5ed;
  color: var(--green);
  border-radius: 9px;
  display: flex;
}
.helper-card {
  background: #edf3e7;
  border-radius: 14px;
  padding: 28px;
  align-self: start;
}
.helper-card > .icon {
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
}
.helper-card h3 {
  margin-bottom: 12px;
}
.helper-card p {
  font-size: 13px;
  margin-bottom: 13px;
  line-height: 1.75;
}
.helper-card > span {
  display: block;
  font-size: 11px;
  color: var(--green);
  border-top: 1px solid #d7e2cf;
  padding-top: 17px;
  margin-top: 21px;
}
.class-breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.class-breadcrumb > span {
  color: #a8b3a7;
}
.class-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin: 32px 0 35px;
}
.class-hero h1 {
  margin: 11px 0 12px;
  font-size: 38px;
}
.class-hero p {
  font-size: 14px;
}
.wave {
  color: var(--orange);
  display: inline-block;
  margin-left: 10px;
  font-size: 34px;
}
.class-actions {
  display: flex;
  gap: 9px;
  flex-shrink: 0;
}
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 10px 16px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  background: white;
  color: var(--green);
}
.button.secondary {
  border-color: var(--line);
}
.button.primary {
  background: var(--green);
  color: white;
}
.button:hover {
  filter: brightness(0.96);
}
.icon-button {
  padding: 10px;
  border: 1px solid var(--line);
  width: 44px;
}
.class-tabs {
  display: flex;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 25px;
}
.class-tabs > a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 3px 14px;
  color: var(--muted);
  font-size: 15px;
  border-bottom: 3px solid transparent;
  position: relative;
  top: 1px;
  font-weight: 600;
}
.class-tabs > a[aria-current] {
  color: var(--green);
  border-bottom-color: var(--green);
}
.class-tabs .icon {
  width: 19px;
}
.class-level {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  padding-bottom: 14px;
}
.feed-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin: 26px 0 26px;
}
.source-filters {
  display: flex;
  gap: 7px;
  align-items: center;
}
.filter-chip {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 30px;
  font-size: 12px;
  color: var(--muted);
  padding: 10px 16px;
  min-height: 40px;
}
.filter-chip.active {
  background: var(--green);
  color: white;
  font-weight: 600;
}
.filter-chip:not(.active):hover {
  background: #edf2e9;
}
.select-filters {
  display: flex;
  gap: 13px;
}
.select-filters label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}
select {
  font-size: 11px;
  min-height: 40px;
  max-width: 205px;
  min-width: 155px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 8px;
  background: white;
  color: var(--ink);
}
.feed-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 294px;
  gap: 36px;
  align-items: start;
}
.feed-count {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 11px;
  color: var(--muted);
}
.feed-count > span {
  font-size: 10px;
}
.announcement {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 25px;
  margin-bottom: 17px;
}
.announcement.pinned {
  background: #f4f7ec;
  border-color: #d1ddbd;
}
.pinned-label {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.1em;
  color: #657e42;
  margin-bottom: 17px;
}
.pinned-label .icon {
  width: 13px;
  height: 13px;
}
.publication-header {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 18px;
}
.avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e3eddd;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar.orange {
  background: #f5e8dd;
  color: #965734;
}
.avatar.blue {
  background: #e4ecef;
  color: #43687f;
}
.publication-header strong {
  font-size: 12px;
  display: block;
  font-weight: 650;
}
.publication-header div > span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.publication-header time {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.announcement h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}
.announcement > p {
  font-size: 13px;
  line-height: 1.8;
}
.resource-announcement-link {
  display: flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  font-size: 12px;
  font-weight: 650;
  margin-top: 18px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf5;
  color: var(--green);
}
.resource-announcement-link .icon {
  width: 16px;
  height: 16px;
}
.resource-announcement-link .icon:last-child {
  margin-left: 7px;
}
.class-sidebar {
  padding-top: 3px;
}
.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 19px;
  gap: 8px;
}
.sidebar-heading h2 {
  font-size: 15px;
}
.sidebar-heading a {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--green);
}
.sidebar-heading .icon {
  width: 13px;
  height: 13px;
}
.sidebar-teacher {
  display: flex;
  gap: 11px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.sidebar-teacher strong {
  font-size: 11px;
  font-weight: 650;
  display: block;
}
.sidebar-teacher span:not(.avatar) {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.sidebar-teacher > .icon {
  width: 15px;
  margin-left: auto;
  transform: rotate(-90deg);
  color: var(--muted);
}
.sidebar-note {
  background: #f0f2e9;
  border-radius: 12px;
  padding: 24px;
  margin-top: 27px;
}
.sidebar-note > .icon {
  color: var(--green);
  margin-bottom: 12px;
}
.sidebar-note h3 {
  font-size: 16px;
  margin-bottom: 10px;
}
.sidebar-note p {
  font-size: 12px;
  line-height: 1.75;
}
.text-button {
  border: 0;
  background: none;
  color: var(--green);
  padding: 0 3px;
  text-decoration: underline;
  font-size: 11px;
}
.empty-state {
  text-align: center;
  padding: 55px 25px;
  background: white;
  border: 1px dashed #cdd9c9;
  border-radius: 14px;
}
.empty-state > .icon {
  width: 36px;
  height: 36px;
  color: var(--green);
  margin-bottom: 20px;
}
.empty-state h1,
.empty-state h2 {
  margin-bottom: 13px;
}
.empty-state p {
  margin-bottom: 20px;
}
.documents-intro {
  margin: 31px 0 25px;
}
.documents-intro h2 {
  font-size: 22px;
  margin-bottom: 10px;
}
.documents-intro p {
  font-size: 13px;
}
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.teacher-card {
  border: 1px solid var(--line);
  background: white;
  border-radius: 15px;
  overflow: hidden;
  padding: 25px;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.teacher-card:hover {
  transform: translateY(-3px);
  border-color: #93b69b;
}
.teacher-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.avatar.large {
  width: 54px;
  height: 54px;
  font-size: 16px;
}
.teacher-card.orange .avatar {
  background: #f5e8dd;
  color: #965734;
}
.teacher-card.blue .avatar {
  background: #e4ecef;
  color: #43687f;
}
.teacher-card-top > .icon {
  width: 19px;
  color: var(--muted);
}
.teacher-card h3 {
  font-size: 20px;
  margin: 9px 0 11px;
}
.teacher-card p {
  font-size: 11px;
}
.library-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 19px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}
.library-open .icon {
  width: 17px;
  height: 17px;
}
.tip {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  color: var(--muted);
  background: #eef3e8;
  padding: 18px;
  border-radius: 10px;
  margin-top: 27px;
}
.tip .icon {
  color: var(--green);
  width: 18px;
}
.library-back {
  margin-top: -12px;
  margin-bottom: 22px;
}
.library-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.chapter-nav {
  position: sticky;
  top: 25px;
  align-self: start;
}
.chapter-nav > .eyebrow {
  font-size: 9px;
  margin: 10px 0 17px;
}
.chapter-nav nav a {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  min-height: 45px;
}
.chapter-nav nav a > span {
  color: #819275;
  font-size: 10px;
}
.level-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  margin: 27px 0 9px;
}
.level-pill > .icon {
  width: 16px;
  height: 16px;
}
.chapter-nav > p {
  font-size: 11px;
  line-height: 1.8;
}
.library-count {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 23px;
}
.library-count > span {
  color: #89918a;
}
.chapter-section {
  scroll-margin-top: 20px;
  margin-bottom: 37px;
}
.chapter-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 20px 0;
}
.chapter-title > span {
  font-size: 10px;
  color: var(--green);
  padding: 7px 9px;
  background: #e8efe0;
  border-radius: 6px;
}
.chapter-title h2 {
  font-size: 21px;
}
.resource-card {
  padding: 25px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  margin-bottom: 17px;
  scroll-margin-top: 25px;
}
.resource-card:target {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #dbe9d2;
}
.resource-card:focus {
  outline: none;
}
.resource-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
}
.resource-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  background: #eaf2e5;
  color: #3e6c35;
  padding: 4px 8px;
  border-radius: 5px;
  font-weight: 600;
}
.resource-type.exercises {
  background: #f8eadc;
  color: #925e2e;
}
.resource-type.summary {
  background: #e9eef7;
  color: #4c628c;
}
.resource-type.correction {
  background: #eee9f4;
  color: #795a95;
}
.resource-type > .icon {
  width: 12px;
  height: 12px;
}
.resource-card h3 {
  font-size: 21px;
  letter-spacing: -0.5px;
}
.resource-subtitle {
  margin-top: 7px;
  font-size: 12px;
}
.student-note {
  display: flex;
  gap: 10px;
  padding: 15px;
  background: #f6f4e8;
  border-left: 2px solid #cbb97f;
  border-radius: 0 7px 7px 0;
  margin: 19px 0;
}
.student-note > .icon {
  width: 17px;
  height: 17px;
  color: #8c794d;
  margin-top: 2px;
}
.student-note strong {
  font-size: 11px;
  color: #796842;
  font-weight: 600;
}
.student-note p {
  font-size: 12px;
  color: #82775d;
  line-height: 1.65;
  margin-top: 3px;
}
.file-list {
  margin-top: 20px;
}
.file-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  min-height: 65px;
}
.file-icon {
  font-size: 9px;
  font-weight: 750;
  color: #a86745;
  background: #faf0e7;
  border: 1px solid #eee2d7;
  padding: 9px 6px;
  border-radius: 6px;
}
.file-link strong {
  font-size: 12px;
  display: block;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.file-link small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.file-open {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
}
.file-open > .icon {
  width: 14px;
  height: 14px;
}
.file-disclaimer {
  margin-top: 24px;
  font-size: 11px;
}
.share-dialog {
  width: min(440px, calc(100% - 30px));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  color: var(--ink);
  box-shadow: 0 20px 80px #10291f33;
}
.share-dialog::backdrop {
  background: #183e3655;
}
.share-dialog h2 {
  clear: both;
  padding-top: 15px;
  font-size: 24px;
}
.share-dialog > p {
  font-size: 12px;
  margin: 12px 0;
}
.dialog-close {
  float: right;
  font-size: 11px;
  min-height: 38px;
}
.qr-wrap {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  min-height: 220px;
  align-items: center;
}
.share-dialog label {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.share-dialog input {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 11px;
  color: var(--ink);
  background: #fafbf7;
  margin-top: 8px;
}
.small-help {
  line-height: 1.8;
}
.storage-notice {
  font-size: 12px;
  padding: 12px;
  background: #f7edda;
  border-radius: 8px;
  margin-bottom: 20px;
}
@media (min-width: 1500px) {
  main {
    padding-top: 44px;
  }
  .home-hero {
    padding-top: 65px;
  }
}
@media (max-width: 1050px) {
  .feed-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 24px;
  }
  .feed-toolbar {
    flex-wrap: wrap;
    gap: 15px;
  }
  .select-filters {
    margin-left: auto;
  }
  .teacher-grid {
    grid-template-columns: 1fr 1fr;
  }
  .home-hero {
    gap: 15px;
  }
  .home-hero h1 {
    font-size: 36px;
  }
  .hero-art {
    transform: scale(0.86);
  }
  .library-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 30px;
  }
  .footer {
    margin: 0 36px;
  }
  .selection-layout {
    gap: 25px;
    grid-template-columns: 1fr 240px;
  }
  .class-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 740px) {
  body {
    font-size: 14px;
  }
  .demo-banner {
    font-size: 10px;
    min-height: 30px;
  }
  .topbar {
    height: 74px;
    padding: 0 20px;
    gap: 10px;
  }
  .brand {
    font-size: 24px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 24px;
    margin-right: 8px;
  }
  .student-label {
    font-size: 9px;
    padding: 6px 9px;
    white-space: nowrap;
  }
  .tagline {
    display: none;
  }
  .header-school {
    margin-left: auto;
    padding-left: 12px;
    border: 0;
    font-size: 10px;
    gap: 5px;
    max-width: 150px;
  }
  .header-school .icon {
    width: 16px;
    height: 16px;
  }
  .header-school + .student-label {
    display: none;
  }
  main {
    padding: 24px 20px 45px;
  }
  .home-hero {
    grid-template-columns: 1fr;
    padding: 13px 0 40px;
    gap: 20px;
  }
  .home-hero h1 {
    font-size: 33px;
    line-height: 1.27;
    letter-spacing: -1.1px;
    margin: 15px 0 18px;
  }
  .home-hero p {
    font-size: 14px;
  }
  .home-note {
    font-size: 10px;
    margin-top: 18px;
  }
  .hero-art {
    height: 260px;
    max-width: 340px;
    width: 100%;
    margin: auto;
    transform: scale(0.86);
    transform-origin: center;
  }
  .art-circle {
    inset: 0 12px;
  }
  .art-book {
    top: 53px;
    left: 58px;
    width: 207px;
    height: 184px;
    padding: 25px;
  }
  .art-book > span {
    font-size: 16px;
    margin-top: 9px;
  }
  .art-card {
    min-width: 210px;
    padding: 12px 15px;
  }
  .art-card-top {
    top: 0;
    right: -3px;
  }
  .art-card-bottom {
    bottom: -14px;
    left: 9px;
  }
  .art-spark {
    right: -2px;
    bottom: 5px;
    font-size: 43px;
  }
  .section-heading {
    display: block;
    margin-bottom: 18px;
  }
  .section-heading h2 {
    font-size: 24px;
  }
  .section-heading > .muted {
    display: block;
    margin-top: 8px;
  }
  .school-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .school-card {
    padding: 21px 17px;
    gap: 14px;
    border-radius: 12px;
  }
  .school-emblem {
    width: 52px;
    height: 52px;
    font-size: 21px;
    border-radius: 14px;
  }
  .school-card h3 {
    font-size: 18px;
  }
  .school-card .small-label {
    font-size: 9px;
  }
  .school-card p {
    font-size: 11px;
  }
  .demo-explanation {
    font-size: 10px;
    line-height: 1.8;
    margin-top: 15px;
  }
  .footer {
    margin: 0 20px;
    padding: 20px 0 25px;
    flex-wrap: wrap;
    gap: 9px;
    font-size: 9px;
  }
  .footer-brand {
    font-size: 17px;
  }
  .footer > span:last-child {
    width: 100%;
  }
  .selection-intro {
    margin: 23px 0 30px;
  }
  .selection-intro h1 {
    font-size: 30px;
  }
  .selection-intro p {
    font-size: 13px;
  }
  .selection-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .class-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .class-choice {
    padding: 18px 12px;
    flex-wrap: wrap;
    gap: 9px;
    min-height: 135px;
  }
  .class-choice > .icon {
    width: 15px;
    margin-left: auto;
  }
  .class-choice h3 {
    font-size: 20px;
  }
  .class-choice div {
    width: 100%;
    order: 3;
  }
  .class-choice span:not(.class-icon) {
    font-size: 10px;
  }
  .class-group h2 {
    font-size: 16px;
  }
  .helper-card {
    padding: 22px;
  }
  .helper-card > .icon {
    float: left;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    margin-bottom: 0;
  }
  .helper-card h3 {
    font-size: 17px;
  }
  .helper-card p {
    font-size: 12px;
  }
  .helper-card > span {
    font-size: 10px;
    margin-top: 15px;
    padding-top: 12px;
  }
  .class-breadcrumb {
    font-size: 10px;
    gap: 7px;
  }
  .class-hero {
    flex-wrap: wrap;
    margin: 23px 0 22px;
    gap: 18px;
  }
  .class-hero h1 {
    font-size: 31px;
    letter-spacing: -1.1px;
    margin: 10px 0;
  }
  .class-hero .eyebrow {
    font-size: 9px;
    letter-spacing: 0.09em;
  }
  .class-hero p {
    font-size: 12px;
    max-width: 320px;
    line-height: 1.8;
  }
  .wave {
    font-size: 25px;
    margin-left: 3px;
  }
  .class-actions {
    width: 100%;
    gap: 8px;
    justify-content: space-between;
  }
  .button {
    font-size: 11px;
    min-height: 44px;
  }
  .class-tabs {
    gap: 25px;
    margin-bottom: 20px;
  }
  .class-tabs > a {
    font-size: 14px;
    gap: 7px;
    padding-bottom: 13px;
  }
  .class-level {
    display: none;
  }
  .feed-toolbar {
    display: block;
    margin: 20px 0;
  }
  .source-filters {
    gap: 3px;
    margin-bottom: 17px;
  }
  .filter-chip {
    font-size: 11px;
    padding: 10px 13px;
  }
  .select-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .select-filters label {
    font-size: 9px;
  }
  select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: 10px;
    padding: 8px 5px;
    min-height: 42px;
  }
  .feed-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .feed-count {
    font-size: 10px;
    gap: 5px;
  }
  .feed-count > span {
    font-size: 9px;
  }
  .announcement {
    padding: 20px 18px;
    border-radius: 11px;
    margin-bottom: 14px;
  }
  .publication-header {
    gap: 9px;
    margin-bottom: 17px;
  }
  .avatar {
    width: 34px;
    height: 34px;
    font-size: 10px;
  }
  .avatar > .icon {
    width: 18px;
    height: 18px;
  }
  .publication-header strong {
    font-size: 10px;
  }
  .publication-header div > span {
    font-size: 9px;
  }
  .publication-header time {
    font-size: 9px;
  }
  .announcement h2 {
    font-size: 19px;
    letter-spacing: -0.5px;
    line-height: 1.4;
  }
  .announcement > p {
    font-size: 12px;
    line-height: 1.85;
  }
  .pinned-label {
    font-size: 8px;
    margin-bottom: 15px;
  }
  .resource-announcement-link {
    font-size: 11px;
    min-height: 44px;
    margin-top: 17px;
  }
  .class-sidebar {
    padding-top: 7px;
  }
  .sidebar-heading h2 {
    font-size: 16px;
  }
  .sidebar-heading a {
    font-size: 11px;
  }
  .sidebar-teacher {
    padding: 15px 0;
  }
  .sidebar-teacher strong {
    font-size: 12px;
  }
  .sidebar-teacher span:not(.avatar) {
    font-size: 10px;
  }
  .sidebar-note {
    margin-top: 20px;
    padding: 20px;
  }
  .documents-intro {
    margin: 25px 0 20px;
  }
  .documents-intro h2 {
    font-size: 21px;
    line-height: 1.35;
  }
  .documents-intro p {
    font-size: 12px;
    line-height: 1.8;
    margin-top: 11px;
  }
  .teacher-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .teacher-card {
    padding: 22px;
  }
  .teacher-card-top {
    margin-bottom: 15px;
  }
  .teacher-card h3 {
    font-size: 22px;
  }
  .teacher-card .small-label {
    font-size: 11px;
  }
  .teacher-card p {
    font-size: 12px;
  }
  .library-open {
    font-size: 12px;
  }
  .tip {
    font-size: 11px;
    align-items: flex-start;
    line-height: 1.8;
    margin-top: 22px;
    padding: 17px;
  }
  .library-layout {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 17px;
  }
  .chapter-nav {
    position: static;
  }
  .chapter-nav > .eyebrow {
    font-size: 9px;
    margin-bottom: 12px;
  }
  .chapter-nav nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 3px 2px 8px;
    max-width: 100%;
  }
  .chapter-nav nav a {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    flex-shrink: 0;
    max-width: 210px;
    align-items: center;
    font-size: 10px;
    padding: 10px;
    gap: 6px;
    min-height: 44px;
  }
  .chapter-nav nav a > span {
    font-size: 9px;
  }
  .level-pill {
    margin: 12px 0 5px;
    font-size: 10px;
  }
  .chapter-nav > p {
    font-size: 10px;
  }
  .library-count {
    font-size: 10px;
    margin-bottom: 14px;
  }
  .chapter-title {
    margin: 14px 0 17px;
    gap: 8px;
  }
  .chapter-title h2 {
    font-size: 20px;
  }
  .resource-card {
    padding: 20px 16px;
    margin-bottom: 14px;
  }
  .resource-card h3 {
    font-size: 20px;
    line-height: 1.4;
  }
  .resource-card .muted {
    font-size: 10px;
  }
  .resource-subtitle {
    font-size: 11px;
  }
  .student-note {
    padding: 12px;
    gap: 7px;
    margin-top: 16px;
  }
  .student-note strong {
    font-size: 10px;
  }
  .student-note p {
    font-size: 11px;
  }
  .file-link {
    gap: 8px;
    min-height: 72px;
  }
  .file-link strong {
    font-size: 10px;
    line-height: 1.6;
  }
  .file-link small {
    font-size: 9px;
  }
  .file-icon {
    font-size: 8px;
    padding: 8px 5px;
  }
  .file-open {
    font-size: 10px;
    gap: 2px;
  }
  .file-open > .icon {
    width: 12px;
    height: 12px;
  }
  .file-disclaimer {
    font-size: 10px;
    line-height: 1.8;
  }
  .library-back {
    font-size: 11px;
  }
  .share-dialog {
    padding: 22px;
  }
  .share-dialog h2 {
    font-size: 23px;
  }
  .share-dialog input {
    font-size: 10px;
  }
  .empty-state {
    padding: 35px 18px;
  }
  .empty-state h2 {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media print {
  .demo-banner,
  .topbar,
  .class-actions,
  .footer,
  .chapter-nav,
  .class-tabs {
    display: none;
  }
  .resource-card,
  .announcement {
    break-inside: avoid;
  }
}
