/* Biblioteca publică: stiluri izolate, servite direct, fără build. */
.dp.library { max-width: none; padding: 0 0 32px; color: #1f2a44; }
.library-header { display: flex; align-items: center; gap: 20px; padding: 8px 0 26px; }
.library-mark { display: grid; place-items: center; flex: 0 0 68px; height: 68px; background: #e8f1e8; border: 1.5px solid #b8cebb; border-radius: 18px 18px 18px 5px; color: #2f6b4f; transform: rotate(-4deg); }
.library-mark svg { width: 43px; height: 43px; }
.library-intro { flex: 1; min-width: 0; }
.library .library-intro h1 { font-size: clamp(1.85rem, 3.3vw, 2.55rem); margin: 0 0 6px; color: #1f2a44; }
.library-intro p { margin: 0; max-width: 64ch; color: #4b5878; font-size: 1rem; line-height: 1.55; }
.library a.library-account { flex-shrink: 0; display: inline-flex; align-items: center; gap: 9px; font-weight: 800; color: #2b6047; text-decoration: none; padding: 10px 0 10px 10px; }
.library-account span { font-size: 1.2rem; }
.library .library-filters { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.25fr) minmax(0,1.25fr) auto; gap: 16px; margin: 0; padding: 20px; background: #fff; border: 1.5px solid #ccd8cc; border-radius: 18px; box-shadow: 0 2px 0 #dfe7dc; }
.library .library-filters .dp-field { min-width: 0; gap: 7px; color: #405447; }
.library .dp-field select, .library .dp-field input { min-width: 0; width: 100%; height: 46px; padding: 10px 12px; border-color: #cbd6cf; border-radius: 10px; font-size: .95rem; }
.library-search-input { position: relative; display: flex; min-width: 0; }
.library-search-input svg { position: absolute; left: 12px; top: 13px; width: 20px; height: 20px; color: #758479; pointer-events: none; }
.library .library-search-input input { padding-left: 39px; }
.library .library-search-input input::placeholder { color: #758479; opacity: 1; font-weight: 500; }
.library .dp-btn.library-submit { background: #2f6b4f; color: #fff !important; min-height: 46px; border: 1.5px solid #245740; border-radius: 10px; box-shadow: 0 2px 0 #204b38; gap: 12px; white-space: nowrap; }
.library .dp-btn.library-submit:hover { background: #245740; }
.library .dp-btn--sm.library-submit { min-height: 36px; padding: 0 12px; font-size: .87rem; }
.library-results { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 20px 0 18px; }
.library .library-count { margin: 0; color: #586770; font-size: .94rem; flex-shrink: 0; }
.library-count b { color: #2f6b4f; font-size: 1.05rem; }
.library-active { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.library a.library-chip { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 5px 10px; border: 1px solid #c8d9ca; border-radius: 8px; background: #eef4ed; color: #2d5740; font-size: .85rem; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.library-chip span { flex-shrink: 0; font-size: 1.15rem; line-height: 1; }
.library a.library-chip:hover { background: #deeadc; }
.library a.library-reset { padding: 6px 2px; font-size: .86rem; font-weight: 700; color: #566174; text-underline-offset: 3px; }
.library-empty { display: flex; align-items: flex-start; gap: 24px; padding: 32px; background: rgba(255,253,245,.97); border: 1.5px dashed #bdcbbd; border-radius: 18px; }
.library-empty-icon { flex: 0 0 70px; height: 70px; display: grid; place-items: center; background: #f5edcb; color: #70824c; border-radius: 50%; }
.library-empty-icon svg { width: 45px; height: 45px; }
.library .library-empty h2 { margin: 0 0 8px; font-size: clamp(1.3rem, 2vw, 1.55rem); color: #344936; }
.library-empty p { margin: 0 0 18px; max-width: 66ch; color: #5a685e; line-height: 1.6; }
.library-empty p:last-child { margin-bottom: 0; }
.library .library-publish { margin: 18px 0 0; font-size: .9rem; }
.library .dp-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%,280px),1fr)); gap: 20px; }
.library .dp-lesson { border-color: #cfdacf; border-radius: 16px; box-shadow: 0 2px 0 #dfe7dc; }
.library .dp-lesson__img { background: #edf3e9; border-bottom: 1px solid #dce6d8; }
.library-preview { display: grid; justify-items: center; gap: 12px; color: #5d7a5e; font-weight: 700; }
.library-preview svg { width: 56px; height: 56px; }
.library .dp-lesson__body { padding: 18px; gap: 12px; }
.library .dp-lesson__title { margin: 0; font-size: 1.3rem; line-height: 1.25; overflow-wrap: anywhere; }
.library .dp-lesson__title a { color: #243b2e; text-decoration: none; }
.library .dp-lesson__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.library .dp-badge { background: #e9f3e8; color: #366240; font-weight: 700; padding: 4px 9px; }
.library .dp-badge--off { background: #f5f0df; color: #716443; }
.library .dp-lesson__foot { padding-top: 6px; color: #657168; }
.library-lesson-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid #e5ebe2; padding-top: 12px; }
.library-lesson-actions form { margin: 0; }
.library a.library-open { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: .92rem; text-decoration: none; color: #2f6b4f; padding: 6px 0; }
.library .dp-pager { flex-wrap: wrap; align-items: center; }
.library a:focus-visible, .library button:focus-visible, .library input:focus-visible, .library select:focus-visible { outline: 3px solid #eab308; outline-offset: 3px; }
@media (max-width: 960px) {
  .library-header { display: grid; grid-template-columns: 68px minmax(0,1fr); gap: 12px 14px; }
  .library a.library-account { grid-column: 2; justify-self: start; margin-left: 0; padding: 0; }
  .library .library-filters { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .library .library-search { grid-column: 1; }
}
@media (max-width: 560px) {
  .library-header { grid-template-columns: 50px minmax(0,1fr); align-items: flex-start; padding-bottom: 20px; }
  .library-mark { flex-basis: 50px; height: 50px; border-radius: 13px 13px 13px 4px; }
  .library-mark svg { width: 32px; height: 32px; }
  .library-intro p { font-size: .94rem; }
  .library a.library-account { font-size: .94rem; }
  .library .library-filters { grid-template-columns: minmax(0,1fr); gap: 14px; padding: 17px; }
  .library .library-search { grid-column: auto; }
  .library-results { gap: 10px; margin: 18px 0; }
  .library-active { width: 100%; }
  .library-empty { padding: 24px 20px; gap: 18px; flex-direction: column; }
  .library-empty-icon { flex-basis: auto; width: 58px; height: 58px; }
  .library-empty-icon svg { width: 38px; height: 38px; }
  .library-empty .dp-btn { width: 100%; }
}
