/* Shared online/offline library. All colors come from the approved CI aliases. */
.planiq-library-dialog :is(.session-library-shell,.library-shell) { display:grid; grid-template-columns:minmax(0,1fr); box-shadow:none; }
.planiq-library-dialog .dialog-heading h2 { overflow-wrap:anywhere; }
.planiq-library-dialog :is(.library-intro,.supporting) { margin:0; }
.planiq-library-dialog :is(.library-filters,.session-library-filters) { display:grid; align-items:end; }
.planiq-library-dialog :is(.library-filters,.session-library-filters) label { min-width:0; }
.planiq-library-dialog :is(.archive-filter,.check-field) { grid-column:auto; }
.planiq-library-dialog .planiq-library-view { display:grid; gap:0; margin:0; min-width:0; border:1px solid var(--fliq8-divider); border-radius:8px; background:var(--fliq8-surface); }
.pl-library-items,.pl-library-detail { min-width:0; scrollbar-gutter:stable; }
html .pl-library-choice:hover { background:var(--fliq8-muted); color:var(--fliq8-text); }
.pl-library-meta { display:flex; flex-wrap:wrap; align-items:center; font-weight:400; font-variant-numeric:tabular-nums; }
.pl-library-heading { justify-content:space-between; align-items:start; }


.pl-library-more { min-width:0; }
.pl-library-menu { width:max-content; }
html .pl-library-menu .button { width:100%; text-align:left; justify-content:flex-start; box-shadow:none; }
html .pl-library-menu .danger { margin-top:8px; color:var(--fliq8-danger); border-color:var(--fliq8-danger); }





.pl-library-exercises p { margin:0; padding:12px 0; white-space:pre-wrap; font-size:16px; line-height:1.6; }
.pl-library-exercises p + p { border-top:1px solid var(--fliq8-divider); }
.pl-library-footer { grid-column:1/-1; bottom:0; z-index:2; }
.pl-library-footer p { margin:0; font-size:14px; }
.pl-library-footer .button { flex-shrink:0; max-width:100%; }
.planiq-library-view :is(p,strong,h3,span,button,summary) { overflow-wrap:anywhere; }
.pl-library-empty { grid-column:1/-1; padding:32px; margin:0; color:var(--fliq8-secondary); }
@media(max-width:1100px) {   }
@media(max-width:767px) {
  .planiq-library-dialog .dialog-heading h2 { hyphens:auto; }
  .planiq-library-dialog:has(.is-detail) :is(.library-filters,.session-library-filters,.library-intro,.session-library-shell > .supporting) { display:none; }
  .planiq-library-dialog :is(.library-filters,.session-library-filters) { grid-template-columns:1fr; }
  .pl-library-items,.pl-library-detail { border:0; }
  .planiq-library-view:not(.is-detail) :is(.pl-library-detail,.pl-library-footer),.planiq-library-view.is-detail .pl-library-items { display:none; }
  html .pl-library-back { margin-bottom:16px; }
  .pl-library-footer { flex-direction:column; align-items:stretch; padding:16px; padding-bottom:max(16px,env(safe-area-inset-bottom)); }
  .pl-library-footer .button { width:100%; }
  .pl-library-heading { flex-wrap:wrap; }
  .pl-library-menu { margin-top:4px; }
}
