/* V2 additions use the original palette, font, layout width and breakpoints. */
a.navlink {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
a.navlink:focus-visible,
.btn:focus-visible,
.course:focus-visible {
  outline: 3px solid #d5ac65;
  outline-offset: 3px;
}
.nav-symbol {
  font-size: 20px;
  width: 23px;
  text-align: center;
}
.course-nav {
  margin: 0 14px 10px;
  font-size: 12px;
}
.course-nav summary {
  cursor: pointer;
  padding: 9px;
  color: #aec3d0;
}
.course-nav a {
  display: block;
  padding: 9px 14px;
  color: #e7f2f7;
  text-decoration: none;
  border-inline-start: 1px solid #547082;
}
.course-nav a:hover {
  color: #e1bc78;
  background: #ffffff0c;
}
.course {
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.course:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px #12334e14;
}
.topbar select {
  max-width: 220px;
}
.message-open {
  border: 0;
  background: transparent;
  color: inherit;
  text-align: start;
  flex: 1;
  min-width: 0;
  font: inherit;
  cursor: pointer;
}
.message-open p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.mail-check {
  align-self: center;
  padding: 8px;
}
.listitem {
  color: inherit;
  text-align: start;
  font: inherit;
  max-width: 100%;
}
button.listitem {
  width: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.mailtabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mailtabs a {
  text-decoration: none;
}
.recipient-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.recipient-toolbar input {
  grid-column: 1/-1;
}
.recipient-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}
.recipient-tabs strong {
  margin-inline-start: auto;
  color: #127c80;
}
.recipient-results {
  height: 310px;
  overflow: auto;
  margin: 14px 0;
  border: 1px solid var(--line, #e2e9ee);
  border-radius: 14px;
}
.recipient-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line, #e2e9ee);
  cursor: pointer;
}
.recipient-item:hover {
  background: #118c8810;
}
.recipient-item span {
  min-width: 0;
}
.recipient-item strong,
.recipient-item small {
  display: block;
  overflow-wrap: anywhere;
}
.recipient-item small {
  opacity: 0.65;
}
.reply-required {
  background: #118c8810;
  padding: 12px;
  border-radius: 10px;
}
.upload-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid #879da530;
  max-width: 100%;
  font-size: 13px;
}
.upload-chip span {
  overflow-wrap: anywhere;
  flex: 1;
}
.upload-chip button {
  border: 0;
  border-radius: 50%;
  background: #879da51a;
  color: inherit;
  cursor: pointer;
  font-size: 22px;
  width: 30px;
  height: 30px;
}
.upload-chip .avatar {
  width: 42px;
  height: 42px;
  object-fit: cover;
}
.learning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.learning-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s;
}
.learning-tile:hover {
  transform: translateY(-4px);
}
.learning-tile h2 {
  font-size: 18px;
  margin: 0;
}
.learning-tile > span {
  color: #78929c;
  font-size: 13px;
}
.learning-tile .symbol {
  width: 56px;
  height: 56px;
  border-radius: 18px;
}
.section-card {
  display: flex;
  gap: 22px;
  margin-bottom: 20px;
}
.section-card > img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
}
.section-card > div {
  min-width: 0;
  flex: 1;
}
.content-card {
  overflow: hidden;
  min-width: 0;
}
.content-cover {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
}
.content-card h2 {
  font-size: 19px;
  overflow-wrap: anywhere;
}
.pill {
  display: inline-block;
  border-radius: 8px;
  padding: 4px 10px;
  background: #11959012;
  color: #128783;
  font-size: 12px;
}
.rich-output {
  line-height: 1.9;
  overflow-wrap: anywhere;
  overflow: auto;
}
.rich-output table {
  border-collapse: collapse;
  max-width: 100%;
}
.rich-output td,
.rich-output th {
  border: 1px solid #90a6b455;
  padding: 8px;
}
.rich-editor {
  border: 1px solid #8d9faa55;
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
  background: var(--card, #fff);
}
.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 9px;
  background: #8d9faa0b;
  border-bottom: 1px solid #8d9faa33;
}
.rich-toolbar button {
  border: 0;
  border-radius: 6px;
  min-width: 30px;
  height: 32px;
  cursor: pointer;
  color: inherit;
  background: transparent;
  font-weight: 600;
}
.rich-toolbar button:hover {
  background: #118c8822;
}
.rich-editor [contenteditable] {
  min-height: 150px;
  padding: 16px;
  outline: 0;
  font-size: 15px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.dropzone {
  position: relative;
  min-height: 140px;
  border: 2px dashed #b9cfce;
  border-radius: 18px;
  background: linear-gradient(135deg, #0b939509, #c4a56a0a);
  padding: 18px;
  transition: background 0.18s;
}
.drop-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
  padding: 12px;
}
.drop-intro .icon {
  width: 30px;
  height: 30px;
  color: #16898d;
}
.drop-intro small {
  opacity: 0.6;
}
.dropzone > input[type='file'] {
  display: block;
  max-width: 100%;
  margin: 8px auto;
  cursor: pointer;
  font-size: 12px;
}
.dropzone.dragover {
  background: #098d9a22;
  border-color: #098d9a;
}
.dropzone progress {
  display: block;
  width: 100%;
  height: 12px;
  margin: 12px 0;
  accent-color: #16898d;
}
.upload-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.class-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.class-picker label {
  padding: 12px;
  border: 1px solid #889aa933;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.learning-form input,
.learning-form select,
.learning-form textarea {
  max-width: 100%;
}
.learning-form > button[type='submit'] {
  margin-top: 22px;
}
.video-player,
.video-frame {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 70vh;
  background: #0d1b24;
  border: 0;
  border-radius: 14px;
}
.file-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.file-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid #889aa933;
  border-radius: 14px;
  overflow-wrap: anywhere;
}
.question-card {
  padding: 22px;
  border: 1px solid #879faa33;
  border-radius: 16px;
  margin: 16px 0;
}
.question-card > .rich-output {
  margin: 18px 0;
}
.answer-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #889aaa33;
  border-radius: 12px;
  padding: 14px;
  margin: 10px 0;
  cursor: pointer;
}
.answer-choice:has(input:checked) {
  border-color: #1a999a;
  background: #1a999a10;
}
.answer-input textarea {
  width: 100%;
  box-sizing: border-box;
}
.assessment-bar {
  position: sticky;
  top: 82px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 30px #19364812;
}
.assessment-bar strong {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  color: #188a86;
}
.assessment-bar span {
  flex: 1;
  font-size: 12px;
}
.assessment-bar strong.time-warning {
  color: #c24646;
}
.question-navigation {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.question-navigation a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #198a8611;
  color: inherit;
  text-decoration: none;
}
.question-card {
  scroll-margin-top: 180px;
}
.assessment-intro {
  text-align: center;
  max-width: 740px;
  margin: 25px auto;
  padding: 45px;
}
.success-mark {
  font-size: 42px;
  color: #148c83;
}
.hotspot {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  direction: ltr;
  cursor: crosshair;
}
.hotspot img {
  display: block;
  max-width: 100%;
  max-height: 430px;
  width: auto;
}
.hotspot-region {
  position: absolute;
  background: #13a5a644;
  border: 2px solid #059b9a;
  pointer-events: none;
}
.hotspot-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ebbb53;
  border: 3px solid white;
  box-shadow: 0 0 0 2px #155865;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.birthday {
  text-align: center;
  padding: 26px;
  background: radial-gradient(ellipse at top, #e1bd7530, transparent 70%);
  border-radius: 20px;
}
.birthday > div {
  font-size: 55px;
}
.birthday h2 {
  margin-top: 20px;
}
#storage-panel {
  margin-top: 24px;
}
.dark .rich-editor {
  background: #18364a;
}
.dark .recipient-item:hover {
  background: #ffffff0a;
}
.dark .upload-chip,
.dark .question-card,
.dark .answer-choice {
  border-color: #ffffff22;
}
.dark .content-card .pill,
.dark .pill {
  color: #80d4ca;
  background: #7fd9ce16;
}
.dark .rich-toolbar {
  background: #102a3c;
}
.dark .assessment-bar {
  background: #18364a;
}
.dark .dropzone {
  border-color: #54837f;
}
.dark .recipient-results {
  border-color: #ffffff22;
}
input[type='checkbox'],
input[type='radio'] {
  accent-color: #178b86;
}
a.quick {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
a.course {
  min-width: 0;
}
.topbar .notify > span {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  background: #ce9c4d;
  color: white;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  font-size: 11px;
  text-align: center;
  line-height: 18px;
}
.notify {
  position: relative;
}
@media (max-width: 1100px) {
  .learning-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topbar select {
    max-width: 170px;
  }
}
@media (max-width: 700px) {
  .recipient-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .recipient-toolbar select:first-child {
    grid-column: 1/-1;
  }
  .learning-grid {
    grid-template-columns: 1fr;
  }
  .section-card {
    flex-direction: column;
  }
  .section-card > img {
    width: 100%;
    height: 170px;
  }
  .class-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .file-grid {
    grid-template-columns: 1fr;
  }
  .assessment-bar {
    top: 60px;
    padding: 12px;
    gap: 10px;
  }
  .assessment-bar strong {
    font-size: 16px;
  }
  .assessment-bar span {
    flex-basis: 45%;
  }
  .assessment-bar .btn {
    flex: 1;
  }
  .question-card {
    padding: 16px;
  }
  .assessment-intro {
    padding: 25px;
  }
  .content-cover {
    height: 190px;
  }
  .topbar select {
    max-width: 130px;
  }
  .recipient-tabs {
    flex-wrap: wrap;
  }
  .formgrid .wide {
    min-width: 0;
  }
  .mailtabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }
  .mailtabs .btn {
    white-space: nowrap;
  }
  .recipient-results {
    height: 260px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .course,
  .learning-tile,
  .dropzone {
    transition: none;
  }
}

input[type='checkbox'],
input[type='radio'] {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  margin: 0;
  flex: 0 0 20px;
}
.sidebar .navgroup:empty {
  display: none;
}
