/* =========================================================
   C155: MEMORY CARD CLARITY
   One solid colour establishes card identity. Cream panels are
   reserved for readable content, with calmer spacing and hierarchy.
========================================================= */

html body #studyBoard .bv-study-flashcards-section {
  --bv-memory-ink: #1a1817;
  --bv-memory-paper: #fffdf5;
  padding-top: 8px !important;
}

html body #studyBoard .bv-study-memory-modes {
  width: min(100%, 1320px) !important;
  margin: 0 auto 30px !important;
  padding: 14px 16px !important;
  gap: 16px !important;
  border-width: 2px !important;
  border-radius: 14px !important;
  box-shadow: 3px 3px 0 var(--bv-memory-ink) !important;
}

html body #studyBoard .bv-study-memory-modes__label {
  padding: 8px 11px !important;
}

html body #studyBoard .bv-study-memory-modes__buttons {
  gap: 12px !important;
}

html body #studyBoard .bv-study-memory-mode {
  min-height: 43px !important;
  padding: 10px 12px !important;
}

html body #studyBoard .bv-study-flashcards-section .bv-study-card-grid {
  width: min(100%, 1320px) !important;
  margin-inline: auto !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 34px !important;
}

html body #studyBoard .bv-study-flashcards-section .bv-study-card-grid:has(> .bv-study-memory-card:only-child) {
  grid-template-columns: minmax(0, 680px) !important;
}

html body #studyBoard .bv-study-memory-card {
  gap: 20px !important;
  padding: 25px !important;
  border: 3px solid var(--bv-memory-ink) !important;
  border-left-width: 3px !important;
  border-radius: 24px !important;
  background-color: #98a4b3 !important;
  background-image: none !important;
  box-shadow: 6px 7px 0 var(--bv-memory-ink) !important;
}

html body #studyBoard .bv-study-memory-card--gray {
  --bv-memory-solid: #98a4b3 !important;
  background-color: #98a4b3 !important;
  background-image: none !important;
}

html body #studyBoard .bv-study-memory-card--red {
  --bv-memory-solid: #e85b45 !important;
  background-color: #e85b45 !important;
  background-image: none !important;
}

html body #studyBoard .bv-study-memory-card--orange {
  --bv-memory-solid: #f3b52f !important;
  background-color: #f3b52f !important;
  background-image: none !important;
}

html body #studyBoard .bv-study-memory-card--green {
  --bv-memory-solid: #38a873 !important;
  background-color: #38a873 !important;
  background-image: none !important;
}

html body #studyBoard .bv-study-memory-card--blue {
  --bv-memory-solid: #3190c6 !important;
  background-color: #3190c6 !important;
  background-image: none !important;
}

html body #studyBoard .bv-study-memory-card--purple {
  --bv-memory-solid: #9b5bbb !important;
  background-color: #9b5bbb !important;
  background-image: none !important;
}

html body #studyBoard .bv-study-memory-card__top {
  align-items: center !important;
  gap: 18px !important;
  min-height: 52px !important;
  padding: 0 0 3px !important;
  background: transparent !important;
}

html body #studyBoard .bv-study-memory-card__top .bv-study-card-title-edit {
  padding: 10px 13px !important;
  border-radius: 12px !important;
  font-size: clamp(22px, 1.7vw, 28px) !important;
  line-height: 1.1 !important;
}

html body #studyBoard .bv-study-memory-card__top .bv-study-color-row {
  gap: 7px !important;
  padding: 8px !important;
  box-shadow: 2px 2px 0 var(--bv-memory-ink) !important;
}

html body #studyBoard .bv-study-memory-card__top .bv-study-color-dot {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
}

html body #studyBoard .bv-study-memory-context {
  gap: 9px !important;
  margin-top: -2px !important;
}

html body #studyBoard .bv-study-memory-context > span {
  padding: 8px 11px !important;
  border-radius: 9px !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
}

html body #studyBoard .bv-study-memory-clue,
html body #studyBoard .bv-study-memory-prompt,
html body #studyBoard .bv-study-memory-reveal__answer,
html body #studyBoard .bv-study-memory-compare-row,
html body #studyBoard .bv-study-memory-association {
  padding: 18px !important;
  border-radius: 16px !important;
  background-color: var(--bv-memory-paper) !important;
  background-image: none !important;
  box-shadow: 3px 4px 0 var(--bv-memory-ink) !important;
}

html body #studyBoard .bv-study-memory-clue > span,
html body #studyBoard .bv-study-memory-prompt > span,
html body #studyBoard .bv-study-memory-reveal__answer > span,
html body #studyBoard .bv-study-memory-compare-row > span,
html body #studyBoard .bv-study-memory-association > span {
  margin-bottom: 8px !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
}

html body #studyBoard .bv-study-memory-clue > strong,
html body #studyBoard .bv-study-memory-prompt > strong,
html body #studyBoard .bv-study-memory-reveal__answer > strong,
html body #studyBoard .bv-study-memory-compare-row > strong,
html body #studyBoard .bv-study-memory-association > strong {
  font-size: clamp(19px, 1.45vw, 24px) !important;
  line-height: 1.35 !important;
}

html body #studyBoard .bv-study-memory-reveal,
html body #studyBoard .bv-study-memory-more {
  gap: 14px !important;
}

html body #studyBoard .bv-study-memory-reveal > summary,
html body #studyBoard .bv-study-memory-more > summary,
html body #studyBoard .bv-study-evidence-details > summary {
  min-height: 43px !important;
  padding: 12px 14px !important;
  background-color: var(--bv-memory-paper) !important;
  background-image: none !important;
  box-shadow: 3px 3px 0 var(--bv-memory-ink) !important;
}

html body #studyBoard .bv-study-memory-more__body {
  gap: 14px !important;
  margin-top: 14px !important;
  padding: 16px !important;
  border-radius: 13px !important;
  background-color: var(--bv-memory-paper) !important;
  background-image: none !important;
}

html body #studyBoard .bv-study-memory-more__body .bv-study-memory-card__field {
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(26, 24, 23, 0.16) !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

html body #studyBoard .bv-study-memory-more__body .bv-study-memory-card__field:last-child {
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}

html body #studyBoard .bv-study-memory-card .bv-study-card-media {
  border-radius: 16px !important;
  background-color: var(--bv-memory-paper) !important;
  background-image: none !important;
  box-shadow: 3px 4px 0 var(--bv-memory-ink) !important;
}

html body #studyBoard .bv-study-attachments {
  gap: 12px !important;
  padding: 14px !important;
  border-radius: 14px !important;
  background-color: var(--bv-memory-paper) !important;
  background-image: none !important;
  box-shadow: 3px 4px 0 var(--bv-memory-ink) !important;
}

html body #studyBoard .bv-study-attachments__head {
  gap: 11px !important;
}

@media (max-width: 1120px) {
  html body #studyBoard .bv-study-flashcards-section .bv-study-card-grid,
  html body #studyBoard .bv-study-flashcards-section .bv-study-card-grid:has(> .bv-study-memory-card:only-child) {
    grid-template-columns: 1fr !important;
    max-width: 720px !important;
  }
}

@media (max-width: 700px) {
  html body #studyBoard .bv-study-memory-modes {
    margin-bottom: 24px !important;
    padding: 12px !important;
  }

  html body #studyBoard .bv-study-memory-card {
    gap: 16px !important;
    padding: 17px !important;
    border-radius: 18px !important;
  }

  html body #studyBoard .bv-study-memory-card__top {
    align-items: start !important;
    gap: 13px !important;
  }

  html body #studyBoard .bv-study-memory-card__top .bv-study-card-title-edit {
    font-size: 22px !important;
  }
}

