.library-type-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));
  gap:12px;
}
.library-choice{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:76px;
  padding:14px 16px;
  border:1px solid #2b3830;
  border-radius:12px;
  background:#101512;
  color:#f3f7f4;
  font:650 14px/1.35 "DM Sans",system-ui,sans-serif;
  text-align:left;
  text-decoration:none;
  cursor:pointer;
  transition:border-color .18s ease,background-color .18s ease,transform .15s ease;
}
.library-choice strong{display:block;font-weight:700}
.library-choice small{display:block;margin-top:3px;color:#9cb2a4;font-size:12px;font-weight:500}
.library-choice:hover:not(:disabled){background:#152019;border-color:#4cc87f}
.library-choice[aria-current="page"]{background:linear-gradient(135deg,#132e1e 0%,#0e1e15 100%);border-color:#50e48e;box-shadow:0 0 0 1px #50e48e33}
.library-choice:disabled{border:1px dashed #2c312e;background:#0a0c0b;color:#8b928e;cursor:not-allowed}
.library-choice:disabled small{color:#727975}
.library-pdf-actions{display:flex;flex-wrap:wrap;gap:10px}
.library-pdf-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  box-sizing:border-box;
  min-height:44px;
  padding:9px 15px;
  border:1px solid #dce9e2;
  border-radius:9px;
  background:#f7faf8;
  color:#13281b;
  font:700 14px/1.25 "DM Sans",system-ui,sans-serif;
  text-align:center;
  text-decoration:none;
  cursor:pointer;
  transition:filter .16s ease,border-color .16s ease,transform .14s ease;
}
.library-pdf-button[data-action="download"]{background:#b9dbff;color:#113350;border-color:#8fc3f2}
.library-pdf-button:hover:not(:disabled){border-color:#5eb880;filter:brightness(1.05)}
.library-pdf-button:active:not(:disabled){transform:scale(.985)}
.library-pdf-button:disabled{opacity:.65;cursor:wait}
.library-pdf-button svg,.library-choice svg{flex:none}
.library-pdf-button:focus-visible,.library-choice:focus-visible{outline:3px solid #6bea9d;outline-offset:3px}
@media(max-width:540px){
  .library-pdf-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .library-pdf-button{padding-inline:8px;font-size:13px;width:100%}
}
