/*
 * EX059 monochrome E Ink theme.
 *
 * This file refines the existing monochromeV7 setting rather than introducing
 * another persistence value. It is loaded by both the full-view shell and the
 * embedded production viewer, so one setting covers every route.
 */

html[data-eink-monochrome-v7="true"] {
  --bg: #fff !important;
  --surface: #fff !important;
  --surface-muted: #fff !important;
  --border: #000 !important;
  --border-light: #000 !important;
  --text: #000 !important;
  --text-secondary: #222 !important;
  --text-muted: #555 !important;
  --accent: #000 !important;
  --accent-bg: #fff !important;
  --accent-border: #000 !important;
  --brand: #000 !important;
  --brand-bright: #000 !important;
  --rail-bg: #fff !important;
  --rail-icon: #000 !important;
  --rail-icon-hover: #000 !important;
  --rail-icon-active: #fff !important;
  --correct: #000 !important;
  --correct-bg: #fff !important;
  --correct-border: #000 !important;
  --partial: #000 !important;
  --partial-bg: #fff !important;
  --partial-border: #000 !important;
  --incorrect: #000 !important;
  --incorrect-bg: #fff !important;
  --incorrect-border: #000 !important;
  --radius-sm: 0 !important;
  --radius-md: 0 !important;
  --radius-lg: 0 !important;
  --radius-xl: 0 !important;
  --shadow-sm: none !important;
  --shadow-md: none !important;
  --rail-w: 64px !important;
  /* EX059 sample type scale, recalibrated so its 15px body maps to the
     20px needed to match the photographed paper body on the BOOX panel. */
  --ex059-fs-10: 13.333px;
  --ex059-fs-11: 14.667px;
  --ex059-fs-12: 16px;
  --ex059-fs-12-5: 16.667px;
  --ex059-fs-13: 17.333px;
  --ex059-fs-14: 18.667px;
  --ex059-fs-15: 20px;
  --ex059-fs-16: 21.333px;
  --ex059-fs-17: 22.667px;
  --ex059-fs-20: 26.667px;
  --ex059-fs-24: 32px;
  --ex059-fs-26: 34.667px;
  color-scheme: light;
  background: #fff !important;
  filter: grayscale(1) contrast(1.08) !important;
  -webkit-filter: grayscale(1) contrast(1.08) !important;
}

html[data-eink-monochrome-v7="true"],
html[data-eink-monochrome-v7="true"] body {
  color: #000 !important;
  background: #fff !important;
  font-family: "Noto Sans JP", "BIZ UDPGothic", "BIZ UDGothic", "Hiragino Sans", "Meiryo", sans-serif !important;
  -webkit-font-smoothing: none;
  text-rendering: optimizeLegibility;
}

