/* The tutor's study features on the phone layout (html[data-layout="phone"]),
   drawn like the iPhone app (TutorView.swift, LectureStudyView.swift,
   ClassSeriesWorkspace.swift): Learn with Elthos, Practice with Elthos,
   Professor stressed and Cram mode. Computers never match these rules. */

/* A lecture's top bar: the graduation cap, a plain 44 pt icon before Share. */
html[data-layout="phone"] body#elthosApp.session-detail-view.personal-lecture:not(.project-detail-view) .session-workspace-actions > #learnPersonalLecture {
  order: 0 !important;
  gap: 0 !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ios-label) !important;
  font-size: 0 !important;
}
html[data-layout="phone"] body#elthosApp.session-detail-view.personal-lecture:not(.project-detail-view) .session-workspace-actions > #learnPersonalLecture > :is(svg, span) {
  display: none !important;
}
html[data-layout="phone"] body#elthosApp.session-detail-view.personal-lecture:not(.project-detail-view) .session-workspace-actions > #learnPersonalLecture::before,
html[data-layout="phone"] body#elthosApp :is(.lecture-learn-chip, .class-learn, .class-cram-start)::before {
  content: "";
  flex: none;
  display: block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 13.2 34 18.6 22 24 10 18.6Z'/%3E%3Cpath d='M15.2 21.2v5.4c0 2 3 3.7 6.8 3.7s6.8-1.7 6.8-3.7v-5.4'/%3E%3Cpath d='M34 18.6v6.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 13.2 34 18.6 22 24 10 18.6Z'/%3E%3Cpath d='M15.2 21.2v5.4c0 2 3 3.7 6.8 3.7s6.8-1.7 6.8-3.7v-5.4'/%3E%3Cpath d='M34 18.6v6.6'/%3E%3C/svg%3E") center / contain no-repeat;
}
html[data-layout="phone"] body#elthosApp.session-detail-view.personal-lecture:not(.project-detail-view) .session-workspace-actions > #learnPersonalLecture::before {
  width: 44px;
  height: 44px;
}
html[data-layout="phone"] body#elthosApp.session-detail-view.personal-lecture:not(.project-detail-view) .session-workspace-actions > #learnPersonalLecture:disabled {
  opacity: .45 !important;
}

/* Learn with Elthos on the Exam hints tab, and Start on Cram mode: the app's
   chip-grey capsule (subheadline semibold, 36 pt tall). */
html[data-layout="phone"] body#elthosApp :is(.lecture-learn-chip, .class-learn, .class-cram-start) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  width: auto !important;
  height: auto !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ios-chip, #e6e7de) !important;
  box-shadow: none !important;
  color: var(--ios-label, #000) !important;
  font: 600 14px/19px var(--ios-font, -apple-system, sans-serif) !important;
  white-space: nowrap !important;
}
html[data-layout="phone"] body#elthosApp :is(.lecture-learn-chip, .class-learn, .class-cram-start)::before {
  width: 26px;
  height: 26px;
  margin-left: -4px;
}
html[data-layout="phone"] body#elthosApp :is(.lecture-learn-chip, .class-learn) > svg {
  display: none !important;
}
html[data-layout="phone"] body#elthosApp #lecturePanel .lecture-learn-chip {
  justify-self: start !important;
  margin: 2px 0 14px !important;
}

/* Practice with Elthos on a hint or a stressed topic: the phone layout's own
   paper capsule (phone-lecture.css .phone-practice-button, measured against
   the iPhone), opening the whiteboard tutor on that hint as the iPhone app
   does. The phone layout's older button (it asked in the chat) gives way. */
