/* Biblioteczka - jedno kliknięcie, niski pasek nad H1. */
.lektum-library-save{box-sizing:border-box;width:100%;margin:3px 0 10px;padding:4px 10px;border:1px solid #e5d7c5;border-radius:9px;background:#fbf7f0;color:#60391f;text-align:center;line-height:1.3}
.lektum-library-save *,.lektum-library-page *{box-sizing:border-box}
.lektum-library-save__row{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;min-height:30px}
.lektum-library-save__open,.lektum-library-save__link{display:inline-flex;align-items:center;justify-content:center;min-height:28px;font:700 12px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif;border-radius:999px;padding:5px 12px;white-space:nowrap}
.lektum-library-save__open{color:#fff;background:#60391f;border:1px solid #60391f;cursor:pointer}
.lektum-library-save__open:hover:not(:disabled),.lektum-library-save__open:focus-visible{background:#805034}
.lektum-library-save__open.is-saved{color:#60391f;background:#f0e3d0;border-color:#cbb49c;cursor:default}
.lektum-library-save__open:disabled:not(.is-saved){opacity:.75;cursor:wait}
.lektum-library-save__link{color:#60391f;background:#fff;border:1px solid #d3b99b;text-decoration:none}
.lektum-library-save__link:hover,.lektum-library-save__link:focus-visible{background:#f2e2cc}
.lektum-library-save__status{margin:1px auto 0;font-size:12px;line-height:1.4;color:#8a3c26}
.lektum-library-save__status:empty{display:none}
@media(max-width:420px){.lektum-library-save{padding:4px 5px;margin-bottom:8px}.lektum-library-save__row{gap:5px}.lektum-library-save__open,.lektum-library-save__link{font-size:11px;padding:5px 7px;min-height:28px}}
/* Nowa strona biblioteczki. */
.lektum-library-page{max-width:1100px;margin:0 auto;padding-bottom:45px}
.lektum-library-page .bd_lead{max-width:780px}
.lektum-library-page__tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 12px}
.lektum-library-page__tabs button{font:inherit;font-size:14px;font-weight:700;padding:10px 15px;border:1px solid #d7c0a4;background:#fff;color:#60391f;border-radius:100px;cursor:pointer}
.lektum-library-page__tabs button[aria-pressed="true"]{background:#60391f;color:#fff;border-color:#60391f}
.lektum-library-page__tabs button:hover,.lektum-library-page__tabs button:focus-visible{outline-offset:2px;box-shadow:0 0 0 2px #eedac0}
.lektum-library-page__bar{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:10px;color:#72553e;font-size:13px}
.lektum-library-page__clear{font:inherit;font-size:12px;padding:7px 10px;background:#fff;border:1px solid #d7c0a4;color:#60391f;border-radius:8px;cursor:pointer}
.lektum-library-page__clear[hidden]{display:none!important}
.lektum-library-page__items{display:grid;gap:10px}
.lektum-library-card{background:#fbf7f0;border:1px solid #e1d0b9;border-radius:12px;padding:14px 16px;display:flex;align-items:center;gap:18px;justify-content:space-between}
.lektum-library-card__content{min-width:0;display:grid;gap:4px}
.lektum-library-card__title{font-size:16px;font-weight:700;line-height:1.4;color:#60391f;overflow-wrap:anywhere;text-decoration:none}
.lektum-library-card__title:hover{text-decoration:underline}
.lektum-library-card__meta{font-size:12px;color:#88684f}
.lektum-library-card__remove{flex-shrink:0;padding:8px 11px;font:inherit;font-size:12px;font-weight:650;border:1px solid #cdb69c;border-radius:8px;background:#fff;color:#784b2c;cursor:pointer}
.lektum-library-card__remove:hover{background:#f2e2cc}
.lektum-library-card__remove:disabled{opacity:.6}
.lektum-library-page__empty{padding:22px;background:#fbf7f0;border:1px dashed #d6bea0;border-radius:12px;color:#75553b;font-size:14px;line-height:1.5}
.lektum-library-page__note{font-size:13px;line-height:1.6;color:#71583f;margin-top:20px;max-width:850px}
@media(max-width:650px){.lektum-library-card{align-items:flex-start;flex-direction:column;gap:10px}.lektum-library-page__tabs button{font-size:12px;padding:9px 11px}.lektum-library-page__tabs{gap:6px}.lektum-library-card__remove{align-self:flex-end}}

/* Zarządzanie kategoriami odbywa się w biblioteczce, nie podczas zapisywania. */
.lektum-library-card__actions{display:flex;justify-content:flex-end;align-items:center;gap:7px;flex-wrap:wrap}
.lektum-library-card__tag{font:inherit;font-size:12px;padding:7px 10px;border:1px solid #d7c0a4;border-radius:8px;background:#fff;color:#60391f;cursor:pointer}
.lektum-library-card__tag[aria-pressed="true"]{background:#e8d5ba;border-color:#b6936c}
.lektum-library-card__tag:disabled{opacity:.6;cursor:wait}