/* =========================================================
   C155B: FINAL SOLID CARD + CONTAINED EVIDENCE OVERRIDE
   This selector intentionally outranks the later inline Tx tint rule.
========================================================= */

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch[class*="bv-study-tint-"] {
  background-color: var(--bv-memory-paper, #fffdf5) !important;
  background-image: none !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-card[class*="bv-study-memory-card--"] {
  border: 3px solid var(--bv-memory-ink, #1a1817) !important;
  border-left-width: 3px !important;
  background-color: var(--bv-memory-solid, #98a4b3) !important;
  background-image: none !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-card--gray {
  --bv-memory-solid: #98a4b3 !important;
  background-color: #98a4b3 !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-card--red {
  --bv-memory-solid: #e85b45 !important;
  background-color: #e85b45 !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-card--orange {
  --bv-memory-solid: #f3b52f !important;
  background-color: #f3b52f !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-card--green {
  --bv-memory-solid: #38a873 !important;
  background-color: #38a873 !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-card--blue {
  --bv-memory-solid: #3190c6 !important;
  background-color: #3190c6 !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-card--purple {
  --bv-memory-solid: #9b5bbb !important;
  background-color: #9b5bbb !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-attachments {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-attachments__head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "label count"
    "action action" !important;
  align-items: center !important;
  column-gap: 12px !important;
  row-gap: 13px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-attachments__head > span {
  grid-area: label !important;
  min-width: 0 !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-evidence-count {
  grid-area: count !important;
  justify-self: end !important;
  min-width: 0 !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-attachments__head .bv-btn {
  grid-area: action !important;
  box-sizing: border-box !important;
  justify-self: end !important;
  width: min(100%, 180px) !important;
  min-width: 0 !important;
  max-width: 180px !important;
  margin: 0 !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-evidence-details,
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-attachments__list,
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-attachment-card {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 520px) {
  html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-attachments__head .bv-btn {
    justify-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
  }
}

/* =========================================================
   C156: ADAPTIVE MEMORY WORKSPACE
   Compact overview modes restore the familiar three-card rhythm.
   Active Recall remains a calm, centred single-column study lane.
========================================================= */

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-modes {
  width: min(100%, 1080px) !important;
  margin: 0 auto 26px !important;
  padding: 10px 12px !important;
  gap: 12px !important;
  border-radius: 13px !important;
  box-shadow: 3px 3px 0 var(--bv-memory-ink, #1a1817) !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-modes__buttons {
  gap: 8px !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-mode {
  min-height: 39px !important;
  padding: 8px 10px !important;
}

/* Recognition, Comparison and Visual Association are overview modes. */
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-flashcards-section .bv-study-card-grid {
  width: min(100%, 1280px) !important;
  margin-inline: auto !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  justify-content: center !important;
  align-items: start !important;
  gap: 26px !important;
}

/* Keep one or two cards deliberately compact instead of stretching them. */
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-flashcards-section .bv-study-card-grid:has(> .bv-study-memory-card:only-child) {
  grid-template-columns: minmax(0, 480px) !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-flashcards-section .bv-study-card-grid:has(> .bv-study-memory-card:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 440px)) !important;
}

/* Active Recall is intentionally wider and presented as a focused lane. */
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-flashcards-section .bv-study-card-grid:has(> .bv-study-memory-card--mode-recall) {
  grid-template-columns: minmax(0, 640px) !important;
  max-width: 640px !important;
  row-gap: 30px !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-card[class*="bv-study-memory-card--"] {
  gap: 14px !important;
  padding: 18px !important;
  border-width: 2px !important;
  border-left-width: 2px !important;
  border-radius: 18px !important;
  box-shadow: 4px 5px 0 var(--bv-memory-ink, #1a1817) !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-card:hover,
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-card:focus-within {
  transform: translate(-1px, -1px) !important;
  box-shadow: 5px 6px 0 var(--bv-memory-ink, #1a1817) !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-card__top {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 13px !important;
  min-height: 0 !important;
  padding: 0 !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-card__top .bv-study-card-title-edit {
  padding: 8px 10px !important;
  border-radius: 10px !important;
  font-size: clamp(20px, 1.35vw, 23px) !important;
  line-height: 1.12 !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-card__top .bv-study-color-row {
  justify-self: end !important;
  gap: 5px !important;
  padding: 7px !important;
  box-shadow: 2px 2px 0 var(--bv-memory-ink, #1a1817) !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-card__top .bv-study-color-dot {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-context {
  gap: 7px !important;
  margin: 0 !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-context > span {
  padding: 7px 9px !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-clue,
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-prompt,
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-reveal__answer,
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-compare-row,
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-association {
  display: grid !important;
  gap: 8px !important;
  padding: 14px !important;
  border-radius: 13px !important;
  box-shadow: 3px 3px 0 var(--bv-memory-ink, #1a1817) !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-clue > span,
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-prompt > span,
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-reveal__answer > span,
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-compare-row > span,
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-association > span {
  margin-bottom: 0 !important;
  font-size: 10px !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-clue > strong,
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-prompt > strong,
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-reveal__answer > strong,
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-compare-row > strong,
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-association > strong {
  font-size: clamp(17px, 1.15vw, 20px) !important;
  line-height: 1.32 !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-reveal > summary,
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-more > summary,
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-evidence-details > summary {
  min-height: 39px !important;
  padding: 10px 12px !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-more__body {
  gap: 11px !important;
  margin-top: 11px !important;
  padding: 13px !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-attachments {
  gap: 10px !important;
  padding: 12px !important;
  border-radius: 12px !important;
  box-shadow: 3px 3px 0 var(--bv-memory-ink, #1a1817) !important;
}

@media (max-width: 1180px) {
  html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-flashcards-section .bv-study-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 900px !important;
    gap: 24px !important;
  }

  html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-flashcards-section .bv-study-card-grid:has(> .bv-study-memory-card:only-child) {
    grid-template-columns: minmax(0, 500px) !important;
    max-width: 500px !important;
  }

  html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-flashcards-section .bv-study-card-grid:has(> .bv-study-memory-card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 900px !important;
  }

  html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-flashcards-section .bv-study-card-grid:has(> .bv-study-memory-card--mode-recall) {
    grid-template-columns: minmax(0, 620px) !important;
    max-width: 620px !important;
  }
}

@media (max-width: 760px) {
  html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-modes {
    grid-template-columns: 1fr !important;
    padding: 10px !important;
  }

  html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-modes__label {
    width: fit-content !important;
  }

  html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-modes__buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-flashcards-section .bv-study-card-grid,
  html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-flashcards-section .bv-study-card-grid:has(> .bv-study-memory-card:only-child),
  html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-flashcards-section .bv-study-card-grid:has(> .bv-study-memory-card:nth-child(2):last-child),
  html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-flashcards-section .bv-study-card-grid:has(> .bv-study-memory-card--mode-recall) {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 560px !important;
    gap: 22px !important;
  }
}

@media (max-width: 520px) {
  html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-card[class*="bv-study-memory-card--"] {
    gap: 12px !important;
    padding: 14px !important;
    border-radius: 15px !important;
  }

  html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-memory-modes__buttons {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   C157: WORKSPACE CLARITY
   Extend the memory-card hierarchy to the surrounding tools.
   Shared widths, visible zones, semantic action clusters, and
   quieter AI query surfaces reduce scanning effort.
========================================================= */

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp {
  --bv-workspace-width: 1280px;
  --bv-workspace-paper: #fffdf7;
  --bv-workspace-soft: #f5f1e8;
  --bv-ai-zone: #f0ebf7;
  --bv-ai-zone-edge: #b6a8c7;
  --bv-ai-card: #e5dced;
  --bv-ai-ink: #3f3548;
}

/* Establish one calm vertical spine for every major batch section. */
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded > .bv-study-batch__head,
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded > .bv-study-ingest,
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded > .bv-study-url-panel,
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded > .bv-study-ai-fields-panel,
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded > .bv-study-workspace-table,
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded > .bv-study-flashcards-section {
  width: min(100%, var(--bv-workspace-width)) !important;
  max-width: var(--bv-workspace-width) !important;
  margin-inline: auto !important;
  box-sizing: border-box !important;
}

/* The title and controls read as one batch toolbar, not loose buttons. */
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded > .bv-study-batch__head {
  grid-template-columns: minmax(230px, 0.22fr) minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 18px !important;
  margin-bottom: 30px !important;
  padding: 14px !important;
  border: 1px solid #d4cbbb !important;
  border-radius: 14px !important;
  background: var(--bv-workspace-paper) !important;
  box-shadow: 3px 4px 0 rgba(75, 65, 49, 0.18) !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch__titlewrap {
  align-content: center !important;
  gap: 10px 12px !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch__titlewrap h3 {
  font-size: clamp(21px, 1.55vw, 27px) !important;
  line-height: 1.08 !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded .bv-study-batch__actions {
  display: grid !important;
  grid-template-columns:
    repeat(2, minmax(125px, 1fr))
    14px
    repeat(2, minmax(125px, 1fr))
    14px
    repeat(2, minmax(125px, 1fr))
    14px
    minmax(125px, 1fr) !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: none !important;
  padding: 10px !important;
  border: 1px solid #ddd4c4 !important;
  border-radius: 12px !important;
  background: var(--bv-workspace-soft) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.76) !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded .bv-study-color-row--batch-expanded {
  grid-column: 1 / -1 !important;
  justify-self: end !important;
  margin: 0 2px 3px 0 !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded .bv-study-batch__actions .bv-tx-action {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  padding-inline: 9px !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded .bv-study-batch__actions > button:nth-of-type(1) { grid-column: 1 !important; }
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded .bv-study-batch__actions > button:nth-of-type(2) { grid-column: 2 !important; }
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded .bv-study-batch__actions > button:nth-of-type(3) { grid-column: 4 !important; }
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded .bv-study-batch__actions > button:nth-of-type(4) { grid-column: 5 !important; }
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded .bv-study-batch__actions > button:nth-of-type(5) { grid-column: 7 !important; }
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded .bv-study-batch__actions > button:nth-of-type(6) { grid-column: 8 !important; }
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded .bv-study-batch__actions > button:nth-of-type(7) { grid-column: 10 !important; }

/* Independent AI Fields become a recognisable, self-contained AI workspace. */
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-ai-fields-panel {
  margin-top: 32px !important;
  margin-bottom: 38px !important;
  padding: 22px !important;
  border: 2px solid var(--bv-ai-zone-edge) !important;
  border-radius: 18px !important;
  background: var(--bv-ai-zone) !important;
  background-image: none !important;
  box-shadow:
    4px 5px 0 rgba(72, 58, 84, 0.20),
    0 16px 28px rgba(58, 46, 70, 0.07) !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-ai-fields-panel__head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  margin: 0 0 20px !important;
  padding: 0 0 17px !important;
  border-bottom: 1px solid rgba(90, 72, 108, 0.24) !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-ai-fields-panel__head > div {
  padding-left: 14px !important;
  border-left: 5px solid #725a86 !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-ai-fields-panel__head h4 {
  margin: 0 !important;
  color: var(--bv-ai-ink) !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
  letter-spacing: 0.09em !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-ai-fields-panel__head p {
  margin: 7px 0 0 !important;
  max-width: 720px !important;
  color: #655a70 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-ai-fields-panel__head .bv-tx-action {
  flex: 0 0 auto !important;
  width: 184px !important;
  min-width: 184px !important;
  max-width: 184px !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-ai-field-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 20px !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-ai-field-card {
  position: relative !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(132px, 1fr) auto !important;
  align-content: start !important;
  gap: 12px !important;
  min-width: 0 !important;
  padding: 16px !important;
  border: 2px solid #a794b8 !important;
  border-radius: 15px !important;
  background: var(--bv-ai-card) !important;
  background-image: none !important;
  box-shadow: 3px 4px 0 rgba(72, 58, 84, 0.22) !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-ai-field-card::before {
  content: "AI QUERY" !important;
  display: block !important;
  width: fit-content !important;
  padding: 5px 8px !important;
  border-radius: 7px !important;
  background: #5a476b !important;
  color: #fffdf8 !important;
  font: 900 9px/1 "Courier Prime", ui-monospace, monospace !important;
  letter-spacing: 0.09em !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-ai-field-card__top {
  gap: 10px !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-ai-field-label {
  min-height: 44px !important;
  padding: 10px 12px !important;
  border: 2px solid #9d8bae !important;
  border-radius: 9px !important;
  background: var(--bv-workspace-paper) !important;
  color: var(--bv-ai-ink) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-ai-field-delete {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  border: 2px solid #c28f8b !important;
  border-radius: 9px !important;
  background: #fff7f4 !important;
  box-shadow: 2px 3px 0 rgba(125, 66, 61, 0.18) !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-ai-field-value {
  min-height: 132px !important;
  height: 100% !important;
  padding: 13px 14px !important;
  border: 2px solid #c2b6cd !important;
  border-radius: 10px !important;
  background: var(--bv-workspace-paper) !important;
  color: #2e2932 !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

/* Runtime-added AI controls get their own full-width action and status rows. */
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-ai-field-fill-row {
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-items: stretch !important;
  gap: 9px !important;
  margin-top: 1px !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-ai-field-fill-btn {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  margin: 0 !important;
  border: 2px solid #493855 !important;
  border-bottom: 4px solid #33273c !important;
  border-radius: 8px !important;
  background: #5a476b !important;
  color: #ffffff !important;
  box-shadow: 2px 4px 0 rgba(51, 39, 60, 0.24) !important;
  font: 800 10px/1.1 "Courier Prime", ui-monospace, monospace !important;
  letter-spacing: 0.045em !important;
  text-transform: uppercase !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-ai-field-fill-btn:not(:disabled):hover {
  background: #6a557c !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-ai-field-fill-btn:disabled {
  border-color: #b9afbf !important;
  border-bottom-color: #9d93a4 !important;
  background: #d8d1dc !important;
  color: #746b79 !important;
  box-shadow: 1px 3px 0 rgba(81, 70, 88, 0.13) !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-ai-field-fill-status {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 42px !important;
  padding: 9px 11px !important;
  border: 1px dashed #b6a8c2 !important;
  border-radius: 8px !important;
  background: rgba(255, 253, 247, 0.76) !important;
  color: #62586a !important;
  font-size: 10px !important;
  line-height: 1.4 !important;
}

/* Give the hidden-table control the same aligned, quiet grouping. */
html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-workspace-table {
  margin-top: 30px !important;
  margin-bottom: 36px !important;
}

html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-workspace-table__head {
  padding: 14px 16px !important;
  border: 1px solid #ded7ca !important;
  border-radius: 12px !important;
  background: #faf8f2 !important;
}

@media (max-width: 1400px) {
  html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded > .bv-study-batch__head {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }

  html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded .bv-study-batch__actions {
    grid-template-columns: repeat(4, minmax(132px, 1fr)) !important;
  }

  html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded .bv-study-batch__actions > button {
    grid-column: auto !important;
  }

  html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded .bv-study-color-row--batch-expanded {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 1040px) {
  html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-ai-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded > .bv-study-batch__head {
    margin-bottom: 24px !important;
    padding: 11px !important;
  }

  html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded .bv-study-batch__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding: 9px !important;
  }

  html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-ai-fields-panel {
    padding: 16px !important;
  }

  html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-ai-fields-panel__head {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }

  html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-ai-fields-panel__head .bv-tx-action {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-ai-field-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  html body #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded .bv-study-batch__actions {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   C158: FINAL ALIGNMENT PASS
   Refine title placement, utility controls, section headings,
   folder actions, and the balance of collapsed batch cards.
========================================================= */

/* Folder identity and folder-level actions share the workspace spine. */
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-folder__head {
  width: min(100%, var(--bv-workspace-width, 1280px)) !important;
  max-width: var(--bv-workspace-width, 1280px) !important;
  margin: 0 auto 16px !important;
  padding: 13px 15px !important;
  grid-template-columns: minmax(280px, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-folder__title {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 11px !important;
  min-height: 42px !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-folder__toggle {
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  border-radius: 8px !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-folder__name {
  min-width: 0 !important;
  padding: 4px 6px !important;
  font-size: clamp(20px, 1.55vw, 26px) !important;
  line-height: 1.08 !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-folder__actions {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(128px, 1fr)) !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: min(100%, 620px) !important;
  padding: 8px !important;
  border: 1px solid #ddd4c4 !important;
  border-radius: 11px !important;
  background: var(--bv-workspace-soft, #f5f1e8) !important;
  box-sizing: border-box !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-folder__actions .bv-tx-action {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  padding-inline: 9px !important;
}

/* Give the batch title its own line so it never competes with seven controls. */
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded > .bv-study-batch__head {
  grid-template-columns: 1fr !important;
  align-items: start !important;
  gap: 14px !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded .bv-study-batch__titlewrap {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  min-height: 42px !important;
  padding: 2px 3px !important;
  gap: 10px 12px !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded .bv-study-batch__titlewrap h3 {
  width: auto !important;
  font-size: clamp(22px, 1.5vw, 27px) !important;
  line-height: 1.1 !important;
}

/* Label the colour dots so their purpose is instantly recognisable. */
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-color-row--batch-expanded::before {
  content: "Batch colour" !important;
  display: inline-flex !important;
  align-items: center !important;
  margin-right: 3px !important;
  color: #62594d !important;
  font: 800 8px/1 "Courier Prime", ui-monospace, monospace !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded .bv-study-batch__actions .bv-tx-action__label,
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-folder__actions .bv-tx-action__label {
  text-align: center !important;
}

/* Make the AI creation action belong visually to the purple AI workspace. */
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-ai-fields-panel__head .bv-tx-action {
  --bv-tx-action-bg: #5a476b;
  --bv-tx-action-bg-hover: #6a557c;
  --bv-tx-action-fg: #ffffff;
  --bv-tx-action-border: #493855;
  --bv-tx-action-edge: #33273c;
  --bv-tx-action-shadow: rgba(51, 39, 60, 0.24);
  width: 184px !important;
  min-width: 184px !important;
  max-width: 184px !important;
}

/* Stronger section titles make the vertical sequence easier to scan. */
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-flashcards-section > .bv-study-section-label {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 34px 0 18px !important;
  color: #4f6178 !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
  letter-spacing: 0.11em !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-flashcards-section > .bv-study-section-label::after {
  content: "" !important;
  flex: 1 1 auto !important;
  height: 1px !important;
  background: #d9dfe5 !important;
}

/* Refine the table title and its visibility control without enlarging the table. */
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-workspace-table__head:not(.bv-study-workspace-table__head--collapsed) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  min-height: 62px !important;
  margin-bottom: 13px !important;
  padding: 13px 15px !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-workspace-table__head .bv-study-section-label {
  margin: 0 0 5px !important;
  color: #4f6178 !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
  letter-spacing: 0.10em !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-workspace-table__head p {
  margin: 0 !important;
  max-width: 720px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-table-visibility-btn {
  min-width: 112px !important;
  min-height: 39px !important;
  padding: 8px 12px !important;
  border: 2px solid #aaa08f !important;
  border-bottom: 4px solid #827765 !important;
  border-radius: 8px !important;
  background: #f7f3ea !important;
  color: #4f493f !important;
  box-shadow: 2px 3px 0 rgba(79, 73, 63, 0.17) !important;
  font-size: 9px !important;
}

/* Preserve the deliberately compact treatment when the table is hidden. */
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-workspace-table__head--collapsed .bv-study-table-visibility-btn {
  min-width: 92px !important;
  min-height: 31px !important;
  padding: 5px 10px !important;
}

/* When one batch is open and two remain collapsed, balance them as two columns. */
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch-grid:has(> .bv-study-batch--expanded):has(> :nth-child(3):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

/* If only one collapsed batch remains, centre it instead of leaving an empty lane. */
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch-grid:has(> .bv-study-batch--expanded):has(> :nth-child(2):last-child) > .bv-study-batch--minimized:not(.bv-study-batch--c184) {
  grid-column: 1 / -1 !important;
  justify-self: center !important;
  width: min(100%, 560px) !important;
}

@media (max-width: 1100px) {
  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-folder__head {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }

  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-folder__actions {
    width: 100% !important;
  }
}

@media (max-width: 760px) {
  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-folder__title {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-folder__title .bv-study-badge {
    grid-column: 2 !important;
    width: fit-content !important;
  }

  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-folder__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-workspace-table__head:not(.bv-study-workspace-table__head--collapsed) {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }

  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-workspace-table__head:not(.bv-study-workspace-table__head--collapsed) .bv-study-table-visibility-btn {
    width: 100% !important;
  }

  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch-grid:has(> .bv-study-batch--expanded):has(> :nth-child(3):last-child) {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 500px) {
  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-folder__actions {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   C158B: SURGICAL BATCH HEADER SEPARATION
   Keep the editable title and badge on a dedicated first row,
   with colour and actions in a dedicated second row.
========================================================= */

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded > .bv-study-batch__head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  grid-template-areas:
    "batch-title"
    "batch-actions" !important;
  align-items: stretch !important;
  gap: 16px !important;
  overflow: visible !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded > .bv-study-batch__head > .bv-study-batch__titlewrap {
  grid-area: batch-title !important;
  position: static !important;
  inset: auto !important;
  float: none !important;
  transform: none !important;
  display: flex !important;
  flex: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 4px 5px 8px !important;
  box-sizing: border-box !important;
  border-bottom: 1px solid #e1dacd !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded > .bv-study-batch__head > .bv-study-batch__titlewrap h3 {
  display: block !important;
  flex: 0 1 auto !important;
  max-width: min(100%, 760px) !important;
  margin: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded > .bv-study-batch__head > .bv-study-batch__actions {
  grid-area: batch-actions !important;
  position: static !important;
  inset: auto !important;
  float: none !important;
  transform: none !important;
  justify-self: stretch !important;
  align-self: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* =========================================================
   C161: Topic Chapters & 3-Stage Pipeline Alignment
========================================================= */
.bv-study-batch--minimized:not(.bv-study-batch--c184) { display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: space-between !important; padding: 12px 20px !important; min-height: 54px !important; background: var(--bv-bg-card, #ffffff) !important; border: 1px solid var(--bv-border-main, rgba(0,0,0,0.12)) !important; border-radius: 8px !important; box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important; margin-bottom: 12px !important; cursor: pointer; transition: all 0.2s ease; }
.bv-study-batch--minimized:not(.bv-study-batch--c184):hover { background: #f8fafc !important; border-color: #cbd5e1 !important; }
.bv-study-batch--minimized:not(.bv-study-batch--c184) .bv-study-batch-header { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 16px !important; margin: 0 !important; padding: 0 !important; border: none !important; background: transparent !important; width: 100% !important; }
.bv-study-batch--minimized:not(.bv-study-batch--c184) .bv-study-batch-body { display: none !important; }
.bv-study-batch--expanded { display: block !important; background: transparent !important; border: 1px solid var(--bv-border-main, rgba(0,0,0,0.15)) !important; border-radius: 12px !important; box-shadow: 0 12px 32px rgba(0,0,0,0.08) !important; margin-bottom: 24px !important; overflow: hidden !important; }
.bv-study-batch--expanded .bv-study-batch-header { display: flex !important; align-items: center !important; justify-content: space-between !important; padding: 16px 24px !important; background: #f1f5f9 !important; border-bottom: 1px solid #cbd5e1 !important; margin: 0 !important; }
.bv-study-batch--expanded .bv-study-batch-body { padding: 24px !important; display: flex !important; flex-direction: column !important; gap: 32px !important; background: #ffffff !important; }
.bv-study-ai-fields-panel, .bv-study-workspace-table, .bv-study-flashcards-section { width: 100% !important; max-width: 100% !important; margin: 0 !important; padding: 0 !important; box-sizing: border-box !important; }
.bv-pipeline-kicker { font-family: "Courier Prime", ui-monospace, monospace; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #64748b; margin-bottom: 12px; border-bottom: 1px solid #e2e8f0; padding-bottom: 6px; }



/* Move Color Row to Header */
.bv-study-batch--expanded .bv-study-batch-header {
    position: relative !important;
}





/* =========================================================
   C162: TOPIC TITLE + COLOUR ON ONE ROW
   Restores the expanded-topic colour choices and keeps them
   aligned with the editable title and card count.
========================================================= */
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp
.bv-study-batch--expanded > .bv-study-batch__head > .bv-study-batch__titlewrap {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  min-width: 0 !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp
.bv-study-batch--expanded > .bv-study-batch__head > .bv-study-batch__titlewrap h3 {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp
.bv-study-batch--expanded > .bv-study-batch__head > .bv-study-batch__titlewrap > .bv-study-badge {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp
.bv-study-batch--expanded > .bv-study-batch__head > .bv-study-batch__titlewrap > .bv-study-color-row--batch-expanded {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 0 0 auto !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  margin: 0 0 0 auto !important;
  padding: 6px 9px !important;
  border: 1px solid #d8cfbf !important;
  border-radius: 999px !important;
  background: #fffdf7 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

@media (max-width: 820px) {
  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp
  .bv-study-batch--expanded > .bv-study-batch__head > .bv-study-batch__titlewrap {
    flex-wrap: wrap !important;
  }

  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp
  .bv-study-batch--expanded > .bv-study-batch__head > .bv-study-batch__titlewrap > .bv-study-color-row--batch-expanded {
    margin-left: 0 !important;
  }
}

/* C184: The canonical responsive collapsed-card component is now
   isolated from the historical C161-C164 minimized-card cascade.
   Legacy selectors remain available only for non-C184 cards. */

/* =========================================================
   C163: STUDY DOSSIER WORKSPACE
   The surrounding folder/topic hierarchy now follows the same
   tactile visual language as the upgraded memory cards.
   Cards remain unchanged and visually dominant.
========================================================= */

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp {
  --bv-dossier-ink: #24211e;
  --bv-dossier-paper: #fffdf6;
  --bv-dossier-canvas: #e9e3d7;
  --bv-dossier-soft: #f4efe5;
  --bv-dossier-line: #cfc5b5;
  --bv-topic-accent: #7b8795;
  --bv-topic-accent-soft: #e4e8ec;
  --bv-topic-accent-deep: #53606d;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch.bv-study-tint-gray { --bv-topic-accent:#98a4b3; --bv-topic-accent-soft:#e6e9ed; --bv-topic-accent-deep:#5a6674; }
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch.bv-study-tint-red { --bv-topic-accent:#e85b45; --bv-topic-accent-soft:#f9ddd7; --bv-topic-accent-deep:#913727; }
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch.bv-study-tint-orange { --bv-topic-accent:#f3b52f; --bv-topic-accent-soft:#faebc3; --bv-topic-accent-deep:#805d12; }
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch.bv-study-tint-green { --bv-topic-accent:#38a873; --bv-topic-accent-soft:#d8eee3; --bv-topic-accent-deep:#226646; }
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch.bv-study-tint-blue { --bv-topic-accent:#3190c6; --bv-topic-accent-soft:#d7ebf6; --bv-topic-accent-deep:#1e5e82; }
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch.bv-study-tint-purple { --bv-topic-accent:#9b5bbb; --bv-topic-accent-soft:#eadcf0; --bv-topic-accent-deep:#623777; }

/* Archive folder: one contained workspace, not a floating dashboard. */
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-folder {
  width: min(100%, 1380px) !important;
  margin: 0 auto 28px !important;
  padding: 13px !important;
  overflow: visible !important;
  border: 2px solid var(--bv-dossier-ink) !important;
  border-radius: 19px !important;
  background: var(--bv-dossier-canvas) !important;
  background-image: none !important;
  box-shadow: 6px 7px 0 var(--bv-dossier-ink) !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-folder__head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 64px !important;
  margin: 0 0 12px !important;
  padding: 10px 12px !important;
  border: 1px solid var(--bv-dossier-line) !important;
  border-radius: 12px !important;
  background: var(--bv-dossier-paper) !important;
  box-shadow: 2px 3px 0 rgba(36, 33, 30, 0.18) !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-folder__title {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-folder__toggle {
  display: inline-grid !important;
  width: 38px !important;
  height: 38px !important;
  place-items: center !important;
  padding: 0 !important;
  border: 1px solid #a99f91 !important;
  border-radius: 9px !important;
  background: #f3eee3 !important;
  box-shadow: 2px 2px 0 rgba(36, 33, 30, 0.16) !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-folder__name {
  min-width: 0 !important;
  padding: 3px 5px !important;
  color: var(--bv-dossier-ink) !important;
  font-family: var(--bv-font-heading, "Cinzel", Georgia, serif) !important;
  font-size: clamp(19px, 1.7vw, 25px) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  overflow-wrap: anywhere !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-folder__actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  width: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

/* Topics are chapter rows until opened. Keep natural top-to-bottom order. */
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch-grid:not(.bv-study-batch-grid--cards) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px !important;
  margin: 0 !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--minimized:not(.bv-study-batch--c184) {
  position: relative !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto auto !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 66px !important;
  margin: 0 !important;
  padding: 9px 56px 9px 10px !important;
  overflow: visible !important;
  border: 1px solid #bcb2a3 !important;
  border-left: 9px solid var(--bv-topic-accent) !important;
  border-radius: 11px !important;
  background: var(--bv-dossier-paper) !important;
  background-image: none !important;
  box-shadow: 2px 3px 0 rgba(36, 33, 30, 0.16) !important;
  transform: none !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--minimized:not(.bv-study-batch--c184):hover {
  border-color: var(--bv-dossier-ink) !important;
  border-left-color: var(--bv-topic-accent) !important;
  background: #ffffff !important;
  box-shadow: 3px 4px 0 rgba(36, 33, 30, 0.28) !important;
  transform: translateY(-1px) !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--minimized:not(.bv-study-batch--c184) .bv-study-memory-anchor {
  position: static !important;
  display: inline-grid !important;
  grid-template-columns: 34px !important;
  gap: 3px !important;
  justify-items: center !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--minimized:not(.bv-study-batch--c184) .bv-study-memory-anchor__initial {
  width: 34px !important;
  height: 34px !important;
  border: 2px solid var(--bv-dossier-ink) !important;
  border-radius: 9px !important;
  background: var(--bv-topic-accent) !important;
  box-shadow: 2px 2px 0 var(--bv-dossier-ink) !important;
  font-size: 16px !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--minimized:not(.bv-study-batch--c184) .bv-study-memory-anchor__number {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 7px !important;
  box-shadow: none !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--minimized:not(.bv-study-batch--c184) .bv-study-batch__thumb {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
  text-align: left !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--minimized:not(.bv-study-batch--c184) .bv-study-batch__title {
  min-height: 0 !important;
  margin: 0 !important;
  color: var(--bv-dossier-ink) !important;
  font-family: var(--bv-font-heading, "Cinzel", Georgia, serif) !important;
  font-size: clamp(16px, 1.25vw, 20px) !important;
  line-height: 1.15 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--minimized:not(.bv-study-batch--c184) .bv-study-batch__count {
  padding: 5px 9px !important;
  border-color: #aca293 !important;
  background: #f2ede3 !important;
  color: #5d574f !important;
  font-size: 8px !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--minimized:not(.bv-study-batch--c184) .bv-study-batch__hint {
  display: none !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--minimized:not(.bv-study-batch--c184) > .bv-study-color-row {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  padding: 5px 7px !important;
  border: 1px solid #c7bdad !important;
  border-radius: 999px !important;
  background: #f6f1e7 !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--minimized:not(.bv-study-batch--c184) .bv-study-color-dot {
  width: 13px !important;
  min-width: 13px !important;
  height: 13px !important;
  min-height: 13px !important;
  box-shadow: none !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--minimized:not(.bv-study-batch--c184) .bv-study-batch-toggle {
  position: static !important;
  min-width: 86px !important;
  height: 34px !important;
  padding: 0 10px !important;
  border: 1px solid #8d8579 !important;
  border-bottom-width: 2px !important;
  background: #f5f0e6 !important;
  color: #39352f !important;
  box-shadow: 1px 2px 0 rgba(36, 33, 30, 0.16) !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--minimized:not(.bv-study-batch--c184) .bv-study-mini-delete {
  top: 50% !important;
  right: 11px !important;
  transform: translateY(-50%) !important;
}

/* Expanded topic: a dossier cover followed by three aligned stages. */
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded {
  --bv-topic-accent: #7b8795;
  --bv-topic-accent-soft: #e4e8ec;
  --bv-topic-accent-deep: #53606d;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 18px !important;
  width: 100% !important;
  margin: 0 0 12px !important;
  padding: 15px !important;
  overflow: visible !important;
  border: 2px solid var(--bv-dossier-ink) !important;
  border-left-width: 2px !important;
  border-radius: 16px !important;
  background: #ddd5c8 !important;
  background-image: none !important;
  box-shadow: 5px 6px 0 var(--bv-dossier-ink) !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded.bv-study-tint-gray { --bv-topic-accent:#98a4b3; --bv-topic-accent-soft:#e6e9ed; --bv-topic-accent-deep:#5a6674; }
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded.bv-study-tint-red { --bv-topic-accent:#e85b45; --bv-topic-accent-soft:#f9ddd7; --bv-topic-accent-deep:#913727; }
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded.bv-study-tint-orange { --bv-topic-accent:#f3b52f; --bv-topic-accent-soft:#faebc3; --bv-topic-accent-deep:#805d12; }
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded.bv-study-tint-green { --bv-topic-accent:#38a873; --bv-topic-accent-soft:#d8eee3; --bv-topic-accent-deep:#226646; }
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded.bv-study-tint-blue { --bv-topic-accent:#3190c6; --bv-topic-accent-soft:#d7ebf6; --bv-topic-accent-deep:#1e5e82; }
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded.bv-study-tint-purple { --bv-topic-accent:#9b5bbb; --bv-topic-accent-soft:#eadcf0; --bv-topic-accent-deep:#623777; }

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded > .bv-study-batch__head {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas: "batch-title" "batch-actions" !important;
  gap: 11px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 13px !important;
  overflow: hidden !important;
  border: 2px solid var(--bv-dossier-ink) !important;
  border-radius: 13px !important;
  background:
    linear-gradient(90deg, var(--bv-topic-accent) 0 12px, transparent 12px),
    linear-gradient(135deg, var(--bv-topic-accent-soft), #fffdf7 58%) !important;
  box-shadow: 3px 4px 0 var(--bv-dossier-ink) !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded > .bv-study-batch__head > .bv-study-batch__titlewrap {
  grid-area: batch-title !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 9px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 3px 3px 10px 13px !important;
  border-bottom: 1px solid color-mix(in srgb, var(--bv-topic-accent-deep) 28%, transparent) !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded .bv-study-batch__titlewrap h3 {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  color: var(--bv-dossier-ink) !important;
  font-family: var(--bv-font-heading, "Cinzel", Georgia, serif) !important;
  font-size: clamp(22px, 2vw, 31px) !important;
  line-height: 1.05 !important;
  overflow-wrap: anywhere !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded .bv-study-badge {
  border-color: color-mix(in srgb, var(--bv-topic-accent-deep) 46%, #7d766d) !important;
  background: rgba(255, 253, 246, 0.84) !important;
  color: var(--bv-topic-accent-deep) !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded .bv-study-color-row--batch-expanded {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  margin: 0 0 0 auto !important;
  padding: 5px 8px !important;
  border: 1px solid color-mix(in srgb, var(--bv-topic-accent-deep) 42%, #b8afa2) !important;
  background: rgba(255, 253, 246, 0.88) !important;
  box-shadow: 1px 2px 0 rgba(36, 33, 30, 0.14) !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded > .bv-study-batch__head > .bv-study-batch__actions {
  grid-area: batch-actions !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 3px 0 13px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded .bv-study-batch__actions .bv-tx-action {
  width: auto !important;
  min-width: 102px !important;
  max-width: none !important;
  min-height: 37px !important;
  padding: 7px 10px !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded .bv-study-batch__actions .bv-study-collapse-button {
  order: -2 !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded .bv-study-batch__actions .bv-tx-action--danger {
  margin-left: auto !important;
}

/* One shared stage component: number rail + concise purpose + working body. */
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 13px !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  border: 1px solid #bcb2a3 !important;
  border-radius: 14px !important;
  background: var(--bv-dossier-paper) !important;
  background-image: none !important;
  box-shadow: 3px 4px 0 rgba(36, 33, 30, 0.22) !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage__head {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 58px !important;
  margin: 0 0 13px !important;
  padding: 0 0 12px !important;
  border-bottom: 1px solid var(--bv-dossier-line) !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage__number {
  display: grid !important;
  width: 44px !important;
  height: 44px !important;
  place-items: center !important;
  border: 2px solid var(--bv-dossier-ink) !important;
  border-radius: 11px !important;
  background: var(--bv-topic-accent) !important;
  color: #ffffff !important;
  box-shadow: 2px 2px 0 var(--bv-dossier-ink) !important;
  font-family: "Courier Prime", ui-monospace, monospace !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage__copy {
  min-width: 0 !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage__kicker {
  display: block !important;
  margin: 0 0 2px !important;
  color: var(--bv-topic-accent-deep) !important;
  font-family: "Courier Prime", ui-monospace, monospace !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.13em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage__copy h4 {
  margin: 0 !important;
  color: var(--bv-dossier-ink) !important;
  font-family: var(--bv-font-heading, "Cinzel", Georgia, serif) !important;
  font-size: clamp(17px, 1.35vw, 21px) !important;
  line-height: 1.15 !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage__copy p {
  max-width: 820px !important;
  margin: 4px 0 0 !important;
  color: #6b635a !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage__body {
  display: grid !important;
  gap: 13px !important;
  width: 100% !important;
  min-width: 0 !important;
}

/* Build: source controls and AI fields belong to one preparation stage. */
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--build {
  background: linear-gradient(135deg, var(--bv-topic-accent-soft), #fffdf7 48%) !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--build .bv-study-ingest,
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--build .bv-study-url-panel,
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--build .bv-study-ai-fields-panel {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border-radius: 11px !important;
  box-shadow: none !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--build .bv-study-ingest,
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--build .bv-study-url-panel {
  padding: 13px !important;
  border: 1px dashed color-mix(in srgb, var(--bv-topic-accent-deep) 54%, #bcb2a3) !important;
  background: rgba(255, 253, 246, 0.82) !important;
  background-image: none !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--build .bv-study-ai-fields-panel {
  padding: 14px !important;
  border: 1px solid color-mix(in srgb, var(--bv-topic-accent-deep) 40%, #c8beaf) !important;
  background: rgba(255, 253, 246, 0.88) !important;
  background-image: none !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--build .bv-study-ai-fields-panel__head {
  margin: 0 0 13px !important;
  padding: 0 0 11px !important;
  border-bottom-color: var(--bv-dossier-line) !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--build .bv-study-ai-fields-panel__head > div {
  padding-left: 11px !important;
  border-left-color: var(--bv-topic-accent-deep) !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--build .bv-study-ai-field-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 13px !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--build .bv-study-ai-field-card {
  grid-template-rows: auto minmax(108px, 1fr) !important;
  gap: 9px !important;
  padding: 11px !important;
  border: 1px solid #b8ae9f !important;
  border-radius: 10px !important;
  background: #f3eee4 !important;
  box-shadow: 2px 2px 0 rgba(36, 33, 30, 0.14) !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--build .bv-study-ai-field-card::before {
  display: none !important;
  content: none !important;
}

/* Verify: a paper ledger, subordinate to the final memory cards. */
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--verify {
  padding: 13px !important;
  background: #f7f2e8 !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--verify .bv-study-workspace-table__head {
  margin: 0 0 10px !important;
  padding: 10px 11px !important;
  border: 1px solid #c9bfaf !important;
  border-radius: 10px !important;
  background: #fffdf7 !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--verify .bv-study-section-label {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--bv-topic-accent-deep) !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--verify .bv-study-table-wrap {
  width: 100% !important;
  margin: 0 !important;
  overflow-x: auto !important;
  border: 2px solid var(--bv-dossier-ink) !important;
  border-radius: 10px !important;
  background: #fffdf7 !important;
  box-shadow: 2px 3px 0 rgba(36, 33, 30, 0.18) !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--verify .bv-study-table {
  min-width: 760px !important;
  background: #fffdf7 !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--verify .bv-study-table th {
  background: var(--bv-topic-accent-soft) !important;
  color: var(--bv-topic-accent-deep) !important;
  border-bottom: 2px solid var(--bv-dossier-ink) !important;
}

/* Study: calm shell; upgraded cards keep their existing solid identity. */
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--study {
  padding: 13px !important;
  background: #fffdf7 !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--study .bv-study-memory-modes {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 20px !important;
  border-color: var(--bv-dossier-ink) !important;
  background: #f4efe5 !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--study .bv-study-card-grid,
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--study .bv-study-card-grid:has(> .bv-study-memory-card:only-child),
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--study .bv-study-card-grid:has(> .bv-study-memory-card:nth-child(2):last-child),
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--study .bv-study-card-grid:has(> .bv-study-memory-card--mode-recall) {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

/* Desktop density: stages feel connected without becoming cramped. */
@media (min-width: 1180px) {
  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--build .bv-study-ai-field-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 980px) {
  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-folder__head {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }

  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-folder__actions {
    justify-content: flex-start !important;
  }

  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--build .bv-study-ai-field-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 820px) {
  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded > .bv-study-batch__head > .bv-study-batch__titlewrap {
    align-items: flex-start !important;
    flex-wrap: wrap !important;
  }

  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded .bv-study-color-row--batch-expanded {
    margin-left: 0 !important;
  }

  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded .bv-study-batch__actions .bv-tx-action--danger {
    margin-left: 0 !important;
  }

  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--minimized:not(.bv-study-batch--c184) {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    padding-right: 42px !important;
  }

  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--minimized:not(.bv-study-batch--c184) .bv-study-batch__thumb {
    grid-template-columns: 1fr !important;
    gap: 5px !important;
  }

  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--minimized:not(.bv-study-batch--c184) > .bv-study-color-row {
    display: none !important;
  }
}

@media (max-width: 620px) {
  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-folder,
  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--expanded,
  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage {
    padding: 9px !important;
    border-radius: 12px !important;
  }

  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-folder__title {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-folder__title .bv-study-badge {
    grid-column: 2 !important;
    width: fit-content !important;
  }

  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage__head {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    gap: 9px !important;
  }

  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage__number {
    width: 36px !important;
    height: 36px !important;
    border-radius: 9px !important;
  }

  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--minimized:not(.bv-study-batch--c184) {
    grid-template-columns: auto minmax(0, 1fr) !important;
    gap: 9px !important;
    padding: 9px 38px 9px 9px !important;
  }

  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-batch--minimized:not(.bv-study-batch--c184) .bv-study-batch-toggle {
    display: none !important;
  }
}

/* =========================================================
   C164: REFINED COLLAPSED TOPIC CONTROLS + CONTAINED COLOUR TRAY
   The colour tray now fully contains every dot and selection ring.
   Controls share one calmer tactile scale without changing behaviour.
========================================================= */

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp
.bv-study-batch--minimized:not(.bv-study-batch--c184) {
  grid-template-columns: auto minmax(0, 1fr) auto auto !important;
  column-gap: 12px !important;
  min-height: 72px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  border-radius: 13px !important;
  box-shadow: 2px 3px 0 rgba(36, 33, 30, 0.14) !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp
.bv-study-batch--minimized:not(.bv-study-batch--c184):hover {
  box-shadow: 3px 4px 0 rgba(36, 33, 30, 0.22) !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp
.bv-study-batch--minimized:not(.bv-study-batch--c184) > .bv-study-color-row {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 7px !important;
  width: max-content !important;
  min-width: 158px !important;
  min-height: 42px !important;
  padding: 8px 12px !important;
  overflow: visible !important;
  border: 1px solid #b9ae9e !important;
  border-radius: 999px !important;
  background: #f7f1e7 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 2px 0 rgba(36, 33, 30, 0.10) !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp
.bv-study-batch--minimized:not(.bv-study-batch--c184) .bv-study-color-dot {
  position: relative !important;
  flex: 0 0 16px !important;
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;
  margin: 0 !important;
  border-width: 1px !important;
  outline: 0 !important;
  outline-offset: 0 !important;
  transform: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.52),
    0 2px 0 rgba(36,33,30,0.18) !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp
.bv-study-batch--minimized:not(.bv-study-batch--c184) .bv-study-color-dot:hover {
  transform: translateY(-1px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.68),
    0 3px 0 rgba(36,33,30,0.18) !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp
.bv-study-batch--minimized:not(.bv-study-batch--c184) .bv-study-color-dot.is-selected {
  border-color: #ffffff !important;
  outline: 0 !important;
  outline-offset: 0 !important;
  transform: none !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.72),
    0 0 0 3px #f7f1e7,
    0 0 0 5px rgba(36,33,30,0.26),
    0 2px 0 rgba(36,33,30,0.16) !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp
.bv-study-batch--minimized:not(.bv-study-batch--c184) .bv-study-batch-toggle {
  min-width: 104px !important;
  height: 42px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  box-shadow: 1px 2px 0 rgba(36, 33, 30, 0.14) !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp
.bv-study-batch--minimized:not(.bv-study-batch--c184) .bv-study-mini-delete {
  display: inline-grid !important;
  place-items: center !important;
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  border: 1px solid #d8b8b1 !important;
  border-radius: 10px !important;
  background: #fffaf7 !important;
  box-shadow: 1px 2px 0 rgba(103, 53, 45, 0.13) !important;
  font-size: 17px !important;
}

/* Mode changes re-render synchronously. Keep the new card surface stable
   and remove inherited entry animations that exposed encoded placeholder text. */
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp
.bv-study-stage--study .bv-study-memory-card {
  animation: none !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp
.bv-study-stage--study .bv-study-card-grid {
  transition: none !important;
}

@media (max-width: 1100px) and (min-width: 821px) {
  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp
  .bv-study-batch--minimized:not(.bv-study-batch--c184) {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
  }

  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp
  .bv-study-batch--minimized:not(.bv-study-batch--c184) > .bv-study-color-row {
    grid-column: 2 / 4 !important;
    justify-self: end !important;
  }
}



/* =========================================================
   C165: CONTAINED STUDY MODE BAR
   Width now includes its own padding and border, preventing the
   tactile mode tray from overshooting the Study dossier panel.
========================================================= */

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp
.bv-study-stage--study .bv-study-memory-modes {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  justify-self: stretch !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp
.bv-study-stage--study .bv-study-memory-modes__buttons {
  min-width: 0 !important;
  max-width: 100% !important;
}

/* === BOOKVAULT C169 START === */
/* C169: Readable multi-column clinical source tables.
   Preserve the full evidence fields, allow deliberate horizontal scrolling,
   and stop ordinary clinical words from splitting letter-by-letter. */
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--verify .bv-study-table-wrap {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-gutter: stable !important;
  overscroll-behavior-inline: contain !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--verify .bv-study-table {
  width: max-content !important;
  min-width: 100% !important;
  table-layout: auto !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--verify .bv-study-table th,
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--verify .bv-study-table td,
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--verify .bv-study-editable {
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  hyphens: none !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--verify .bv-study-table th,
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--verify .bv-study-table td {
  width: auto !important;
  min-width: 180px !important;
  max-width: 420px !important;
  padding: 13px 14px !important;
  line-height: 1.48 !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--verify .bv-study-column-head__label {
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  line-height: 1.35 !important;
}

/* Stable widths for the clinical schemas produced by Transcript Library. */
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp [data-study-column="Test"],
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp [data-study-column="Rule"],
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp [data-study-column="Technique"],
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp [data-study-column="Condition"] {
  min-width: 230px !important;
  max-width: 280px !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp [data-study-column="Purpose"],
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp [data-study-column="Indication"],
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp [data-study-column="Population"],
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp [data-study-column="Presentation"],
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp [data-study-column="Risk Factors"] {
  min-width: 250px !important;
  max-width: 330px !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp [data-study-column="Procedure"],
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp [data-study-column="Criteria"],
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp [data-study-column="Assessment"],
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp [data-study-column="Management"],
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp [data-study-column="Hand Placement"],
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp [data-study-column="Force Direction"] {
  min-width: 330px !important;
  max-width: 420px !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp [data-study-column="Positive Finding"],
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp [data-study-column="Positive Rule"],
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp [data-study-column="Expected Response"],
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp [data-study-column="Interpretation"],
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp [data-study-column="Clinical Action"],
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp [data-study-column="Prognosis"],
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp [data-study-column="Referral Considerations"],
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp [data-study-column="Precautions"],
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp [data-study-column="Reassessment"] {
  min-width: 240px !important;
  max-width: 330px !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp [data-study-column="Pathology"],
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp [data-study-column="Body Region"] {
  min-width: 190px !important;
  max-width: 250px !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp [data-study-column="Diagnostic Evidence"],
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp [data-study-column="Limitations"] {
  min-width: 250px !important;
  max-width: 340px !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-video-cell,
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp [data-study-column="Video Link"],
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp [data-study-column="Source"] {
  min-width: 230px !important;
  max-width: 260px !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-timestamp-cell {
  min-width: 0 !important;
  padding: 9px !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-timestamp-controls {
  display: grid !important;
  grid-template-columns: 44px minmax(72px, 1fr) 44px !important;
  gap: 6px !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-time-input {
  width: 100% !important;
  min-width: 0 !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-time-action:nth-of-type(3),
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-time-action:nth-of-type(4),
html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-time-action:nth-of-type(5) {
  grid-column: span 1 !important;
}

html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-time-action {
  width: 100% !important;
  min-width: 0 !important;
  padding-inline: 5px !important;
}

/* Keep the identifying field visible while the evidence table scrolls. */
@media (min-width: 900px) {
  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--verify .bv-study-table th:first-child,
  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--verify .bv-study-table td:first-child {
    position: sticky !important;
    left: 0 !important;
    z-index: 3 !important;
    background: #fffdf7 !important;
    box-shadow: 7px 0 10px -10px rgba(36, 33, 30, 0.75) !important;
  }

  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--verify .bv-study-table th:first-child {
    z-index: 5 !important;
    background: var(--bv-topic-accent-soft) !important;
  }

  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--verify .bv-study-table-actions {
    position: sticky !important;
    right: 0 !important;
    z-index: 3 !important;
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    background: #fffdf7 !important;
    box-shadow: -7px 0 10px -10px rgba(36, 33, 30, 0.75) !important;
  }
}

@media (max-width: 899px) {
  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--verify .bv-study-table th,
  html body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp .bv-study-stage--verify .bv-study-table td {
    min-width: 190px !important;
  }
}
/* === BOOKVAULT C169 END === */

/* =========================================================
   C187: MOBILE STUDY MODE
   A purpose-built read-only card reader controlled by the mobile-study class.
   Desktop authoring remains unchanged. The selector is activated by
   JavaScript so rotation and responsive testing remain deterministic.
========================================================= */

  html.bv-mobile-study-mode,
  html.bv-mobile-study-mode body {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  html.bv-mobile-study-mode body #studyBoard,
  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board,
  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly,
  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly > .bv-study-render-root {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: clip !important;
  }

  /* Transcript extraction is a desktop owner task. */
  html.bv-mobile-study-mode body #studyPathologyUrlRunner,
  html.bv-mobile-study-mode body .bv-path-runner,
  html.bv-mobile-study-mode body [data-owner-only="transcript-collector"] {
    display: none !important;
  }

  html.bv-mobile-study-mode body #studyBoard #studyBoardApp {
    --bv-study-mobile-gutter: clamp(10px, 3.8vw, 18px);
  }

  html.bv-mobile-study-mode body #studyBoard #studyBoardApp > .bv-study-render-root {
    padding-inline: 0 !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-mobile-banner {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    gap: 11px !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 0 14px !important;
    padding: 13px 14px !important;
    box-sizing: border-box !important;
    color: #243d35 !important;
    background: linear-gradient(145deg, #f4faf7, #edf6f2) !important;
    border: 1px solid rgba(48, 103, 84, .22) !important;
    border-radius: 13px !important;
    box-shadow: 0 2px 0 rgba(45, 75, 63, .08) !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-mobile-banner__mark {
    display: grid !important;
    place-items: center !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    color: #fff !important;
    background: #3e695b !important;
    box-shadow: 0 3px 0 rgba(34, 63, 52, .22) !important;
    font-family: ui-sans-serif, system-ui, sans-serif !important;
    font-size: 15px !important;
    font-weight: 800 !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-mobile-banner__copy {
    display: grid !important;
    gap: 2px !important;
    min-width: 0 !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-mobile-banner__copy strong {
    font-family: "Spectral", Georgia, serif !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-mobile-banner__copy span,
  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-mobile-banner__storage {
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    color: #60736c !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-mobile-banner__storage {
    grid-column: 2 !important;
    justify-self: start !important;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    background: rgba(62, 105, 91, .09) !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-folder {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 16px !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-folder__head {
    display: block !important;
    min-width: 0 !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-folder__title {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 4px 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 6px !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-folder__toggle {
    grid-row: 1 / span 2 !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-folder__name {
    min-width: 0 !important;
    padding: 0 !important;
    font-family: "Spectral", Georgia, serif !important;
    font-size: clamp(18px, 5.2vw, 22px) !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere !important;
    cursor: pointer !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-folder__title .bv-study-badge {
    display: inline-flex !important;
    width: max-content !important;
    max-width: 100% !important;
    margin: 2px 5px 0 0 !important;
    padding: 4px 7px !important;
    font-size: 10px !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-folder__title .bv-study-badge--lazy {
    display: none !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-folder__actions {
    display: none !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-batch-grid--cards,
  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-batch-grid--cards[data-study-grid-columns="2"],
  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-batch-grid--cards[data-study-grid-columns="3"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    margin-top: 12px !important;
  }

  html.bv-mobile-study-mode body #studyBoard
  #bvTranscriptInstructorPanel.bv-original-extract-board
  #studyBoardApp
  .bv-study-batch--grid-card.bv-study-batch--c184 {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    grid-template-areas:
      "anchor content"
      "actions actions" !important;
    grid-template-rows: minmax(82px, auto) 48px !important;
    row-gap: 12px !important;
    column-gap: 12px !important;
    min-height: 150px !important;
    height: auto !important;
    padding: 15px !important;
    border-radius: 14px !important;
    animation: none !important;
    transform: none !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly
  .bv-study-batch--c184 .bv-study-batch__title {
    font-size: clamp(18px, 5.2vw, 22px) !important;
    line-height: 1.2 !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly
  .bv-study-batch--c184 .bv-study-batch__meta {
    margin-top: 7px !important;
    font-size: 11.5px !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly
  .bv-study-batch--c184 .bv-study-grid-palette,
  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly
  .bv-study-batch--c184 .bv-study-grid-delete {
    display: none !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly
  .bv-study-batch--c184 .bv-study-grid-actions {
    grid-area: actions !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    height: 46px !important;
    justify-self: stretch !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly
  .bv-study-batch--c184 .bv-study-grid-actions > .bv-study-grid-open {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    font-size: 13px !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-batch--expanded {
    width: 100% !important;
    min-width: 0 !important;
    padding: 13px !important;
    box-sizing: border-box !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    animation: none !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-batch--expanded .bv-study-batch__head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: stretch !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-batch--expanded .bv-study-batch__titlewrap {
    min-width: 0 !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-batch--expanded .bv-study-batch__titlewrap h3 {
    margin: 0 !important;
    font-family: "Spectral", Georgia, serif !important;
    font-size: clamp(22px, 6.4vw, 28px) !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-batch--expanded .bv-study-batch__titlewrap .bv-study-color-row {
    display: none !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-batch--expanded .bv-study-batch__actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-batch--expanded .bv-study-batch__actions > * {
    display: none !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-batch--expanded .bv-study-batch__actions > .bv-study-collapse-button {
    display: inline-flex !important;
    width: 100% !important;
    min-height: 46px !important;
    justify-content: center !important;
  }

  /* Mobile is for consumption, not authoring or verification. */
  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-stage--build,
  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-stage--verify,
  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-workspace-table {
    display: none !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-stage--study {
    width: 100% !important;
    min-width: 0 !important;
    margin: 14px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-stage--study .bv-study-stage__head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 3px !important;
    margin: 0 0 12px !important;
    padding: 12px 13px !important;
    border-radius: 12px !important;
    background: rgba(247, 245, 238, .72) !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-stage--study .bv-study-stage__number {
    display: none !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-stage--study .bv-study-stage__copy h4 {
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-stage--study .bv-study-stage__copy p {
    margin: 4px 0 0 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-memory-modes {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 0 12px !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-memory-modes__buttons {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
    width: 100% !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-memory-mode {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    padding: 7px 5px !important;
    white-space: normal !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-card-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 15px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-memory-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-memory-card__top {
    display: block !important;
    min-width: 0 !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-card-title-edit {
    margin: 0 0 12px !important;
    padding: 0 !important;
    font-family: "Spectral", Georgia, serif !important;
    font-size: clamp(21px, 6vw, 27px) !important;
    font-weight: 600 !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere !important;
    cursor: default !important;
    outline: 0 !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-memory-card__top > .bv-study-color-row,
  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-attachments__head > button,
  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-card-delete,
  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-ai-field-fill-row {
    display: none !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-memory-prompt,
  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-memory-clue,
  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-memory-association,
  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-memory-card__field,
  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-memory-reveal {
    min-width: 0 !important;
    padding: 13px !important;
    box-sizing: border-box !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
    overflow-wrap: anywhere !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-memory-context {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 7px !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-card-media,
  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-card-media__image {
    width: 100% !important;
    max-width: 100% !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-card-media__play,
  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-play-link,
  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-source-link,
  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-attachment-pill__action,
  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-attachment-link {
    min-height: 44px !important;
    padding: 10px 13px !important;
    box-sizing: border-box !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-memory-more > summary,
  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-evidence-details > summary,
  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-attachment-pill {
    min-height: 48px !important;
    box-sizing: border-box !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-attachments {
    min-width: 0 !important;
    margin-top: 14px !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-attachments__head {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-attachment-card,
  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-attachment-pill,
  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-mobile-attachment-body {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-attachment-pill {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px !important;
    padding: 11px !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-attachment-pill__actions {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(94px, 1fr)) !important;
    gap: 7px !important;
    width: 100% !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-mobile-attachment-body {
    display: grid !important;
    gap: 11px !important;
    padding: 13px !important;
    color: #3b4541 !important;
    background: rgba(255, 255, 255, .76) !important;
    border-top: 1px solid rgba(72, 75, 69, .12) !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-mobile-attachment-copy {
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    overflow-wrap: anywhere !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-empty--mobile {
    margin: 14px 0 !important;
    padding: 22px 17px !important;
    text-align: left !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-empty--mobile .bv-study-empty__actions,
  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-empty--mobile .bv-btn {
    width: 100% !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-empty--mobile .bv-btn {
    min-height: 48px !important;
  }

  html.bv-mobile-study-mode body .bv-study-mobile-toast {
    position: fixed !important;
    z-index: 1000005 !important;
    left: 12px !important;
    right: 12px !important;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 13px 14px !important;
    color: #fff !important;
    background: rgba(38, 54, 48, .96) !important;
    border: 1px solid rgba(255, 255, 255, .2) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 28px rgba(20, 28, 25, .24) !important;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) !important;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease !important;
    pointer-events: none !important;
  }

  html.bv-mobile-study-mode body .bv-study-mobile-toast.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }

@media (max-width: 430px) {
  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-mobile-banner {
    grid-template-columns: 36px minmax(0, 1fr) !important;
    padding: 12px !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-mobile-banner__mark {
    width: 34px !important;
    height: 34px !important;
  }

  html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly .bv-study-memory-modes__buttons {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.bv-mobile-study-mode body .bv-study-mobile-toast {
    transition: none !important;
  }
}

/* C187 active marker */
html.bv-mobile-study-mode body #studyBoard #bvTranscriptInstructorPanel.bv-original-extract-board #studyBoardApp.bv-study-mobile-readonly {
  --bv-study-mobile-version: 187;
}



/* =========================================================
   C188: WHOLE STUDY BOARD SHARING
   One compact owner/local action exports or publishes every
   group through the existing board-scope Study Pack backend.
========================================================= */

#studyBoard .bv-tool-workbench-actions {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 9px !important;
}

#studyBoard #studyBoardShareEntireBoardBtn[hidden] {
  display: none !important;
}

#studyBoard #studyBoardShareEntireBoardBtn {
  min-height: 40px !important;
  padding-inline: 15px !important;
  white-space: nowrap !important;
}

#studyBoard .bv-study-share-stats {
  flex-wrap: wrap !important;
}

@media (max-width: 820px) {
  html.bv-mobile-study-mode body #studyBoard #studyBoardShareEntireBoardBtn {
    display: none !important;
  }

  #studyBoard .bv-tool-workbench-actions {
    width: 100% !important;
    justify-content: flex-start !important;
  }
}

/* C188 active marker */
#studyBoard #studyBoardShareEntireBoardBtn {
  --bv-study-share-version: 188;
}


/* =========================================================
   C195: MOBILE ON-DEMAND SHARED BOARD LOADING
   The full board is no longer rendered or downloaded at once.
========================================================= */
.bv-study-mobile-load-notice[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  .bv-study-mobile-load-notice {
    position: fixed !important;
    z-index: 2147483000 !important;
    top: calc(66px + env(safe-area-inset-top, 0px)) !important;
    left: 12px !important;
    right: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 58px !important;
    padding: 11px 13px !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(47, 83, 72, .24) !important;
    border-radius: 14px !important;
    background: rgba(251, 249, 243, .98) !important;
    color: #20372f !important;
    box-shadow: 0 12px 32px rgba(16, 29, 24, .22) !important;
    backdrop-filter: blur(12px) !important;
  }

  .bv-study-mobile-load-notice__spinner {
    flex: 0 0 auto !important;
    width: 24px !important;
    height: 24px !important;
    border: 3px solid rgba(48, 108, 91, .2) !important;
    border-top-color: #347865 !important;
    border-radius: 50% !important;
    animation: bvStudyC195Spin .72s linear infinite !important;
  }

  .bv-study-mobile-load-notice[data-phase="success"] .bv-study-mobile-load-notice__spinner {
    border: 0 !important;
    animation: none !important;
  }

  .bv-study-mobile-load-notice[data-phase="success"] .bv-study-mobile-load-notice__spinner::before {
    content: "✓" !important;
    display: grid !important;
    width: 24px !important;
    height: 24px !important;
    place-items: center !important;
    border-radius: 50% !important;
    background: #dff3e9 !important;
    color: #157255 !important;
    font-size: 17px !important;
    font-weight: 800 !important;
  }

  .bv-study-mobile-load-notice[data-phase="error"] {
    border-color: rgba(159, 67, 59, .28) !important;
    color: #74362f !important;
    background: rgba(255, 247, 245, .98) !important;
  }

  .bv-study-mobile-load-notice[data-phase="error"] .bv-study-mobile-load-notice__spinner {
    border-color: rgba(159, 67, 59, .2) !important;
    border-top-color: #9f433b !important;
  }

  .bv-study-mobile-load-notice__copy {
    display: grid !important;
    min-width: 0 !important;
    gap: 2px !important;
  }

  .bv-study-mobile-load-notice__copy strong {
    overflow: hidden !important;
    font-family: "Courier Prime", ui-monospace, monospace !important;
    font-size: 12px !important;
    letter-spacing: .04em !important;
    line-height: 1.25 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .bv-study-mobile-load-notice__copy span {
    color: inherit !important;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  .bv-study-share-status.is-visible {
    position: relative !important;
    padding-left: 31px !important;
  }

  .bv-study-share-status.is-visible::before {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 8px !important;
    width: 13px !important;
    height: 13px !important;
    margin-top: -7px !important;
    border: 2px solid currentColor !important;
    border-right-color: transparent !important;
    border-radius: 50% !important;
    animation: bvStudyC195Spin .72s linear infinite !important;
  }
}

@keyframes bvStudyC195Spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .bv-study-mobile-load-notice__spinner,
  .bv-study-share-status.is-visible::before {
    animation: none !important;
  }
}
