/* View: Arkusz lekcji (openLesson() in js/flows/lesson.js) — mockup #lesson-details.
   Hero (monogram, name in the display face, close) → fact pills → Status chips + status line → price with "zł"
   → "Poprzednio" note on the student hue → notes fields → links. The sheet body is .flush; sections carry the gutter.
   The "Nowa lekcja" form uses only shared fields (durationPicker, .chip-row, .input-suffix in components/fields.css). */
@layer views {
.sheet-body.flush .lesson-hero,
.sheet-body.flush .lesson-meta,
.sheet-body.flush .lesson-section { padding-left: 20px; padding-right: 20px; }

/* ---- hero ---- */
.lesson-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding-top: 14px; padding-bottom: 12px; }
.lesson-hero-text { min-width: 0; }
.lesson-hero-name {
  font-family: var(--font-display); font-weight: var(--w-display); font-size: var(--fs-h2); line-height: 1.15;
  letter-spacing: var(--ls-display); font-variation-settings: var(--fvs-display); overflow-wrap: anywhere;
}
.lesson-hero-sub { color: var(--ink-2); font-size: var(--fs-caption); }
.lesson-hero .btn-icon { align-self: start; margin: -4px -10px 0 0; color: var(--ink-2); }
.lesson-meta { margin-bottom: 18px; }

/* ---- status ---- */
.lesson-section { margin-bottom: 8px; }
.lesson-section:last-child { padding-bottom: 12px; }
.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.status-btn { width: 100%; min-height: 44px; }
.status-btn .ico { flex: none; }
.lesson-status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 10px; }
.lesson-status-line .link-btn { min-height: 44px; }

/* ---- "Poprzednio": a note on the student hue ---- */
.prep {
  display: flex; flex-direction: column; gap: 8px; margin: 4px 0 14px; padding: 12px 14px;
  background: var(--hue-soft); border-radius: var(--r-ctl); box-shadow: inset 3px 0 0 var(--hue);
  font-size: var(--fs-caption); color: var(--ink-2); line-height: 1.4;
}
.prep b { color: var(--ink); font-weight: 600; }
.prep-line { display: flex; gap: 8px; }
.prep-line > .ico { flex: none; margin-top: 2px; color: var(--ink-3); }
.prep-note { white-space: pre-wrap; }
.prep-hw { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.prep-hw input { flex: none; width: 20px; height: 20px; accent-color: var(--accent); }

/* ---- mood + links ---- */
.mood-group { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.mood-group .chip-radio span { width: 100%; padding: 0; }
.lesson-links { display: flex; flex-wrap: wrap; gap: 8px; }
.lesson-links:empty { display: none; }

@media (max-width: 380px) {
  .sheet-body.flush .lesson-hero,
  .sheet-body.flush .lesson-meta,
  .sheet-body.flush .lesson-section { padding-left: 16px; padding-right: 16px; }
  .status-btn { padding: 0 8px; }
}
@media (min-width: 761px) { .status-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
}
