@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');
:root{--ink:#172b33;--muted:#6d7c80;--deep:#132b36;--deep2:#1b3a44;--gold:#c6a56a;--gold-light:#e4d1a9;--paper:#f6f4ef;--white:#fff;--line:#e5e7e2;--green:#557d6c;--shadow:0 18px 50px rgba(24,44,49,.09);font-family:'DM Sans',Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;background:var(--paper)}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{max-width:1440px;margin:auto;padding:0 5.3%}.topbar{height:88px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(23,43,51,.09)}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none}.brand-mark{width:43px;height:43px;display:grid;place-items:center;background:var(--deep);color:#f8f4e9;border-radius:13px;font-family:'Playfair Display',serif;font-size:22px;position:relative}.brand-mark span{color:var(--gold);font-size:15px;position:absolute;right:6px;top:5px}.brand-copy{display:grid;gap:3px}.brand-copy strong{font-family:'Playfair Display',serif;font-size:17px;letter-spacing:.1px}.brand-copy small{color:var(--muted);font-size:11px;letter-spacing:1.2px;text-transform:uppercase}.top-actions{display:flex;align-items:center;gap:10px}.button{border:1px solid transparent;border-radius:8px;padding:11px 16px;font-weight:600;font-size:13px;transition:transform .18s,background .18s,border-color .18s;display:inline-flex;align-items:center;justify-content:center;gap:8px}.button:hover{transform:translateY(-1px)}.button-primary{background:var(--deep);color:#fff}.button-primary:hover{background:#21434e}.button-outline{background:transparent;border-color:#cfd6d3;color:var(--ink)}.button-outline:hover{border-color:var(--deep);background:#fff}.button-quiet{background:transparent;color:var(--deep)}.hero{min-height:380px;margin:26px 0 70px;background:var(--deep);border-radius:17px;overflow:hidden;position:relative;display:flex;align-items:center;padding:56px 7%;color:#fff}.hero:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 75% 50%,rgba(198,165,106,.14),transparent 36%),linear-gradient(100deg,rgba(10,29,36,.1),transparent 65%);pointer-events:none}.hero-copy{position:relative;z-index:2;max-width:590px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:var(--gold);margin:0 0 15px;display:flex;align-items:center;gap:10px}.eyebrow-line{width:25px;height:1px;background:var(--gold)}h1,h2,h3,p{margin-top:0}.hero h1{font-family:'Playfair Display',Georgia,serif;font-size:clamp(36px,4.2vw,58px);line-height:1.1;font-weight:500;letter-spacing:-1px;margin:0 0 18px}.hero h1 em{font-weight:500;color:var(--gold-light)}.hero-description{font-size:14px;line-height:1.8;color:#c4d0d0;max-width:460px;margin-bottom:23px}.hero-credit{font-size:11px;color:#9fb0b1;letter-spacing:.3px}.hero-credit strong{color:#fff;font-weight:600}.hero-credit span{padding:0 8px;color:var(--gold)}.hero-art{position:absolute;right:8%;top:50%;transform:translateY(-50%);width:340px;height:290px;z-index:1}.orbit{position:absolute;border:1px solid rgba(228,209,169,.19);border-radius:50%;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-18deg)}.orbit-one{width:330px;height:215px}.orbit-two{width:260px;height:285px;transform:translate(-50%,-50%) rotate(43deg)}.hero-book{position:absolute;top:34px;left:108px;width:145px;height:218px;border-radius:5px 12px 12px 5px;box-shadow:16px 18px 25px rgba(0,0,0,.28);transform:rotate(8deg)}.hero-book-back{left:82px;top:48px;background:#a17d4c;transform:rotate(-9deg)}.hero-book-front{background:linear-gradient(145deg,#e7d8b6,#c8b17e);color:#34454a;border-left:8px solid rgba(71,59,39,.2);display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:15px}.hero-book-front:before{content:"";position:absolute;inset:9px;border:1px solid rgba(74,73,53,.35);border-radius:2px}.hero-book-front span{font-family:'Playfair Display',serif;font-size:19px;line-height:1.2;letter-spacing:1px;z-index:1}.hero-book-front small{font-size:6px;letter-spacing:1.3px;margin-top:18px;z-index:1}.hero-spark{position:absolute;color:var(--gold-light);font-size:24px}.spark-one{top:28px;right:26px}.spark-two{bottom:25px;left:20px}.library-section{padding-bottom:75px}.section-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:24px}.section-heading .eyebrow{color:var(--green);margin-bottom:9px}.section-heading h2{font-family:'Playfair Display',serif;font-size:31px;font-weight:600;letter-spacing:-.4px;margin:0}.catalog-note{font-size:11px;color:var(--muted);margin:0 0 5px}.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#6a9a7e;margin-right:7px;box-shadow:0 0 0 4px rgba(106,154,126,.12)}.search-row{display:flex;gap:12px}.search-box{height:51px;flex:1;display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:9px;padding:0 15px;box-shadow:0 3px 12px rgba(30,50,50,.025)}.search-icon{font-size:27px;color:#879495;line-height:1;transform:rotate(-20deg)}.search-box input{border:0;outline:0;background:transparent;flex:1;min-width:0;color:var(--ink);font-size:13px}.search-box input::placeholder{color:#9aa5a4}.search-box kbd{font-size:10px;color:#9aa5a4;border:1px solid #e5e8e5;border-radius:4px;padding:3px 6px}.sort-control{height:51px;display:flex;align-items:center;gap:12px;padding:0 13px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--muted);font-size:11px}.sort-control select{border:0;outline:0;background:transparent;color:var(--ink);font-size:12px;font-weight:600}.category-filters{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 25px}.filter-chip{border:1px solid #dfe3de;background:transparent;color:#667579;border-radius:30px;padding:8px 14px;font-size:11px;font-weight:600;transition:.2s}.filter-chip:hover{border-color:#91a39c;color:var(--deep)}.filter-chip.active{background:var(--deep);border-color:var(--deep);color:#fff}.results-line{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.results-line p{font-size:11px;color:var(--muted);margin:0}.results-line #resultsCount{font-weight:700;color:var(--ink)}.books-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 19px}.book-card{min-width:0;display:flex;flex-direction:column}.book-cover-wrap{height:225px;position:relative;display:flex;align-items:center;justify-content:center;border-radius:10px;background:#e8e6df;overflow:hidden;padding:23px;isolation:isolate}.book-cover{height:100%;width:min(150px,75%);position:relative;border-radius:3px 7px 7px 3px;box-shadow:8px 10px 18px rgba(29,39,39,.2);display:flex;flex-direction:column;justify-content:space-between;padding:17px 13px;color:#f7f1e5;overflow:hidden;transform:perspective(700px) rotateY(-7deg);transition:transform .25s}.book-card:hover .book-cover{transform:perspective(700px) rotateY(-2deg) translateY(-4px)}.book-cover:before{content:"";position:absolute;inset:8px;border:1px solid rgba(255,255,255,.32);pointer-events:none}.cover-kicker{font-size:6px;letter-spacing:1.5px;opacity:.8;z-index:1}.cover-title{font-family:'Playfair Display',serif;font-size:18px;line-height:1.15;z-index:1;overflow-wrap:anywhere}.cover-author{font-size:7px;letter-spacing:.5px;z-index:1}.cover-art{position:absolute;width:115px;height:115px;border:1px solid rgba(255,255,255,.22);border-radius:50%;right:-42px;bottom:25px;box-shadow:0 0 0 12px rgba(255,255,255,.035),0 0 0 25px rgba(255,255,255,.025)}.book-cover:after{content:"";position:absolute;inset:0;background:linear-gradient(130deg,rgba(255,255,255,.16),transparent 45%,rgba(0,0,0,.14));pointer-events:none}.book-category{position:absolute;left:12px;top:12px;background:rgba(255,255,255,.84);color:#536467;border-radius:20px;padding:5px 8px;font-size:8px;font-weight:700;letter-spacing:.3px}.book-status{position:absolute;right:10px;top:10px;background:#fff4db;color:#86652e;border-radius:20px;padding:5px 8px;font-size:8px;font-weight:700}.book-info{padding:12px 2px 0}.book-info h3{font-family:'Playfair Display',serif;font-size:16px;line-height:1.3;margin:0 0 5px;min-height:40px;font-weight:600}.book-author{font-size:11px;color:var(--muted);margin:0 0 12px}.book-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px}.book-type{font-size:9px;color:#81908f}.read-link{border:0;background:none;color:var(--green);font-weight:700;font-size:11px;padding:6px 0}.read-link:hover{color:var(--deep);text-decoration:underline}.approve-button{border:0;background:#e8f1eb;color:#426a55;border-radius:5px;font-size:10px;padding:5px 7px;font-weight:700}.load-more-wrap{text-align:center;padding-top:32px}.load-more{min-width:190px}.empty-state{text-align:center;padding:55px 15px;background:#fff;border:1px dashed #d8ded9;border-radius:12px}.empty-icon{font-size:35px;color:#9ca9a4}.empty-state h3{font-family:'Playfair Display',serif;margin:8px 0}.empty-state p{color:var(--muted);font-size:12px}.footer{border-top:1px solid var(--line);padding:24px 0 32px;display:flex;align-items:center;justify-content:space-between;gap:20px}.footer-brand{font-family:'Playfair Display',serif;font-size:15px;font-weight:700}.footer-brand span{font-family:'DM Sans',sans-serif;font-size:10px;color:var(--muted);font-weight:400;margin-left:7px}.footer p,.footer a{font-size:10px;color:var(--muted);margin:0}.footer a{text-decoration:none}.modal-dialog{border:0;padding:0;background:transparent;width:min(590px,calc(100% - 28px));max-width:none;max-height:calc(100% - 28px);overflow:visible}.modal-dialog::backdrop{background:rgba(9,24,29,.66);backdrop-filter:blur(5px)}.modal-card{background:#fff;border-radius:15px;padding:28px;box-shadow:var(--shadow);max-height:calc(100vh - 40px);overflow:auto}.modal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:12px}.modal-heading .eyebrow{color:var(--green);margin-bottom:7px}.modal-heading h2{font-family:'Playfair Display',serif;font-size:27px;margin:0}.icon-button{width:34px;height:34px;border:1px solid #e2e6e2;background:#fff;border-radius:50%;font-size:22px;color:#657579;display:grid;place-items:center;line-height:1}.modal-intro{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 20px}.field-label{display:block;font-size:11px;font-weight:700;margin:14px 0 7px;color:#3d5055}.optional{font-weight:400;color:#96a19e}.text-field{width:100%;height:43px;border:1px solid #dfe5e0;border-radius:7px;padding:0 12px;outline:0;color:var(--ink);font-size:12px;background:#fff}.text-field:focus{border-color:#7c9a8c;box-shadow:0 0 0 3px rgba(91,132,112,.12)}.textarea{height:auto;padding:10px 12px;resize:vertical}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.file-drop{min-height:66px;border:1px dashed #b8c7bd;background:#f8faf7;border-radius:8px;padding:11px 13px;display:flex;align-items:center;gap:12px;cursor:pointer}.file-icon{width:38px;height:42px;border-radius:5px;background:#f1e9e1;color:#9b6748;font-weight:800;font-size:10px;display:grid;place-items:center}.file-drop>span:nth-child(2){display:grid;gap:4px;flex:1;min-width:0}.file-drop strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-drop small{font-size:9px;color:var(--muted)}.file-action{font-size:10px;color:var(--green);font-weight:700}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.form-feedback{min-height:17px;font-size:11px;color:#a14e3f;margin:10px 0 0}.form-feedback.success{color:#47765b}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:14px}.privacy-note{font-size:9px;line-height:1.6;color:#8b9794;margin:14px 0 0}.modal-narrow{width:min(440px,calc(100% - 28px))}.auth-tabs{display:flex;border-bottom:1px solid var(--line);gap:18px;margin:4px 0 16px}.auth-tab{background:none;border:0;padding:0 0 10px;color:#87928f;font-size:12px;font-weight:700;border-bottom:2px solid transparent}.auth-tab.active{color:var(--deep);border-color:var(--gold)}.button-full{width:100%;margin-top:12px}.reader-dialog{width:100%;height:100%;max-width:none;max-height:none;border:0;padding:0;margin:0;background:#e9e8e2;overflow:hidden}.reader-dialog::backdrop{background:rgba(8,20,25,.9)}.reader-shell{height:100%;display:flex;flex-direction:column;background:radial-gradient(ellipse at center,#f5f2e9,#d9d9d2)}.reader-toolbar{height:68px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 25px;background:#fff;border-bottom:1px solid #e4e5df;gap:15px}.reader-book-meta{display:flex;align-items:center;gap:10px;min-width:0}.reader-mark{width:35px;height:35px;background:var(--deep);color:var(--gold-light);border-radius:9px;display:grid;place-items:center;font-family:'Playfair Display',serif;font-size:15px;flex:none}.reader-book-meta>div{display:grid;gap:3px;min-width:0}.reader-book-meta strong{font-family:'Playfair Display',serif;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:45vw}.reader-book-meta small{font-size:10px;color:var(--muted)}.reader-actions{display:flex;align-items:center;gap:8px}.page-indicator{font-size:10px;color:#6e7b78;margin-right:5px;min-width:60px;text-align:right}.reader-nav{width:34px;height:34px;border:1px solid #dce1dc;border-radius:50%;background:#fff;color:var(--deep);font-size:17px}.reader-nav:hover{background:var(--deep);color:#fff}.reader-close{margin-left:7px}.reader-stage{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:25px 20px;overflow:hidden}.flipbook{width:min(90vw,1050px);height:min(75vh,760px);display:none;align-items:center;justify-content:center}.flipbook .page{background:#fffdf8;color:#354448;overflow:hidden;box-shadow:0 5px 20px rgba(24,39,39,.12)}.sample-page{height:100%;padding:9% 10%;font-family:'Playfair Display',serif;display:flex;flex-direction:column;justify-content:center;position:relative}.sample-page:after{content:"";position:absolute;inset:5%;border:1px solid rgba(198,165,106,.24);pointer-events:none}.sample-page .page-label{font-family:'DM Sans',sans-serif;font-size:9px;letter-spacing:2px;color:#a1814f;margin-bottom:18px}.sample-page h2{font-size:clamp(22px,3vw,34px);line-height:1.18;margin:0 0 17px;color:#1b333b}.sample-page p{font-family:'DM Sans',sans-serif;font-size:clamp(11px,1.2vw,14px);line-height:1.9;color:#59676a;margin:0 0 12px}.sample-page .page-number{position:absolute;bottom:7%;font:10px 'DM Sans',sans-serif;color:#9ca5a0}.reader-loading{display:flex;flex-direction:column;align-items:center;gap:14px;color:#71807c;font-size:12px}.loader{width:30px;height:30px;border:3px solid #d3d9d2;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.reader-bottom{height:42px;flex:none;display:flex;justify-content:space-between;align-items:center;padding:0 25px;color:#87928e;font-size:9px}.install-instructions{font-size:12px;line-height:1.8;color:#64736f}.install-instructions p{margin:0 0 12px}.toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,20px);background:#17323b;color:#fff;padding:12px 17px;border-radius:8px;font-size:12px;box-shadow:var(--shadow);opacity:0;pointer-events:none;transition:.25s;z-index:1000;max-width:calc(100% - 30px);text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1000px){.app-shell{padding:0 4%}.hero-art{right:3%;transform:translateY(-50%) scale(.86)}.hero-copy{max-width:54%}.books-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.book-cover-wrap{height:210px}}
@media(max-width:700px){.app-shell{padding:0 18px}.topbar{height:70px}.brand-mark{width:37px;height:37px}.brand-copy strong{font-size:14px}.brand-copy small{font-size:9px}.top-actions{gap:6px}.top-actions .button{padding:9px 10px;font-size:11px}.install-button{padding:8px 8px!important}.hero{min-height:450px;margin:17px 0 48px;padding:35px 25px;align-items:flex-start}.hero-copy{max-width:100%}.hero h1{font-size:39px}.hero-description{max-width:390px;font-size:12px}.hero-art{width:220px;height:175px;right:3%;top:auto;bottom:0;transform:scale(.62);transform-origin:bottom right;opacity:.9}.hero-book{top:10px;left:68px;width:145px;height:218px}.hero-book-back{left:40px;top:24px}.orbit-one{width:310px;height:205px}.orbit-two{width:240px;height:265px}.section-heading{align-items:flex-start;gap:12px;flex-direction:column}.section-heading h2{font-size:26px}.catalog-note{margin:0}.search-row{flex-direction:column}.sort-control{justify-content:space-between}.category-filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:5px;margin-right:-18px;padding-right:18px;scrollbar-width:none}.category-filters::-webkit-scrollbar{display:none}.filter-chip{white-space:nowrap}.books-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:21px 13px}.book-cover-wrap{height:190px;padding:16px}.book-cover{width:min(125px,82%);padding:14px 10px}.cover-title{font-size:15px}.book-info h3{font-size:14px;min-height:37px}.book-author{font-size:10px}.results-hint{display:none}.footer{flex-wrap:wrap;gap:9px}.footer p{order:3;width:100%;line-height:1.6}.modal-card{padding:22px 18px}.field-grid{grid-template-columns:1fr;gap:0}.reader-toolbar{height:60px;padding:0 12px}.reader-book-meta strong{max-width:35vw;font-size:12px}.reader-actions{gap:5px}.page-indicator{font-size:9px;min-width:43px}.reader-nav{width:31px;height:31px}.reader-stage{padding:12px 5px}.flipbook{width:96vw;height:min(72vh,650px)}.reader-bottom{padding:0 12px;font-size:8px}.reader-bottom span:first-child{max-width:55%}}
@media(max-width:390px){.brand-copy strong{font-size:12px}.brand-copy small{font-size:8px}.top-actions .button{padding:8px}.hero h1{font-size:34px}.books-grid{gap:18px 10px}.book-cover-wrap{height:168px}.book-info h3{font-size:13px}.reader-book-meta{gap:6px}.reader-mark{width:30px;height:30px}.reader-actions .page-indicator{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

.pdf-page{display:flex;align-items:center;justify-content:center;background:#fff}.pdf-page canvas{display:block;width:100%;height:100%;object-fit:contain}
