.homework-page { max-width: 1050px; }
.homework-heading-row,
.homework-section-heading,
.homework-preferences-footer,
.recap-meta,
.recap-actions,
.question-heading,
.question-actions,
.question-response-actions,
.question-rating-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}
.homework-heading-row h1,
.homework-section-heading h2 { margin-bottom: .25rem; }
.homework-loading { display: grid; gap: 1rem; }
.homework-loading .dt-skeleton {
  background: linear-gradient(90deg, var(--skeleton-start) 25%, var(--skeleton-mid) 50%, var(--skeleton-end) 75%);
  background-size: 200% 100%;
  border: 1px solid var(--border);
}
.homework-loading[hidden],
.homework-profile-picker[hidden],
.recap-composer[hidden],
.preferences-accordion[hidden],
.preferences-how-popover[hidden] { display: none !important; }
.homework-profile-picker { margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem; }
.homework-profile-picker select { min-width: 220px; }
.tutor-student-switcher[hidden] { display: none !important; }
.tutor-student-switcher { margin-bottom: 1rem; }
.tutor-student-switcher-label { margin: 0 0 .5rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.tutor-student-switcher-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.tutor-student-wheel-wrap {
  position: relative; flex: 0 0 auto; width: min(280px, 100%); height: 220px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-alt);
  overflow: hidden;
}
.tutor-student-wheel {
  position: relative; height: 100%; overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory;
  padding: 88px 0; scrollbar-width: none;
}
.tutor-student-wheel::-webkit-scrollbar { display: none; }
.tutor-student-wheel-item {
  scroll-snap-align: center; height: 44px; padding: 0 14px; box-sizing: border-box;
  display: flex; align-items: center; gap: .6rem; cursor: pointer;
  opacity: .45; transform: scale(.92); transition: opacity 120ms ease, transform 120ms ease;
}
.tutor-student-wheel-item.is-family-member { background: var(--family-tint); border-left: 3px solid var(--family-color); }
.tutor-student-wheel-item.is-family-first { border-top-left-radius: 10px; border-top-right-radius: 10px; margin-top: .3rem; }
.tutor-student-wheel-item.is-family-last { border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; margin-bottom: .3rem; }
.tutor-student-avatar {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--family-color, var(--muted));
  color: #fff; display: grid; place-items: center; font-size: .7rem; font-weight: 800;
}
.tutor-student-wheel-item-text { min-width: 0; display: grid; }
.tutor-student-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tutor-student-sub { font-size: .72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tutor-student-wheel-item.is-centered { opacity: 1; transform: scale(1); }
.tutor-student-wheel-item.is-centered .tutor-student-name { color: var(--accent); }
.tutor-student-wheel-center-frame {
  position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(var(--accent-rgb), .06); pointer-events: none;
}
.tutor-student-wheel-fade { position: absolute; left: 0; right: 0; height: 56px; pointer-events: none; z-index: 2; }
.tutor-student-wheel-fade-top { top: 0; background: linear-gradient(var(--surface-alt), transparent); }
.tutor-student-wheel-fade-bottom { bottom: 0; background: linear-gradient(transparent, var(--surface-alt)); }
.tutor-change-student-btn {
  border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--muted);
  font-weight: 700; font-size: .85rem; padding: .55rem 1.1rem; cursor: pointer; transition: color .15s ease, border-color .15s ease, background .15s ease;
  max-width: 100%; white-space: normal; text-align: left;
}
.tutor-change-student-btn:not(:disabled) { color: var(--accent); border-color: var(--accent); background: rgba(var(--accent-rgb), .1); }
.tutor-change-student-btn:not(:disabled):hover,
.tutor-change-student-btn:not(:disabled):focus-visible { background: rgba(var(--accent-rgb), .18); }
.tutor-change-student-btn:disabled { cursor: default; }
.recap-composer { display: grid; gap: 1.25rem; }
.recap-session-meta { display: grid; gap: .4rem; margin-top: .75rem; color: var(--muted); }
.recap-session-meta-row { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: .65rem; }
.recap-session-meta-row strong { color: var(--text); }
.recap-composer textarea,
#student-preferences,
#homework-preferences,
.tutor-question-form input,
.tutor-question-form textarea,
.tutor-question-form select {
  width: 100%; box-sizing: border-box;
}
.recap-composer textarea,
#student-preferences,
#homework-preferences,
.tutor-question-form input,
.tutor-question-form textarea,
.tutor-question-form select {
  padding: .7rem .8rem; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface-alt); color: var(--text); font: inherit;
}
.recap-step { display: grid; gap: .65rem; }
.recap-step-title { font-weight: 700; font-size: 1.05rem; }
.recap-summary-title { display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; }
.recap-summary-saved { color: var(--ok); font-size: .85rem; font-weight: 700; }
.recap-deadline { font-size: .85rem; color: var(--muted); }
.recap-generation-note { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.homework-failure-notice { padding: 1rem; border-radius: 8px; background: var(--warning-bg); color: var(--warning-text); line-height: 1.55; }
@keyframes homework-spin { to { transform: rotate(360deg); } }
button.is-loading::before,
#homework-status.is-loading::before,
.photo-processing.is-loading::before {
  content: ''; display: inline-block; width: .9rem; height: .9rem; margin-right: .5rem;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  vertical-align: -.12rem; animation: homework-spin .7s linear infinite;
}
#homework-status.is-loading { color: var(--accent); }
.question-list { display: grid; gap: .85rem; }
.homework-question {
  border: 1px solid var(--border); border-radius: 10px; padding: 1rem;
  background: var(--surface-alt); display: grid; gap: .7rem;
}
.homework-question.is-deselected { opacity: .58; border-style: dashed; }
.homework-question.is-safety-invalid,
.recap-composer textarea.is-safety-invalid {
  border-color: var(--bad);
  outline: 2px solid var(--bad);
  outline-offset: 2px;
}
.question-select-toggle { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; cursor: pointer; }
.question-select-toggle .preference-switch-track { flex-basis: 44px; width: 44px; height: 24px; }
.question-select-toggle .preference-switch-track::after { width: 16px; height: 16px; }
.question-select-toggle input:checked + .preference-switch-track::after { transform: translateX(20px); }
.question-number { font-weight: 700; }
.question-heading-main { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.question-result-icon {
  display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem;
  border-radius: 50%; color: #fff; font-size: 1rem; font-weight: 900; line-height: 1;
}
.question-result-icon.is-correct { background: var(--action-bg); }
.question-result-icon.is-wrong { background: var(--bad); }
.question-badge { font-size: .75rem; padding: .2rem .5rem; border-radius: 999px; background: rgba(var(--accent-rgb), .14); }
.question-badge.tutor { background: rgba(var(--ok-rgb), .14); }
.question-format-badge { background: rgba(var(--muted-rgb, 148, 163, 184), .14); color: var(--text); }
.question-prompt { white-space: pre-wrap; line-height: 1.55; }
.homework-choice-preview { margin: 0; padding-left: 2rem; display: grid; gap: .4rem; color: var(--muted); }
.homework-choice-preview li { padding-left: .25rem; white-space: pre-wrap; }
.question-topic { color: var(--muted); font-size: .82rem; }
.question-solution { border-top: 1px solid var(--border); padding-top: .7rem; }
.question-solution summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.question-answer, .question-explanation { white-space: pre-wrap; margin-top: .7rem; line-height: 1.5; }
.question-explanation { color: var(--muted); }
.math-format-help { font-size: .82rem; }
.katex-display { max-width: 100%; overflow-x: auto; overflow-y: hidden; padding: .25rem 0; }
.session-photo-step { border-top: 1px solid var(--border); padding-top: 1rem; }
.photo-upload-warning,
.photo-privacy-warning { padding: .75rem; border-radius: 8px; line-height: 1.45; }
.photo-upload-warning { background: var(--warning-bg); color: var(--warning-text); }
.photo-privacy-warning { background: var(--danger-bg); color: var(--danger-text); }
.session-photo-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.session-photo-card { display: grid; align-content: start; gap: .7rem; padding: 1rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-alt); }
.session-photo-card.is-excluded { border-style: dashed; opacity: .68; }
.photo-keep-switch { font-size: .85rem; }
.photo-processing[hidden] { display: none !important; }
.session-photo-card textarea { width: 100%; box-sizing: border-box; }
.session-photo-image { display: block; width: 100%; max-height: 520px; object-fit: contain; border-radius: 8px; background: #fff; }
.session-photo-image.session-photo-thumbnail {
  width: 140px; height: 140px; max-height: none; object-fit: cover; cursor: pointer;
  transition: filter .15s ease;
}
.session-photo-image.session-photo-thumbnail:hover,
.session-photo-image.session-photo-thumbnail:focus-visible { filter: brightness(1.08); outline: 2px solid var(--accent); outline-offset: 2px; }
.photo-lightbox-overlay {
  position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .82); padding: 2rem;
}
.photo-lightbox-image { display: block; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; background: #fff; }
.photo-lightbox-close {
  position: fixed; top: 1rem; right: 1rem; width: 42px; height: 42px; min-width: 42px; padding: 0;
  border-radius: 50%; background: rgba(15, 23, 42, .8); color: #fff; border-color: rgba(255, 255, 255, .3);
  font-size: 1.4rem; line-height: 1;
}
.photo-educational-notes,
.photo-raw-text > div { white-space: pre-wrap; line-height: 1.5; }
.photo-raw-text summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.photo-expiry { font-size: .82rem; }
.recap-session-photos { margin-top: 1rem; }
.recap-session-photos h4 { margin: 0 0 .7rem; }
.question-response-actions { justify-content: flex-start; }
.question-response-actions button { font-size: .82rem; }
.question-response-actions button.is-selected,
.question-rating-actions button.is-selected { outline: 2px solid var(--accent); }
.question-rating-actions { justify-content: flex-end; align-items: center; margin-top: .65rem; padding-top: .4rem; }
.question-rating-actions select { max-width: 150px; font-size: .75rem; padding: .25rem .4rem; }
.question-feedback-down {
  width: 27px; min-width: 27px; height: 27px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); font-size: .78rem; line-height: 1; opacity: .65;
}
.question-feedback-down:hover,
.question-feedback-down:focus-visible,
.question-feedback-down.is-selected { opacity: 1; background: rgba(var(--bad-rgb, 239, 68, 68), .12); }
.homework-reward-panel { position: relative; display: grid; justify-items: start; gap: .35rem; padding: .7rem .8rem; border-radius: 8px; background: rgba(var(--accent-rgb), .1); }
.homework-reward-trigger { font-size: .82rem; font-weight: 600; }
.homework-reward-trigger.is-earned { color: var(--success-text); }
.homework-reward-popover p { margin: 0; line-height: 1.5; }
.interactive-answer-area { display: grid; gap: .65rem; }
.interactive-answer-area > input,
.interactive-answer-area > textarea { width: 100%; box-sizing: border-box; }
.homework-choice-list { display: grid; gap: .5rem; }
.homework-choice { display: flex; align-items: flex-start; gap: .6rem; padding: .65rem; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.homework-choice:has(input:checked) { border-color: var(--accent); background: rgba(var(--accent-rgb), .08); }
.student-submitted-answer { white-space: pre-wrap; padding: .8rem; border-left: 3px solid var(--accent); background: var(--surface); }
.homework-attempt-list { margin: 0; padding-left: 1.4rem; }
.self-assessment { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding-top: .5rem; }
.self-assessment > div:first-child { flex-basis: 100%; }
.question-attempt-status { font-weight: 700; }
.homework-confetti {
  position: fixed; z-index: 10000; width: 8px; height: 12px; border-radius: 2px;
  pointer-events: none; transform: translate(-50%, -50%);
  animation: homework-confetti-burst 850ms cubic-bezier(.15, .7, .35, 1) forwards;
}
@keyframes homework-confetti-burst {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(0); }
  70% { opacity: 1; transform: translate(calc(-50% + var(--confetti-x)), calc(-50% + var(--confetti-y))) rotate(var(--confetti-r)); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--confetti-x)), calc(-50% + var(--confetti-y) + 90px)) rotate(var(--confetti-r)); }
}
@media (prefers-reduced-motion: reduce) { .homework-confetti { display: none; } }
.tutor-question-form { border: 1px dashed var(--border); border-radius: 10px; padding: 1rem; display: grid; gap: .65rem; }
.recap-card { margin-bottom: 1rem; }
.recap-card h3 { margin-bottom: .35rem; }
.recap-card-school { margin: -.15rem 0 .7rem; }
.recap-summaries { display: grid; gap: .9rem; }
.recap-summary-section h4 { margin: 0 0 .4rem; }
.recap-summary { white-space: pre-wrap; line-height: 1.55; padding: .8rem; border-left: 3px solid var(--accent); background: var(--surface-alt); }
.recap-questions { margin-top: 1rem; display: grid; gap: .8rem; }
.recap-subsection { margin-top: .4rem; border-top: 1px solid var(--border); background: transparent; }
.recap-subsection-heading {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .7rem 1rem; cursor: pointer; list-style: none; user-select: none;
  font-size: .9rem; font-style: italic; font-weight: 400;
}
.recap-subsection-heading::-webkit-details-marker,
.recap-subsection-heading::marker { display: none; content: ''; }
.recap-subsection-heading-trailing { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.homework-reward-earned-note { color: var(--success-text); font-size: .8rem; }
.homework-reward-earned-banner {
  display: block; margin-bottom: .9rem; padding: .6rem .8rem; border-radius: 8px;
  background: var(--success-bg); color: var(--success-text); font-size: .85rem; font-weight: 700;
}
.homework-action-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.homework-action-btn { font-weight: 700; background: var(--action-bg); color: var(--on-accent); border-color: transparent; }
.homework-action-btn:hover { background: var(--action-hover); }
.homework-action-btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.recap-subsection-content { padding: 0 0 1rem; }
.recap-homework-subsection { background: rgba(var(--accent-rgb), .07); }
.recap-homework-subsection > .recap-subsection-content { padding-left: 1rem; padding-right: 1rem; }
.recap-subsection[open] > .recap-subsection-heading .preferences-chevron { transform: rotate(225deg) translate(-2px, -2px); }
.portfolio-recaps { display: grid; gap: 1rem; }
.portfolio-recaps .recap-card .recap-questions { display: none; }
.portfolio-recaps .recap-card.is-expanded .recap-questions { display: grid; }
.portfolio-toggle { margin-top: .75rem; }
.portfolio-summaries-accordion { margin-top: 1rem; }
.portfolio-summaries-summary,
.course-summary-heading,
.session-summary-heading {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  cursor: pointer; list-style: none; user-select: none;
}
.portfolio-summaries-summary::-webkit-details-marker,
.course-summary-heading::-webkit-details-marker,
.session-summary-heading::-webkit-details-marker,
.portfolio-summaries-summary::marker,
.course-summary-heading::marker,
.session-summary-heading::marker { display: none; content: ''; }
.portfolio-summaries-summary h2 { margin: 0; font-size: 1.2rem; }
.portfolio-summary-title-row { display: inline-flex; align-items: center; gap: .65rem; }
.course-summary-groups,
.session-summary-groups { display: grid; gap: .75rem; margin-top: 1rem; }
.course-summary-group { border: 0; background: transparent; }
.session-summary-group { border: 1px solid var(--border); border-radius: 10px; background: var(--surface-alt); overflow: visible; }
.course-summary-heading { padding: .35rem 0 .65rem; font-weight: 700; }
.session-summary-heading { padding: .8rem 1rem; color: var(--text); font-weight: 700; }
.session-summary-groups { padding: 0; margin-top: .25rem; }
.session-summary-content { padding: 0; }
.session-summary-content .recap-card { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.session-summary-group[open] > .session-summary-heading { border-bottom: 1px solid var(--border); }
.homework-count-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px;
  padding: 0 .38rem; border-radius: 999px; background: var(--bad); color: var(--on-danger); font-size: .72rem; font-weight: 800;
}
.homework-count-badge[hidden] { display: none; }
#summaries-badge { cursor: pointer; }
#summaries-badge:hover, #summaries-badge:focus-visible { background: #dc2626; }
.course-summary-heading .preferences-chevron,
.session-summary-heading .preferences-chevron { margin-left: auto; }
.portfolio-summaries-accordion[open] > .portfolio-summaries-summary .preferences-chevron,
.course-summary-group[open] > .course-summary-heading .preferences-chevron,
.session-summary-group[open] > .session-summary-heading .preferences-chevron { transform: rotate(225deg) translate(-2px, -2px); }
.preferences-accordion { position: relative; }
.preferences-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin: -12px -16px; padding: 12px 16px; min-height: 42px;
  border-radius: var(--radius-lg); cursor: pointer; list-style: none; user-select: none;
}
.preferences-summary::-webkit-details-marker,
.preferences-summary::marker { display: none; content: ''; }
.preferences-summary:hover,
.preferences-summary:focus-visible { color: var(--accent); background: rgba(var(--accent-rgb), .08); outline: none; }
.preferences-summary h2 { margin: 0; font-size: 1.2rem; }
.preferences-summary-actions { display: inline-flex; align-items: center; gap: 1rem; }
.preferences-chevron {
  width: 10px; height: 10px; flex: 0 0 10px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 180ms ease;
}
.preferences-accordion[open] > .preferences-summary {
  margin-bottom: 16px; border-bottom: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.preferences-accordion[open] > .preferences-summary .preferences-chevron { transform: rotate(225deg) translate(-2px, -2px); }
.preferences-body { display: grid; gap: 1.25rem; }
.preference-field { display: grid; gap: .45rem; }
.preference-field > label { font-weight: 700; font-size: 1.05rem; }
.preference-field p { margin: 0; }
.preference-count { justify-self: end; }
.preferences-help-anchor { position: relative; display: inline-flex; }
.preferences-how-trigger {
  appearance: none; border: 0; padding: .2rem 0; background: transparent; color: var(--accent);
  font: inherit; font-size: .9rem; font-weight: 700; text-decoration: underline; cursor: pointer;
}
.preferences-how-popover {
  position: absolute; top: calc(100% + .65rem); right: 0; z-index: 50; display: grid; gap: .65rem;
  width: min(420px, calc(100vw - 3rem)); padding: 1rem; padding-top: 2.2rem;
  border: 1px solid var(--accent); border-radius: 10px; background: var(--surface); color: var(--text);
  box-shadow: 0 16px 38px rgba(var(--shadow-rgb), .35); font-size: .9rem; line-height: 1.5;
  white-space: normal;
}
.preferences-how-popover::before {
  content: ''; position: absolute; right: 1.25rem; top: -7px; width: 12px; height: 12px;
  transform: rotate(45deg); background: var(--surface); border-left: 1px solid var(--accent); border-top: 1px solid var(--accent);
}
.preferences-how-close {
  position: absolute; top: .35rem; left: .45rem; width: 28px; height: 28px; padding: 0;
  border: 0; background: transparent; color: var(--muted); font-size: 1.35rem; line-height: 1; cursor: pointer;
}
#preferences-how-text { display: grid; gap: .65rem; }
.preferences-how-paragraph { display: block; }
.preference-switch { display: inline-flex; align-items: center; gap: .7rem; cursor: pointer; user-select: none; }
.preference-switch input { position: absolute; opacity: 0; pointer-events: none; }
.preference-switch-track {
  position: relative; flex: 0 0 52px; width: 52px; height: 28px; border-radius: 999px;
  background: rgba(148, 163, 184, .3); border: 1px solid rgba(148, 163, 184, .45);
  transition: background .2s ease, border-color .2s ease;
}
.preference-switch-track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #e2e8f0; transition: transform .2s ease, background .2s ease;
}
.preference-switch input:checked + .preference-switch-track { background: rgba(var(--ok-rgb), .35); border-color: rgba(var(--ok-rgb), .7); }
.preference-switch input:checked + .preference-switch-track::after { transform: translateX(24px); background: #bbf7d0; }
.preference-switch input:focus-visible + .preference-switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.preference-switch-label { font-weight: 700; }
.preferences-save-row { margin-top: .5rem; }
.recap-error { color: var(--bad); }
.publish-recap-group { display: grid; justify-items: end; gap: .4rem; max-width: min(100%, 34rem); }
#publish-recap-feedback { font-size: .9rem; line-height: 1.4; text-align: right; }
@media (max-width: 650px) {
  .homework-page,
  .homework-page .dt-card,
  .recap-composer,
  .recap-composer > *,
  .recap-step,
  .question-list,
  .homework-question,
  .session-photo-step,
  .session-photo-list,
  .session-photo-card,
  .portfolio-summaries-accordion,
  .course-summary-groups,
  .session-summary-groups,
  .session-summary-group,
  .recap-subsection,
  .recap-subsection-content {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .recap-composer textarea,
  .session-photo-card textarea,
  .tutor-question-form input,
  .tutor-question-form textarea,
  .tutor-question-form select,
  .session-photo-step input[type="file"] {
    display: block;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .recap-composer textarea,
  .tutor-question-form textarea,
  .session-photo-card textarea {
    resize: vertical;
  }
  .question-heading,
  .question-heading-main,
  .recap-subsection-heading,
  .portfolio-summaries-summary,
  .course-summary-heading,
  .session-summary-heading,
  .photo-upload-warning,
  .photo-privacy-warning,
  .photo-educational-notes,
  .photo-raw-text,
  .question-prompt,
  .question-answer,
  .question-explanation {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .session-photo-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .homework-heading-row { align-items: flex-start; }
  .tutor-student-switcher-row { flex-direction: column; align-items: stretch; }
  .tutor-student-wheel-wrap { width: 100%; }
  .tutor-change-student-btn { width: 100%; text-align: center; box-sizing: border-box; }
  .question-response-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .question-response-actions button { width: 100%; text-align: left; }
  .recap-actions { display: grid; grid-template-columns: 1fr; }
  .recap-actions button { width: 100%; }
  .homework-action-row { display: grid; grid-template-columns: 1fr; }
  .homework-action-btn { width: 100%; }
  .publish-recap-group { width: 100%; justify-items: stretch; }
  #publish-recap-feedback { text-align: left; }
  .preferences-summary { align-items: flex-start; }
  .preferences-summary-actions { gap: .7rem; }
  .preferences-how-popover {
    position: fixed; top: 50%; left: 50%; right: auto; transform: translate(-50%, -50%);
    box-sizing: border-box; width: min(420px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem);
    overflow-y: auto; z-index: 2000;
  }
  .preferences-how-popover::before { display: none; }
  .portfolio-summaries-accordion { padding-left: 0; padding-right: 0; }
  .portfolio-summaries-summary,
  .course-summary-heading { padding-left: 12px; padding-right: 12px; }
  .course-summary-groups { margin-top: .75rem; }
  .session-summary-group { border-left: 0; border-right: 0; border-radius: 0; }
  .session-summary-heading { padding-left: 12px; padding-right: 12px; }
  .recap-subsection { margin-top: 0; }
  .recap-subsection-heading,
  .recap-subsection-content { padding-left: 12px; padding-right: 12px; }
  .recap-homework-subsection > .recap-subsection-content { padding-left: 12px; padding-right: 12px; }
}
