/* DS-PROFI-LESSON v2.1 — article-reading correction, isolated.
   Append after lesson.css. Only main.pb-lesson; shell/copy/actions untouched. */
main.pb-lesson {
  --ink: #202024;
  --muted: #56565e;
  --line: #dedee2;
  --purple: #684299;
  --green: #684299;
  --lavender: #b7b7c2;
  --peach: #e0e0e5;
  color: var(--ink);
  background: #fff;
}
main.pb-lesson :is(h1,h2,h3,p,li,th,td,strong,.pb-stage-name) { color: inherit; }
main.pb-lesson :is(.pb-small,.pb-caution,figcaption,.pb-preview-note) { color: var(--muted); }
main.pb-lesson .pb-section { border-color: var(--line); }
main.pb-lesson .pb-eyebrow {
  color: var(--purple);
  background: transparent;
  padding-inline: 0;
  border-radius: 0;
}
main.pb-lesson :is(.pb-formula,.pb-quote,.pb-task) {
  color: var(--ink);
  background: #f6f6f7;
  border-left: 3px solid var(--purple);
  border-radius: 0 10px 10px 0;
}
main.pb-lesson :is(.pb-dialogue,.pb-support,.pb-workload,.pb-meeting,.pb-check-map,.pb-offer,.pb-table) {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}
main.pb-lesson .pb-chat { background: #f6f6f7; }
main.pb-lesson .pb-chat-tutor { background: #fff; border: 1px solid var(--line); }
main.pb-lesson thead th { color: var(--muted); background: #f6f6f7; }
main.pb-lesson .pb-button { color: #fff; background: var(--purple); }
main.pb-lesson .pb-button:hover { background: #503176; }
main.pb-lesson a:focus-visible { outline-color: var(--purple); }
/* Keep labels, segment sizes and all original assets. Saturation reduction
   is mild, reversible and limited to the lesson artwork, not HTML text. */
main.pb-lesson img[data-art-source] { filter: saturate(.58); }
main.pb-lesson .pb-hero-art { max-width: 640px; }
main.pb-lesson .pb-workload img {
  width: min(100%,440px);
  margin-inline: auto;
}
main.pb-lesson .pb-meeting { max-width: 920px; }
main.pb-lesson .pb-stage img {
  width: min(100%,96px);
  height: 96px;
  object-fit: contain;
  margin-inline: auto;
}
/* One row is one situation→check, never a decorative showcase. */
main.pb-lesson #measurement .pb-check-map { max-width: 920px; padding: 26px; }
main.pb-lesson #measurement .pb-check-map h3 { margin-bottom: 14px; }
main.pb-lesson #measurement .pb-check-rows li {
  grid-template-columns: 48px minmax(0,1fr);
  gap: 16px;
  min-height: 0;
  margin: 0;
  padding-block: 16px;
  border-top: 1px solid var(--line);
  align-items: center;
}
main.pb-lesson #measurement .pb-check-rows img {
  width: 48px;
  height: 52px;
  max-height: none;
  object-fit: contain;
}
main.pb-lesson #measurement .pb-check-pair {
  grid-template-columns: minmax(160px,.9fr) 18px minmax(0,1.4fr);
  gap: 12px;
  align-items: baseline;
  padding: 0;
  border: 0;
  font-size: 17px;
  line-height: 1.5;
}
main.pb-lesson #measurement .pb-check-pair strong { font-weight: 700; }
main.pb-lesson #measurement .pb-check-arrow { color: var(--purple); }
@media (width < 700px) {
  main.pb-lesson .pb-hero-art { max-width: 320px; }
  main.pb-lesson .pb-workload img { width: min(100%,260px); }
  main.pb-lesson .pb-stage { grid-template-columns: 56px minmax(0,1fr); gap: 14px; }
  main.pb-lesson .pb-stage img { width: 56px; height: 56px; margin: 0; }
  main.pb-lesson .pb-stage-arrow { width: 56px; height: 18px; margin-block: 2px; }
  main.pb-lesson #measurement .pb-check-map { padding: 20px 16px; }
  main.pb-lesson #measurement .pb-check-rows li {
    grid-template-columns: 36px minmax(0,1fr);
    gap: 12px;
    padding-block: 14px;
    align-items: start;
  }
  main.pb-lesson #measurement .pb-check-rows img { width: 36px; height: 42px; }
  main.pb-lesson #measurement .pb-check-pair {
    grid-template-columns: 14px minmax(0,1fr);
    gap: 4px 6px;
    font-size: 16px;
    line-height: 1.5;
  }
  main.pb-lesson #measurement .pb-check-pair strong { grid-column: 1/-1; }
  main.pb-lesson #measurement .pb-check-arrow { line-height: 1.5; }
}
@media print {
  main.pb-lesson { background: #fff; color: #202024; }
  main.pb-lesson :is(.pb-formula,.pb-quote,.pb-task,.pb-chat) { background: #fff; }
  main.pb-lesson :is(.pb-check-rows li,.pb-stage,.pb-task,.pb-quote) { break-inside: avoid; }
  main.pb-lesson img[data-art-source] { filter: none; }
}
