:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#12333c;background:#fff;--teal:#125c58;--border:#d9e7e8}*{box-sizing:border-box}body{margin:0;min-height:100dvh}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ca9c39;outline-offset:3px}button{border:0;background:var(--teal);color:white;padding:.7rem 1rem;border-radius:12px;font-weight:700}button:hover{filter:brightness(.95)}[hidden]{display:none!important}header{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;background:white;border-bottom:1px solid var(--border);padding:calc(4px + env(safe-area-inset-top)) 3.5% 4px;min-height:64px}.brand{display:flex;align-items:center;text-align:left;gap:9px;padding:0;background:transparent;color:#174e4d;min-width:0}.brand img{width:clamp(54px,8vw,110px);height:auto}.brand strong{font-size:clamp(13px,1.8vw,24px);display:block;line-height:1.17}.brand small{display:block;font-weight:500;font-size:clamp(10px,1.2vw,16px);text-align:center}.desktop{display:flex;gap:9px}.desktop button{background:white;color:#143e43;white-space:nowrap}.desktop button.active{background:var(--teal);color:white}#menu-toggle{background:white;color:var(--teal);font-size:25px;line-height:1;display:none;padding:8px}#menu{position:absolute;right:12px;top:100%;padding:8px;background:white;box-shadow:0 8px 30px #12333c33;border:1px solid var(--border);border-radius:14px;width:min(300px,92vw);max-height:75dvh;overflow:auto}#menu button{display:block;width:100%;background:white;color:#164a49;text-align:left;margin:2px 0}#menu button:hover{background:#e1f0e9}.hero{position:relative;background:#d6eae1}.hero picture,.hero img{display:block;width:100%;height:auto}.hero-form{display:flex;align-items:center;gap:1%;position:absolute;left:27.15%;top:52.2%;width:49%;height:18%;justify-content:center}.search-pill{background:white;border-radius:40px;display:flex;align-items:center;padding:3px;min-width:0;flex:1;box-shadow:0 2px 5px #173d4833;gap:3px;height:100%}.search-pill span{font-size:clamp(16px,2.2vw,28px);padding-left:.5em;color:#52666b}.search-pill input{flex:1;width:0;border:0;background:white;min-width:0;padding:0 4px;font-size:clamp(10px,1.16vw,16px);outline-offset:0}.search-pill button,.hero-form .random{border-radius:40px;white-space:nowrap;font-size:clamp(9px,1vw,14px);padding:0 1em;height:100%}.random{background:#fff3d1;color:#123c40}.hero-form>.random{height:95%;flex:none}.library{padding:0 3.5% 18px;scroll-margin-top:85px}h2{color:#144e4e;font-size:clamp(22px,2.5vw,35px);margin:.2em 0 .55em}.library h2{display:flex;align-items:center;justify-content:center;gap:2%;text-align:center}.library h2:before,.library h2:after{content:'';height:1px;background:linear-gradient(90deg,transparent,#627971);flex:1;max-width:200px}.library h2:after{transform:rotate(180deg)}.books{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.book{background:#fff;color:#12333c;border:1px solid #dbe7e9;box-shadow:0 3px 8px #234d5420;padding:9px;border-radius:15px;display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0}.book img{width:100%;height:auto;border-radius:8px;display:block}.book strong{font-size:clamp(12px,1.4vw,20px);display:block;text-align:center;line-height:1.2}.book small{display:block;background:#fff4da;border-radius:30px;padding:5px 7px;font-size:clamp(10px,1.03vw,14px);white-space:nowrap;color:#23343d;text-align:center}.book small:before{content:'? ';color:#b77c14;font-weight:900}.features{margin:0 1.2% 16px;display:grid;grid-template-columns:repeat(3,1fr);background:#e1f1e9;border-radius:16px;padding:10px;gap:4px}.features button{display:flex;align-items:center;justify-content:center;gap:14px;text-align:left;background:transparent;color:#16343b;border-radius:0;border-right:1px solid #a9c7b9;padding:4px}.features button:last-child{border:0}.features b{font-size:36px;color:var(--teal)}.features small,.features strong{display:block}.features small{font-weight:400;font-size:12px}.benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:0 1.2% 16px}.benefits article{background:#fff6df;border-radius:18px;padding:14px;display:flex;align-items:center;gap:5px;overflow:hidden}.benefits article:nth-child(2){background:#e1f4fa}.benefits article:nth-child(3){background:#edf5e3}.benefits h3{color:#133e46;margin:0 0 5px;font-size:clamp(16px,1.6vw,23px);line-height:1.14}.benefits p{margin:0;font-size:clamp(12px,1.1vw,15px)}.benefits img{width:33%;object-fit:contain;border-radius:10px}footer{background:#215e61;color:white;padding:18px 4%;display:flex;align-items:center;gap:12px;font-size:14px}footer img{width:76px;border-radius:8px}footer small{display:block}footer p{border-left:1px solid #a2c9c1;padding-left:16px;margin:0}.mobile{display:none}.panel{max-width:1000px;padding:25px 18px;margin:auto}.panel form{display:flex;gap:8px;flex-wrap:wrap}.panel input,.panel select{min-height:44px;border:1px solid #b7ceca;border-radius:12px;padding:10px;background:white;color:#12333c}.panel input{flex:1;min-width:180px}.result{width:100%;display:flex;gap:10px;align-items:center;justify-content:space-between;text-align:left;background:#f7fbf8;color:#173a41;border:1px solid var(--border);margin:8px 0;padding:12px}.result small{display:block;color:#50716e;font-weight:400;margin-top:4px}.muted,#index-status{color:#526b68;font-size:14px}#missing button{background:#edf3ef;color:#194c49;margin:4px}.reader-bar{display:flex;align-items:center;gap:8px;background:#eef6f2;padding:6px 12px;flex:none}.reader-bar strong{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reader-bar button,.reader-bar a{font-size:13px;padding:8px;color:var(--teal);background:white;border:1px solid var(--border);border-radius:8px;text-decoration:none;white-space:nowrap}#reading{display:flex;flex-direction:column;flex:1;min-height:0}#reader{width:100%;border:0;flex:1;background:white;min-height:0}body.reading{display:flex;flex-direction:column;height:100vh;height:100dvh;overflow:hidden}body.reading main{display:flex;flex-direction:column;flex:1;min-height:0}body.reading header{flex:none}body.reading .mobile{display:none}body.reading #menu-toggle{display:block}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@media(max-width:1000px){.desktop{gap:2px}.desktop button{padding:9px 6px;font-size:13px}.books{grid-template-columns:repeat(4,minmax(0,1fr))}.book img{max-width:180px}.book strong{font-size:16px}.book small{font-size:12px}}@media(max-width:700px){header{min-height:52px;padding:calc(4px + env(safe-area-inset-top)) 9px 4px}.brand{gap:5px}.brand img{width:48px}.brand strong{font-size:clamp(11px,3.35vw,17px)}.brand small{font-size:10px}.desktop{display:none}#menu-toggle{display:block}.hero-form{position:static;width:auto;height:auto;display:flex;flex-direction:column;padding:5px 6.5% 10px;gap:5px;background:linear-gradient(#b5dcd5,#e6f2e9)}.search-pill{width:100%;height:40px;flex:auto}.search-pill input{font-size:13px}.search-pill button,.hero-form .random{font-size:13px;height:34px}.hero-form>.random{padding:0 15px;height:31px}.library{padding:4px 5% 12px;scroll-margin-top:60px}.library h2{font-size:clamp(19px,5.7vw,27px);margin:5px 0 10px}.books{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.book{flex-direction:row;justify-content:flex-start;gap:7px;padding:5px;min-height:76px;text-align:left}.book img{width:42%;max-width:95px;aspect-ratio:165/208;object-fit:contain}.book strong{text-align:left;font-size:clamp(12px,3.2vw,16px)}.book small{font-size:clamp(9px,2.65vw,12px);padding:4px;margin-top:5px}.book:last-child{grid-column:1/-1;justify-self:center;width:53%}.features{grid-template-columns:1fr;background:white;margin:0 4% 12px;padding:0;gap:6px}.features button{background:#e1f1e9;border:0!important;border-radius:12px;justify-content:flex-start;padding:8px 14px;gap:12px}.features button:nth-child(2){background:#e1f4fa}.features button:nth-child(3){background:#edf5e3}.features b{width:42px;text-align:center;font-size:30px}.features strong{font-size:14px}.features small{font-size:11px}.benefits,footer{display:none}.mobile{position:sticky;bottom:0;display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:4px 7px calc(5px + env(safe-area-inset-bottom));background:white;border-top:1px solid var(--border);z-index:15}.mobile button{color:#145b57;background:white;padding:4px 2px;font-size:22px;line-height:1.1}.mobile button.active{color:white;background:var(--teal)}.mobile span{display:block;font-size:11px}.reader-bar{gap:4px;padding:5px}.reader-bar a,.reader-bar button{font-size:11px;padding:7px 5px}.reader-bar strong{font-size:12px}.panel{padding:16px 10px;min-height:75dvh}.panel input{min-width:140px;width:100%}.panel select{max-width:100%}}@media(max-width:355px){.book{flex-direction:column;align-items:center}.book strong{text-align:center}.book img{width:70%;max-width:90px}.brand strong{font-size:10px}}
@media(min-width:701px){#menu-toggle{display:block;font-size:23px}.hero-form{gap:.6%;left:27.1%;width:49%;top:52.2%;height:18.2%}.hero-form>.random{min-width:29.5%}.search-pill{flex:1}.desktop{margin-left:auto}}
