/* Career OS™ V11.13 — glass finish, smooth carousel, responsive reading. */
:root { --ed-navy:#0D2030; --ed-teal:#60c6c0; --ed-orange:#ee9656; }
body.library-page { background:#0D2030!important; }
/* Only desktop retains the sticky global header. Mobile/tablet get full reading height. */
@media (max-width:1023px) {
  body.library-page .core-header {position:relative!important;top:auto!important;}
  body.library-page .core-header-panel {position:relative!important;}
}
@media (min-width:1024px){body.library-page .core-header{position:sticky!important;top:0!important}}
/* Exact orange mark, without JPEG black matte. */
body.library-page .core-orange-mark,
body.library-page .core-north-star {background:transparent!important;box-shadow:none!important}
body.library-page .core-arrow-artwork {display:block;width:100%;height:100%;object-fit:contain;background:transparent!important;mix-blend-mode:normal!important;filter:drop-shadow(0 2px 7px rgba(236,139,75,.26))}
/* Return the original V9 GPU coverflow timing. Keep the already enlarged stage/cover dimensions. */
body.library-page .shelf3d-book {
  transition:transform 680ms cubic-bezier(.2,.74,.2,1),opacity 360ms ease!important;
  backface-visibility:hidden; -webkit-backface-visibility:hidden;
  will-change:transform,opacity; filter:none!important;
}
body.library-page .shelf3d-book.is-selected { filter:drop-shadow(0 14px 21px rgba(0,0,0,.32))!important; }
body.library-page .shelf3d-stage{isolation:isolate;contain:layout;perspective:1150px;}
body.library-page .shelf3d-art{image-rendering:auto;-webkit-transform:translateZ(0);transform:translateZ(0)}
body.library-page .shelf3d-volume {transition:transform 680ms cubic-bezier(.2,.74,.2,1)!important}
body.library-page .shelf3d-halo {animation:shelf3d-glow 14s ease-in-out infinite alternate}
/* Glossy convex glass: highlight occupies the top third, dark optical depth below it. */
body.library-page :is(.shelf3d-read,.shelf3d-flip,.shelf3d-arrow,.shelf3d-listen,.shelf3d-request,.audio-controls-row button,.audio-book-tab,.audio-track,.glass-access-link,.btn,.pill,.reader-dock button,.reader-fab,.reader-toolbar button,.core-search-button,.library-return-fixed,.library-request-form button,.dialog-close,.core-diagnosis-cta,.premium-glass-orange,.shelf3d-actions a),
body:not(.library-page) :is(.glass-btn,.scroll-reader-control button,.auto-scroll-launch) {
  position:relative!important;isolation:isolate;
  border-radius:999px!important;
  border:1px solid rgba(173,251,240,.67)!important;border-top-color:rgba(255,255,255,.94)!important;
  color:#f7ffff!important;
  background:linear-gradient(180deg,rgba(236,255,253,.69) 0%,rgba(163,239,229,.5) 13%,rgba(66,176,175,.66) 38%,rgba(18,101,117,.78) 66%,rgba(7,49,70,.95) 100%)!important;
  box-shadow:inset 0 2px 1px rgba(255,255,255,.77),inset 0 -12px 22px rgba(0,18,37,.34),inset 1px 0 rgba(234,255,253,.23),inset -1px 0 rgba(234,255,253,.14),0 12px 28px -11px rgba(0,13,31,.66),0 0 22px -11px rgba(74,231,219,.46)!important;
  -webkit-backdrop-filter:blur(26px) saturate(168%)!important;backdrop-filter:blur(26px) saturate(168%)!important;
  text-shadow:0 1px 1px rgba(0,20,35,.45);
  transition:box-shadow .2s ease,transform .2s ease!important;
}
body.library-page :is(.shelf3d-read,.shelf3d-flip,.shelf3d-arrow,.shelf3d-listen,.shelf3d-request,.audio-controls-row button,.audio-book-tab,.audio-track,.glass-access-link,.btn,.pill,.reader-dock button,.reader-fab,.reader-toolbar button,.core-search-button,.library-return-fixed,.library-request-form button,.dialog-close,.core-diagnosis-cta,.premium-glass-orange,.shelf3d-actions a)::before,
body:not(.library-page) :is(.glass-btn,.scroll-reader-control button,.auto-scroll-launch)::before {
 content:'';position:absolute;pointer-events:none;inset:2px 5% auto;height:41%;border-radius:999px;
 background:linear-gradient(180deg,rgba(255,255,255,.62),rgba(239,255,250,.2) 43%,transparent 100%);
 z-index:-1;
}
body.library-page :is(.shelf3d-read,.core-diagnosis-cta,.btn-primary,.premium-glass-orange,.library-request-form button[type=submit]),
body:not(.library-page) :is(.glass-btn.primary) {
 color:#122c3b!important;text-shadow:0 1px rgba(255,249,230,.45);
 border-color:rgba(255,226,186,.83)!important;border-top-color:#fff6dc!important;
 background:linear-gradient(180deg,rgba(255,249,225,.97),rgba(255,217,160,.97) 17%,rgba(248,159,100,.95) 48%,rgba(210,108,55,.97) 72%,rgba(139,64,34,.98) 100%)!important;
 box-shadow:inset 0 2px 1px #fffae7,inset 0 -10px 18px rgba(120,57,25,.25),0 13px 28px rgba(140,65,25,.25)!important;
}
body.library-page :is(.shelf3d-book,.read-zone,.shelf3d-book:hover)::before{display:none!important}
/* Home arrow remains untouched by generic button cosmetics. */
body.library-page .shelf3d-book {background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;backdrop-filter:none!important}
@media(prefers-reduced-motion:reduce){body.library-page .shelf3d-book{transition:none!important}}

/* Original V9 navigation dots, not glossy button pills. */
body.library-page .shelf3d-dot{background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important}
body.library-page .shelf3d-dot::before{display:block!important;width:8px;height:8px;background:#638b95;border-radius:999px;transition:width .35s ease,background .35s ease}
body.library-page .shelf3d-dot.is-current::before{width:26px;background:#8ff1e0}

/* Draw the V9 carousel indicators, not glossy green dots. */
body.library-page .shelf3d-dot.is-current{background:transparent!important;border:0!important;box-shadow:none!important}
/* Avoid repainting large cover textures through GPU filter effects on each click. */
body.library-page .shelf3d-book.is-selected{filter:none!important}