html[data-eink-monochrome-v7="true"] body *,
html[data-eink-monochrome-v7="true"] body *::before,
html[data-eink-monochrome-v7="true"] body *::after {
  animation: none !important;
  transition: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html[data-eink-monochrome-v7="true"] img,
html[data-eink-monochrome-v7="true"] picture,
html[data-eink-monochrome-v7="true"] video,
html[data-eink-monochrome-v7="true"] canvas {
  filter: grayscale(1) contrast(1.28) brightness(1.02) !important;
  -webkit-filter: grayscale(1) contrast(1.28) brightness(1.02) !important;
}

/* Full-view shell: EX059 uses a white rail, hard rules, and inverted selection. */
html[data-eink-monochrome-v7="true"] .rail {
  width: 64px !important;
  min-width: 64px !important;
  padding: 10px 0 !important;
  gap: 2px !important;
  color: #000 !important;
  background: #fff !important;
  border-right: 2px solid #000 !important;
}

html[data-eink-monochrome-v7="true"] .rail-brand {
  width: 40px !important;
  height: 40px !important;
  margin-bottom: 10px !important;
  color: #000 !important;
  background: #fff !important;
  border: 2px solid #000 !important;
  border-radius: 0 !important;
}

html[data-eink-monochrome-v7="true"] .rail-brand svg {
  fill: #000 !important;
  filter: none !important;
}

html[data-eink-monochrome-v7="true"] .rail-btn {
  width: 56px !important;
  min-height: 52px !important;
  padding: 5px 2px !important;
  color: #000 !important;
  background: #fff !important;
  border: 1px solid transparent !important;
  border-radius: 0 !important;
  font-size: var(--ex059-fs-11) !important;
}

html[data-eink-monochrome-v7="true"] .rail-btn:hover {
  color: #000 !important;
  background: #fff !important;
  border-color: #000 !important;
}

html[data-eink-monochrome-v7="true"] .rail-btn.active {
  color: #fff !important;
  background: #000 !important;
  border-color: #000 !important;
}

html[data-eink-monochrome-v7="true"] .rail-btn.active::before {
  display: none !important;
}

html[data-eink-monochrome-v7="true"] .rail-divider {
  width: 36px !important;
  border-top: 1px solid #000 !important;
}

html[data-eink-monochrome-v7="true"] .top-bar,
html[data-eink-monochrome-v7="true"] .study-subnav {
  color: #000 !important;
  background: #fff !important;
  border-bottom: 2px solid #000 !important;
}

html[data-eink-monochrome-v7="true"] .top-bar {
  min-height: 48px !important;
  height: 48px !important;
  padding: 0 16px !important;
}

/* The full-view shell follows the same ratios as the EX059 sample. */
html[data-eink-monochrome-v7="true"] body .study-subnav .seg-btn {
  font-size: var(--ex059-fs-13) !important;
  padding: 8px 5px !important;
  white-space: nowrap !important;
  letter-spacing: 0 !important;
}

html[data-eink-monochrome-v7="true"] body .study-subnav {
  gap: 2px !important;
  padding: 6px 8px !important;
}

html[data-eink-monochrome-v7="true"] body .study-subnav-tools {
  gap: 4px !important;
}

html[data-eink-monochrome-v7="true"] body .study-problem-nav {
  gap: 2px !important;
  padding: 2px 3px !important;
}

html[data-eink-monochrome-v7="true"] body :where(
  .top-bar-title
) {
  font-size: var(--ex059-fs-17) !important;
}

html[data-eink-monochrome-v7="true"] body :where(
  .top-bar-badge,
  .study-subnav-tools .sw-btns button
) {
  font-size: var(--ex059-fs-11) !important;
}

html[data-eink-monochrome-v7="true"] body .top-bar-sub {
  font-size: var(--ex059-fs-12) !important;
}

html[data-eink-monochrome-v7="true"] body .study-problem-nav-label {
  min-width: 72px !important;
  max-width: 92px !important;
  font-size: var(--ex059-fs-13) !important;
}

html[data-eink-monochrome-v7="true"] body .study-subnav-tools .sw-value {
  font-size: var(--ex059-fs-15) !important;
}

html[data-eink-monochrome-v7="true"] body .study-subnav-tools .sw {
  gap: 3px !important;
  padding: 3px 4px !important;
}

html[data-eink-monochrome-v7="true"] body .study-subnav-tools .sw-btns {
  gap: 2px !important;
}

html[data-eink-monochrome-v7="true"] body .study-subnav-tools .sw-btns button {
  min-width: calc(2em + 8px) !important;
  padding: 4px !important;
  white-space: nowrap !important;
}

html[data-eink-monochrome-v7="true"] body .study-subnav-tools .sw-btns button:last-child {
  min-width: calc(4em + 8px) !important;
}

html[data-eink-monochrome-v7="true"] .content-pane {
  border-right: 2px solid #000 !important;
}

html[data-eink-monochrome-v7="true"] .content-scroll {
  padding: 8px 8px 28px !important;
  background: #fff !important;
}

html[data-eink-monochrome-v7="true"] .content-inner {
  width: 100% !important;
  max-width: none !important;
}

html[data-eink-monochrome-v7="true"] .main.solo .content-scroll {
  padding: 14px 16px 30px !important;
}

html[data-eink-monochrome-v7="true"] .main.solo .content-inner {
  width: min(1180px, 100%) !important;
  margin: 0 auto !important;
}

html[data-eink-monochrome-v7="true"] :where(
  .card,
  .cat-card,
  .stat-card,
  .day-detail,
  .dd-row,
  .pg-row,
  .lib-row,
  .prog-panel,
  .study-chat-panel,
  .study-sketch-panel,
  .study-route-next-review,
  .toggle-row,
  .field-row,
  .rc-hero,
  .rc-review,
  .rc-part-card,
  .rc-next-action,
  .rc-details
) {
  color: #000 !important;
  background: #fff !important;
  border-color: #000 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html[data-eink-monochrome-v7="true"] :where(
  button,
  .chip,
  .rc-badge,
  .top-bar-badge,
  .seg-btn,
  .subtab,
  .theme-segmented,
  .theme-segmented button,
  .settings-theme-segmented,
  .settings-theme-segmented button
) {
  border-radius: 0 !important;
}

html[data-eink-monochrome-v7="true"] :where(
  .top-bar-badge,
  .seg-btn.active,
  .subtab.active,
  .theme-segmented button.active,
  .settings-theme-segmented button.active
) {
  color: #fff !important;
  background: #000 !important;
  border: 2px solid #000 !important;
}

html[data-eink-monochrome-v7="true"] .section-title::before,
html[data-eink-monochrome-v7="true"] .paper-image-card-header::before {
  width: 5px !important;
  background: #000 !important;
  border-radius: 0 !important;
}

/* Full-view fallback review renderer follows the same reading measure as EX059. */
html[data-eink-monochrome-v7="true"] .rc-submission-tabs {
  width: max-content !important;
  padding: 0 !important;
  gap: 0 !important;
  border: 2px solid #000 !important;
  border-radius: 0 !important;
}

html[data-eink-monochrome-v7="true"] .rc-submission-tab {
  border: 0 !important;
  border-right: 1px solid #000 !important;
  border-radius: 0 !important;
  background: #fff !important;
}

html[data-eink-monochrome-v7="true"] .rc-submission-tab:last-child {
  border-right: 0 !important;
}

html[data-eink-monochrome-v7="true"] .rc-submission-tab.active {
  color: #fff !important;
  background: #000 !important;
}

html[data-eink-monochrome-v7="true"] .rc-hero,
html[data-eink-monochrome-v7="true"] .rc-review,
html[data-eink-monochrome-v7="true"] .rc-next-action {
  border: 2px solid #000 !important;
}

html[data-eink-monochrome-v7="true"] .rc-review-text,
html[data-eink-monochrome-v7="true"] .rc-next-action-body {
  font-family: "Noto Serif JP", "BIZ UDPMincho", "Yu Mincho", "Hiragino Mincho ProN", serif !important;
  font-size: var(--ex059-fs-15) !important;
  line-height: 1.95 !important;
  color: #000 !important;
}

html[data-eink-monochrome-v7="true"] .rc-review-section-block h3 {
  padding-left: 10px !important;
  border-left: 5px solid #000 !important;
  font-size: var(--ex059-fs-14) !important;
}

html[data-eink-monochrome-v7="true"] body :where(
  .rc-submission-tab,
  .rc-details summary
) {
  font-size: var(--ex059-fs-13) !important;
}

html[data-eink-monochrome-v7="true"] body .rc-hero-date {
  font-size: var(--ex059-fs-12) !important;
}

html[data-eink-monochrome-v7="true"] body .rc-hero-target {
  font-size: var(--ex059-fs-17) !important;
}

html[data-eink-monochrome-v7="true"] body :where(
  .rc-hero-verdict,
  .rc-part-label,
  .rc-next-action-title,
  .rc-next-action-body,
  .rc-next-action-btn
) {
  font-size: var(--ex059-fs-14) !important;
}

html[data-eink-monochrome-v7="true"] body .rc-duration-value {
  font-size: var(--ex059-fs-24) !important;
}

html[data-eink-monochrome-v7="true"] body :where(
  .rc-duration-label,
  .rc-duration-unit,
  .rc-review-header .agent
) {
  font-size: var(--ex059-fs-11) !important;
}

html[data-eink-monochrome-v7="true"] body :where(
  .rc-part-verdict,
  .rc-part-note,
  .rc-gate
) {
  font-size: var(--ex059-fs-12) !important;
}

html[data-eink-monochrome-v7="true"] body .rc-review-header h2 {
  font-size: var(--ex059-fs-15) !important;
}

/* Parent-shell paper cards also read as one continuous framed sheet. */
html[data-eink-monochrome-v7="true"] .paper-pane,
html[data-eink-monochrome-v7="true"] .paper-pane .top-bar,
html[data-eink-monochrome-v7="true"] .paper-scroll {
  background: #fff !important;
}

html[data-eink-monochrome-v7="true"] .paper-scroll {
  padding: 8px !important;
}

html[data-eink-monochrome-v7="true"] .paper-scroll > .paper-image-card {
  margin: 0 !important;
  border: 0 !important;
  border-left: 2px solid #000 !important;
  border-right: 2px solid #000 !important;
  border-bottom: 1px solid #000 !important;
  border-radius: 0 !important;
}

html[data-eink-monochrome-v7="true"] .paper-scroll > .paper-image-card:first-child {
  border-top: 2px solid #000 !important;
}

html[data-eink-monochrome-v7="true"] .paper-scroll > .paper-image-card:last-child {
  border-bottom: 2px solid #000 !important;
}

/* Production landscape studio (embedded viewer). */
html[data-eink-monochrome-v7="true"] .review-landscape-studio {
  --rls-bg: #fff !important;
  --rls-surface: #fff !important;
  --rls-surface-muted: #fff !important;
  --rls-border: #000 !important;
  --rls-border-light: #000 !important;
  --rls-text: #000 !important;
  --rls-muted: #222 !important;
  --rls-muted-2: #555 !important;
  --rls-accent: #000 !important;
  --rls-accent-bg: #fff !important;
  --rls-accent-border: #000 !important;
  --rls-brand: #000 !important;
  --rls-brand-bright: #000 !important;
  --rls-rail-bg: #fff !important;
  --rls-rail-icon: #000 !important;
  --rls-rail-icon-hover: #000 !important;
  --rls-rail-icon-active: #fff !important;
  --rls-shadow: none !important;
  color: #000 !important;
  background: #fff !important;
}

html[data-eink-monochrome-v7="true"] .review-landscape-rail {
  width: 64px !important;
  min-width: 64px !important;
  color: #000 !important;
  background: #fff !important;
  border-right: 2px solid #000 !important;
}

html[data-eink-monochrome-v7="true"] .review-landscape-rail-brand {
  color: #000 !important;
  background: #fff !important;
  border: 2px solid #000 !important;
  border-radius: 0 !important;
}

html[data-eink-monochrome-v7="true"] .review-landscape-rail-brand svg {
  fill: #000 !important;
  filter: none !important;
}

html[data-eink-monochrome-v7="true"] .review-landscape-rail-btn {
  color: #000 !important;
  background: #fff !important;
  border-radius: 0 !important;
}

html[data-eink-monochrome-v7="true"] .review-landscape-rail-btn.active {
  color: #fff !important;
  background: #000 !important;
}

html[data-eink-monochrome-v7="true"] .review-landscape-rail-btn.active::before {
  display: none !important;
}

html[data-eink-monochrome-v7="true"] .review-landscape-main {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

html[data-eink-monochrome-v7="true"] .review-landscape-content-pane {
  border-right: 2px solid #000 !important;
}

html[data-eink-monochrome-v7="true"] .review-landscape-topbar,
html[data-eink-monochrome-v7="true"] .review-landscape-paper-topbar {
  min-height: 48px !important;
  padding: 0 16px !important;
  color: #000 !important;
  background: #fff !important;
  border-bottom: 2px solid #000 !important;
}

html[data-eink-monochrome-v7="true"] .review-landscape-mode-chip {
  color: #fff !important;
  background: #000 !important;
  border: 2px solid #000 !important;
  border-radius: 0 !important;
}

html[data-eink-monochrome-v7="true"] .review-landscape-chip {
  color: #000 !important;
  background: #fff !important;
  border: 1px solid #000 !important;
  border-radius: 0 !important;
}

/* Match the left inset to the paper pane and use the full pane width. */
html[data-eink-monochrome-v7="true"] .review-landscape-content-scroll,
html[data-eink-monochrome-v7="true"] .review-landscape-paper-scroll {
  padding: 8px !important;
  background: #fff !important;
}

html[data-eink-monochrome-v7="true"] .review-landscape-content-inner {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

html[data-eink-monochrome-v7="true"] .review-landscape-content-inner .review-check-selected {
  gap: 12px !important;
}

html[data-eink-monochrome-v7="true"] .review-landscape-studio :where(
  .review-check-section,
  .teacher-display-review,
  .review-next-action-card,
  .review-pipeline-timing,
  .selected-review-answer-image,
  .learner-answer-readable,
  .learner-answer-visual-notation,
  .material-structured-review-context,
  .review-learner-memo,
  .review-part-outcome,
  .review-check-summary,
  .review-swipe-note-section,
  .mdfmt-recall,
  .review-feedback-card
) {
  color: #000 !important;
  background: #fff !important;
  border-color: #000 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html[data-eink-monochrome-v7="true"] .review-landscape-studio :where(
  .review-check-summary,
  .teacher-display-review,
  .review-next-action-card
) {
  border: 2px solid #000 !important;
}

html[data-eink-monochrome-v7="true"] .review-landscape-studio .review-submission-tabs {
  width: max-content !important;
  gap: 0 !important;
  padding: 0 !important;
  border: 2px solid #000 !important;
  border-radius: 0 !important;
}

html[data-eink-monochrome-v7="true"] .review-landscape-studio .review-submission-tab {
  color: #000 !important;
  background: #fff !important;
  border: 0 !important;
  border-right: 1px solid #000 !important;
  border-radius: 0 !important;
}

html[data-eink-monochrome-v7="true"] .review-landscape-studio .review-submission-tab:last-child {
  border-right: 0 !important;
}

html[data-eink-monochrome-v7="true"] .review-landscape-studio .review-submission-tab.active {
  color: #fff !important;
  background: #000 !important;
}

/* BOOX reports a high device scale factor: its 3200 x 2400 panel has a much
   smaller CSS viewport. The memo body is the calibration anchor: at 20px its
   photographed glyph height matches the 13px-high body glyphs in the paper
   bitmap. Every other value keeps the original EX059 sample ratio. */
html[data-eink-monochrome-v7="true"] body .review-landscape-studio .review-check-selected {
  --study-review-readable-font: var(--ex059-fs-15) !important;
  --study-review-readable-small: var(--ex059-fs-14) !important;
  --study-review-readable-caption: var(--ex059-fs-11) !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio .review-check-selected :where(
  .teacher-display-review-body,
  .teacher-review-section-body,
  .teacher-review-lines,
  .review-learner-memo-body,
  .review-swipe-note-body,
  .review-swipe-text-block,
  .review-next-action-body,
  .mdfmt-core,
  .mdfmt-model,
  .mdfmt-you,
  .mdfmt-fix-item,
  .review-feedback-card-question,
  .review-feedback-card-answer
) {
  font-family: "Noto Serif JP", "BIZ UDPMincho", "Yu Mincho", "Hiragino Mincho ProN", serif !important;
  font-size: var(--ex059-fs-15) !important;
  line-height: 1.95 !important;
  color: #000 !important;
  -webkit-text-stroke: 0 !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio .review-check-selected :where(
  .teacher-display-review-body,
  .teacher-review-section-body,
  .teacher-review-lines,
  .review-learner-memo-body,
  .review-swipe-note-body,
  .review-swipe-text-block,
  .review-next-action-body,
  .mdfmt-core,
  .mdfmt-model,
  .mdfmt-you,
  .mdfmt-fix-item,
  .review-feedback-card-question,
  .review-feedback-card-answer
) :where(p, li, dd, blockquote, pre, code, strong, em, span:not(.katex *)) {
  font-size: inherit !important;
  line-height: inherit !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio .review-check-selected :where(
  .teacher-display-review-body,
  .teacher-review-section-body,
  .teacher-review-lines,
  .review-learner-memo-body,
  .review-swipe-note-body,
  .review-swipe-text-block,
  .review-next-action-body
) .katex {
  font-size: 1em !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio .review-check-selected :where(
  .teacher-review-section-head h4,
  .grouped-part-review-head,
  .review-swipe-note-head
) {
  font-family: "Noto Sans JP", "BIZ UDPGothic", "BIZ UDGothic", sans-serif !important;
  font-size: var(--ex059-fs-14) !important;
  line-height: 1.5 !important;
  color: #000 !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio .review-check-selected .review-learner-memo-body {
  /* Primary visual invariant requested for BOOX: memo body = paper body. */
  font-size: var(--ex059-fs-15) !important;
  line-height: 1.95 !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio .review-check-selected .review-learner-memo-label {
  font-size: var(--ex059-fs-14) !important;
  line-height: 1.45 !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio .review-check-selected .review-submission-tab {
  font-size: var(--ex059-fs-13) !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio .review-check-selected .review-submission-tab :where(b, span) {
  font-size: inherit !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio .review-check-selected .review-submission-tab small {
  font-size: var(--ex059-fs-11) !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio .review-check-selected .review-check-summary-date {
  font-size: var(--ex059-fs-12) !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio .review-check-selected .review-check-summary-target {
  font-size: var(--ex059-fs-17) !important;
  line-height: 1.35 !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio .review-check-selected .review-check-summary-result {
  font-size: var(--ex059-fs-14) !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio .review-check-selected .review-check-summary-symbol {
  font-size: var(--ex059-fs-26) !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio .review-check-selected .review-check-summary-verdict {
  font-size: var(--ex059-fs-14) !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio .review-check-selected .review-check-duration strong {
  font-size: var(--ex059-fs-24) !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio .review-check-selected .review-check-duration :where(span, em, small) {
  font-size: var(--ex059-fs-11) !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio .review-check-selected :where(
  .inline-badge,
  .review-agent-badge
) {
  font-size: var(--ex059-fs-11) !important;
  line-height: 1.45 !important;
}

html[data-eink-monochrome-v7="true"] .review-landscape-studio .review-part-outcome-strip {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

html[data-eink-monochrome-v7="true"] .review-landscape-studio .review-part-outcome {
  width: auto !important;
  min-width: 0 !important;
  padding: 12px 14px !important;
  color: #000 !important;
  background: #fff !important;
  border: 1px solid #000 !important;
  border-radius: 0 !important;
}

html[data-eink-monochrome-v7="true"] .review-landscape-studio .review-part-outcome-reason {
  font-size: var(--ex059-fs-12) !important;
  line-height: 1.5 !important;
  color: #222 !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio .review-part-outcome > b {
  font-size: var(--ex059-fs-14) !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio :where(
  .review-part-outcome-verdict,
  .review-part-outcome-symbol
) {
  font-size: var(--ex059-fs-12) !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio .teacher-display-review > h3 {
  font-size: var(--ex059-fs-15) !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio :where(
  .teacher-review-section-head h4,
  .mdfmt-fix-title,
  .mdfmt-fix-head strong,
  .mdfmt-fix-head b,
  .mdfmt-schema-head,
  .mdfmt-schema-step,
  .mdfmt-schema-note,
  .mdfmt-handle,
  .mdfmt-kwchip,
  .mdfmt-attempt
) {
  font-size: var(--ex059-fs-14) !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio :where(
  .teacher-review-chip,
  .teacher-section-label,
  .rc-section-label,
  .mdfmt-core-label,
  .mdfmt-recall-head small,
  .mdfmt-compare-label,
  .mdfmt-model-tag
) {
  font-size: var(--ex059-fs-11) !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio :where(
  .teacher-review-section-body,
  .teacher-display-review-body p,
  .teacher-review-lines p,
  .mdfmt-core-text,
  .mdfmt-fix-detail,
  .mdfmt-ans,
  .mdfmt-you,
  .mdfmt-model,
  .mdfmt-recall summary
) {
  font-size: var(--ex059-fs-15) !important;
  line-height: 1.95 !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio :where(
  .teacher-display-review-body ul,
  .teacher-review-list li,
  .rc-review-list li
) {
  font-size: var(--ex059-fs-15) !important;
  line-height: 1.95 !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio :where(
  .rc-next-action-title,
  .progression-gpt-rec-title,
  .rc-next-action-body,
  .progression-gpt-rec p,
  .rc-next-action-btn
) {
  font-size: var(--ex059-fs-14) !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio :where(
  .rc-gate,
  .progression-gpt-rec ul
) {
  font-size: var(--ex059-fs-12) !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio .review-check-details summary {
  font-size: var(--ex059-fs-13) !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio :where(
  .review-selected-ocr,
  .review-check-details .learner-answer-readable,
  .selected-review-answer-image,
  .review-pipeline-timing
) {
  font-size: var(--ex059-fs-12-5) !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio :where(
  .review-selected-ocr pre,
  .review-check-details pre
) {
  font-size: var(--ex059-fs-12) !important;
  line-height: 1.7 !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio .review-landscape-title {
  font-size: var(--ex059-fs-17) !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio .review-landscape-paper-topbar > span {
  font-size: var(--ex059-fs-14) !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio :where(
  .review-landscape-mode-chip,
  .review-landscape-chip,
  .review-landscape-paper-topbar small
) {
  font-size: var(--ex059-fs-11) !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio .review-landscape-subtitle {
  font-size: var(--ex059-fs-12) !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio :where(
  .material-structured-context-head h3,
  .selected-review-answer-image-head h3,
  .review-pipeline-timing h3
) {
  font-size: var(--ex059-fs-14) !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio :where(
  .material-structured-context-head span,
  .selected-review-answer-image-head span,
  .review-pipeline-timing-slowest
) {
  font-size: var(--ex059-fs-11) !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio .material-structured-context dt {
  font-size: var(--ex059-fs-12) !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio :where(
  .material-structured-context dd,
  .review-pipeline-timing dt,
  .review-pipeline-timing dd
) {
  font-size: var(--ex059-fs-12-5) !important;
}

html[data-eink-monochrome-v7="true"] body .review-landscape-studio .review-landscape-rail-btn {
  font-size: var(--ex059-fs-11) !important;
}

/* Right pane: question, policy, and solution form one uninterrupted frame. */
html[data-eink-monochrome-v7="true"] .review-landscape-paper-scroll {
  display: block !important;
}

html[data-eink-monochrome-v7="true"] .review-landscape-question-card {
  display: block !important;
  overflow: hidden !important;
  border: 2px solid #000 !important;
  border-radius: 0 !important;
  background: #fff !important;
}

html[data-eink-monochrome-v7="true"] .review-landscape-question-card .study-content-card,
html[data-eink-monochrome-v7="true"] .review-landscape-question-card .image-stage {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}

html[data-eink-monochrome-v7="true"] .review-landscape-paper-material {
  display: block !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 0 solid #000 !important;
  border-right-width: 2px !important;
  border-bottom-width: 2px !important;
  border-left-width: 2px !important;
  border-radius: 0 !important;
  background: #fff !important;
}

html[data-eink-monochrome-v7="true"] .review-landscape-paper-material .review-check-inline-paper {
  display: block !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
}

html[data-eink-monochrome-v7="true"] .review-landscape-paper-material :where(
  .review-check-inline-paper-panel,
  .paper-image-card
) {
  margin: 0 !important;
  border: 0 !important;
  border-top: 1px solid #000 !important;
  border-radius: 0 !important;
  background: #fff !important;
}

html[data-eink-monochrome-v7="true"] .review-landscape-paper-material :where(
  .review-check-inline-paper-panel,
  .paper-image-card
)::before {
  display: none !important;
}

html[data-eink-monochrome-v7="true"] .review-landscape-paper-material :where(
  .image-stage,
  img
) {
  display: block !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}

html[data-eink-monochrome-v7="true"] .review-landscape-empty-paper,
html[data-eink-monochrome-v7="true"] .review-landscape-paper-material .blind-review-placeholder {
  margin: 0 !important;
  border: 0 !important;
  border-top: 1px solid #000 !important;
  border-radius: 0 !important;
  background: #fff !important;
}

@media (max-width: 900px) {
  html[data-eink-monochrome-v7="true"] .review-landscape-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
}

/* --------------------------------------------------------------------------
   Full-view pages outside the review pane

   Keep the EX059 sample's type ratios on TOP, answer creation, progress,
   library, settings, and chat. The 20px body is the same photographed-paper
   calibration used by the review memo above; labels and metrics step down or
   up from that anchor instead of keeping the old desktop-sized 10-14px text.
   -------------------------------------------------------------------------- */

html[data-eink-monochrome-v7="true"] body .page-head h1 {
  font-size: var(--ex059-fs-17) !important;
  line-height: 1.35 !important;
}

html[data-eink-monochrome-v7="true"] body .page-head .sub {
  font-size: var(--ex059-fs-12-5) !important;
  line-height: 1.55 !important;
}

html[data-eink-monochrome-v7="true"] body .section-title {
  font-size: var(--ex059-fs-14) !important;
  line-height: 1.45 !important;
}

html[data-eink-monochrome-v7="true"] body :where(
  .section-title .count,
  .panel-head .ph-right,
  .panel-link,
  .muted-note,
  .tab-empty .s
) {
  font-size: var(--ex059-fs-12) !important;
  line-height: 1.55 !important;
}

html[data-eink-monochrome-v7="true"] body :where(
  .panel-head h3,
  .tab-empty .t
) {
  font-size: var(--ex059-fs-15) !important;
  line-height: 1.45 !important;
}

html[data-eink-monochrome-v7="true"] body .panel-head p {
  font-size: var(--ex059-fs-12-5) !important;
  line-height: 1.55 !important;
}

html[data-eink-monochrome-v7="true"] body :where(
  .cta,
  .filter-chip,
  .seg-band .seg-btn,
  .subtabs .subtab,
  .pg-seg button,
  .lib-tab,
  .lib-chip,
  .theme-segmented button,
  .settings-theme-segmented button
) {
  font-size: var(--ex059-fs-13) !important;
  line-height: 1.35 !important;
}

/* Shared dashboard cards and queues. */
html[data-eink-monochrome-v7="true"] body :where(
  .stat-tile .label,
  .stat-tile .delta,
  .spark-x span
) {
  font-size: var(--ex059-fs-11) !important;
  line-height: 1.45 !important;
}

html[data-eink-monochrome-v7="true"] body .stat-tile .value {
  font-size: var(--ex059-fs-26) !important;
}

html[data-eink-monochrome-v7="true"] body .stat-tile .value small {
  font-size: var(--ex059-fs-13) !important;
}

html[data-eink-monochrome-v7="true"] body :where(
  .queue-item .qi-title,
  .prog-row .pr-label,
  .mastery-row .mr-label
) {
  font-size: var(--ex059-fs-14) !important;
  line-height: 1.45 !important;
}

html[data-eink-monochrome-v7="true"] body :where(
  .queue-item .qi-meta,
  .queue-item .qi-due,
  .queue-item .qi-go,
  .prog-row .pr-val,
  .mastery-row .mr-val
) {
  font-size: var(--ex059-fs-12) !important;
  line-height: 1.45 !important;
}

html[data-eink-monochrome-v7="true"] body .queue-item .qi-symbol {
  font-size: var(--ex059-fs-15) !important;
}

/* TOP dashboard. */
html[data-eink-monochrome-v7="true"] body :where(
  .cat-card .cc-name,
  .cand-head,
  .wl-card .wl-label,
  .tt-card .tt-label,
  .pace-detail span
) {
  font-size: var(--ex059-fs-14) !important;
  line-height: 1.45 !important;
}

html[data-eink-monochrome-v7="true"] body :where(
  .cat-card .cc-note,
  .cand-head .ch-jump,
  .wl-card .wl-sub,
  .tt-card .tt-key,
  .pace-scale,
  .dd-table th,
  .spark7 .s7 small
) {
  font-size: var(--ex059-fs-11) !important;
  line-height: 1.45 !important;
}

html[data-eink-monochrome-v7="true"] body :where(
  .cat-card .cc-count,
  .tt-card .tt-value
) {
  font-size: var(--ex059-fs-24) !important;
}

html[data-eink-monochrome-v7="true"] body :where(
  .cat-card .cc-count small,
  .wl-card .wl-today small
) {
  font-size: var(--ex059-fs-12) !important;
}

html[data-eink-monochrome-v7="true"] body :where(
  .wl-card .wl-today,
  .pace-detail b
) {
  font-size: var(--ex059-fs-20) !important;
}

html[data-eink-monochrome-v7="true"] body :where(
  .pace-delta,
  .dd-date,
  .spark7 .s7 b
) {
  font-size: var(--ex059-fs-13) !important;
}

html[data-eink-monochrome-v7="true"] body .dd-table {
  font-size: var(--ex059-fs-12-5) !important;
  line-height: 1.55 !important;
}

html[data-eink-monochrome-v7="true"] body :where(
  .dd-table .dd-prob small,
  .dd-open-btn
) {
  font-size: var(--ex059-fs-11) !important;
}

html[data-eink-monochrome-v7="true"] body .dd-empty {
  font-size: var(--ex059-fs-15) !important;
  line-height: 1.7 !important;
}

/* Progress and chapter journal. */
html[data-eink-monochrome-v7="true"] body :where(
  .pg-legend-item,
  .pg-row-title strong,
  .cj-block-title,
  .cj-callout strong,
  .cj-card strong
) {
  font-size: var(--ex059-fs-13) !important;
  line-height: 1.45 !important;
}

html[data-eink-monochrome-v7="true"] body :where(
  .pg-metric .m-label,
  .pg-metric .m-sub,
  .pg-row-detail,
  .cj-kicker,
  .cj-callout span,
  .cj-spark-legend,
  .cj-section-top span,
  .cj-hard-head,
  .cj-hard-row small,
  .cj-card > span,
  .cj-card p
) {
  font-size: var(--ex059-fs-11) !important;
  line-height: 1.5 !important;
}

html[data-eink-monochrome-v7="true"] body .pg-metric .m-value {
  font-size: var(--ex059-fs-24) !important;
}

html[data-eink-monochrome-v7="true"] body :where(
  .pg-row-value,
  .cj-action,
  .cj-section-top strong,
  .cj-list li,
  .cj-hard-row,
  .cj-open-link
) {
  font-size: var(--ex059-fs-12-5) !important;
  line-height: 1.5 !important;
}

html[data-eink-monochrome-v7="true"] body :where(
  .cj-hard-row .cj-row-actions button,
  .cj-badge
) {
  font-size: var(--ex059-fs-11) !important;
}

/* Library/list page. */
html[data-eink-monochrome-v7="true"] body .lib-search {
  font-size: var(--ex059-fs-15) !important;
  line-height: 1.45 !important;
}

html[data-eink-monochrome-v7="true"] body :where(
  .lib-tab span,
  .lib-status-row .lsr-label,
  .lib-count,
  .lib-row .lr-scope,
  .lib-row .lr-status
) {
  font-size: var(--ex059-fs-11) !important;
  line-height: 1.45 !important;
}

html[data-eink-monochrome-v7="true"] body .lib-row .lr-badge {
  font-size: var(--ex059-fs-12) !important;
}

html[data-eink-monochrome-v7="true"] body .lib-row .lr-title {
  font-size: var(--ex059-fs-15) !important;
  line-height: 1.45 !important;
}

/* Settings. */
html[data-eink-monochrome-v7="true"] body :where(
  .toggle-row .tr-title,
  .field-row .fr-title
) {
  font-size: var(--ex059-fs-15) !important;
  line-height: 1.45 !important;
}

html[data-eink-monochrome-v7="true"] body :where(
  .toggle-row .tr-desc,
  .field-row .fr-desc
) {
  font-size: var(--ex059-fs-12-5) !important;
  line-height: 1.55 !important;
}

html[data-eink-monochrome-v7="true"] body .field-row .fr-value {
  font-size: var(--ex059-fs-13) !important;
}

/* Answer creation: use the same 20px body anchor as the review memo. */
html[data-eink-monochrome-v7="true"] body .study-answer-mock {
  --study-readable-font: var(--ex059-fs-15) !important;
  --study-readable-small: var(--ex059-fs-14) !important;
  --study-readable-caption: var(--ex059-fs-11) !important;
}

html[data-eink-monochrome-v7="true"] body .study-question-title {
  font-size: var(--ex059-fs-17) !important;
  line-height: 1.4 !important;
}

html[data-eink-monochrome-v7="true"] body .study-question-meta {
  font-size: var(--ex059-fs-12) !important;
  line-height: 1.45 !important;
}

html[data-eink-monochrome-v7="true"] body .study-next-review-card h3 {
  font-size: var(--ex059-fs-14) !important;
  line-height: 1.45 !important;
}

html[data-eink-monochrome-v7="true"] body .study-answer-mock :where(
  .study-route-next-review,
  .subtab,
  .chat-dispute-btn,
  .prog-action button
) {
  font-size: var(--ex059-fs-14) !important;
}

html[data-eink-monochrome-v7="true"] body .study-chat-panel,
html[data-eink-monochrome-v7="true"] body .study-chat-panel :where(
  .chat-bubble,
  .chat-bubble p,
  .chat-bubble li,
  .chat-bubble strong,
  .chat-input input
) {
  font-size: var(--ex059-fs-15) !important;
}

html[data-eink-monochrome-v7="true"] body .study-chat-panel .chat-bubble {
  line-height: 1.75 !important;
}

html[data-eink-monochrome-v7="true"] body .study-chat-panel .chat-input button {
  font-size: var(--ex059-fs-14) !important;
}

html[data-eink-monochrome-v7="true"] body .study-answer-mock :where(
  .study-resubmit-gate-head strong,
  .study-resubmit-gate p,
  .prog-head h4,
  .prog-kpi span
) {
  font-size: var(--ex059-fs-15) !important;
  line-height: 1.65 !important;
}

html[data-eink-monochrome-v7="true"] body .study-answer-mock :where(
  .study-resubmit-gate-head span,
  .study-resubmit-gate li,
  .prog-head p,
  .prog-part,
  .prog-row
) {
  font-size: var(--ex059-fs-14) !important;
  line-height: 1.55 !important;
}

html[data-eink-monochrome-v7="true"] body .study-answer-mock :where(
  .prog-kpi b,
  .study-sketch-status
) {
  font-size: var(--ex059-fs-11) !important;
}

html[data-eink-monochrome-v7="true"] body :where(
  .study-question-fallback,
  .study-loading,
  .aw-dropzone .big,
  .aw-memo
) {
  font-size: var(--ex059-fs-15) !important;
  line-height: 1.7 !important;
}

html[data-eink-monochrome-v7="true"] body :where(
  .aw-dropzone .small,
  .aw-thumb,
  .aw-tool-btn,
  .aw-hint
) {
  font-size: var(--ex059-fs-12) !important;
  line-height: 1.5 !important;
}

html[data-eink-monochrome-v7="true"] body .aw-timer {
  font-size: var(--ex059-fs-24) !important;
}
