.edition-library { max-width: 760px; padding-bottom: 48px; }
.library-nav { display: flex; justify-content: space-between; gap: 12px; }
.library-nav button, #eveningLibrary { min-height: 44px; }
#eveningLibrary { float: right; }
.library-heading { padding: clamp(20px,5vw,44px) 0 16px; }
.library-heading h1 { margin: 0 0 12px; font: normal clamp(2.4rem,7vw,4.25rem)/1.04 Georgia,serif; letter-spacing: -.045em; }
.library-heading p { max-width: 44ch; color: var(--muted); line-height: 1.5; }
.library-search { max-width: 32rem; }
.library-count { margin: 22px 0 8px; color: var(--muted); font-size: .875rem; }
.library-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.library-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 15px 2px; min-height: 70px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); background: transparent; text-align: left; }
.library-row strong { display: block; margin: 4px 0; font: normal clamp(1.3rem,3vw,1.65rem)/1.15 Georgia,serif; }
.library-row small { display: block; color: var(--muted); font-size: .81rem; }
.library-arrow { color: var(--green); font-size: 1.25rem; }
#libraryBasket { margin-top: 18px; }
.edition-picker { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; }
.edition-choice { padding: 7px 2px; min-height: 48px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: clamp(.74rem,2.7vw,.94rem); line-height: 1.22; }
.edition-choice span { display: block; font-size: .72rem; }
.edition-choice[aria-pressed="true"] { color: white; background: var(--green); border-color: var(--green); font-weight: 650; }
.edition-reference { line-height: 1.5; }
.edition-reference p { margin: 0; }
.edition-reference p + p { margin-top: 6px; font-size: .875rem; }
.edition-reference a { color: var(--green); overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: .15em; }
.edition-saved { margin: 0; font-weight: 650; color: var(--green); }

.library-heading { display:grid; grid-template-columns:minmax(0,1fr) clamp(78px,22vw,160px); gap:clamp(12px,3vw,26px); align-items:center; }
#libraryPhoto { width:100%; height:auto; aspect-ratio:1; object-fit:cover; border-radius:4px; }
.library-selected { padding-top:4px; font-weight:650; }
@media (max-width: 370px) { .library-heading h1 { font-size:2.05rem; } }
