.school-library, .school-training-tools, .school-problem-tools { color: #252b35; letter-spacing: 0; min-width: 0; }
.school-library { margin: 0 0 18px; padding: 18px 0 16px; border-bottom: 1px solid var(--school-line, #dfe3e8); }
.school-library-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.school-library-heading h1, .school-training-tools h1 { font-size: 22px; line-height: 1.4; font-weight: 600; margin: 0; }
.school-result-count { color: #78818d; font-size: 13px; }
.school-library-heading > .school-action-link { margin-left: auto; }
.school-course-tabs { display: flex; gap: 22px; overflow-x: auto; border-bottom: 1px solid #dfe3e8; margin-bottom: 16px; padding: 0; }
.school-course-tabs a { display: flex; align-items: center; gap: 7px; white-space: nowrap; min-height: 44px; padding: 0 0 10px; border-bottom: 3px solid transparent; color: #5a626f; font-size: 15px; text-decoration: none; }
.school-course-tabs a.active { color: #a52631; border-bottom-color: #a52631; font-weight: 600; }
.school-course-tabs small { font-size: 12px; color: #818995; font-weight: 400; }
.school-library-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.school-field { display: flex; flex-direction: column; min-width: 0; gap: 5px; margin: 0; flex: 1 1 150px; }
.school-field-label { font-size: 12px; line-height: 1.4; color: #687280; }
.school-field select, .school-field input { height: 40px; width: 100%; min-width: 0; margin: 0; padding: 0 32px 0 11px; border: 1px solid #cdd3dc; border-radius: 4px; color: #252b35; background-color: #fff; box-sizing: border-box; font: inherit; font-size: 14px; }
.school-field select { text-overflow: ellipsis; }
.school-field select:disabled { background-color: #eef0f3; color: #8a929c; }
.school-field select:focus-visible, .school-field input:focus-visible, .school-icon-control:focus-visible, .school-action-link:focus-visible, .school-course-tabs a:focus-visible { outline: 2px solid #a52631; outline-offset: 2px; }
.school-search-field { flex: 2 1 240px; }
.school-search-line { display: flex; gap: 6px; }
.school-search-line input { padding-right: 8px; }
.school-icon-control { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 40px; width: 40px; height: 40px; box-sizing: border-box; border: 1px solid #cdd3dc; border-radius: 4px; background: #fff; color: #596471; cursor: pointer; text-decoration: none !important; padding: 0; }
.school-icon-control .icon { font-size: 20px; line-height: 1; }
.school-search-line [type="submit"] { background: #a52631; color: #fff; border-color: #a52631; }
.school-icon-control:hover { border-color: #a52631; color: #a52631; }
.school-search-line [type="submit"]:hover { background: #8f202b; color: #fff; }
.school-icon-control:disabled { opacity: .35; cursor: default; }
.school-action-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; font-size: 14px; line-height: 1.4; color: #96303b; text-decoration: none; white-space: nowrap; }
.school-action-link:hover { color: #6d1d27; }
.school-extra-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; color: #687280; font-size: 13px; }
.school-native-search, .school-native-category, .school-student-edit-hidden, .school-empty-aside, .school-duplicate-tag { display: none !important; }
.columns.school-library-wide { width: 100%; }
.school-training-tools { position: sticky; top: var(--school-toolbar-top, 0px); z-index: 25; background: #f5f6f8; margin: 0 0 18px; padding: 6px 0 14px; border-bottom: 1px solid #dfe3e8; }
.school-cpp-training-tools { z-index: 101; }
.school-training-tools h1 { margin-bottom: 12px; font-size: 21px; }
.school-training-controls { display: flex; gap: 12px; align-items: flex-end; }
.school-training-controls .school-field { flex: 1 1 auto; }
.school-training-actions { display: flex; align-items: center; gap: 8px; }
.school-training-actions > .school-action-link { padding: 0 6px; }
.school-enrollment { margin: 0; }
button.school-enroll-button { display: inline-flex; gap: 6px; align-items: center; justify-content: center; margin: 0; min-height: 40px; padding: 0 12px; background: #a52631; color: #fff; border: 1px solid #a52631; border-radius: 4px; font-size: 14px; white-space: nowrap; }
button.school-enroll-button:hover { background: #8f202b; color: #fff; }
.training__section [data-heading] { scroll-margin-top: 185px; }
.school-problem-tools { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; padding: 0 0 12px; border-bottom: 1px solid #dfe3e8; }
.school-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #969eaa; }
.school-breadcrumbs .school-action-link { min-height: 28px; white-space: normal; font-size: 13px; }
.school-problem-actions { display: flex; align-items: center; gap: 8px; }
.school-problem-actions > .school-action-link:first-child { margin-right: auto; }
.school-prev .icon { transform: rotate(-90deg); }
.school-next .icon { transform: rotate(90deg); }
.school-submit-link { padding: 0 14px; min-height: 40px; background: #a52631; border-radius: 4px; color: white; }
.school-submit-link:hover { color: #fff; background: #8f202b; }
.school-stage-basic { --school-stage-color: #276749; --school-stage-bg: #edf5f0; }
.school-stage-consolidate { --school-stage-color: #285981; --school-stage-bg: #edf3f8; }
.school-stage-challenge { --school-stage-color: #96303b; --school-stage-bg: #f9eef0; }
.school-stage-badge { display: inline-block; margin-left: 8px; padding: 1px 6px; border: 1px solid color-mix(in srgb, var(--school-stage-color) 25%, transparent); border-radius: 3px; background: var(--school-stage-bg); color: var(--school-stage-color); font-size: 12px; line-height: 18px; font-weight: 400; vertical-align: middle; white-space: nowrap; }
.school-breadcrumbs .school-stage-badge { margin-left: 0; }
.school-stage-heading > th { padding: 9px 14px !important; background: var(--school-stage-bg) !important; color: var(--school-stage-color); border-left: 3px solid var(--school-stage-color); text-align: left; }
.school-stage-heading-inner { display: flex; align-items: center; gap: 12px; min-height: 20px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.school-stage-heading-inner small { color: inherit; font-size: 12px; font-weight: 400; }
html.theme--dark .school-library, html.theme--dark .school-training-tools, html.theme--dark .school-problem-tools { color: #e2e5e9; }
html.theme--dark .school-training-tools { background-color: #24262a; }
html.theme--dark .school-field select, html.theme--dark .school-field input, html.theme--dark .school-icon-control { background-color: #292c31; border-color: #555d66; color: #e2e5e9; }
html.theme--dark .school-stage-basic { --school-stage-color: #9ad1b2; --school-stage-bg: #21372c; }
html.theme--dark .school-stage-consolidate { --school-stage-color: #a4c9e9; --school-stage-bg: #233341; }
html.theme--dark .school-stage-challenge { --school-stage-color: #e9b1b9; --school-stage-bg: #402a30; }
@media (max-width: 1024px) {
  .school-cpp-progression .training__problems .col--tried,
  .school-cpp-progression .training__problems .col--difficulty { display: none; }
  .school-cpp-progression .training__problems .col--status { width: 52px; }
  .school-cpp-progression .training__problems .col--ac { width: 48px; }
}
@media (max-width: 768px) {
  .school-library { padding: 8px 0 12px; margin-bottom: 12px; }
  .school-library-heading { gap: 10px; margin-bottom: 8px; }
  .school-library-heading h1 { font-size: 20px; }
  .school-library-heading > .school-action-link { font-size: 13px; }
  .school-course-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-bottom: 12px; overflow: visible; }
  .school-course-tabs a { flex-direction: column; justify-content: center; gap: 3px; font-size: 13px; min-height: 56px; padding: 7px 0; white-space: normal; text-align: center; line-height: 1.4; }
  .school-course-tabs small { font-size: 11px; }
  .school-library-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .school-field { flex: none; }
  .school-field:first-child { grid-column: 1 / -1; }
  .school-search-field { grid-column: 1 / -1; }
  .school-contest-filters .school-sort-field { grid-column: 1 / -1; }
  .school-field select, .school-field input { height: 44px; font-size: 16px; }
  .school-icon-control { width: 44px; height: 44px; flex-basis: 44px; }
  .school-training-tools { margin-bottom: 12px; padding-bottom: 10px; }
  .school-training-tools h1 { font-size: 19px; margin-bottom: 8px; }
  .school-training-controls { flex-wrap: wrap; gap: 8px; }
  .school-training-controls .school-field { flex: 1 1 100%; }
  .school-training-actions { width: 100%; gap: 8px; }
  .school-enrollment { margin-left: auto; }
  button.school-enroll-button { min-height: 44px; }
  .training__section [data-heading] { scroll-margin-top: 245px; }
  .school-problem-actions { gap: 6px; }
  .school-action-link { font-size: 13px; }
  .school-submit-link { min-height: 44px; padding: 0 10px; }
}
