:root{font-family:Shippori Mincho B1,serif;line-height:1.5;font-weight:400;color:#213547;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-style:normal}body{margin:0;min-width:320px;min-height:100vh;background-color:#fafafa;padding:20px}h1{font-size:3.2em;line-height:1.1}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#f9f9f9;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}.thumb-toggle{width:100%;max-width:900px;margin:0 auto;display:flex;justify-content:flex-start}body,#root{margin:0;padding:0;width:100%;min-height:100vh;overflow-x:hidden;overflow-y:auto}.site-header{display:flex;justify-content:space-between;align-items:center;background-color:transparent;width:100%;height:60px;position:relative;box-sizing:border-box;padding:12px max(16px,env(safe-area-inset-right)) 12px calc(16px + env(safe-area-inset-left,0px));overflow:visible}.site-actions{display:flex;gap:.5rem;align-items:center}.site-title{font-size:2.2rem;letter-spacing:-.05em;color:#333;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-family:KamoLemo;pointer-events:none}.site-nav{display:flex;height:40px;gap:1rem;align-items:center}.site-nav a,#toggle-sidebar{padding:.5rem 1rem;background:transparent;color:#333;border:none;border-radius:8px;text-decoration:none;font-weight:700;transition:background-color .15s ease,color .15s ease;font-size:1rem}.site-nav a:hover,#toggle-sidebar:hover{background-color:#00000014}#toggle-sidebar[aria-expanded=true]{background-color:#00000014;box-shadow:inset 0 0 0 1px #00000040}#root{display:flex;flex-direction:column;min-height:100vh;overflow:visible!important}.logo{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.logo:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.react:hover{filter:drop-shadow(0 0 2em #61dafbaa)}@keyframes logo-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (prefers-reduced-motion: no-preference){a:nth-of-type(2) .logo{animation:logo-spin infinite 20s linear}}.card{padding:2em}.read-the-docs{color:#888}.header-wrapper{position:relative;width:800px;margin:0 auto;padding-top:20px;z-index:100;transform:translateZ(0)}.header{display:flex;width:100%;padding-left:0;padding-top:1rem}.header-left{width:auto;margin-right:40px;text-align:left;font-size:14px;line-height:1.5;color:#666}.header-center{flex-grow:1;text-align:center;font-size:18px;font-weight:400}.grid-container{position:relative;width:100%;min-height:calc(var(--grid-visible-height) + 50px);overflow:visible;margin-top:20px;padding-bottom:100px}.isometric-grid{position:absolute;left:750px;top:0;transform:rotateX(60deg) rotate(45deg);transform-style:preserve-3d;transform-origin:0 0;will-change:transform;width:100%}.grid-cell{width:100px;height:100px;position:absolute;border:1px solid #ccc;background-color:#ffffffb3;opacity:0;transform:scale(.8);z-index:1;transition:opacity .4s ease,transform .4s ease}.grid-cell.empty{border:1px dashed #888;background-color:transparent;cursor:default}.grid-cell.animate-in{opacity:1;transform:scale(1)}.grid-cell.highlighted{outline:2px solid red!important;z-index:15!important;pointer-events:none!important}.grid-cell:hover{outline:2px solid #999!important;z-index:2!important}.grid-cell:hover .highlighted{outline:none!important;pointer-events:none!important}.stamp{cursor:pointer;width:100%;height:100%;object-fit:cover;position:relative;z-index:2;display:block;transition:all .2s ease!important;pointer-events:auto!important}.stamp:hover{transform:scale(1.1)!important;filter:brightness(1.2)!important;z-index:3!important}.grid-cell.empty:hover{outline:2px solid #ccc!important;background-color:#fff3!important;z-index:2!important}.sidebar{width:180px;position:fixed;top:20px;right:20px;max-height:90vh;overflow-y:auto;overflow-x:hidden;background:#fffc;border:1px solid #ccc;padding:10px;font-family:inherit;font-size:12px;box-shadow:0 0 10px #0000001a;z-index:999;padding-top:1rem}.sidebar ul{list-style-type:none;padding:0;margin:0}.sidebar li{padding:6px 8px;transition:none!important}.sidebar li.hovered{background-color:red!important;color:#fff!important;font-weight:700!important;border-left:5px solid #000!important}.sidebar.collapsed{display:none}.footer-spacer{height:30px;width:100%;position:relative}.footer-container{position:relative;width:100%;padding-top:50px;padding-bottom:20px;z-index:1000}.footer{display:flex;align-items:center;justify-content:space-between;position:relative;width:100%;max-width:800px;margin:0 auto;padding:20px 0;border-top:1px solid #eee}.footer-left{width:auto;text-align:left;font-size:14px;line-height:1.5;color:#666;margin-right:20px}.footer-center{width:auto;text-align:center;font-size:14px;color:#888}body{overflow-x:hidden;min-width:800px}.App{flex:1;display:flex;flex-direction:column}.book-popup{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000000b3;display:flex;justify-content:center;align-items:center;z-index:2000}.popup-content{background:#fff;width:80%;max-width:900px;max-height:90vh;overflow-y:auto;padding:2rem;border-radius:8px;position:relative}.popup-header{position:sticky;top:0;background:#fff;z-index:5;display:flex;justify-content:flex-end;align-items:center;padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid #eee}.close-btn{position:absolute;top:16px;right:16px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;padding:0;border:1px solid rgba(0,0,0,.1);border-radius:4px;background:transparent;cursor:pointer;transition:background .2s ease}.close-btn:hover{background:#0000000d}.book-gallery{display:flex;flex-direction:column;gap:16px;align-items:center;width:100%}.spread-container-wrapper{display:flex;align-items:center;justify-content:center;position:relative;width:100%}.nav-button{position:absolute;top:50%;transform:translateY(-50%);padding:15px;background:#00000080;color:#fff;border:none;border-radius:50%;font-size:20px;cursor:pointer;width:50px;height:50px;display:flex;align-items:center;justify-content:center;z-index:10;transition:background .2s}.nav-button:hover{background:#000c}.nav-button:disabled{opacity:.3;cursor:not-allowed}.prev-button{left:20px}.next-button{right:20px}.spread-container{display:flex;gap:20px;margin:20px 0;overflow:hidden;position:relative;align-items:center;max-height:62vh}.gallery-page{max-height:60vh;width:45vw;max-width:320px;object-fit:contain;box-shadow:0 4px 8px #0000001a}.thumbnail-strip{width:100%;max-width:900px;margin:0 auto;overflow-x:hidden;overflow-y:auto;display:grid;justify-content:center;grid-template-columns:repeat(4,125px);grid-auto-rows:125px;gap:8px;max-height:min(40vh,540px);padding-bottom:8px}.thumbnail{width:125px;height:125px;object-fit:cover;border:1px solid #ddd;border-radius:4px;cursor:pointer;opacity:.8;transition:transform .15s ease,opacity .15s ease}.thumbnail:hover{opacity:1;transform:scale(1.03)}.thumbnail.active{outline:2px solid #333;opacity:1}.turning .right-page{animation:turnPage .6s ease-in-out forwards;transform-origin:left center;position:relative;z-index:2}@keyframes turnPage{0%{transform:rotateY(0)}50%{transform:rotateY(90deg);box-shadow:15px 0 30px #0000004d}to{transform:rotateY(180deg);box-shadow:0 0 5px #0000001a}}.turning-previous .left-page{animation:turnPagePrevious .6s ease-in-out forwards;transform-origin:right center;position:relative;z-index:2}@keyframes turnPagePrevious{0%{transform:rotateY(0)}50%{transform:rotateY(-90deg);box-shadow:-15px 0 30px #0000004d}to{transform:rotateY(-180deg);box-shadow:0 0 5px #0000001a}}.book-metadata{margin-top:1.5rem}.book-title{margin-bottom:1.5rem;color:#333;font-weight:700;font-synthesis:weight}.metadata-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem;margin-bottom:1.5rem}.metadata-item{display:flex;flex-direction:column}.metadata-label{font-weight:700;font-synthesis:weight;color:#666;margin-bottom:.3rem}.tag-container{display:flex;flex-wrap:wrap;gap:.5rem}.tag{background:#e0e0e0;padding:.3rem .6rem;border-radius:4px;font-size:.8rem}.book-description h3{margin-bottom:.5rem;color:#444;font-weight:700;font-synthesis:weight}.book-description p{line-height:1.6;color:#333;font-size:.95rem}.shadow-page{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}@font-face{font-family:KamoLemo;src:url(/assets/A-OTF-KamoLemoStd-Light-CEAdmLXp.otf) format("opentype");font-weight:400;font-style:normal;font-display:swap}@media (max-width: 768px){html,body,#root{min-width:0;width:100%;overflow-x:hidden!important}#toggle-sidebar,.sidebar{display:none!important}.site-header{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;height:auto!important;padding:12px max(16px,env(safe-area-inset-right)) 12px calc(16px + env(safe-area-inset-left,0px))!important;gap:8px!important}.site-title{position:static!important;transform:none!important;font-size:1.5rem!important;letter-spacing:-.03em!important;margin:0!important}.site-nav{display:flex!important;flex-wrap:wrap!important;gap:8px!important;justify-content:center!important}.site-nav a{font-size:.95rem;padding:.45rem .75rem;border-radius:6px}.header-wrapper{width:100%;max-width:none;padding:12px;margin:0}.grid-container{min-height:auto;margin-top:12px;padding:0 0 56px;overflow-x:hidden}.isometric-grid{position:static;left:0;top:0;transform:none;transform-origin:initial;width:100%;height:auto!important;display:grid;grid-template-columns:repeat(2,1fr);gap:10px;box-sizing:border-box;max-width:100vw;padding:0 12px}.grid-cell{position:static;width:100%;height:auto;aspect-ratio:1 / 1;border:none;opacity:1!important;transform:none!important;transition:none;box-sizing:border-box}.grid-cell.empty{display:none}.stamp{width:100%;height:100%;object-fit:cover;transform:none!important}.book-gallery{align-items:stretch}.spread-container{flex-direction:column;align-items:center;gap:12px}.gallery-page{width:100%;max-width:none;height:auto;max-height:70vh}.nav-button{width:42px;height:42px;font-size:18px}.thumbnail-strip{grid-template-columns:repeat(3,100px);grid-auto-rows:100px}.page-container{padding:16px;max-width:680px;margin:0 auto;font-size:1rem;line-height:1.6}.footer{max-width:92%;padding:12px 0}}.page-container{padding:2rem;max-width:800px;margin:0 auto;line-height:1.6}.page-container p,.page-container li{font-size:.85rem}.page-container h1,.page-container h2{font-weight:700;font-synthesis:weight}.page-container p em{font-weight:400;font-synthesis:none}.sidebar button,.header button{height:40px!important}.library-container{display:grid;grid-template-columns:320px calc(100% - 320px);gap:0;padding:24px;max-width:1200px;margin:0 auto}.library-preview{position:sticky;top:80px;height:fit-content}.library-preview-frame{background:transparent;padding:12px;border:1px solid #cfcfcf;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.library-preview-frame:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-image:var(--paper-url, none);background-size:cover;background-position:center;transform:rotate(var(--paper-rotation, 0deg));transform-origin:center;z-index:0;opacity:1}.library-preview-inner{background:transparent;width:280px;height:420px;overflow:hidden;position:relative;z-index:1}.library-preview-image{width:100%;height:100%;object-fit:cover;object-position:left top;display:block}.library-preview-placeholder{width:100%;height:100%;background:repeating-linear-gradient(45deg,#111,#111 6px,#0b0b0b 6px,#0b0b0b 12px)}.library-list{padding-top:0;background:#fafafa;border:none;padding-left:24px;padding-right:24px;font-size:12px;width:100%;min-width:0;justify-self:stretch;box-sizing:border-box;display:block}.library-row{position:relative;background:transparent;border:0;margin:0;padding:0;cursor:pointer;transition:background .15s ease}.library-row-inner{display:grid;grid-template-columns:4ch minmax(0,1fr) 7ch 1fr;gap:16px;align-items:baseline;padding:6px 0;border-bottom:2px solid #111;width:100%}.library-row:first-child .library-row-inner{border-top:2px solid #111}.library-row:hover{background:#00000009}.library-ruled{display:none}.library-row-text{position:relative;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:12px;letter-spacing:.2px;color:#222;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.library-col-num{color:#111}.library-col-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.library-col-year{text-align:right;justify-self:end}.library-col-author{overflow:visible;text-overflow:clip;white-space:nowrap;text-align:right;justify-self:end}.library-container{margin-top:16px}.library-search{position:relative;margin:0 0 12px;width:100%}.library-search input{width:100%;padding:6px 42px 6px 10px;border:1px solid #cfcfcf;border-radius:4px;background:#fff;font-size:12px;font-family:Shippori Mincho B1,serif;height:32px;box-sizing:border-box}.library-search-clear{position:absolute;top:0;right:0;padding:0;width:32px;height:32px;font-size:18px;line-height:32px;border:1px solid #cfcfcf;background:#fafafa;border-radius:0 4px 4px 0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-family:Shippori Mincho B1,serif}.library-search-clear:hover{background:#f0f0f0}.library-meta{margin:8px 0 10px;color:#555;font-size:12px}.library-pagination{display:flex;align-items:center;gap:12px;margin:12px 0 0}.library-pagination button{height:28px;padding:0 10px;border:none;background:transparent;border-radius:8px;cursor:pointer;font-size:12px;transition:background-color .15s ease,color .15s ease}.library-pagination button:hover{background-color:#00000014}.library-pagination button:disabled{opacity:.5;cursor:not-allowed}.library-page-indicator{color:#333;font-size:12px}.library-container{display:flex;justify-content:center;align-items:flex-start;gap:3rem}.library-preview{flex-shrink:0;width:320px}.library-list{width:clamp(600px,55vw,900px);flex:0 0 clamp(600px,55vw,900px)}.library-search,.library-search input{width:100%;box-sizing:border-box}
