/* #class "Your classes" (Tcls1, 11-05): copied from the teachers "Your course" cards (#setup .cy-card), measured values.
   Frame r20, 10px inset, soft two-layer shadow > well r12 #f6efe6 > white rows with a 1px #eadfd2 edge, bare icons > caption inside the frame.
   Frame paper #fffaf2 (Max: back to white). Zero blue. */
body.page-students #class .hb-cards {
  gap: 16px;
}
body.page-students #class .hb-card {
  padding: 10px 10px 26px;
  border-radius: 20px;
  background: #fffaf2;
  box-shadow:
    0 1px 2px rgba(120, 50, 0, 0.05),
    0 18px 40px -30px rgba(120, 50, 0, 0.28);
}
body.page-students #class .hb-well {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 392px;
  padding: 22px;
  border-radius: 12px;
  background: #f6efe6;
  overflow: hidden;
}
body.page-students #class .hb-win {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 340px;
  overflow: hidden;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    inset 0 0 0 1px #eadfd2,
    0 18px 40px -22px rgba(120, 50, 0, 0.35);
}
body.page-students #class .hb-card h3 {
  display: block;
  margin: 24px 16px 0;
  font-size: 21.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  line-height: 1.1;
  color: #121815;
}
body.page-students #class .hb-card > p {
  margin: 10px 16px 0;
  max-width: none;
  font-size: 16.5px;
  line-height: 1.5;
  color: #2f2c28;
}
/* rows, bubbles, input: white with the reference's 1px warm edge */
body.page-students #class .hb-f,
body.page-students #class .hb-row,
body.page-students #class .hb-card .hb-me,
body.page-students #class .hb-ai,
body.page-students #class .hb-card .hb-dots,
body.page-students #class .hb-in,
body.page-students #class .hb-tabs span:not(.on) {
  background: #fff;
  box-shadow: inset 0 0 0 1px #eadfd2;
}
body.page-students #class .hb-f,
body.page-students #class .hb-row {
  border-radius: 10px;
}
body.page-students #class .hb-ic,
body.page-students #class .hb-f i {
  background: none;
}
body.page-students #class .hb-ic.hb-capy {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
body.page-students #class .hb-ic.hb-capy img {
  position: absolute;
  inset: 4px;
  display: block;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  object-fit: cover;
  border-radius: 7px;
}
body.page-students #class .hb-card .hb-u {
  color: #6d6458;
}
/* library */
body.page-students #class .hb-top {
  padding: 6px 6px 6px;
}
body.page-students #class .hb-shelf {
  flex: 1;
  height: auto;
  -webkit-mask-image: linear-gradient(#0000 4%, #000 18%, #000 88%, #0000);
  mask-image: linear-gradient(#0000 4%, #000 18%, #000 88%, #0000);
}
body.page-students #class .hb-roll {
  padding: 22px 0 12px;
}
/* assistant */
body.page-students #class .hb-asst {
  height: 340px;
}
body.page-students #class .hb-ah {
  padding: 4px 4px 8px;
  background: none;
}
body.page-students #class .hb-chat {
  padding: 6px 0 0;
}
body.page-students #class .hb-asst .hb-res {
  background: #f6efe6;
  box-shadow: none;
}
body.page-students #class .hb-asst .hb-res i {
  background: none;
}
body.page-students #class .hb-asst .hb-res em {
  background: var(--orange);
}
body.page-students #class .hb-in {
  margin: 8px 0 0;
}
/* to do */
body.page-students #class .hb-tabs {
  padding: 0 0 10px;
}
body.page-students #class .hb-tabs .on {
  background: var(--ink);
}
body.page-students #class .hb-list {
  padding: 0;
  gap: 8px;
}
body.page-students #class .hb-row {
  padding: 13px 12px 13px 10px;
}
body.page-students.page-students #class .hb.play .hb-hit {
  animation-name: hb-hit3;
}
@keyframes hb-hit3 {
  0%,
  24% {
    transform: none;
  }
  30%,
  56% {
    transform: scale(1.015);
  }
  62%,
  100% {
    transform: none;
  }
}
@media (max-width: 1024px) {
  body.page-students #class .hb-cards {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 32px calc(var(--gutter) * -1) 0;
    padding: 6px var(--gutter) 28px;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  body.page-students #class .hb-cards::-webkit-scrollbar {
    display: none;
  }
  body.page-students #class .hb-card {
    flex: 0 0 86%;
    scroll-snap-align: start;
  }
  body.page-students #class .hb-card h3 {
    margin-top: 20px;
    font-size: 19px;
    white-space: normal;
  }
  body.page-students #class .hb-card > p {
    font-size: 15.5px;
  }
  body.page-students #class .hb-asst .hb-res b {
    white-space: normal;
    overflow: visible;
  }
}
/* Max 11-05: no cards inside the cards. Rows are plain lines on the white window (space only, no fills, no edges). */
body.page-students #class .hb-f,
body.page-students #class .hb-row {
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 8px 4px;
}
body.page-students #class .hb-roll ul {
  gap: 2px;
}
body.page-students #class .hb-list {
  gap: 4px;
}
/* assistant: the answer is plain text plus one quiet result line, no bubble around it */
body.page-students #class .hb-ai {
  width: 100%;
  padding: 2px 0 0;
  background: none;
  box-shadow: none;
}
body.page-students #class .hb-card .hb-ai p {
  margin: 0 0 8px;
}
body.page-students #class .hb-asst .hb-res {
  padding: 8px 8px 8px 6px;
  border-radius: 12px;
  background: #f6efe6;
  box-shadow: none;
}
body.page-students #class .hb-card .hb-dots {
  background: #f6efe6;
  box-shadow: none;
}
/* to do: static, no animation */
body.page-students #class .hb.play .hb-hit,
body.page-students #class .hb.play .hb-hit .hb-due .a,
body.page-students #class .hb.play .hb-hit .hb-due .b,
body.page-students #class .hb.play .hb-done,
body.page-students #class .hb.play .hb-n .a,
body.page-students #class .hb.play .hb-n .b {
  animation: none;
}
body.page-students #class .hb-done,
body.page-students #class .hb-due .b,
body.page-students #class .hb-n .b {
  display: none;
}
body.page-students #class .hb-due .a,
body.page-students #class .hb-n .a {
  opacity: 1;
}
body.page-students #class .hb-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 0 6px;
}
body.page-students #class .hb-win:not(.hb-lib):not(.hb-asst) {
  padding-bottom: 10px;
}
/* Max 11-05 (2): library as a system. Current unit open with its files, past units folded to one row each. Static, no scroll. */
body.page-students #class .hb-units {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 4px 4px 0;
}
body.page-students #class .hb-unit ul {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  display: grid;
  gap: 0;
}
body.page-students #class .hb-unit .hb-f {
  padding: 7px 2px;
}
body.page-students #class .hb-uh {
  display: flex;
  align-items: baseline;
  gap: 8px;
  max-width: none;
  margin: 0;
  padding: 10px 2px;
  font-size: 13.5px;
  line-height: 1.3;
}
body.page-students #class .hb-uh b {
  font-weight: 600;
  color: #121815;
}
body.page-students #class .hb-uh small {
  margin-left: auto;
  font-size: 12px;
  color: #7a7066;
}
body.page-students #class .hb-unit .hb-uh {
  padding-top: 4px;
  padding-bottom: 6px;
}
body.page-students #class .hb-fold {
  align-items: center;
  border-radius: 10px;
  padding: 11px 10px;
  margin-top: 6px;
  background: #f6efe6;
}
body.page-students #class .hb-fold b {
  font-weight: 500;
  color: #3a3530;
}
body.page-students #class .hb-fold svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: #8a8076;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.page-students #class .hb-new b::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--orange);
  vertical-align: middle;
}
/* to do: plain window header, no pill tabs */
body.page-students #class .hb-count {
  margin-left: auto;
  padding: 5px 10px;
  border-radius: 999px;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: #3a3530;
  background: #f6efe6;
}
body.page-students #class .hb-win .hb-top {
  padding: 6px 6px 8px;
}
body.page-students #class .hb-unit .hb-f {
  padding: 5px 2px;
}
body.page-students #class .hb-units {
  padding: 8px 4px 2px;
}
body.page-students #class .hb-fold {
  padding: 10px;
  margin-top: 5px;
}
body.page-students #class .hb-head .lede {
  text-wrap: balance;
}
/* assistant: chat sits on the input like a real chat, no dead gap */
body.page-students #class .hb-asst .hb-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
body.page-students #class .hb-uh b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.page-students #class .hb-uh small {
  flex: none;
  white-space: nowrap;
}
@media (max-width: 1024px) {
  body.page-students #class .hb-well {
    padding: 14px;
  }
  body.page-students #class .hb-win {
    height: 356px;
  }
  body.page-students #class .hb-unit .hb-f {
    padding: 4px 2px;
  }
  body.page-students #class .hb-fold {
    padding: 9px 10px;
  }
}
/* Max 11-05 (4): library = search (platform Library) + one soft rounded block per unit, files as plain rows inside. One container level only. */
body.page-students #class .hb-lib .hb-top {
  padding: 2px 4px 10px;
}
body.page-students #class .hb-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 2px 10px;
  padding: 9px 12px;
  border-radius: 11px;
  font-size: 13px;
  color: #8a8076;
  background: #fff;
  box-shadow: inset 0 0 0 1px #eadfd2;
}
body.page-students #class .hb-search svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #8a8076;
  stroke-width: 2;
  stroke-linecap: round;
}
body.page-students #class .hb-grp {
  margin: 0 2px;
  padding: 4px 12px;
  border-radius: 12px;
  background: #f8f1e8;
}
body.page-students #class .hb-grp + .hb-grp {
  margin-top: 8px;
}
body.page-students #class .hb-gh {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: none;
  margin: 0;
  padding: 9px 0;
  font-size: 13.5px;
  line-height: 1.3;
}
body.page-students #class .hb-gh b {
  min-width: 0;
  font-weight: 600;
  color: #121815;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.page-students #class .hb-gh small {
  margin-left: auto;
  flex: none;
  font-size: 12px;
  color: #7a7066;
}
body.page-students #class .hb-gh svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: #8a8076;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.page-students #class .hb-grp:not(.is-open) .hb-gh b {
  font-weight: 500;
  color: #3a3530;
}
body.page-students #class .hb-grp ul {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  display: grid;
}
body.page-students #class .hb-grp .hb-f {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  background: none;
  box-shadow: none;
}
body.page-students #class .hb-grp .hb-f i {
  width: 26px;
  height: 26px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.page-students #class .hb-grp .hb-f img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
