html body[data-s5-page="quests"] .student-economy-shell { padding-block-start: 12px; }
html body[data-s5-page="quests"] .student-quest-main {
  gap: 12px;
  padding: 0 0 24px;
}
html body[data-s5-page="quests"] .student-quest-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 0;
}
[data-s5-page="quests"] :is(.student-quest-hero-copy > span, .student-quest-stat-strip, .student-quest-goal-guide, .student-quest-table-head),
[data-s5-page="quests"] .student-quest-summary small { display: none; }
html body[data-s5-page="quests"] .student-quest-summary { display: flex; gap: 6px; margin: 0; }
html body[data-s5-page="quests"] .student-quest-summary > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 8px;
  border: 0;
  border-radius: 6px;
}
html body[data-s5-page="quests"] .student-quest-summary :is(dt, dd) { margin: 0; font-size: 12px; }
html body[data-s5-page="quests"] .student-quest-chest {
  position: relative;
  display: grid;
  min-height: 0;
  padding: 8px 127px 8px 12px;
}
html body[data-s5-page="quests"] .student-quest-chest-copy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 12px;
  min-width: 0;
}
html body[data-s5-page="quests"] #studentQuestChestTitle {
  display: block;
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  margin: 0;
  color: var(--s5-ink);
  font: 800 16px/1.25 system-ui, sans-serif;
}
html body[data-s5-page="quests"] .student-quest-chest-copy .student-quest-goal-guide { display: none; }
html body[data-s5-page="quests"] .student-quest-goal-target { margin: 0; font-size: 12px; }
html body[data-s5-page="quests"] .student-quest-progress { flex: 1 1 64px; height: 8px; max-width: 230px; margin: 0; background: #c9dfd0; border: 0; }
html body[data-s5-page="quests"] #studentQuestProgressText { position: static; margin: 0; font-size: 13px; }
html body[data-s5-page="quests"] .student-quest-chest-hotspot {
  position: absolute;
  inset: 50% 8px auto auto;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: auto;
  height: 44px;
  padding: 3px 7px;
  color: #124a2d;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
  filter: none;
}
html body[data-s5-page="quests"] .student-quest-chest-hotspot > img { width: 28px; height: 27px; }
html body[data-s5-page="quests"] .student-quest-chest { min-height: 54px; box-sizing: border-box; }
html body[data-s5-page="quests"] .student-quest-message {
  margin: 0;
  min-height: 0;
  padding: 0;
  font-size: 13px;
  text-align: start;
}
.student-quest-message:empty { display: none; }
html body[data-s5-page="quests"] .student-quest-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
}
html body[data-s5-page="quests"] .student-quest-tabs > button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(4px, 1vw, 12px);
  min-width: 0;
  padding: 5px clamp(6px, 1.4vw, 16px);
  border: 1px solid transparent;
  border-inline-start: 4px solid var(--quest-filter-line, #65a9e9);
  background: var(--quest-filter-fill, #deedfb);
  color: var(--s5-ink);
  box-shadow: none;
  font-size: clamp(12px, 1.35vw, 17px);
}
[data-s5-page="quests"] .student-quest-tabs > button[data-student-quest-filter="pending"] { --quest-filter-line: #b3a0e8; --quest-filter-fill: #ede7fc; }
[data-s5-page="quests"] .student-quest-tabs > button[data-student-quest-filter="completed"] { --quest-filter-line: #85c998; --quest-filter-fill: #e4f5e9; }
[data-s5-page="quests"] .student-quest-tabs > button[data-student-quest-filter="bonus"] { --quest-filter-line: #ecbc67; --quest-filter-fill: #fcf0dc; }
html body[data-s5-page="quests"] .student-quest-tabs > button[aria-pressed="true"] { border-color: #196dcc; }
html body[data-s5-page="quests"] .student-quest-tabs > button > span { margin: 0; padding: 0; background: none; color: inherit; min-width: 0; }
html body[data-s5-page="quests"] .s5-quest-columns { padding-block-start: 8px; border-block-start: 1px solid var(--s5-line); }
html body[data-s5-page="quests"] :is(#studentQuestWorkspace, #studentQuestDetail) {
  padding: 0;
  border: 0;
  background: none;
  min-height: 0;
}
html body[data-s5-page="quests"] .student-quest-ledger-heading {
  min-height: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 8px;
  margin: 0;
  padding: 0 0 6px;
  border: 0;
}
html body[data-s5-page="quests"] .student-quest-list { gap: 0; }
html body[data-s5-page="quests"] .student-quest-row {
  gap: 4px 8px;
  padding: 8px;
  min-height: 52px;
  border-radius: 0;
  border-width: 0 0 1px;
  background: transparent;
}
html body[data-s5-page="quests"] .student-quest-row[aria-expanded="true"] {
  border: 1px solid #2874c9;
  border-radius: 7px;
  background: var(--s5-pale-blue);
}
html body[data-s5-page="quests"] .student-quest-row .student-quest-kind > i {
  background: none;
  color: var(--s5-ink);
  border: 0;
}
html body[data-s5-page="quests"] .student-quest-row .student-quest-kind > i::before { opacity: 1; }
[data-s5-page="quests"] .student-quest-row .student-quest-kind > span { display: none; }
html body[data-s5-page="quests"] .student-quest-copy strong { font-size: 15px; }
[data-s5-page="quests"] .student-quest-row-progress { display: none; }
html body[data-s5-page="quests"] .student-quest-ledger-actions { display: flex; flex-wrap: wrap; gap: 4px; }
html body[data-s5-page="quests"] .student-quest-ledger-actions button {
  min-height: 44px;
  padding: 4px 8px;
  color: var(--s5-ink);
  border-color: var(--s5-line);
  background: var(--s5-panel);
  font: 700 12px/1.2 system-ui, sans-serif;
}
html body[data-s5-page="quests"] .student-quest-ledger-actions [aria-pressed="true"] { border-color: var(--s5-blue); color: var(--s5-blue); }
html body[data-s5-page="quests"] .student-quest-priority-summary { margin: 3px 0 0; }
html body[data-s5-page="quests"] .student-quest-workspace-heading {
  padding: 4px 50px 6px 0;
  min-height: 0;
  border: 0;
  background: none;
}
html body[data-s5-page="quests"] .student-quest-workspace-heading h2 {
  color: var(--s5-ink);
  font: 850 clamp(21px, 2.5vw, 32px)/1.24 system-ui, sans-serif;
  overflow-wrap: anywhere;
}
html body[data-s5-page="quests"] .student-quest-native-panel {
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
  gap: 8px;
}
html body[data-s5-page="quests"] .student-quest-action-panel { border-block-start: 1px solid var(--s5-line); }
html body[data-s5-page="quests"] .student-quest-native-meta { margin: 0; }
html body[data-s5-page="quests"] .student-quest-native-meta > span {
  color: #175b35;
  border-color: #c3dec9;
  background: var(--s5-pale-green);
}
html body[data-s5-page="quests"] .student-quest-detail-close {
  inset: 0 0 auto auto;
  min-width: 44px;
  min-height: 44px;
  color: var(--s5-ink);
  border-color: var(--s5-line);
  background: var(--s5-panel);
  box-shadow: none;
}
[data-s5-page="quests"] .student-quest-detail-close > :is(span, .s5-quest-back-arrow) { display: none; }
html body[data-s5-page="quests"] .student-quest-assignment-form { gap: 8px; }
html body[data-s5-page="quests"] .student-quest-assignment-field textarea { min-height: 80px; }
html body[data-s5-page="quests"] .student-quest-assignment-actions {
  display: flex;
  align-items: end;
  gap: 8px;
}
html body[data-s5-page="quests"] .student-quest-assignment-actions > * { flex: 1; min-width: 0; }
html body[data-s5-page="quests"] .student-quest-assignment-photo-field {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  min-height: 44px;
  padding: 5px;
  border: 1px solid var(--s5-line);
  border-radius: 6px;
  color: var(--s5-blue);
  background: var(--s5-panel);
}
html body[data-s5-page="quests"] .student-quest-assignment-photo-field:focus-within {
  outline: 2px solid var(--s5-blue);
  outline-offset: 2px;
}
html body[data-s5-page="quests"] .student-quest-assignment-photo-field:has(input:disabled) { opacity: .6; }
html body[data-s5-page="quests"] .student-quest-assignment-photo-field input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}
.s5-quest-draft-status { margin: 0; color: var(--s5-blue); font-size: 12px; }
html body[data-s5-page="quests"] .student-economy-view-link { margin: 0; justify-self: start; }
html body[data-s5-page="quests"] #studentQuestTeacherMode { display: none; }

@media (min-width: 781px) {
  html body[data-s5-page="quests"] #studentQuestDetail {
    padding-inline-start: 16px;
    border-inline-start: 1px solid var(--s5-line);
    border-radius: 0;
  }
}
@media (max-width: 780px) {
  html body[data-s5-page="quests"] .student-quest-tabs { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .student-quest-main:has(#studentQuestDetail:not([hidden])) > :is(.student-quest-hero, .student-quest-chest, .student-quest-tabs, .student-economy-view-link),
  .student-quest-main:has(#studentQuestDetail:not([hidden])) #studentQuestWorkspace { display: none; }
  html body[data-s5-page="quests"] .student-quest-detail-close {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    padding: 0 11px;
    border-radius: 7px;
    margin-block-end: 8px;
  }
  [data-s5-page="quests"] .student-quest-detail-close > :is(span, .s5-quest-back-arrow) { display: inline; }
  [data-s5-page="quests"] .student-quest-detail-close > .fa-xmark { display: none; }
  html body[data-s5-page="quests"] .student-quest-workspace-heading { padding-inline-end: 0; }
  html body[data-s5-page="quests"] .student-quest-summary { display: none; }
  html body[data-s5-page="quests"] .student-quest-chest-copy { gap: 3px 8px; }
}
@media (max-width: 600px) {
  html body[data-s5-page="quests"] .student-quest-main { gap: 8px; }
  html body[data-s5-page="quests"] .student-quest-chest { padding-inline-end: 104px; }
  html body[data-s5-page="quests"] .student-quest-chest-hotspot { font-size: 11px; gap: 3px; }
  html body[data-s5-page="quests"] .student-quest-chest-hotspot > img { width: 22px; }
  html body[data-s5-page="quests"] .student-quest-chest-copy { row-gap: 2px; }
  html body[data-s5-page="quests"] .student-quest-copy { flex-basis: 100px; }
  html body[data-s5-page="quests"] .student-quest-row .student-quest-row-chips [data-tone="required"],
  html body[data-s5-page="quests"] .student-quest-row .student-quest-reward { display: none; }
}
@media (max-width: 360px) {
  #studentQuestTutorial > span, #studentQuestSyncChest > span { display: none; }
  html body[data-s5-page="quests"] .student-quest-ledger-actions button { min-width: 44px; }
}
