/* Scoped to the existing library; the reading interface is untouched. */
.view-library .vle-entry {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .15s;
}
.view-library .vle-entry:hover { border-color: var(--line-2); }
.view-library .vle-entry > .lib-card {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  flex: 1 0 auto;
}
.view-library .vle-entry > .lib-card:hover { transform: none; }
.view-library .lib-cover img.vle-cover-image { object-fit: contain; background: #fff; }
.view-library .vle-entry > .lib-card:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.view-library .vle-notes {
  border-top: 1px solid var(--line);
  padding: 12px 14px 14px;
  background: var(--panel-2);
  cursor: auto;
}
.view-library .vle-label {
  color: var(--green-2);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 5px;
}
.view-library .vle-annotation {
  margin: 0;
  color: var(--ink);
  font-size: .8125rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  user-select: text;
}
.view-library .vle-credit {
  display: block;
  font-size: .75rem;
  line-height: 1.4;
  margin-top: 10px;
  color: var(--muted);
}
.view-library a.vle-credit { text-decoration: underline; text-underline-offset: 3px; }
.view-library a.vle-credit:hover { color: var(--green-2); }
.view-library .vle-warning {
  background: #fff4dc;
  border-left: 3px solid #b77512;
  color: #6c460b;
  padding: 8px 9px;
  margin: 0 0 10px;
  font-size: .75rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
[data-theme="dark"] .view-library .vle-warning {
  background: #392c13;
  color: #f4cf87;
  border-left-color: #e2ab4f;
}
.view-library .vle-cover-label {
  position: absolute;
  top: 32px;
  left: 7px;
  right: 7px;
  width: max-content;
  max-width: calc(100% - 14px);
  border-radius: 4px;
  background: rgba(5, 24, 22, .88);
  color: #fff;
  padding: 3px 6px;
  font-size: .6875rem;
  line-height: 1.2;
}
@media (prefers-reduced-motion: reduce) { .view-library .vle-entry { transition: none; } }