body.page-students #class .hb-grp .hb-f b {
  font-size: 13.5px;
  font-weight: 600;
  color: #121815;
}
body.page-students #class .hb-grp .hb-f small {
  margin-left: auto;
  font-size: 12px;
  color: #7a7066;
}
/* Max 11-05 (5): library uses the to-do format (header + plain rows); chat starts at the top with a second exchange */
body.page-students #class .hb-lib2 {
  padding-bottom: 10px;
}
body.page-students #class .hb-row.hb-new b::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--orange);
  vertical-align: middle;
}
body.page-students #class .hb-asst .hb-chat {
  justify-content: flex-start;
  gap: 8px;
}
body.page-students #class .hb-ai2 {
  align-self: flex-start;
  max-width: none;
  margin: 0;
  padding: 2px 2px 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
  opacity: 0;
}
body.page-students #class .hb.play .hb-me2 {
  animation: hb-me2 9s var(--ease) infinite;
}
body.page-students #class .hb.play .hb-ai2 {
  animation: hb-ai2 9s var(--ease) infinite;
}
@keyframes hb-me2 {
  0%,
  52% {
    opacity: 0;
    transform: translateY(8px);
  }
  57%,
  90% {
    opacity: 1;
    transform: none;
  }
  96%,
  100% {
    opacity: 0;
  }
}
@keyframes hb-ai2 {
  0%,
  64% {
    opacity: 0;
    transform: translateY(8px);
  }
  69%,
  90% {
    opacity: 1;
    transform: none;
  }
  96%,
  100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.page-students #class .hb-ai2 {
    opacity: 1;
  }
}
@media (max-width: 1024px) {
  body.page-students #class .hb-t b {
    font-size: 13px;
  }
  body.page-students #class .hb-row {
    gap: 10px;
  }
}
/* Max 11-05 (6): library as a term timeline. Units on a spine (current one orange), files hang off each unit as small rounded chips. */
body.page-students #class .hb-term {
  padding-bottom: 12px;
}
body.page-students #class .hb-term .hb-top {
  padding: 6px 6px 12px;
}
body.page-students #class .hb-tl {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0 4px 0 30px;
}
body.page-students #class .hb-tl::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 8px;
  bottom: 22px;
  width: 2px;
  border-radius: 2px;
  background: #efe5d8;
}
body.page-students #class .hb-tu {
  position: relative;
}
body.page-students #class .hb-tu::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 2px #d9cbb9;
}
body.page-students #class .hb-tu.is-now::before {
  background: var(--orange);
  box-shadow: 0 0 0 4px #fde3cc;
}
body.page-students #class .hb-tu p {
  display: flex;
  align-items: baseline;
  gap: 8px;
  max-width: none;
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.3;
}
body.page-students #class .hb-tu b {
  font-weight: 600;
  color: #121815;
}
body.page-students #class .hb-tu:not(.is-now) b {
  font-weight: 500;
  color: #3a3530;
}
body.page-students #class .hb-tu small {
  margin-left: auto;
  font-size: 12px;
  color: #7a7066;
}
body.page-students #class .hb-tu.is-now small {
  font-weight: 600;
  color: #b2501a;
}
body.page-students #class .hb-tu div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
body.page-students #class .hb-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px 5px 6px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: #2a2622;
  background: #f8f1e8;
  white-space: nowrap;
}
body.page-students #class .hb-chip img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}
body.page-students #class .hb-tu:not(.is-now) .hb-chip {
  color: #5a534b;
}
body.page-students #class .hb-chip.hb-new::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
body.page-students #class .hb-term {
  padding-bottom: 18px;
}
body.page-students #class .hb-tl::before {
  bottom: 30px;
}
@media (max-width: 1024px) {
  body.page-students #class .hb-tl {
    padding-left: 26px;
  }
  body.page-students #class .hb-tl::before {
    left: 10px;
  }
  body.page-students #class .hb-tu::before {
    left: -21px;
  }
  body.page-students #class .hb-tu div {
    gap: 5px;
  }
  body.page-students #class .hb-chip {
    gap: 5px;
    padding: 4px 7px 4px 5px;
    font-size: 11.5px;
  }
  body.page-students #class .hb-chip img {
    width: 15px;
    height: 15px;
  }
}
@media (max-width: 1024px) {
  body.page-students #class .hb-tu .hb-chip:nth-child(n + 3),
  body.page-students #class .hb-tu:last-child .hb-chip:nth-child(2) {
    display: none;
  }
}
/* Max 11-05 (7): one header for all three windows: icon + title, nothing else. Quiet timeline dots, no bright circle. */
body.page-students #class .hb-ah {
  min-height: 44px;
  padding: 4px 4px 10px;
  background: none;
}
body.page-students #class .hb-ah b {
  font-size: 16px;
}
body.page-students #class .hb-ico img {
  border-radius: 0;
  object-fit: contain;
}
body.page-students #class .hb-term .hb-ah {
  padding-bottom: 14px;
}
body.page-students #class .hb-win:not(.hb-term):not(.hb-asst) .hb-ah {
  padding-bottom: 6px;
}
body.page-students #class .hb-tu.is-now::before {
  background: #2a2622;
  box-shadow: none;
}
body.page-students #class .hb-tu.is-now small {
  font-weight: 500;
  color: #7a7066;
}
/* Max 11-05 (8): library stripped back. Three units, one soft rounded block each: name, file count, a small stack of what is inside. */
body.page-students #class .hb-fds {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 2px 2px 0;
}
body.page-students #class .hb-fd {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px 0 16px;
  border-radius: 14px;
  background: #f8f1e8;
}
body.page-students #class .hb-fd > span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}
body.page-students #class .hb-fd b {
  font-size: 14.5px;
  font-weight: 600;
  color: #121815;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.page-students #class .hb-fd small {
  font-size: 12.5px;
  color: #7a7066;
}
body.page-students #class .hb-stk {
  margin-left: auto;
  display: flex;
  flex: none;
}
body.page-students #class .hb-stk i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px #f8f1e8;
}
body.page-students #class .hb-stk i + i {
  margin-left: -9px;
}
body.page-students #class .hb-stk img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
/* Max 11-05 (9): library from Max's mockup, with Capyo icons. Header (capy + title + search), open unit block with four resources, two folded units. */
body.page-students #class .hb-well {
  height: 422px;
}
body.page-students #class .hb-win {
  height: 370px;
}
body.page-students #class .hb-asst {
  height: 370px;
}
body.page-students #class .hb-lb {
  padding: 10px;
  gap: 8px;
}
body.page-students #class .lb-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 2px 0 4px;
}
body.page-students #class .lb-head > img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
body.page-students #class .lb-head b {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #121815;
}
body.page-students #class .lb-q {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f8f1e8;
}
body.page-students #class .lb-q svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #b2501a;
  stroke-width: 2.2;
  stroke-linecap: round;
}
body.page-students #class .lb-unit {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 14px;
  background: #faf4ec;
}
body.page-students #class .lb-uh {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 2px 2px;
}
body.page-students #class .lb-ui {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 11px;
  background: #fde9d4;
}
body.page-students #class .lb-ui img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
body.page-students #class .lb-ut {
  display: grid;
  line-height: 1.15;
  min-width: 0;
}
body.page-students #class .lb-ut small {
  font-size: 11px;
  font-weight: 600;
  color: #b2501a;
}
body.page-students #class .lb-ut b {
  font-size: 15px;
  font-weight: 700;
  color: #121815;
}
body.page-students #class .lb-ut i {
  font-style: normal;
  font-size: 11px;
  color: #7a7066;
}
body.page-students #class .lb-pin {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #9a3d00;
  background: #fde3cc;
}
body.page-students #class .lb-pin svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
body.page-students #class .lb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}
body.page-students #class .lb-it {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px 5px 5px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 0 0 1px #efe4d6;
}
body.page-students #class .lb-it.is-pin {
  box-shadow: 0 0 0 1.5px #efb98a;
  background: #fffaf4;
}
body.page-students #class .lb-th {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 32px;
  flex: none;
  border-radius: 8px;
  background: #fbf1e6;
}
body.page-students #class .lb-th img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
body.page-students #class .lb-tx {
  display: grid;
  gap: 2px;
  min-width: 0;
}
body.page-students #class .lb-tx b {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  color: #121815;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.page-students #class .lb-tx small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: #7a7066;
  white-space: nowrap;
}
body.page-students #class .lb-tx em {
  font-style: normal;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 5px;
  color: #9a3d00;
  background: #fde3cc;
}
body.page-students #class .lb-fds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
body.page-students #class .lb-fd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 0 0 1px #efe4d6;
}
body.page-students #class .lb-fd img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
body.page-students #class .lb-fd span {
  display: grid;
  line-height: 1.2;
}
body.page-students #class .lb-fd b {
  font-size: 12.5px;
  font-weight: 700;
  color: #121815;
}
body.page-students #class .lb-fd small {
  font-size: 10.5px;
  color: #7a7066;
}
@media (max-width: 1024px) {
  body.page-students #class .hb-win {
    height: 376px;
  }
}
/* Max 11-05 (10): no ring on the worksheet, an Open button on it, three resources */
body.page-students #class .lb-it.is-pin {
  box-shadow: 0 0 0 1px #efe4d6;
  background: #fff;
}
body.page-students #class .lb-open {
  margin-left: auto;
  flex: none;
  padding: 6px 11px;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  background: var(--orange);
}
body.page-students #class .lb-list {
  gap: 6px;
}
body.page-students #class .lb-it {
  padding: 7px 8px 7px 6px;
}
body.page-students #class .lb-list {
  flex: 1;
  grid-auto-rows: 1fr;
}
body.page-students #class .lb-list {
  grid-template-columns: minmax(0, 1fr);
}
body.page-students #class .lb-it {
  min-width: 0;
}
body.page-students #class .lb-tx small {
  overflow: hidden;
}
@media (max-width: 1024px) {
  body.page-students #class .lb-tx b {
    font-size: 12px;
  }
  body.page-students #class .lb-open {
    padding: 5px 8px;
    font-size: 11px;
  }
  body.page-students #class .lb-it {
    gap: 8px;
  }
  body.page-students #class .lb-th {
    width: 32px;
  }
}
/* Max 11-05 (11): fewer boxes. No tint behind the unit or the icons, compact rows, a small Open on every row, space between groups. */
body.page-students #class .hb-lb {
  justify-content: space-between;
  padding: 12px 12px 12px;
}
body.page-students #class .lb-unit {
  flex: none;
  gap: 10px;
  padding: 0;
  background: none;
}
body.page-students #class .lb-ui {
  width: auto;
  height: auto;
  background: none;
}
body.page-students #class .lb-ui img {
  width: 34px;
  height: 34px;
}
body.page-students #class .lb-uh {
  padding: 0 4px;
}
body.page-students #class .lb-list {
  flex: none;
  grid-auto-rows: auto;
  gap: 6px;
}
body.page-students #class .lb-it {
  padding: 7px 8px 7px 8px;
}
body.page-students #class .lb-th {
  width: auto;
  height: auto;
  background: none;
}
body.page-students #class .lb-th img {
  width: 22px;
  height: 22px;
}
body.page-students #class .lb-open {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.4;
}
@media (max-width: 1024px) {
  body.page-students #class .lb-open {
    padding: 3px 7px;
    font-size: 10px;
  }
}
/* Max 11-05 (12): calm library. No orange, no outlined boxes, even spacing. Header > open unit (plain rows, quiet Open) > two soft folders. Windows back to 340. */
body.page-students #class .hb-well {
  height: 392px;
}
body.page-students #class .hb-win,
body.page-students #class .hb-asst {
  height: 340px;
}
body.page-students #class .hb-sl {
  justify-content: space-between;
  padding: 14px 14px 12px;
}
body.page-students #class .sl-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
body.page-students #class .sl-head > img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
body.page-students #class .sl-head b {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #121815;
}
body.page-students #class .sl-q {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f6efe6;
}
body.page-students #class .sl-q svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #5a534b;
  stroke-width: 2.2;
  stroke-linecap: round;
}
body.page-students #class .sl-uh {
  display: flex;
  align-items: baseline;
  gap: 8px;
  max-width: none;
  margin: 0 0 4px;
  padding: 0 2px;
}
body.page-students #class .sl-uh b {
  font-size: 14.5px;
  font-weight: 700;
  color: #121815;
}
body.page-students #class .sl-uh small {
  margin-left: auto;
  font-size: 11.5px;
  color: #7a7066;
}
body.page-students #class .sl-unit ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
body.page-students #class .sl-it {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 8px 2px;
}
body.page-students #class .sl-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
}
body.page-students #class .sl-ic img {
  max-width: 26px;
  max-height: 26px;
  object-fit: contain;
}
body.page-students #class .sl-tx {
  display: grid;
  gap: 1px;
  min-width: 0;
}
body.page-students #class .sl-tx b {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: #121815;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.page-students #class .sl-tx small {
  font-size: 11.5px;
  color: #7a7066;
  white-space: nowrap;
}
body.page-students #class .sl-open {
  margin-left: auto;
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #2a2622;
  background: #f6efe6;
}
body.page-students #class .sl-fds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
body.page-students #class .sl-fd {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 12px;
  background: #f8f2ea;
}
body.page-students #class .sl-fd img {
  width: 26px;
  height: 26px;
  flex: none;
  object-fit: contain;
}
body.page-students #class .sl-fd span {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}
body.page-students #class .sl-fd b {
  font-size: 12.5px;
  font-weight: 600;
  color: #121815;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.page-students #class .sl-fd small {
  font-size: 11px;
  color: #7a7066;
}
@media (max-width: 1024px) {
  body.page-students #class .hb-win {
    height: 356px;
  }
  body.page-students #class .sl-it {
    gap: 9px;
  }
  body.page-students #class .sl-tx b {
    font-size: 12.5px;
  }
}
@media (max-width: 1024px) {
  body.page-students #class .sl-fd img {
    display: none;
  }
  body.page-students #class .sl-fd {
    padding: 9px 12px;
  }
  body.page-students #class .sl-fd small {
    white-space: nowrap;
  }
}
/* Max 11-05 (13): faint line under every window header; chat scrolls like a real chat; to-do with a week strip and compact rows */
body.page-students #class .hb-ah,
body.page-students #class .sl-head {
  padding-bottom: 10px;
  margin-bottom: 2px;
  box-shadow: 0 1px 0 #f1e9df;
}
body.page-students #class .hb-ah b,
body.page-students #class .sl-head b {
  font-size: 15px;
}
body.page-students #class .hb-ah img,
body.page-students #class .sl-head > img {
  width: 30px;
  height: 30px;
}
body.page-students #class .hb-ah {
  min-height: 0;
  padding-top: 2px;
}
/* chat: messages sit in a track that slides up as new ones arrive */
body.page-students #class .hb-asst .hb-chat {
  position: relative;
  display: block;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 10px 0 0;
  -webkit-mask-image: linear-gradient(#0000, #000 16px);
  mask-image: linear-gradient(#0000, #000 16px);
}
body.page-students #class .hb-track {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body.page-students #class .hb-ai0 {
  align-self: flex-start;
  max-width: none;
  margin: 0;
  padding: 2px 2px 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
}
body.page-students #class .hb.play .hb-track {
  animation: hb-scroll 9s var(--ease) infinite;
}
@keyframes hb-scroll {
  0%,
  52% {
    transform: translateY(calc(var(--s0) * -1));
  }
  57%,
  64% {
    transform: translateY(calc(var(--s1) * -1));
  }
  69%,
  92% {
    transform: translateY(calc(var(--s2) * -1));
    opacity: 1;
  }
  96% {
    transform: translateY(calc(var(--s2) * -1));
    opacity: 0;
  }
  97% {
    transform: translateY(calc(var(--s0) * -1));
    opacity: 0;
  }
  100% {
    transform: translateY(calc(var(--s0) * -1));
    opacity: 1;
  }
}
body.page-students #class .hb-asst {
  --s0: 0px;
  --s1: 0px;
  --s2: 0px;
}
@media (prefers-reduced-motion: reduce) {
  body.page-students #class .hb-track {
    transform: translateY(calc(var(--s2) * -1));
  }
}
/* to-do: week strip + compact rows */
body.page-students #class .dw-week {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin: 12px 0 8px;
}
body.page-students #class .dw-d {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 6px 0 7px;
  border-radius: 10px;
}
body.page-students #class .dw-d small {
  font-size: 10.5px;
  color: #8a8076;
}
body.page-students #class .dw-d b {
  font-size: 14px;
  font-weight: 600;
  color: #3a3530;
}
body.page-students #class .dw-d i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
}
body.page-students #class .dw-d.has2 i {
  background: #2a2622;
  box-shadow: 7px 0 0 #2a2622;
  transform: translateX(-3.5px);
}
body.page-students #class .dw-d.is-today {
  background: #2a2622;
}
body.page-students #class .dw-d.is-today small {
  color: #d9cfc3;
}
body.page-students #class .dw-d.is-today b {
  color: #fff;
}
body.page-students #class .dw-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0 2px;
}
body.page-students #class .dw-r {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 4px 0;
}
body.page-students #class .dw-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: none;
}
body.page-students #class .dw-ic img {
  max-width: 24px;
  max-height: 24px;
  object-fit: contain;
  border-radius: 6px;
}
body.page-students #class .dw-t {
  display: grid;
  gap: 1px;
  min-width: 0;
}
body.page-students #class .dw-t b {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: #121815;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.page-students #class .dw-t small {
  font-size: 11.5px;
  color: #7a7066;
}
body.page-students #class .dw-due {
  margin-left: auto;
  flex: none;
  font-size: 11.5px;
  color: #7a7066;
}
body.page-students #class .dw-r.is-soon .dw-due {
  font-weight: 600;
  color: #121815;
}
body.page-students #class .hb-ai2 p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
}
body.page-students #class .hb-ai2 {
  width: 100%;
}
body.page-students #class .hb-asst {
  --s0: 0px;
  --s1: 0px;
  --s2: 60px;
}
@media (max-width: 1024px) {
  body.page-students #class .hb-asst {
    --s1: 22px;
    --s2: 108px;
  }
}
body.page-students #class .hb-asst {
  --s2: 74px;
}
body.page-students #class .hb-asst .hb-chat {
  -webkit-mask-image: linear-gradient(#0000 6px, #000 30px);
  mask-image: linear-gradient(#0000 6px, #000 30px);
}
@media (max-width: 1024px) {
  body.page-students #class .hb-asst {
    --s1: 22px;
    --s2: 122px;
  }
}
/* Max 11-05 (14): unit picker in the library; real chat bubbles; to-do as an agenda (date on the left, that day's items on its line) */
body.page-students #class .sl-sel {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 4px;
  padding: 8px 10px;
  border-radius: 11px;
  background: #f8f2ea;
}
body.page-students #class .sl-sel img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
body.page-students #class .sl-sel b {
  font-size: 13px;
  font-weight: 600;
  color: #121815;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.page-students #class .sl-sel small {
  margin-left: auto;
  flex: none;
  font-size: 11.5px;
  color: #7a7066;
}
body.page-students #class .sl-sel svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: #5a534b;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* chat bubbles: you = ink on the right, assistant = warm beige on the left */
body.page-students #class .hb-card .hb-me {
  padding: 8px 12px;
  border-radius: 14px 14px 4px 14px;
  background: #2a2622;
  color: #fff;
  box-shadow: none;
  font-size: 12.5px;
}
body.page-students #class .hb-ai0,
body.page-students #class .hb-ai,
body.page-students #class .hb-ai2 {
  align-self: flex-start;
  max-width: 92%;
  padding: 8px 10px;
  border-radius: 14px 14px 14px 4px;
  background: #f4eee6;
  box-shadow: none;
  font-size: 12.5px;
}
body.page-students #class .hb-ai,
body.page-students #class .hb-ai2 {
  width: auto;
}
body.page-students #class .hb-card .hb-ai p,
body.page-students #class .hb-ai2 p {
  margin: 0 2px 7px;
  font-size: 12.5px;
}
body.page-students #class .hb-asst .hb-res {
  background: #fff;
  padding: 7px 8px 7px 6px;
  border-radius: 10px;
}
body.page-students #class .hb-card .hb-dots {
  background: #f4eee6;
}
/* agenda */
body.page-students #class .ag {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  list-style: none;
  margin: 0;
  padding: 6px 2px 0;
}
body.page-students #class .ag-d {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
body.page-students #class .ag-date {
  display: grid;
  justify-items: center;
  width: 42px;
  flex: none;
  padding: 6px 0 7px;
  border-radius: 11px;
  background: #f6efe6;
  line-height: 1.1;
}
body.page-students #class .ag-date small {
  font-size: 10.5px;
  color: #7a7066;
}
body.page-students #class .ag-date b {
  font-size: 17px;
  font-weight: 700;
  color: #121815;
}
body.page-students #class .ag-d.is-next .ag-date {
  background: #2a2622;
}
body.page-students #class .ag-d.is-next .ag-date small {
  color: #d9cfc3;
}
body.page-students #class .ag-d.is-next .ag-date b {
  color: #fff;
}
body.page-students #class .ag-items {
  display: grid;
  gap: 10px;
  min-width: 0;
  flex: 1;
  padding-top: 3px;
}
body.page-students #class .ag-it {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
body.page-students #class .ag-it img {
  width: 24px;
  height: 24px;
  flex: none;
  object-fit: contain;
  border-radius: 6px;
}
body.page-students #class .ag-it span {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}
body.page-students #class .ag-it b {
  font-size: 13px;
  font-weight: 600;
  color: #121815;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.page-students #class .ag-it small {
  font-size: 11.5px;
  color: #7a7066;
}
body.page-students #class .hb-asst {
  --s0: 0px;
  --s1: 8px;
  --s2: 100px;
}
@media (max-width: 1024px) {
  body.page-students #class .hb-asst {
    --s0: 10px;
    --s1: 52px;
    --s2: 166px;
  }
}
/* Max 11-05 (15): agenda, one item per day, equal rows, quiet date blocks */
body.page-students #class .ag {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  align-content: stretch;
  gap: 0;
  padding: 8px 2px 0;
}
body.page-students #class .ag-d {
  display: flex;
  align-items: center;
  gap: 14px;
}
body.page-students #class .ag-date,
body.page-students #class .ag-d.is-next .ag-date {
  width: 40px;
  padding: 5px 0 6px;
  border-radius: 10px;
  background: #f6efe6;
}
body.page-students #class .ag-date small,
body.page-students #class .ag-d.is-next .ag-date small {
  font-size: 10.5px;
  color: #7a7066;
}
body.page-students #class .ag-date b,
body.page-students #class .ag-d.is-next .ag-date b {
  font-size: 16px;
  font-weight: 700;
  color: #121815;
}
body.page-students #class .ag-it {
  flex: 1;
}
body.page-students #class .ag-d {
  margin: 0;
  padding: 0 0 0 4px;
  list-style: none;
}
body.page-students #class .ag-d::before,
body.page-students #class .ag-d::marker {
  content: none;
  display: none;
}
body.page-students #class .ag {
  justify-items: stretch;
}
body.page-students #class .ag-d {
  width: 100%;
  justify-self: stretch;
}
body.page-students #class .ag {
  justify-content: stretch;
  grid-template-columns: minmax(0, 1fr);
}
body.page-students #class .ag-st {
  margin-left: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-style: normal;
  font-size: 11.5px;
  color: #7a7066;
}
body.page-students #class .ag-st svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.page-students #class .ag-st.is-today {
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 600;
  color: #fff;
  background: #2a2622;
}
body.page-students #class .ag-d:has(.is-done) b {
  color: #7a7066;
}
body.page-students #class .ag-it {
  min-width: 0;
}
@media (max-width: 1024px) {
  body.page-students #class .ag-it img {
    display: none;
  }
  body.page-students #class .ag-d {
    gap: 12px;
  }
  body.page-students #class .ag-st {
    font-size: 11px;
  }
}
/* Max 11-05 (16): Open on every open item (same quiet pill as the library), Done stays */
body.page-students #class .ag-open {
  margin-left: auto;
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: #2a2622;
  background: #f6efe6;
}
body.page-students #class .ag-st.is-done {
  padding-right: 6px;
}
@media (max-width: 1024px) {
  body.page-students #class .ag-it img {
    display: block;
  }
}
@media (max-width: 1024px) {
  body.page-students #class .ag-it img {
    display: none;
  }
}

/* 11-10 (Max): only Class assistant keeps a header line, and it runs edge to edge; no fade over the top of the chat */
body.page-students #class .hb-win .sl-head:not(#_),
body.page-students #class .hb-win:not(.hb-asst) .hb-ah:not(#_) {
  box-shadow: none;
}
body.page-students #class .hb-asst .hb-ah:not(#_) {
  margin-left: -12px;
  margin-right: -12px;
  padding-left: 16px;
  padding-right: 16px;
}
body.page-students #class .hb-asst .hb-chat:not(#_) {
  -webkit-mask-image: none;
  mask-image: none;
}
