.gift-home{margin:24px auto;padding:24px;max-width:1240px;min-width:0;border:1px solid #dbe4ee;border-radius:18px;background:#fff;color:#172335}
.gift-home h2,.gift-page h2{font-size:22px;line-height:1.45;margin:0 0 12px;overflow-wrap:anywhere}.gift-home p{line-height:1.7;color:#43566f}.gift-home .os-primary{display:inline-flex;max-width:100%;white-space:normal;text-align:center}
.gift-page .hub-books{padding-block:28px}.gift-page .library-book{min-width:0}.gift-page .library-book h2{margin-top:16px;font-size:18px}.gift-page .library-book p{line-height:1.7;overflow-wrap:anywhere}.gift-page .library-book-grid{grid-template-columns:minmax(0,1fr);gap:28px}.gift-page .library-book-cover{max-width:220px}
.gift-offer{border-top:1px solid #dbe4ee;padding-top:28px}.gift-actions,.hub-access-offer{display:flex;flex-wrap:wrap;align-items:center;gap:16px}.gift-actions a,.hub-access-offer a{max-width:100%;white-space:normal;text-align:center}
#member-notifications{display:inline-flex;flex:0 0 44px;align-items:center;position:relative;z-index:50}.app-window-bar #member-notifications{margin-left:auto}.app-window-bar .window-title{min-width:0;overflow:hidden;text-overflow:ellipsis}.app-window-bar #window-expand{flex-shrink:0}
@media(min-width:600px){.gift-page .library-book-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1000px){.gift-page .library-book-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:599px){.os-header .os-brand{min-width:0;flex-shrink:1}.os-header .brand-lockup strong{overflow-wrap:anywhere}.os-header nav{gap:4px}.os-header #member-notifications{flex-basis:44px}.gift-home{margin-inline:12px;padding:20px}.app-window-bar{gap:6px}}
/* Keep the notification panel anchored to the viewport, including the PDF reader. */
.app-window-bar{backdrop-filter:none;-webkit-backdrop-filter:none}
body.reader-open .app-window-bar{display:flex;background:#fff}

/* Reader compatibility surface inside the normal website header. */
body.codex-library-view{background:#111113;color:#eee}
body.codex-library-view :is(.os-header,.platform-section-nav,.os-dock,.os-desktop,#library-campaign){display:none!important}
body.codex-library-view #app-window{position:fixed;inset:0;width:100%;max-width:none;height:100dvh;max-height:none;margin:0;border:0;border-radius:0;box-shadow:none;transform:none;background:#111113}
body.codex-library-view :is(.app-window-bar,.reader-apply){display:none!important}
body.codex-library-view :is(#window-expand,#member-notifications){display:none!important}
body.codex-library-view :is(.aios-hub,.library-page,.gift-page){background:#111113;color:#eee}
body.codex-library-view :is(.gift-page p,.hub-heading p,.library-book p){color:#c4c4cb}
body.codex-library-view .library-button{background:#eee;color:#111!important;border-color:#eee}
body.codex-library-view :is(.hub-text-link,.hub-footer a,.hub-refresh){color:#eee}
body.codex-library-view .window-content{min-height:0;flex:1;overflow:auto;background:#111113}

body.codex-library-view :is(.hub-heading h1,.gift-page .library-book,.gift-page .library-book h2){color:#f3f3f5}
body.codex-library-view:not(.reader-open) :is(.library-status,.library-status h1){color:#eee}
/* Keep catalog and PDF page colors together for readable member materials. */
body.codex-library-view .library-layout :is(.library-book p,.library-button){color:#263347}
body.codex-library-view .library-layout .library-button{background:#eee;color:#111!important}
