.home {
  font-size: 15px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 228px;
  padding: 34px 22px 24px;
  border-right: 1px solid var(--line);
  background: white;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.7px;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.4px;
  margin-top: 2px;
}
.sidebar-label {
  font-size: 11px;
  color: #73867f;
  margin: 49px 15px 14px;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.side-nav a,
.side-nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 11px;
  padding: 12px 14px;
  color: #60736b;
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
}
.side-nav .icon {
  width: 20px;
  height: 20px;
}
.side-nav a:hover,
.side-nav button:hover {
  background: #f4f8f5;
  color: var(--green);
}
.side-nav a.active {
  background: var(--mint);
  color: var(--green);
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 40px;
}
.sidebar-note {
  margin: 20px 3px 24px;
  background: #f6f8f2;
  border-radius: 15px;
  padding: 20px 15px;
}
.sidebar-note strong {
  display: block;
  font-size: 13px;
  margin-top: 14px;
}
.sidebar-note p {
  font-size: 11px;
  margin: 4px 0 0;
  color: var(--muted);
}
.mini-shapes {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 24px;
}
.mini-shapes i {
  width: 20px;
  height: 20px;
  background: #9dc7b2;
  border-radius: 50%;
}
.mini-shapes i:nth-child(2) {
  border-radius: 3px;
  background: var(--yellow);
  transform: rotate(14deg);
}
.mini-shapes i:nth-child(3) {
  background: #91b1dc;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  border-radius: 0;
}
.teacher-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  min-height: 44px;
}
.teacher-entry .icon {
  width: 17px;
  height: 17px;
}
.teacher-entry > span:last-child {
  margin-left: auto;
}
.page-shell {
  margin-left: 228px;
  max-width: 1700px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 48px 26px;
}
.today-label {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 3px;
}
.topbar h1 {
  font-size: 24px;
  letter-spacing: -0.5px;
  line-height: 1.5;
  margin: 0;
  font-weight: 750;
}
.account-button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 9px 15px 9px 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  min-height: 46px;
}
.account-button > .icon,
.account-button > [data-icon] {
  background: var(--mint);
  padding: 7px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}
.account-button .icon {
  width: 18px;
  height: 18px;
}
.account-button:hover {
  border-color: #8fb7a4;
}
main {
  padding: 0 48px;
}
.welcome-banner {
  min-height: 285px;
  border-radius: 24px;
  background: #e4f1e8;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
  position: relative;
}
.welcome-copy {
  padding: 32px 38px;
  z-index: 1;
}
.banner-label {
  font-size: 12px;
  color: var(--green);
  font-weight: 650;
  margin: 0 0 12px;
}
.welcome-copy h2 {
  font-size: 36px;
  letter-spacing: -1.5px;
  line-height: 1.4;
  margin: 0;
  font-weight: 800;
}
.welcome-copy > p:not(.banner-label) {
  font-size: 13px;
  color: #527160;
  line-height: 1.9;
  margin: 12px 0 20px;
}
.welcome-copy .primary-button {
  min-height: 43px;
  padding: 10px 18px;
  font-size: 13px;
}
.welcome-copy .icon {
  width: 18px;
  height: 18px;
}
.tangram-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 6px 33px;
}
.tangram-art > svg {
  width: 100%;
  max-width: 440px;
  height: auto;
}
.art-caption {
  position: absolute;
  bottom: 24px;
  font-size: 11px;
  color: #577866;
  letter-spacing: 1px;
}
.daily-learning {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(235px, 1fr);
  gap: 20px;
  margin-top: 24px;
  scroll-margin-top: 24px;
}
.task-panel,
.time-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  padding: 23px 25px;
  min-width: 0;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.panel-title h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}
