.account-library { max-width: 860px; padding: 32px 0; border-top: 1px solid var(--line); }
.library-catalogue-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 16px 0; }
.library-catalogue-tools a { display: inline-flex; align-items: center; min-height: 44px; }
.library-catalogue-tools p { margin: 0; color: var(--muted); }
.library-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.library-heading h2 { margin: 0; font-size: 32px; letter-spacing: -.04em; }
.library-heading a { display: inline-flex; align-items: center; min-height: 44px; }
.library-games { padding: 0; margin: 24px 0; list-style: none; }
.library-game { display: grid; grid-template-columns: 128px minmax(0,1fr) auto; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.library-cover { aspect-ratio: 184 / 86; overflow: hidden; border-radius: var(--control-radius); background: var(--wash); }
.library-cover img { width: 100%; height: 100%; object-fit: cover; }
.library-game h3 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.library-game-info p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.library-toggle { min-height: 44px; }
.library-toggle[aria-pressed="true"] { background: var(--wash); }
.library-bookmark { display: none; }
.card > .library-toggle { position: absolute; top: 4px; right: 4px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); }
.card > .library-toggle::before { content: ""; position: absolute; inset: 6px; border-radius: var(--control-radius); background: var(--surface); }
.card > .library-toggle:hover::before { background: var(--wash); }
.card > .library-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
.card > .library-toggle .library-toggle-label { display: none; }
.card > .library-toggle .library-bookmark { position: relative; display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.card > .library-toggle[aria-pressed="true"] .library-bookmark { fill: currentColor; }
.library-search { display: grid; gap: 8px; }
.library-search > div { display: flex; gap: 8px; }
.library-search input { flex: 1; min-width: 0; }
#library-status[data-state="error"] { color: var(--error); }
@media (max-width: 600px) {
  .library-game { grid-template-columns: 96px minmax(0,1fr); }
  .library-game > button { grid-column: 1 / -1; }
  .library-search > div { flex-direction: column; }
  .library-heading { flex-wrap: wrap; }
}
