.book-page{--book-header-height:72px;padding-top:var(--book-header-height);--success:#245544;--success-foreground:#fff;width:100%;min-width:0;min-height:100dvh}.book-header{z-index:40;background:var(--background);height:var(--book-header-height);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:16px;padding:0 max(24px,50vw - 540px);display:flex;position:fixed;top:0;bottom:auto;left:0;right:0}.book-subpage-heading{align-items:center;gap:12px;min-width:0;display:flex}.book-subpage-heading h1{text-overflow:ellipsis;white-space:nowrap;min-width:0;margin:0;font-size:18px;font-weight:600;line-height:1.4;overflow:hidden}.book-subpage-heading h1:focus-visible{outline:2px solid var(--ring);outline-offset:4px;border-radius:2px}.book-subpage-back{width:40px;height:40px}.book-subpage-divider{opacity:.16;background:currentColor;flex-shrink:0;width:1px;height:20px}.book-brand{white-space:nowrap;align-items:center;gap:12px;font-size:16px;font-weight:600;display:flex}.book-brand-logo{object-fit:contain;flex-shrink:0;width:32px;height:32px}.book-brand:focus-visible{outline:2px solid var(--ring);outline-offset:6px;border-radius:4px}.book-header--search{grid-template-columns:auto minmax(0,560px) auto;gap:24px;display:grid}.book-search-form.book-header-search{align-items:center;width:100%;min-width:0;margin:0}.book-page--results .book-section{scroll-margin-top:calc(var(--book-header-height) + 24px);margin-top:0}.book-user-button{background:var(--muted);width:40px;height:40px;color:var(--foreground);border-radius:50%;padding:0;font-size:16px;font-weight:500;line-height:1;overflow:hidden}.book-user-button:hover,.book-user-button[aria-expanded=true]{background:var(--accent);box-shadow:inset 0 0 0 1px var(--border)}.book-account-identity{text-overflow:ellipsis;white-space:nowrap;max-width:240px;padding:10px 8px;font-size:14px;font-weight:500;overflow:hidden}.book-main{max-width:1080px;margin:auto;padding:24px 0 0}.book-search-section{max-width:680px;margin:64px auto 40px}.book-search-heading{text-align:center}.book-search-heading h1{text-wrap:balance;font-size:max(22px,min(2.3vw,30px));font-weight:500;line-height:1.8}.book-search-heading h1>span{display:inline-block}.book-search-heading .book-quote-text{max-width:100%}.book-quote-text>span{display:inline-block}.book-search-heading cite{color:var(--muted-foreground);white-space:nowrap;margin-inline-start:12px;font-size:13px;font-style:normal;font-weight:400;display:inline-block}@media (max-width:640px){.book-search-heading cite{margin:6px 0 0;line-height:1.5;display:block}}.book-search-form{border:1px solid var(--input);background:var(--background);border-radius:16px;align-items:center;gap:4px;height:60px;margin-top:28px;padding:6px;transition:border-color .16s,box-shadow .16s;display:flex;box-shadow:0 3px 12px #0000000a}.book-search-form:focus-within{border-color:var(--ring);box-shadow:0 0 0 2px color-mix(in srgb,var(--ring)15%,transparent),0 3px 12px #0000000a}.book-search-input{flex:1;align-items:center;min-width:0;height:100%;display:flex;position:relative}.book-search-input>svg{width:20px;height:20px;color:var(--muted-foreground);pointer-events:none;position:absolute;left:12px}.book-search-input input{height:100%;box-shadow:none;background:0 0;border:0;border-radius:10px;padding:0 38px 0 40px;font-size:16px}.book-search-input input:focus-visible{box-shadow:none;outline:none}.book-search-input input::-webkit-search-cancel-button{-webkit-appearance:none;-moz-appearance:none;appearance:none}.book-search-clear{color:var(--muted-foreground);position:absolute;right:2px}.book-search-submit{border-radius:10px;min-width:82px;height:100%;padding-inline-start:20px;padding-inline-end:20px}.book-search-form.book-header-search{border-radius:12px;height:42px;padding:4px;box-shadow:0 2px 8px #00000008}.book-header-search .book-search-input>svg{width:16px;height:16px;left:10px}.book-header-search .book-search-input input{border-radius:8px;padding-left:34px;font-size:14px}.book-header-search .book-search-submit{border-radius:8px;min-width:66px;padding-inline-start:14px;padding-inline-end:14px}.book-header-search:focus-within{box-shadow:0 0 0 2px color-mix(in srgb,var(--ring)15%,transparent),0 2px 8px #00000008}.book-source-link{color:var(--muted-foreground);justify-content:center;align-items:center;gap:6px;margin-top:16px;font-size:12px;display:flex}.book-source-link:hover{color:var(--foreground)}.book-reading-entry{border-radius:var(--radius);background:var(--muted);justify-content:space-between;align-items:center;gap:16px;padding:20px 24px;display:flex}.book-reading-entry>div{align-items:center;gap:16px;display:flex}.book-reading-description{color:var(--muted-foreground);font-size:13px}.book-reading-action{flex-shrink:0;align-items:center;gap:8px;font-size:13px;display:flex}.book-reading-entry:hover .book-reading-action{text-underline-offset:4px;text-decoration:underline}.book-section{margin-top:40px}.book-section-heading{justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px;display:flex}.book-section-heading h2{font-size:18px;font-weight:600}.book-section-heading p{color:var(--muted-foreground);margin-top:6px;font-size:13px}.book-shelf-controls{gap:8px;display:flex}.book-shelf{overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:var(--border)transparent;gap:24px;padding:2px 2px 18px;display:flex;overflow-x:auto}.book-shelf:focus-visible{outline:2px solid var(--ring);outline-offset:4px;border-radius:8px}.book-item{min-width:0}.book-item-shelf,.book-shelf-skeleton{scroll-snap-align:start;flex:0 0 200px}.book-shelf-skeleton{flex-direction:column;gap:12px;display:flex}.book-cover-stage{background:var(--muted);border-radius:8px;justify-content:center;align-items:center;display:flex;overflow:hidden}.book-item-shelf .book-cover-stage{height:224px;padding:20px}.book-cover{object-fit:contain;opacity:0;border-radius:2px;width:auto;max-width:100%;max-height:100%;box-shadow:0 5px 12px #0000001f}.book-cover[data-loaded=true]{opacity:1;animation:.24s ease-out both book-cover-reveal}@keyframes book-cover-reveal{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.book-cover[data-loaded=true]{animation:none}}.book-cover-fallback{aspect-ratio:2/3;border:1px solid var(--border);background:var(--background);height:100%;color:var(--muted-foreground);flex-direction:column;justify-content:space-between;gap:8px;padding:16px;display:flex}.book-cover-fallback svg{flex-shrink:0;width:20px;height:20px}.book-cover-fallback span{-webkit-line-clamp:4;overflow-wrap:anywhere;-webkit-box-orient:vertical;font-size:12px;line-height:1.6;display:-webkit-box;overflow:hidden}.book-item-shelf .book-item-info{margin-top:14px}.book-item-title{overflow-wrap:anywhere;font-size:14px;font-weight:600;line-height:1.6}.book-item-shelf .book-item-title{-webkit-line-clamp:2;-webkit-box-orient:vertical;height:45px;display:-webkit-box;overflow:hidden}.book-item-author{color:var(--muted-foreground);text-overflow:ellipsis;white-space:nowrap;margin-top:4px;font-size:12px;overflow:hidden}.book-item-meta{color:var(--muted-foreground);flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px;font-size:12px;display:flex}.book-item-details{color:var(--muted-foreground);overflow-wrap:anywhere;margin-top:10px;font-size:12px}.book-item-actions{align-items:center;gap:8px;display:flex}.book-item-shelf .book-item-actions{margin-top:16px}.book-item-shelf .book-item-actions>button:first-child{flex:1}.book-results{border-top:1px solid var(--border)}.book-item-result{border-bottom:1px solid var(--border);grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:24px;padding:24px 0;display:grid}.book-item-result .book-cover-stage{height:104px;padding:4px}.book-item-result .book-cover-fallback{padding:8px}.book-item-result .book-cover-fallback span{-webkit-line-clamp:2;font-size:10px}.book-result-skeleton{border-bottom:1px solid var(--border);align-items:center;gap:24px;padding:24px 0;display:flex}.book-footer{border-top:1px solid var(--border);color:var(--muted-foreground);justify-content:space-between;gap:16px;margin-top:40px;padding:24px 0;font-size:12px;display:flex}.book-account-menu{z-index:60;background:var(--popover);min-width:180px;color:var(--popover-foreground);border:1px solid var(--border);border-radius:var(--radius);padding:4px;box-shadow:0 8px 24px #00000014}.book-account-menu [role=menuitem]{cursor:pointer;border-radius:4px;outline:none;padding:8px;display:block}.book-account-menu [role=menuitem][data-highlighted]{background:var(--accent)}.book-account-menu [data-radix-collection-item]{font-size:14px}.book-account-menu-label{color:var(--muted-foreground);padding:8px;font-size:12px}.book-account-connection-row{justify-content:space-between;align-items:center;gap:8px;display:flex}.book-account-menu .book-disconnect-button{width:32px;height:32px;color:var(--muted-foreground);flex-shrink:0;display:inline-flex}.book-account-menu .book-disconnect-button:focus-visible{box-shadow:none;background:var(--accent);color:var(--accent-foreground);border-color:#0000;outline:none}.book-account-menu .book-disconnect-button[data-highlighted]{color:var(--accent-foreground)}.book-account-menu-separator{background:var(--border);height:1px;margin:4px -4px}.book-dialog-overlay{z-index:50;background:#0006;position:fixed;top:0;bottom:0;left:0;right:0}.book-dialog{z-index:51;border:1px solid var(--border);border-radius:calc(var(--radius) + 4px);background:var(--background);width:min(440px,100vw - 32px);max-height:calc(100dvh - 32px);padding:24px;position:fixed;top:50%;left:50%;overflow-y:auto;transform:translate(-50%,-50%);box-shadow:0 16px 48px #00000026}.book-dialog-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.book-dialog-header h2{font-size:18px;font-weight:600}.book-dialog-description{color:var(--muted-foreground);margin:8px 0 24px;font-size:14px;line-height:1.7}.book-dialog-actions{justify-content:flex-end;gap:8px;margin-top:24px;display:flex}.book-dialog-actions-equal{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.book-dialog-actions-equal>*{width:100%;min-width:0}@media (max-width:1128px){.book-main{margin:0 24px}}@media (max-width:768px){.book-page--results{--book-header-height:120px}.book-header--search{grid-template-rows:56px 52px;grid-template-columns:minmax(0,1fr) auto;gap:0 16px;padding:0 16px 12px}.book-header-search{grid-area:2/1/auto/-1}}@media (max-width:640px){.book-item:not(.book-item-detail){isolation:isolate;position:relative}.book-item-detail-link:after{content:"";z-index:1;position:absolute;top:0;bottom:0;left:0;right:0}.book-item-detail-link:focus-visible:after{outline:2px solid var(--ring);outline-offset:2px;border-radius:4px}.book-item:not(.book-item-detail) .book-item-actions>*{z-index:2;pointer-events:auto;position:relative}.book-page:not(.book-page--results){--book-header-height:64px}.book-header{gap:12px;padding:0 16px}.book-header--search{gap:0 16px;padding-bottom:12px}.book-subpage-heading{gap:8px}.book-subpage-heading h1{font-size:16px}.book-brand{gap:8px;font-size:14px}.book-brand>svg{display:none}.book-main{margin:0 16px;padding-top:16px}.book-search-section{margin:40px auto 28px}.book-search-form{margin-top:24px}.book-search-submit{min-width:72px;padding-inline-start:16px;padding-inline-end:16px}.book-header-search .book-search-input input{font-size:16px}.book-reading-entry{gap:12px;padding:16px}.book-reading-entry>div{flex-direction:column;align-items:flex-start;gap:6px}.book-reading-description{font-size:12px}.book-reading-action{gap:4px;font-size:12px}.book-section{margin-top:32px}.book-shelf{gap:16px}.book-item-shelf,.book-shelf-skeleton{flex-basis:168px}.book-item-shelf .book-cover-stage{height:200px;padding:16px}.book-item-result{grid-template-columns:64px minmax(0,1fr);gap:12px 16px}.book-item-result .book-cover-stage{grid-row:span 2;align-self:start;height:96px}.book-item-result .book-item-actions{flex-wrap:wrap;grid-column:2}.book-footer{margin-top:28px}.book-dialog{padding:20px}}.book-header{view-transition-name:book-header}.book-search-form{view-transition-name:book-search}.book-main{view-transition-name:book-content}::view-transition{pointer-events:none}::view-transition-old(root){animation:none}::view-transition-new(root){animation:none}::view-transition-group(book-header){animation-duration:.48s;animation-timing-function:cubic-bezier(.22,1,.36,1)}::view-transition-group(book-search){animation-duration:.48s;animation-timing-function:cubic-bezier(.22,1,.36,1)}::view-transition-group(book-search){z-index:1}::view-transition-old(book-search){height:100%}::view-transition-new(book-search){height:100%}::view-transition-group(book-content){animation:none}::view-transition-old(book-content){animation:.16s ease-out both book-content-out}::view-transition-new(book-content){animation:.32s cubic-bezier(.22,1,.36,1) .1s both book-content-in}@keyframes book-content-out{to{opacity:0;transform:translateY(-12px)}}@keyframes book-content-in{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){::view-transition-group(*){animation:none}::view-transition-old(*){animation:none}::view-transition-new(*){animation:none}}.book-item-title a:hover{text-underline-offset:4px;text-decoration:underline}.book-item a:focus-visible{outline:2px solid var(--ring);outline-offset:4px;border-radius:4px}.book-detail-page{padding-bottom:56px}.book-item-detail{grid-template-columns:220px minmax(0,1fr);gap:24px 48px;display:grid}.book-item-detail .book-cover-stage{grid-row:span 2;height:300px;padding:20px}.book-item-detail .book-item-info{align-self:end}.book-item-detail .book-item-title{font-size:max(24px,min(3vw,32px));line-height:1.45}.book-item-detail .book-item-author{white-space:normal;margin-top:16px;font-size:15px}.book-item-detail .book-item-actions{flex-wrap:wrap;align-self:start}.book-detail-body{border-top:1px solid var(--border);grid-template-columns:minmax(0,2fr) minmax(220px,1fr);gap:56px;margin-top:48px;padding-top:32px;display:grid}.book-detail-body h2{margin-bottom:20px;font-size:18px;font-weight:600}.book-detail-description{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.9}.book-detail-metadata{font-size:14px}.book-detail-metadata>div{grid-template-columns:96px minmax(0,1fr);gap:12px;margin-bottom:16px;display:grid}.book-detail-metadata dt{color:var(--muted-foreground)}.book-detail-metadata dd{overflow-wrap:anywhere}.book-detail-notice{background:var(--muted);border-radius:8px;justify-content:space-between;align-items:center;gap:16px;margin-top:24px;padding:16px;font-size:14px;display:flex}.book-detail-loading{gap:32px;display:flex}.book-detail-empty{flex-direction:column;align-items:center;gap:24px;padding:64px 16px;display:flex}@media (max-width:640px){.book-item-detail{grid-template-columns:100px minmax(0,1fr);gap:20px}.book-item-detail .book-cover-stage{grid-row:auto;height:150px;padding:8px}.book-item-detail .book-item-info{align-self:center}.book-item-detail .book-item-title{font-size:22px}.book-item-detail .book-item-actions{grid-column:1/-1}.book-detail-body{grid-template-columns:1fr;gap:32px;margin-top:32px}.book-detail-notice{align-items:start}.book-detail-notice button{flex-shrink:0}}.book-quota-panel{justify-content:space-between;align-items:center;gap:16px;padding:4px 8px 8px;font-size:12px;display:flex}.book-quota-heading-label{color:var(--muted-foreground);white-space:nowrap;align-items:center;gap:2px;display:flex}.book-quota-value{color:var(--muted-foreground);font-variant-numeric:tabular-nums;flex-shrink:0;font-weight:500}.book-quota-value--green{color:#245544}.book-quota-value--yellow{color:#b3943e}.book-quota-value--orange{color:#c76b23}.book-quota-value--red{color:#dc2626}.book-quota-fallback{color:var(--muted-foreground);font-size:11px}.book-quota-tooltip{z-index:80;border:1px solid var(--border);background:var(--popover);max-width:240px;color:var(--popover-foreground);border-radius:8px;padding:10px 12px;font-size:12px;line-height:1.7;box-shadow:0 4px 16px #00000014}.book-quota-tooltip-arrow{fill:var(--popover)}.book-account-menu .book-quota-info{padding:4px;display:inline-flex}.book-account-menu .book-quota-info:focus-visible{box-shadow:none;background:var(--accent);border-color:#0000}.book-bookshelf-page{padding-bottom:48px}.book-bookshelf-empty{min-height:320px}.book-bookshelf-more{justify-content:center;padding-top:24px;display:flex}.book-bookshelf-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:36px 24px;display:grid}.book-bookshelf-grid>[role=listitem]{min-width:0}.book-item-library{flex-direction:column;min-width:0;height:100%;display:flex}.book-item-library .book-cover-stage{aspect-ratio:3/4;padding:16px}.book-item-library .book-item-info{margin-top:14px}.book-item-library .book-item-title{-webkit-line-clamp:2;-webkit-box-orient:vertical;height:45px;display:-webkit-box;overflow:hidden}.book-item-library .book-item-actions{margin-top:auto;padding-top:16px}.book-item-library .book-item-actions>button:first-child{flex:1}.book-bookshelf-placeholder{flex-direction:column;gap:12px;display:flex}.book-bookshelf-placeholder-cover{aspect-ratio:3/4;width:100%}@media (max-width:1050px){.book-bookshelf-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (max-width:800px){.book-bookshelf-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:640px){.book-bookshelf-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 16px}.book-item-library .book-cover-stage{padding:12px}}