.panel-title .icon {
  width: 19px;
  height: 19px;
  color: var(--green);
}
.quiet-button,
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  font-weight: 650;
  padding: 8px 0;
}
.quiet-button:hover,
.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-button .icon {
  width: 17px;
  height: 17px;
}
.empty-tasks {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 104px;
  flex-wrap: wrap;
  padding: 16px 0 0;
}
.empty-tasks > .icon {
  width: 42px;
  height: 42px;
  padding: 10px;
  background: #f0f6f2;
  color: #6b9982;
  border-radius: 12px;
}
.empty-tasks p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  flex: 1;
  min-width: 180px;
}
.empty-tasks .text-button {
  margin-left: 54px;
  margin-top: -16px;
}
.time-panel {
  background: #fffdf6;
  border-color: #eee6ce;
}
.time-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.time-head > .icon,
.time-head > [data-icon] > .icon {
  width: 18px;
  height: 18px;
  color: #8d7234;
}
.time-head h2 {
  font-size: 13px;
  font-weight: 550;
  color: #75663f;
  margin: 0;
}
.remaining-number {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 8px 0 10px;
}
.remaining-number > span:first-child {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -1px;
  color: #4d543a;
  font-variant-numeric: tabular-nums;
}
.remaining-number small {
  font-size: 12px;
}
.time-total {
  font-size: 11px;
  color: #81785e;
  margin-left: auto;
}
.quota-track {
  height: 6px;
  background: #ede9db;
  border-radius: 4px;
  overflow: hidden;
}
.quota-track > div {
  height: 100%;
  width: 0;
  background: #d5af51;
  border-radius: 4px;
  transition: width 0.4s ease;
}
.time-panel > p {
  font-size: 11px;
  color: #786e52;
  line-height: 1.7;
  margin: 10px 0 0;
}
.home-task {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid #edf1ee;
}
.home-task:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.home-task > div {
  min-width: 0;
  flex: 1;
}
.home-task strong {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.home-task small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.home-task > a {
  font-size: 12px;
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  padding: 9px 12px;
  background: var(--mint);
  border-radius: 8px;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.task-done {
  font-size: 12px;
  color: var(--green);
  padding: 8px;
}
.task-progress {
  height: 4px;
  background: #edf2ef;
  border-radius: 3px;
  margin-top: 10px;
  max-width: 320px;
  overflow: hidden;
}
.task-progress > i {
  display: block;
  height: 100%;
  background: #62a985;
  border-radius: 3px;
}
.task-count {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 7px;
}
.learning {
  padding-top: 36px;
  scroll-margin-top: 10px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.section-heading h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  margin: 0;
  font-weight: 750;
}
.section-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 0;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 260px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
}
.search-box .icon {
  width: 17px;
  height: 17px;
  color: #75887f;
}
.search-box input {
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  border: 0;
  outline: none;
  padding: 12px 0;
  width: 220px;
  min-height: 44px;
}
.search-box:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.search-box input:focus-visible {
  outline: none;
}
.search-box kbd {
  color: #697b72;
  font: 11px inherit;
  background: #f3f6f4;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 5px;
}
.library-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}
.module-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.module-tabs button {
  border: 0;
  background: transparent;
  padding: 9px 15px;
  min-height: 40px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.module-tabs button[aria-pressed="true"] {
  color: white;
  background: var(--green);
}
.module-tabs button:hover:not([aria-pressed="true"]) {
  background: #eaf0ec;
}
.module-tabs button span {
  font-size: 10px;
  opacity: 0.8;
  padding-left: 3px;
}
.grade-select {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}
.grade-select select {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 30px 9px 11px;
  min-height: 40px;
  background: white;
  color: var(--ink);
  font-size: 12px;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.resource-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  overflow: hidden;
  min-width: 0;
  position: relative;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.resource-card:hover {
  border-color: #9abca9;
  box-shadow: var(--shadow);
}
.resource-visual {
  height: 160px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #e5eddf;
}
.resource-visual svg {
  height: 148px;
  width: 100%;
  max-width: 280px;
  transition: transform 0.2s;
}
.resource-card:hover .resource-visual svg {
  transform: translateY(-3px);
}
.resource-visual.card24 {
  background: #e8eaf8;
}
.resource-visual.seven-seas {
  background: #e2eef7;
}
.resource-visual.practice {
  background: #f8eddb;
}
.resource-body {
  padding: 20px 20px 17px;
}
.resource-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.resource-meta i {
  width: 3px;
  height: 3px;
  background: #a2b1a8;
  border-radius: 50%;
}
.resource-body h3 {
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 7px;
  letter-spacing: -0.35px;
  overflow-wrap: anywhere;
}
.resource-description {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.8;
  min-height: 43px;
}
.resource-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid #edf1ee;
}
.resource-tag {
  font-size: 10px;
  color: #527160;
  padding: 4px 7px;
  background: #f1f6f2;
  border-radius: 5px;
  max-width: 60%;
  overflow-wrap: anywhere;
}
.resource-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  min-height: 35px;
}
.resource-link .icon {
  width: 16px;
  height: 16px;
}
.resource-link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.resource-link:focus-visible {
  outline: 0;
}
.resource-card:has(.resource-link:focus-visible) {
  outline: 3px solid #b67917;
  outline-offset: 4px;
}
.library-empty {
  text-align: center;
  background: white;
  border: 1px dashed #cddbd2;
  border-radius: 18px;
  padding: 45px 20px;
}
.library-empty > .icon {
  width: 34px;
  height: 34px;
  color: #7f9b8b;
}
.library-empty h3 {
  font-size: 18px;
  margin: 12px 0 5px;
}
.library-empty p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
}
.library-empty .secondary-button {
  font-size: 13px;
}
.catalog-note {
  font-size: 12px;
  color: #806531;
  min-height: 0;
  margin: 10px 0 0;
}
.catalog-note:empty {
  display: none;
}
.recent-section {
  padding-top: 36px;
}
.recent-learning {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.recent-empty {
  font-size: 13px;
  color: var(--muted);
  padding: 22px 24px;
  margin: 0;
}
.recent-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 23px;
  border-bottom: 1px solid #edf1ee;
}
.recent-row:last-child {
  border-bottom: 0;
}
.recent-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--mint);
  color: var(--green);
  display: grid;
  place-items: center;
}
.recent-icon .icon {
  width: 20px;
  height: 20px;
}
.recent-info {
  min-width: 0;
  flex: 1;
}
.recent-info strong {
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.recent-info small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.recent-status {
  font-size: 11px;
  color: #62766c;
  white-space: nowrap;
}
.recent-row a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--green);
  font-weight: 650;
  min-height: 40px;
  padding: 6px;
}
.recent-row a .icon {
  width: 16px;
  height: 16px;
}
.bottom-note {
  text-align: center;
  margin: 43px 0 28px;
}
.bottom-note > span {
  font-size: 20px;
  font-weight: 750;
  color: #a4bbb0;
  letter-spacing: 8px;
}
.bottom-note p {
  color: #687e71;
  font-size: 11px;
  margin: 7px 0;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin: 0 48px;
  padding: 22px 0 26px;
  font-size: 10px;
  color: #73867c;
}
.icp:hover {
  text-decoration: underline;
}
.task-modal {
  width: min(600px, calc(100% - 32px));
}
.task-modal ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.task-modal li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 17px;
  margin-bottom: 10px;
}
.task-modal li p {
  font-size: 12px;
  margin: 5px 0 0;
}
.task-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}
.task-actions > button:not(.primary-button) {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 17px;
  color: var(--muted);
  min-height: 44px;
}
@media (min-width: 1600px) {
  .welcome-banner {
    grid-template-columns: 1.2fr 1fr;
  }
  .welcome-copy {
    padding-left: 46px;
  }
  .welcome-copy h2 {
    font-size: 42px;
  }
  .resource-visual {
    height: 190px;
  }
  .resource-visual svg {
    height: 180px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 200px;
    padding: 28px 16px;
  }
  .page-shell {
    margin-left: 200px;
  }
  .topbar {
    padding: 28px 30px 24px;
  }
  main {
    padding: 0 30px;
  }
  footer {
    margin: 0 30px;
  }
  .brand {
    font-size: 18px;
  }
  .brand small {
    font-size: 9px;
  }
  .brand-mark {
    width: 37px;
    height: 37px;
  }
  .welcome-copy {
    padding: 29px;
  }
  .welcome-copy h2 {
    font-size: 32px;
  }
  .tangram-art {
    padding-bottom: 38px;
  }
  .resource-grid {
    gap: 14px;
  }
  .resource-body {
    padding: 17px;
  }
  .resource-body h3 {
    font-size: 15px;
  }
  .resource-visual {
    height: 140px;
  }
  .resource-visual svg {
    height: 140px;
  }
  .daily-learning {
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr);
    gap: 14px;
  }
  .task-panel,
  .time-panel {
    padding: 20px;
  }
  .search-box {
    min-width: 220px;
  }
  .search-box input {
    width: 175px;
  }
}
@media (max-width: 960px) {
  .sidebar {
    width: 78px;
    padding: 28px 12px;
  }
  .brand > span:last-child,
  .sidebar-label,
  .side-nav a > span:not([data-icon]),
  .sidebar-bottom {
    display: none;
  }
  .brand {
    justify-content: center;
  }
  .side-nav {
    margin-top: 40px;
  }
  .side-nav a,
  .side-nav button {
    font-size: 0;
    justify-content: center;
    padding: 12px;
  }
  .side-nav .icon {
    width: 23px;
    height: 23px;
  }
  .page-shell {
    margin-left: 78px;
  }
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .welcome-copy h2 {
    font-size: 30px;
  }
  .welcome-banner {
    grid-template-columns: 1.2fr 1fr;
  }
  .tangram-art {
    margin-right: -32px;
  }
  .art-caption {
    font-size: 9px;
  }
  .welcome-copy > p:not(.banner-label) {
    font-size: 12px;
  }
  .daily-learning {
    grid-template-columns: minmax(0, 1.4fr) minmax(210px, 1fr);
  }
  .search-box {
    min-width: 200px;
  }
  .search-box input {
    width: 160px;
  }
  .section-heading {
    gap: 14px;
  }
  .section-heading h2 {
    font-size: 20px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    padding: 18px 20px 0;
    border: 0;
    background: white;
  }
  .brand {
    justify-content: flex-start;
    width: max-content;
    font-size: 19px;
  }
  .brand > span:last-child {
    display: block;
  }
  .brand small {
    font-size: 9px;
  }
  .side-nav {
    flex-direction: row;
    margin: 17px -5px 0;
    gap: 2px;
    border-top: 1px solid #edf1ee;
    padding: 7px 0;
  }
  .side-nav a,
  .side-nav button {
    font-size: 11px;
    min-height: 44px;
    width: 25%;
    padding: 7px 4px;
    border-radius: 7px;
    gap: 6px;
    white-space: nowrap;
  }
  .side-nav .icon {
    width: 17px;
    height: 17px;
  }
  .side-nav a[data-nav="explain"] {
    display: none;
  }
  .side-nav button {
    font-size: 0;
    width: 44px;
    flex-shrink: 0;
  }
  .side-nav button .icon {
    width: 22px;
    height: 22px;
  }
  .page-shell {
    margin: 0;
  }
  .topbar {
    padding: 24px 20px 20px;
    gap: 12px;
  }
  .topbar h1 {
    font-size: 20px;
  }
  .today-label {
    font-size: 10px;
  }
  .account-button {
    font-size: 11px;
    padding: 6px 11px 6px 6px;
    gap: 6px;
    min-height: 40px;
  }
  .account-button > [data-icon] {
    width: 26px;
    height: 26px;
    padding: 5px;
  }
  .account-button .icon {
    width: 16px;
    height: 16px;
  }
  main {
    padding: 0 20px;
  }
  .welcome-banner {
    grid-template-columns: 1.25fr 1fr;
    min-height: 240px;
    border-radius: 18px;
  }
  .welcome-copy {
    padding: 25px 0 25px 24px;
  }
  .welcome-copy h2 {
    font-size: 29px;
    letter-spacing: -1px;
  }
  .banner-label {
    font-size: 10px;
    margin-bottom: 10px;
  }
  .welcome-copy > p:not(.banner-label) {
    font-size: 11px;
    margin: 10px 0 17px;
  }
  .welcome-copy .primary-button {
    font-size: 11px;
    min-height: 39px;
    padding: 9px 13px;
  }
  .tangram-art {
    margin-right: -40px;
    margin-left: -6px;
    padding: 0 0 16px;
  }
  .tangram-art > svg {
    min-width: 210px;
  }
  .art-caption {
    display: none;
  }
  .daily-learning {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 16px;
  }
  .task-panel,
  .time-panel {
    padding: 18px 20px;
  }
  .empty-tasks {
    min-height: 86px;
  }
  .time-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0 20px;
  }
  .remaining-number {
    justify-content: flex-end;
    margin: 0;
  }
  .remaining-number > span:first-child {
    font-size: 31px;
  }
  .time-total {
    display: none;
  }
  .quota-track {
    margin-top: 13px;
    grid-column: 1/-1;
  }
  .time-panel > p {
    grid-column: 1/-1;
    font-size: 10px;
    margin-top: 8px;
  }
  .learning {
    padding-top: 28px;
  }
  .section-heading {
    align-items: flex-start;
    margin-bottom: 18px;
    flex-direction: column;
    gap: 16px;
  }
  .search-box {
    width: 100%;
    min-width: 0;
  }
  .search-box input {
    width: 100%;
    font-size: 13px;
  }
  .search-box kbd {
    display: none;
  }
  .library-controls {
    gap: 10px;
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 17px;
  }
  .module-tabs {
    width: 100%;
    justify-content: space-between;
    gap: 2px;
  }
  .module-tabs button {
    padding: 9px 12px;
    font-size: 12px;
    flex: 1;
  }
  .grade-select {
    align-self: flex-end;
    font-size: 11px;
  }
  .grade-select select {
    min-height: 36px;
    padding: 7px 20px 7px 10px;
    font-size: 11px;
  }
  .resource-grid {
    gap: 14px;
  }
  .resource-visual {
    height: 130px;
  }
  .resource-visual svg {
    height: 125px;
    min-width: 180px;
  }
  .resource-body {
    padding: 15px;
  }
  .resource-body h3 {
    font-size: 15px;
  }
  .resource-meta {
    font-size: 10px;
  }
  .resource-description {
    font-size: 11px;
    min-height: 40px;
  }
  .resource-bottom {
    margin-top: 13px;
    padding-top: 10px;
  }
  .resource-tag {
    font-size: 9px;
  }
  .resource-link {
    font-size: 11px;
    gap: 3px;
  }
  .recent-section {
    padding-top: 28px;
  }
  .recent-section .section-heading {
    flex-direction: row;
    gap: 10px;
    align-items: center;
  }
  .recent-section .section-heading p {
    font-size: 11px;
  }
  .recent-section .text-button {
    font-size: 11px;
  }
  .recent-section h2 {
    font-size: 19px;
  }
  .recent-row {
    padding: 15px;
    gap: 11px;
  }
  .recent-status {
    display: none;
  }
  .recent-info strong {
    font-size: 12px;
  }
  .recent-info small {
    font-size: 10px;
  }
  .recent-row a {
    font-size: 11px;
    white-space: nowrap;
  }
  .recent-icon {
    width: 34px;
    height: 34px;
  }
  .bottom-note {
    margin-top: 34px;
  }
  footer {
    margin: 0 20px;
    padding: 20px 0;
    justify-content: center;
    font-size: 9px;
  }
  .task-actions {
    justify-content: space-between;
  }
}
@media (max-width: 430px) {
  .resource-grid {
    grid-template-columns: 1fr;
  }
  .resource-visual {
    height: 165px;
  }
  .resource-visual svg {
    height: 160px;
  }
  .resource-body {
    padding: 19px;
  }
  .resource-body h3 {
    font-size: 18px;
  }
  .resource-description {
    font-size: 13px;
    min-height: 0;
  }
  .resource-meta {
    font-size: 11px;
  }
  .resource-link {
    font-size: 13px;
  }
  .resource-tag {
    font-size: 11px;
  }
  .welcome-copy h2 {
    font-size: 27px;
  }
  .welcome-copy {
    padding-left: 20px;
  }
  .welcome-banner {
    grid-template-columns: 1.3fr 1fr;
  }
  .tangram-art {
    margin-right: -50px;
    opacity: 0.9;
  }
  .topbar h1 {
    font-size: 18px;
  }
  .account-button {
    max-width: 155px;
  }
  .module-tabs button {
    padding: 8px 9px;
  }
  .panel-title h2 {
    font-size: 15px;
  }
}
@media (max-width: 360px) {
  main {
    padding: 0 14px;
  }
  .topbar {
    padding: 20px 14px;
  }
  .welcome-copy h2 {
    font-size: 25px;
  }
  .tangram-art {
    margin-right: -65px;
  }
  .topbar h1 {
    font-size: 16px;
  }
  .account-button {
    font-size: 10px;
  }
  .resource-grid {
    grid-template-columns: 1fr;
  }
  .empty-tasks p {
    min-width: 145px;
  }
  .module-tabs button {
    font-size: 11px;
    padding: 8px;
  }
  .side-nav a {
    font-size: 10px;
  }
}
.connection-notice {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  background: #fff4db;
  border: 1px solid #eddbb0;
  border-radius: 12px;
  padding: 15px 19px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #785a30;
}
.connection-notice span {
  flex: 1;
  min-width: 160px;
}
.connection-notice button {
  font-size: 12px;
  min-height: 38px;
  padding: 8px 13px;
}
/* Reading and touch sizes for younger learners. */
.welcome-copy > p:not(.banner-label) {
  font-size: 15px;
}
.welcome-copy .primary-button {
  font-size: 14px;
  min-height: 44px;
}
.section-heading p {
  font-size: 14px;
}
.search-box input {
  font-size: 14px;
}
.module-tabs button {
  font-size: 14px;
  min-height: 44px;
}
.grade-select,
.grade-select select {
  font-size: 13px;
}
.resource-meta {
  font-size: 12px;
}
.resource-body h3 {
  font-size: 19px;
}
.resource-description {
  font-size: 14px;
  min-height: 50px;
}
.resource-tag {
  font-size: 12px;
}
.resource-link {
  font-size: 14px;
  min-height: 44px;
}
.home-task strong {
  font-size: 16px;
}
.home-task small {
  font-size: 12px;
}
.home-task > a {
  font-size: 13px;
  min-height: 44px;
}
.recent-info strong {
  font-size: 15px;
}
.recent-info small {
  font-size: 12px;
}
.recent-row a {
  font-size: 13px;
  min-height: 44px;
}
.empty-tasks p {
  font-size: 14px;
}
.mobile-teacher-link {
  display: none;
}
@media (max-width: 960px) {
  .mobile-teacher-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: var(--green);
    font-size: 12px;
  }
}
@media (max-width: 700px) {
  .welcome-copy > p:not(.banner-label) {
    font-size: 12px;
  }
  .welcome-copy .primary-button {
    font-size: 12px;
  }
  .section-heading p {
    font-size: 13px;
  }
  .search-box input,
  .grade-select select,
  #login-form select {
    font-size: 16px;
  }
  .module-tabs button {
    font-size: 12px;
    padding: 9px;
  }
  .resource-body h3 {
    font-size: 17px;
  }
  .resource-description {
    font-size: 13px;
  }
  .resource-tag {
    font-size: 11px;
  }
  .resource-link {
    font-size: 13px;
  }
  .home-task strong {
    font-size: 15px;
  }
  .recent-info strong {
    font-size: 14px;
  }
  .recent-info small {
    font-size: 11px;
  }
  .resource-meta {
    font-size: 11px;
  }
}
@media (max-width: 430px) {
  .resource-body h3 {
    font-size: 19px;
  }
  .resource-description {
    font-size: 14px;
    min-height: 0;
  }
  .resource-meta {
    font-size: 12px;
  }
  .resource-link {
    font-size: 14px;
  }
  .module-tabs button {
    font-size: 12px;
  }
  .search-box input {
    min-width: 0;
  }
}
@media (max-width: 360px) {
  .welcome-banner {
    display: block;
    min-height: 280px;
  }
  .welcome-copy {
    padding: 24px 20px;
  }
  .welcome-copy h2 {
    font-size: 26px;
    white-space: nowrap;
  }
  .welcome-copy > p:not(.banner-label) {
    max-width: 210px;
    font-size: 11px;
  }
  .tangram-art {
    position: absolute;
    width: 140px;
    height: 140px;
    right: -25px;
    bottom: 3px;
    margin: 0;
    padding: 0;
    opacity: 0.75;
  }
  .tangram-art > svg {
    min-width: 0;
    width: 100%;
    height: auto;
  }
  .welcome-copy .primary-button {
    position: relative;
    z-index: 1;
  }
  .empty-tasks p {
    font-size: 13px;
  }
}
