.tb-lessons { padding: 8px 0 56px; }
.tb-lessons-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 16px; }
.tb-lessons-head h2 { margin: 0; font-size: 24px; }
.tb-lessons-head p { margin: 0; color: #5b6570; font-size: 15px; }
.tb-lesson-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #e3e6ea; }
.tb-lesson { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 16px; align-items: center; padding: 0 16px; border-bottom: 1px solid #e3e6ea; transition: background-color .12s ease; }
.tb-lesson.is-selected { background: #fff4ed; }
.tb-lesson-pick { display: flex; align-items: flex-start; gap: 16px; min-width: 0; padding: 22px 0; cursor: pointer; }
.tb-lessons input[type="checkbox"] { appearance: auto; flex: 0 0 22px; width: 22px; height: 22px; margin: 2px 0 0; accent-color: #ff5100; cursor: pointer; }
.tb-lessons input:focus-visible, .tb-lessons select:focus-visible { outline: 2px solid #252a30; outline-offset: 4px; }
.tb-lesson-access { color: #5b6570; font-size: 14px; }
.tb-lesson-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; }
.tb-lesson-main b { font-size: 18px; }
.tb-period { font-size: 13px; color: #2563eb; }
.tb-lesson-title { flex-basis: 100%; color: #242a30; font-size: 16px; word-break: keep-all; overflow-wrap: anywhere; }
.tb-lesson-pages { flex-basis: 100%; color: #6b7480; font-size: 13px; }
.tb-lesson-result { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 0 0 18px 38px; }
.tb-lesson-result[hidden] { display: none; }
.tb-download { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: #252a30; text-decoration: underline; text-underline-offset: 4px; }
.tb-selection-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 16px; }
.tb-select-all { display: flex; align-items: center; gap: 16px; min-height: 44px; font-size: 16px; cursor: pointer; }
.tb-selection-head strong { font-size: 15px; color: #252a30; }
.tb-selection-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; padding: 24px; margin-top: 20px; background: #f7f7f8; border: 1px solid #e3e6ea; border-radius: 16px; }
.tb-selection-actions .tb-tier-select { max-width: 440px; }
.tb-selection-submit { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; }
.tb-selection-submit .im-btn { min-height: 48px; width: 100%; font-size: 16px; justify-content: center; white-space: nowrap; }
.tb-selection-submit .im-btn:disabled { background: #e8e8eb; border-color: #e8e8eb; color: #656a72; cursor: not-allowed; opacity: 1; }
.tb-selection-submit p { margin: 0; font-size: 14px; color: #5b6570; word-break: keep-all; }
.tb-status { margin: 16px 0 0; color: #252a30; font-size: 15px; white-space: pre-line; }
.tb-usage { margin: 0; color: #5b6570; font-size: 14px; }
.tb-error { margin: 0; color: #b42318; font-size: 14px; }
.tb-note { margin: 14px 0 0; color: #6b7480; font-size: 13px; }
.tb-parts { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; }
.tb-parts li { background: #fff; border: 1px solid #e3e6ea; border-radius: 12px; padding: 18px; }
.tb-parts b { display: block; font-size: 17px; margin-bottom: 6px; }
.tb-parts span { color: #5b6570; font-size: 14px; word-break: keep-all; }
@media (max-width: 720px) {
  .tb-lesson { grid-template-columns: minmax(0, 1fr); }
  .tb-lesson-access { padding: 0 0 16px 38px; }
  .tb-selection-actions { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px; }
  .tb-parts { grid-template-columns: minmax(0, 1fr); }
}
.tb-samples { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 720px) { .tb-samples { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