html[data-layout="phone"] body#elthosApp :is(#lecturePanel, #classSeriesWorkspace) :has(> .exam-practice) > .phone-practice-button {
  display: none !important;
}
html[data-layout="phone"] body#elthosApp :is(#lecturePanel, #classSeriesWorkspace) .exam-practice {
  display: inline-flex !important;
  align-items: center !important;
  justify-self: start !important;
  gap: 8px !important;
  width: auto !important;
  height: 32px !important;
  min-height: 0 !important;
  margin: 2px 0 0 !important;
  padding: 0 14px 0 12px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ios-paper, #fafbf6) !important;
  box-shadow: none !important;
  color: #000 !important;
  font: 600 13px/18px var(--ios-font, -apple-system, sans-serif) !important;
  -webkit-tap-highlight-color: transparent;
}
html[data-layout="phone"] body#elthosApp :is(#lecturePanel, #classSeriesWorkspace) .exam-practice svg {
  flex: none !important;
  width: 15px !important;
  height: 15px !important;
}

/* Professor stressed on a lecture's Exam hints: a card like a hint's. */
html[data-layout="phone"] body#elthosApp #lecturePanel .lecture-stressed-heading {
  margin: 24px 0 12px !important;
  color: var(--ios-label) !important;
  font: 600 20px/25px var(--ios-font) !important;
}
html[data-layout="phone"] body#elthosApp.session-detail-view.personal-lecture:not(.project-detail-view) #lecturePanel .exam-hint.is-stressed {
  margin: 0 0 20px !important;
}
html[data-layout="phone"] body#elthosApp :is(#lecturePanel .exam-hint.is-stressed > .lecture-kicker, #classSeriesWorkspace .class-exam-chip.is-stressed) {
  justify-self: start !important;
  width: fit-content !important;
  margin: 0 !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  background: var(--ios-chip, #e6e7de) !important;
  color: var(--ios-label, #000) !important;
  font: 600 12px/16px var(--ios-font, -apple-system, sans-serif) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html[data-layout="phone"] body#elthosApp #lecturePanel .exam-hint.is-stressed > h3 {
  margin: 0 !important;
  color: var(--ios-label) !important;
  font: 600 20px/25px var(--ios-font) !important;
}
html[data-layout="phone"] body#elthosApp #lecturePanel .exam-hint.is-stressed > p {
  margin: 0 !important;
  color: var(--ios-label) !important;
  font: 400 16px/24px var(--ios-font) !important;
}
html[data-layout="phone"] body#elthosApp #lecturePanel .exam-hint.is-stressed > blockquote {
  margin: 0 !important;
  padding: 0 0 0 12px !important;
  border-left: 3px solid var(--ios-line) !important;
  color: var(--ios-secondary) !important;
  font: italic 400 15px/22px var(--ios-font) !important;
}

/* Cram mode on a class's Exam sheet: a stone card, the name and what is on
   the sheet at the left, Start at the right. */
html[data-layout="phone"] body#elthosApp #classSeriesWorkspace .class-cram {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 18px !important;
  padding: 16px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: var(--ios-stone, #eff0e8) !important;
  box-shadow: none !important;
  color: var(--ios-label, #000) !important;
  text-align: left !important;
}
html[data-layout="phone"] body#elthosApp #classSeriesWorkspace .class-cram-icon {
  display: none !important;
}
html[data-layout="phone"] body#elthosApp #classSeriesWorkspace .class-cram-text {
  display: grid !important;
  flex: 1 1 auto !important;
  gap: 4px !important;
  min-width: 0 !important;
}
html[data-layout="phone"] body#elthosApp #classSeriesWorkspace .class-cram-text strong {
  font: 600 16px/21px var(--ios-font, -apple-system, sans-serif) !important;
}
html[data-layout="phone"] body#elthosApp #classSeriesWorkspace .class-cram-text small {
  color: var(--ios-secondary, #67676b) !important;
  font: 400 14px/19px var(--ios-font, -apple-system, sans-serif) !important;
}
html[data-layout="phone"] body#elthosApp #classSeriesWorkspace .class-cram-start {
  flex: none !important;
}
html[data-layout="phone"] body#elthosApp #classSeriesWorkspace .class-document-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
}
