.focus-preview-toggle { cursor: pointer; border: 1px solid #d9d9cf; border-radius: 999px; background: #fff; padding: 10px 16px; font: inherit; color: #2d4d41; }
.hero-art { background: radial-gradient(circle at 60% 45%, #faf8ef 0, #e9e9dd 72%); }
.hero-books { position: absolute; z-index: 3; inset: 15px 10px; pointer-events: none; }
.hero-book { position: absolute; left: 50%; top: 50%; width: min(72%, 300px); height: 335px; margin: 0; padding: 15px 14px 11px; border: 1px solid #e9e2d4; border-radius: 12px; background: #fffdf7; box-shadow: 0 24px 45px #26392c38; opacity: 0; transform: translate(-44%, -47%) rotate(8deg) scale(.9); animation: hero-cycle-three 15s infinite; animation-delay: calc(var(--hero-book-index) * 5s); }
.hero-book img { display: block; width: 100%; height: 280px; object-fit: contain; }
.hero-book figcaption { overflow: hidden; padding-top: 7px; color: #3f5447; font-size: 11px; font-weight: 700; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.hero-books[data-count="2"] .hero-book { animation-name: hero-cycle-two; animation-duration: 10s; }
.hero-books[data-count="1"] .hero-book { animation: none; opacity: 1; transform: translate(-50%, -50%) rotate(-5deg); }
#hero-art-fallback[hidden] { display: none; }
@keyframes hero-cycle-three { 0%, 27% { opacity: 1; transform: translate(-50%, -50%) rotate(-5deg) scale(1); } 32%, 100% { opacity: 0; transform: translate(-57%, -52%) rotate(-13deg) scale(.94); } }
@keyframes hero-cycle-two { 0%, 44% { opacity: 1; transform: translate(-50%, -50%) rotate(-5deg) scale(1); } 50%, 100% { opacity: 0; transform: translate(-57%, -52%) rotate(-13deg) scale(.94); } }
.guest-nudge { z-index: 70; }
.guest-nudge[hidden] { display: none; }
.guest-nudge .modal { max-width: 460px; }
.guest-nudge h2 { margin: 12px 0; color: #203d30; font-family: Georgia, serif; font-size: 35px; font-weight: 400; line-height: 1.1; }
.guest-nudge p { color: #5e6e63; font-size: 14px; line-height: 1.6; }
.guest-nudge-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.focus-preview-toggle:hover { background: #eef3eb; }
.category-filters { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 18px; scrollbar-width: thin; }
.mobile-category-filter { display: none; }
.account-label-short { display: none; }
.category-chip { flex: 0 0 auto; border: 1px solid #d7dcd3; border-radius: 999px; background: #fff; padding: 9px 16px; color: #425348; font: inherit; cursor: pointer; }
.category-chip.active { color: #fff; border-color: #284b3c; background: #284b3c; }
.focus-filters { padding-top: 0; }
.focus-filters .category-chip.active { background: #c87454; border-color: #c87454; }
.catalogue-status { margin: 0 0 16px; color: #68746b; font-size: 13px; }
.show-more-books { display: block; margin: 32px auto 0; padding: 12px 25px; border: 1px solid #bdcbbd; border-radius: 999px; color: #284b3c; background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.show-more-books[hidden] { display: none; }
.focus-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin: 35px 0 30px; padding: clamp(25px, 5vw, 55px); border-radius: 20px; background: #e9efe7; }
.focus-hero[hidden] { display: none; }
.focus-hero h1 { max-width: 620px; margin: 12px 0; color: #203d30; font-size: clamp(34px, 5vw, 62px); line-height: 1.06; letter-spacing: -.04em; }
.focus-hero h1 em { color: #bd7054; font-family: Georgia, serif; font-weight: 400; }
.focus-hero p { max-width: 500px; margin: 0; color: #53645a; }
.focus-summary { display: grid; gap: 10px; min-width: 180px; }
.focus-summary span { display: flex; justify-content: space-between; gap: 18px; padding: 12px 15px; border-radius: 10px; background: #fffaf3; color: #4c5e52; }
.focus-summary strong { color: #284b3c; font-size: 20px; }
.focus-mode .hero { display: none; }
.library-main.focus-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(22px, 4vw, 52px); align-items: start; }
.library-content { min-width: 0; }
.focus-explorer { position: sticky; top: 20px; min-width: 0; margin-top: 35px; padding: 20px 12px; border: 1px solid #e3e7dc; border-radius: 14px; background: #fffdf7; }
.focus-explorer[hidden] { display: none; }
.explorer-heading { padding: 6px 13px; margin: 12px 0 5px; color: #8a9789; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.explorer-links { display: grid; gap: 3px; }
.explorer-link { width: 100%; border: 0; border-radius: 8px; background: transparent; padding: 11px 13px; color: #405449; text-align: left; font: inherit; cursor: pointer; }
.explorer-link:hover { background: #f1f5ed; }
.explorer-link.active { background: #e7f0e5; color: #294e3c; font-weight: 700; }
.account-actions { display: flex; align-items: center; gap: 10px; }
.account-actions #account-name { max-width: 170px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; color: #4f6254; }
.account-signout { border: 0; background: transparent; color: #66756a; cursor: pointer; font: inherit; font-size: 12px; }
.focus-card-actions { display: flex; gap: 8px; margin-top: 14px; }
.save-book { border: 1px solid #cfdbcd; border-radius: 8px; padding: 7px 11px; background: #fff; color: #315440; cursor: pointer; font: inherit; }
.save-book[aria-pressed="true"] { background: #e5f0e6; border-color: #8cad96; }
@media (max-width: 900px) { .library-main.focus-layout { display: block; } .focus-explorer { position: static; margin: 14px 0; padding: 8px; } .focus-explorer .explorer-heading { display: none; } .explorer-links { display: flex; overflow-x: auto; gap: 5px; } .explorer-link { width: auto; white-space: nowrap; } }
@media (max-width: 700px) { .focus-hero { display: block; } .focus-summary { grid-template-columns: repeat(3, 1fr); margin-top: 22px; min-width: 0; } .focus-summary span { display: block; font-size: 11px; text-align: center; } .focus-summary strong { display: block; } .account-actions #account-name { display: none; } }
@media (max-width: 700px) {
  .site-header { gap: 8px; justify-content: space-between; }
  .account-actions { margin-left: auto; flex: none; }
  .account-actions #account-button { margin-left: 0; padding: 7px 10px; font-size: 11px; line-height: 1.2; letter-spacing: 0; white-space: nowrap; }
  .account-label-full, #category-filters, #explorer-categories { display: none; }
  .account-label-short { display: inline; }
  .mobile-category-filter { display: flex; align-items: center; gap: 12px; margin: 4px 0 17px; color: #53655a; font-size: 12px; font-weight: 700; }
  .mobile-category-filter select { min-width: 0; width: 100%; height: 42px; padding: 0 12px; border: 1px solid #cbd8cd; border-radius: 8px; background: #fff; color: #284b3c; font: inherit; }
  .mobile-category-filter select:focus-visible { outline: 2px solid #8fb49b; outline-offset: 2px; }
}
@media (max-width: 800px) { .hero-art { display: block; min-height: 300px; } .hero-book { height: 250px; width: min(64%, 230px); } .hero-book img { height: 195px; } .art-orbit { left: 50%; top: -100px; } }
@media (max-width: 560px) { .hero-art { min-height: 250px; } .hero-book { height: 218px; } .hero-book img { height: 164px; } .guest-nudge-actions .button { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) { .hero-book { animation: none; } .hero-book:first-child { opacity: 1; transform: translate(-50%, -50%) rotate(-5deg); } }
