@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Manrope:wght@400;500;600;700;800&display=swap');
.reader-tool.saved{background:#dce6c9;border-radius:3px;color:#345322}.reader.night .reader-tool.saved{background:#526845;color:#f1f5ea}
:root{--paper:#f7f6f0;--surface:#fffef9;--ink:#253e32;--muted:#788174;--line:#e1e4d8;--green:#244534;--lime:#d4dfb7;--serif:'Cormorant Garamond',Georgia,serif;--sans:Manrope,Arial,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:13px;line-height:1.65}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{opacity:.5;cursor:default}button,input,textarea,select,a{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #a8b778;outline-offset:3px}.hidden{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}h1,h2,h3,p{margin-top:0}h1,h2{font-family:var(--serif);font-weight:500;line-height:1.08;letter-spacing:-1px}h1{font-size:58px;margin-bottom:18px}h2{font-size:48px;margin-bottom:20px}em{font-weight:400;color:#849270}h3{font-weight:600}.muted{color:var(--muted);line-height:1.9}.subtle{color:#87907f;font-size:10px}.eyebrow{font-size:9px;font-weight:700;letter-spacing:1.8px;margin-bottom:24px}.btn{border:0;background:var(--green);color:#fcfcf3;display:inline-flex;align-items:center;justify-content:space-between;gap:28px;padding:16px 22px;font-size:12px;min-height:48px;transition:background .2s}.btn:hover{background:#3e6045}.wide{width:100%}.text-button{border:0;border-bottom:1px solid #a5b195;background:none;padding:7px 0;color:var(--green);font-size:11px;display:inline-block}.icon-button{border:0;background:transparent;font-size:22px;min-width:36px;min-height:38px}.wordmark{display:flex;gap:13px;align-items:center;font-size:10px;letter-spacing:1.3px;font-weight:700;line-height:1.55}.wordmark small{display:block;font-size:6px;letter-spacing:1.4px;font-weight:400;margin-top:8px;opacity:.65}.brand-mark{display:grid;place-items:center;width:43px;height:43px;border:1px solid #91a08b;border-radius:50%;font-family:var(--serif);font-size:31px;font-weight:400;letter-spacing:-4px;padding-right:5px;flex-shrink:0}.auth-screen{min-height:100vh;padding:40px 6vw;background:radial-gradient(ellipse at 0 100%,#e5e9d9,transparent 60%),var(--paper)}.auth-layout{display:grid;grid-template-columns:1.15fr 1fr;gap:10vw;max-width:1190px;margin:65px auto 30px;align-items:center}.auth-story h1{font-size:69px;line-height:1.07}.auth-story>p:not(.eyebrow){font-size:12px;color:#7a8471}.auth-book{display:flex;align-items:flex-end;gap:40px;margin-top:38px}.auth-book img{width:143px;transform:rotate(-7deg);box-shadow:15px 20px 25px #29423120}.auth-book span{font-size:8px;letter-spacing:1.3px;color:#89947b;padding-bottom:15px}.auth-card{background:var(--surface);border:1px solid var(--line);padding:38px 36px;max-width:460px;width:100%;box-shadow:0 16px 50px #384d2705}.auth-card h2{font-size:43px}.auth-card .muted{font-size:11px;margin-bottom:28px}label{display:block;font-size:11px;font-weight:600;margin-bottom:18px}input,textarea,select{display:block;width:100%;background:#fffefb;border:1px solid #d4dacc;border-radius:0;padding:13px 14px;color:var(--ink);margin-top:7px;min-width:0}input::placeholder,textarea::placeholder{color:#a3aa99}textarea{resize:vertical}.password-wrap{position:relative}.password-wrap input{padding-right:45px}.show-password{position:absolute;right:7px;top:7px;width:35px;height:33px;background:none;border:0;color:#849277}.auth-help{font-size:10px;line-height:1.9;color:#929b87;margin-top:22px;margin-bottom:25px}.auth-private{border-top:1px solid var(--line);padding-top:17px;display:flex;gap:10px;color:#78886c;font-size:9px}.inline-error{font-size:11px;color:#a24e37;line-height:1.6;margin-top:15px}.app{display:flex;min-height:100vh}.sidebar{background:#233d31;color:#e7eddf;width:242px;position:fixed;inset:0 auto 0 0;padding:34px 20px;display:flex;flex-direction:column;z-index:20}.sidebar .wordmark{margin:0 10px 55px}.sidebar .brand-mark{border-color:#788a72}.nav-label{font-size:7px;letter-spacing:1.7px;color:#97a58b;margin:0 14px 13px}.nav-item{display:flex;align-items:center;gap:12px;border:0;background:none;padding:15px 14px;width:100%;color:#bfcbb6;text-align:left;font-size:11px;margin-bottom:5px}.nav-item>span{font-size:19px;width:22px;text-align:center;color:#adbe98}.nav-item.active,.nav-item:hover{background:#ffffff0c;color:#f3f6eb}.nav-item.active{box-shadow:inset 2px 0 #cedbad}.nav-item b{margin-left:auto;font-size:9px;color:#d9e5c2;font-weight:500}.sidebar-bottom{margin-top:auto;padding-top:60px}.profile{display:flex;gap:10px;align-items:center;border-top:1px solid #ffffff13;padding-top:20px;margin:0 6px}.avatar{width:36px;height:36px;flex-shrink:0;border-radius:50%;background:#dee6cf;color:#526144;display:grid;place-items:center;font-size:12px;font-weight:600}.profile strong{display:block;max-width:111px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:10px;font-weight:500}.profile small{display:block;font-size:8px;color:#9eae90}.profile .icon-button{font-size:18px;color:#b4c0a5;margin-left:auto;min-width:24px}.workspace{margin-left:242px;flex:1;min-width:0}.workspace-header{height:77px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 44px;font-size:11px}.header-note{font-size:7px;letter-spacing:1.7px;color:#939f86}.view{padding:44px;max-width:1300px;margin:auto}.welcome{margin-bottom:35px}.welcome h1{font-size:51px}.welcome .eyebrow{margin-bottom:16px}.welcome .muted{font-size:11px}.library-book{display:grid;grid-template-columns:.8fr 1.3fr;border:1px solid var(--line);background:var(--surface);min-height:440px}.library-cover{background:radial-gradient(ellipse,#f4f4e9,#e5eadb);padding:52px 35px 40px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}.library-cover:before{content:'';border:1px solid #cdd6bf;width:420px;height:420px;border-radius:50%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.library-cover img{position:relative;width:min(100%,208px);transform:rotate(-5deg);box-shadow:18px 20px 26px #263d352b}.edition-tag{position:absolute;top:20px;left:22px;font-size:7px;letter-spacing:1.6px;color:#839172}.library-description{padding:42px 44px}.library-description h2{font-size:49px;line-height:1.05}.library-description .eyebrow{font-size:8px;margin-bottom:20px}.library-description>.muted{font-size:10px}.book-facts{display:flex;flex-wrap:wrap;gap:13px;font-size:9px;color:#8b967e;margin:24px 0 30px}.book-facts span+span:before{content:'·';margin-right:13px}.reading-progress{margin-bottom:27px;font-size:9px}.reading-progress>div:first-child{display:flex;justify-content:space-between;margin-bottom:10px;color:#8c977d}.reading-progress strong{font-weight:500;color:#6d7e58}.progress-track{height:3px;background:#e5e9dd}.progress-track i{display:block;height:100%;width:0;background:#8e9d70}.library-description>.btn{width:100%;max-width:310px}.library-description>.text-button{display:block;margin-top:13px}.library-description .subtle{font-size:8px;margin:21px 0 0}.feature-row{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:26px}.feature-row button{border:1px solid var(--line);background:none;text-align:left;padding:24px;display:flex;align-items:center;gap:18px}.feature-row button>span{font-size:26px;color:#85946a}.feature-row h3{font-size:12px;margin:0 0 4px}.feature-row p{font-size:9px;color:#8b957d;margin:0}.feature-row b{margin-left:auto;font-weight:400;color:#7d8f65}.notes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:20px;margin-top:32px}.note-card{border:1px solid var(--line);background:var(--surface);padding:25px}.note-card .eyebrow{color:#8b9a73;margin-bottom:15px}.note-card h3{font-family:var(--serif);font-weight:500;font-size:27px;line-height:1.15;overflow-wrap:anywhere}.note-card p{font-size:11px;white-space:pre-wrap;color:#7b8670;overflow-wrap:anywhere}.note-card footer{display:flex;gap:18px;margin-top:24px}.danger-link{border:0;background:none;color:#aa806c;font-size:10px;padding:0}.empty-state{border:1px dashed #d4dcca;padding:40px;text-align:center;color:#8b987d;grid-column:1/-1;max-width:650px;width:100%;margin:22px auto}.empty-state .empty-icon{font-size:36px;color:#9dab8a}.empty-state h3{font-family:var(--serif);font-size:29px;font-weight:500;color:#62724f;margin:12px 0}.empty-state p{font-size:11px}.chat{background:var(--surface);border:1px solid var(--line);max-width:850px;margin-top:28px;display:flex;flex-direction:column;min-height:510px}.chat-top{display:flex;align-items:center;gap:14px;padding:22px 25px;border-bottom:1px solid var(--line);min-height:84px}.chat-top strong{display:block;font-size:12px}.chat-top small{display:block;font-size:9px;color:#9ba58e}.chat-top .text-button{margin-left:auto}.chat-messages{padding:25px;min-height:230px;max-height:520px;overflow:auto;flex:1}.message{margin-bottom:20px;max-width:85%;padding:16px 19px;background:#f0f3e8;border:1px solid #e4e9db;overflow-wrap:anywhere}.message.mine{margin-left:auto;background:#e1e9d4;border-color:#d8e1ca}.message strong{font-size:10px}.message time{font-size:8px;color:#97a18c;float:right;margin-left:14px}.message p{white-space:pre-wrap;font-size:12px;line-height:1.75;margin:8px 0 0}.message .text-button{font-size:9px}.chat-compose{border-top:1px solid var(--line);padding:22px 25px}.chat-compose textarea{font-size:12px;background:#fbfcf6}.chat-compose>div:last-child{display:flex;align-items:center;gap:15px;justify-content:space-between;margin-top:14px}.chat-compose .subtle{font-size:8px}.message-context{font-size:10px;color:#758762;padding-bottom:10px}.view-heading{display:flex;justify-content:space-between;align-items:center;gap:25px}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:24px 0}.stat-card{padding:20px 24px;border:1px solid var(--line);background:#fffef7}.stat-card strong{display:block;font-family:var(--serif);font-size:43px;font-weight:500;line-height:1.1}.stat-card span{font-size:10px;color:#8a967b}.search-field{position:relative;max-width:420px;margin:28px 0 22px}.search-field>span{position:absolute;top:8px;left:13px;font-size:25px;color:#8d9a7e}.search-field input{padding-left:45px;font-size:11px}.table-wrap{overflow:auto;border:1px solid var(--line);background:var(--surface)}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:8px;letter-spacing:1px;text-transform:uppercase;color:#88967b;font-weight:500;background:#f0f3e7;padding:17px 20px;white-space:nowrap}td{padding:18px 20px;border-top:1px solid var(--line);font-size:11px;vertical-align:middle}td strong{font-weight:600}td small{display:block;font-size:9px;color:#919c84;margin-top:4px}.status{display:inline-block;font-size:8px;padding:4px 9px;background:#e4edda;color:#6a8055;white-space:nowrap}.status.paused{background:#f0e9df;color:#ab8769}.row-actions{display:flex;gap:10px;align-items:center}.row-actions button{background:none;border:1px solid #dce3d1;padding:5px 9px;font-size:9px;white-space:nowrap}.inbox-layout{display:grid;grid-template-columns:270px 1fr;gap:20px;margin-top:28px}.inbox-layout .chat{margin:0;min-width:0}.conversations{border:1px solid var(--line);background:#fffef7}.conversation{padding:19px;border:0;border-bottom:1px solid var(--line);background:none;display:block;text-align:left;width:100%}.conversation.active{background:#e7eddd}.conversation strong{font-size:12px}.conversation p{font-size:10px;color:#8b977d;margin:7px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation b{float:right;border-radius:50%;background:#6a8152;color:white;font-size:8px;padding:1px 6px}.devices-list{max-width:730px;margin-top:30px}.device-card{display:flex;align-items:center;gap:18px;border:1px solid var(--line);background:#fffef7;padding:24px;margin-bottom:15px}.device-card>span{font-size:28px;color:#8b9b77}.device-card h3{font-size:13px;margin:0 0 5px}.device-card p{font-size:10px;color:#8d9a7e;margin:0}.device-card button{margin-left:auto}.mobile-menu{display:none}.reader{position:fixed;inset:0;background:#e5e8df;z-index:30;display:flex;flex-direction:column}.reader-toolbar{height:74px;flex-shrink:0;background:#fafbf5;border-bottom:1px solid #d9e0cf;display:flex;align-items:center;gap:18px;padding:0 24px}.reader-title{margin-right:auto;min-width:0}.reader-title strong{display:block;font-size:11px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:300px}.reader-title small{display:block;font-size:8px;color:#909b82}.reader-tool{border:0;background:none;color:#687d51;display:flex;align-items:center;gap:7px;font-size:22px;padding:8px}.reader-tool span{font-size:9px}.reader-body{display:flex;overflow:hidden;flex:1;position:relative}.page-stage{overflow:auto;flex:1;position:relative;padding:30px;display:block;text-align:center}.page-stage img{display:block;max-width:none;width:var(--page-width,720px);margin:0 auto;background:white;box-shadow:0 8px 35px #33432916;user-select:none;-webkit-user-select:none}.page-loading{position:absolute;top:90px;left:0;right:0;color:#8b9a7b;font-size:11px}.reader-watermark{position:fixed;bottom:85px;right:35px;color:#70865a66;font-size:9px;pointer-events:none}.reader-footer{height:68px;flex-shrink:0;background:#fafbf5;border-top:1px solid #d9e0cf;display:flex;align-items:center;gap:25px;padding:0 25px}.page-position{display:flex;align-items:center;gap:9px;font-size:10px;white-space:nowrap}.page-position label{font-size:10px;font-weight:400;margin:0}.page-position input{width:55px;padding:7px;margin:0;background:none;border:1px solid #d7dfcb;text-align:center;-moz-appearance:textfield}.page-position input::-webkit-inner-spin-button{display:none}.page-range{flex:1;accent-color:#839a67;padding:0;background:none;max-width:500px;margin:0}.zoom-controls{display:flex;align-items:center;margin-left:auto;gap:5px}.zoom-controls output{font-size:9px;min-width:35px;text-align:center}.reader-drawer{width:310px;flex-shrink:0;background:#fafbf5;border-right:1px solid #d9e0cf;overflow-y:auto}.drawer-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:17px 20px;position:sticky;top:0;background:#fafbf5;z-index:2}.drawer-heading h3{font-family:var(--serif);font-size:28px;font-weight:500;margin:0}.toc-button{display:flex;justify-content:space-between;align-items:center;gap:15px;width:100%;padding:13px 20px;text-align:left;border:0;border-bottom:1px solid #e8ecdf;background:none;font-size:11px}.toc-button.active{background:#e7eedc;color:#4e6c34}.toc-button span{font-size:9px;color:#95a283}.drawer-search{padding:20px}.drawer-search input{font-size:11px}.search-result{border:0;border-bottom:1px solid var(--line);background:none;display:block;padding:18px 20px;text-align:left;width:100%}.search-result strong{font-size:10px;color:#6d8355}.search-result p{font-size:10px;color:#87957a;margin:6px 0 0}.reader-conflict{position:absolute;inset:74px 0 68px;background:#f7f8f0f5;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:10;text-align:center;padding:25px}.reader-conflict h2{font-size:42px}.reader-conflict p{font-size:12px;max-width:400px;margin-bottom:30px}.reader.night{background:#1c251e}.reader.night .reader-toolbar,.reader.night .reader-footer,.reader.night .reader-drawer,.reader.night .drawer-heading{background:#27352b;border-color:#46513e;color:#d6dfcd}.reader.night .reader-tool,.reader.night .icon-button,.reader.night input,.reader.night .toc-button{color:#c4d2b2}.reader.night #book-page{filter:invert(.87) hue-rotate(160deg);opacity:.88}.reader.night .reader-conflict{background:#27352bf5;color:#d6dfcd}.reader.night .toc-button.active{background:#415037}.reader.night .page-position input{background:#27352b}.reader.night .search-result{color:#d6dfcd}dialog{border:1px solid var(--line);background:var(--paper);color:var(--ink);padding:32px;max-width:min(540px,93vw);width:100%;max-height:90vh;overflow:auto}dialog::backdrop{background:#15251ed6}.dialog-heading{display:flex;gap:20px;align-items:center;justify-content:space-between;margin-bottom:14px}.dialog-heading h2{font-size:36px;margin:0}.dialog-heading .icon-button{align-self:flex-start}dialog>.muted{font-size:11px;margin-bottom:24px}dialog label{margin-bottom:17px}dialog .btn{margin-top:5px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}.invite-result{font-size:11px;color:#748465}.invite-result textarea{font-size:10px;overflow-wrap:anywhere}#toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);padding:13px 22px;background:#253f32;color:#edf2e4;box-shadow:0 5px 22px #0002;z-index:100;max-width:min(600px,92vw);font-size:12px;display:none}#toast.show{display:block}#toast.error{background:#8b4e3a}@media(min-width:1450px){.view{padding:55px 65px}.library-book{min-height:470px}.library-cover img{width:235px}.library-description{padding:50px}.library-description h2{font-size:58px}.library-cover{padding:55px}.welcome h1{font-size:60px}}@media(max-width:1100px){.sidebar{width:210px;padding:28px 12px}.workspace{margin-left:210px}.view{padding:32px}.workspace-header{padding:0 32px}.library-description{padding:30px}.library-description h2{font-size:42px}.library-cover{padding:50px 22px}.auth-layout{gap:6vw}.auth-story h1{font-size:58px}.auth-card{padding:30px}.reader-toolbar{gap:10px}.reader-tool span{display:none}.inbox-layout{grid-template-columns:210px 1fr}.header-note{font-size:6px}}@media(max-width:800px){.auth-layout{grid-template-columns:1fr;max-width:500px;margin-top:40px;gap:35px}.auth-story h1{font-size:54px}.auth-story>p:not(.eyebrow),.auth-book{display:none}.auth-story .eyebrow{font-size:7px}.auth-card{max-width:none}.auth-screen{padding:25px}.sidebar{width:210px;transform:translateX(-100%);transition:transform .2s;box-shadow:12px 0 25px #0001}.app.menu-open .sidebar{transform:none}.workspace{margin-left:0}.mobile-menu{display:block}.header-note{display:none}.workspace-header{height:62px;padding:0 25px}.view{padding:30px 25px}h1{font-size:46px}.welcome h1{font-size:45px}.library-description h2{font-size:39px}.feature-row{gap:15px}.feature-row button{padding:20px 14px;gap:12px}.reader-toolbar{height:65px;padding:0 12px;gap:5px}.reader-title strong{max-width:220px;font-size:10px}.reader-title small{font-size:7px}.reader-tool{padding:6px}.reader-footer{height:65px;padding:0 12px;gap:13px}.reader-conflict{inset:65px 0}.page-range{max-width:200px}.reader-drawer{width:270px;position:absolute;top:0;bottom:0;left:0;z-index:5;box-shadow:10px 0 25px #263d351c}.page-stage{padding:20px}.inbox-layout{grid-template-columns:1fr}.conversations{max-height:220px;overflow:auto}.view-heading{align-items:flex-start}.view-heading>.btn{font-size:10px;padding:13px 15px}.stats-grid{gap:12px}.stat-card{padding:18px}.stat-card strong{font-size:36px}}@media(max-width:540px){.auth-screen>.wordmark{font-size:8px}.auth-story h1{font-size:48px}.auth-card{padding:26px 22px}.auth-card h2{font-size:36px}.auth-layout{margin-top:35px}.auth-story .eyebrow{letter-spacing:1.2px}.view{padding:26px 20px}.eyebrow{font-size:8px;letter-spacing:1.5px}.welcome h1{font-size:40px}.welcome{margin-bottom:24px}.welcome .muted{font-size:10px}.library-book{grid-template-columns:1fr}.library-cover{padding:48px 30px 32px;min-height:270px}.library-cover img{width:150px}.library-cover:before{width:310px;height:310px}.library-description{padding:30px}.library-description h2{font-size:42px}.library-description>.btn{max-width:none}.library-description>.subtle{font-size:8px}.book-facts{font-size:8px;gap:8px}.book-facts span+span:before{margin-right:8px}.feature-row{grid-template-columns:1fr;gap:12px}.feature-row h3{font-size:12px}.feature-row p{font-size:9px}.feature-row button{padding:22px}.notes-grid{grid-template-columns:1fr}.reader-title strong{max-width:123px;font-size:9px}.reader-title small{display:none}.reader-toolbar{gap:1px}.reader-toolbar .icon-button{min-width:30px;font-size:20px}.reader-tool{font-size:21px;padding:5px;min-width:33px}#fullscreen{display:none}.reader-footer{gap:8px;padding:0 8px}.page-position{font-size:9px;gap:5px}.page-position label{display:none}.page-position input{width:44px;padding:5px}.page-range{min-width:35px;width:50px}.zoom-controls{gap:0}.zoom-controls .icon-button{min-width:26px;font-size:18px}.zoom-controls output{min-width:30px;font-size:8px}.reader-footer>.icon-button{min-width:28px}.page-stage{padding:12px 8px}.reader-watermark{right:15px;bottom:78px;font-size:7px}.chat-top,.chat-messages,.chat-compose{padding:18px}.chat-top small{font-size:8px}.chat-compose>div:last-child{align-items:flex-end}.chat-compose .subtle{max-width:140px}.chat-compose .btn{font-size:10px;padding:12px 15px}.message{max-width:95%;padding:13px}.message p{font-size:11px}.view-heading{display:block}.view-heading>.btn{margin:8px 0 0}.stats-grid{gap:8px}.stat-card{padding:14px 10px}.stat-card span{font-size:8px}.stat-card strong{font-size:33px}.view>h1{font-size:43px}dialog{padding:25px 22px}.dialog-heading h2{font-size:32px}.device-card{padding:20px 15px;gap:13px}.device-card button{font-size:9px}.auth-private{font-size:8px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}html{scroll-behavior:auto}}

/* A bound volume, with page edges and a hinged front cover. */
.shelf-volume{position:relative;isolation:isolate;transform:perspective(1000px) rotateY(-17deg) rotateZ(-4deg);transform-style:preserve-3d;transition:transform .5s ease;box-shadow:24px 30px 30px #263d3533;max-width:100%}
.shelf-volume:before{content:'';position:absolute;inset:5px -12px -5px 7px;z-index:-1;background:repeating-linear-gradient(0deg,#d8d5c9 0 1px,#fffdf4 1px 3px);border:1px solid #c3c2b5;border-radius:0 4px 4px 0;transform:skewY(5deg)}
.shelf-volume:after{content:'';position:absolute;inset:0 auto 0 0;width:11%;background:linear-gradient(90deg,#163c3440,#fff5 34%,#243e3229 65%,transparent);pointer-events:none;border-left:4px solid #315c49;border-radius:3px 0 0 3px}
.library-cover .shelf-volume img{display:block;transform:none;box-shadow:none;border-radius:2px 4px 4px 2px;width:208px;max-width:100%}
.library-cover:hover .shelf-volume{transform:perspective(1000px) rotateY(-9deg) rotateZ(-2deg) translateY(-5px)}
.page-stage{perspective:1800px;padding-bottom:48px;background:radial-gradient(ellipse at 50% 20%,#f1f0e6,#dce1d5)}
.book-volume{position:relative;isolation:isolate;width:var(--page-width,720px);margin:0 auto;box-shadow:15px 23px 38px #263d3530;border-radius:3px;transform-style:preserve-3d}
.book-volume:before{content:'';position:absolute;inset:6px -9px -9px 5px;z-index:-1;background:repeating-linear-gradient(0deg,#d1cebf 0 1px,#faf8ed 1px 3px);border:1px solid #b8b9a8;border-right:4px solid #355546;border-bottom:4px solid #355546;border-radius:2px 4px 4px 2px;box-shadow:3px 4px 7px #283a2920}
.book-volume:after{content:'';position:absolute;inset:0 auto 0 0;width:27px;pointer-events:none;background:linear-gradient(90deg,#243e3227,transparent 75%);border-left:3px solid #365845;border-radius:3px 0 0 3px}
.page-stage .book-volume>#book-page{width:100%;margin:0;box-shadow:none;border-radius:2px}
.opening-cover{display:none;position:absolute;inset:0;transform-origin:left center;backface-visibility:hidden;background:#f5f4e9;border-left:7px solid #315644;box-shadow:8px 5px 18px #20382b30;pointer-events:none;z-index:3}
.page-stage .opening-cover img{width:100%;height:100%;object-fit:fill;margin:0;box-shadow:none}
.opening-ready .opening-cover,.opening .opening-cover{display:block}
.opening .opening-cover{animation:book-unfold 1.35s cubic-bezier(.25,.65,.25,1) both}
@keyframes book-unfold{0%{transform:rotateY(0);opacity:1}65%{opacity:1}100%{transform:rotateY(-125deg);opacity:0}}
.reader.night .page-stage{background:radial-gradient(ellipse at top,#354438,#19231c)}
@media(min-width:1450px){.library-cover .shelf-volume img{width:235px}}
@media(max-width:540px){.library-cover .shelf-volume img{width:150px}.book-volume:before{right:-5px;bottom:-6px}.book-volume:after{width:16px}.page-stage{padding:16px 14px 32px}}
@media(prefers-reduced-motion:reduce){.opening .opening-cover{animation:none;display:none}.shelf-volume,.library-cover:hover .shelf-volume{transform:none}}

/* Approved shelf and reader reference, October 2026. */
:root{--paper:#f5f3eb;--surface:#fbfaf5;--ink:#30483b;--line:#dedfd2;--serif:Georgia,'Times New Roman',serif}
.sidebar{width:100%;height:76px;bottom:auto;padding:0 36px;display:flex;flex-direction:row;align-items:center;gap:42px;border-right:0;border-bottom:1px solid var(--line);background:#fbfaf4;z-index:20}.sidebar .wordmark{font-size:10px;white-space:nowrap;line-height:1.3}.sidebar .wordmark small,.sidebar .wordmark br,.sidebar .nav-label{display:none}.sidebar .brand-mark{font-size:22px}.sidebar nav{display:flex;align-items:center;gap:10px;flex:1}.sidebar .nav-item{width:auto;margin:0;padding:10px 12px;font-size:11px;white-space:nowrap;background:transparent}.sidebar .nav-item.active{color:#214a36;border-bottom:2px solid #668167}.sidebar .nav-item>span{font-size:16px}.sidebar-bottom{margin:0;display:flex;align-items:center;gap:14px}.sidebar-bottom>.nav-item{display:none}.sidebar .profile{border:0;padding:0;margin:0;gap:9px}.profile small{font-size:8px}.profile strong{font-size:10px}.profile .avatar{width:30px;height:30px}.workspace{margin:76px 0 0}.workspace-header{display:none}.view{max-width:1280px;margin:0 auto;padding:56px 48px}.welcome{display:none}.library-book{border:0;background:transparent;grid-template-columns:1fr 1fr;gap:60px;min-height:590px}.library-cover{overflow:visible;background:radial-gradient(ellipse at center,#e9e9dd,#f1f0e6);padding:85px 40px;min-height:590px;border-radius:4px;cursor:pointer}.library-cover:before{display:none}.edition-tag{top:28px;font-size:9px;letter-spacing:2px}.shelf-hint{position:absolute;bottom:30px;font-size:11px;color:#788170}.library-cover .shelf-volume{transform:perspective(1200px) rotateY(-22deg) rotateZ(-3deg);box-shadow:24px 27px 28px #36453626}.library-cover .shelf-volume img{width:230px}.library-description{padding:35px 0;background:none}.library-description h2{font:normal 41px/1.22 Georgia;margin:22px 0 18px}.library-description h2 em{font-style:normal}.library-description .eyebrow{font-size:9px;letter-spacing:2px}.library-description .muted{font-size:12px;color:#7c8275}.book-facts{font-size:10px;flex-wrap:wrap}.library-description>.btn{font-size:12px;border-radius:4px;min-height:45px;max-width:260px}.reading-progress{margin:30px 0 24px;max-width:390px}.reading-progress>div{font-size:11px}.progress-track{height:4px;border-radius:2px;margin-top:12px}.shelf-shortcuts{display:flex;gap:25px;margin:18px 0 27px}.shelf-shortcuts button{font-size:11px}.recent-bookmarks{max-width:390px;border-top:1px solid var(--line);padding:20px 0 8px}#shelf-bookmarks button{display:flex;justify-content:space-between;align-items:center;width:100%;border:0;border-bottom:1px solid #e1e3d7;background:none;padding:11px 0;text-align:left;gap:15px;font-size:11px}#shelf-bookmarks small{white-space:nowrap;color:#788574}.feature-row{margin-top:30px;border-top:1px solid var(--line);padding-top:25px}.feature-row button{border:0;background:transparent;padding:10px 0}.feature-row h3{font-weight:500;font-size:14px}
.reader{background:#eae9df}.reader-toolbar{height:68px;background:#f9f8f1;padding:0 32px;gap:14px}.reader-title strong{font:14px Georgia}.reader-title small{font-size:10px;margin-top:5px}.reader-tool{font-size:19px}.reader-tool span{font-size:10px}.reader-body{position:relative}.page-stage{padding:38px 48px 50px;background:radial-gradient(ellipse at 50% 10%,#f2f1e7,#e6e5da);scrollbar-gutter:stable}.book-volume{display:flex;align-items:flex-start;border-radius:3px;box-shadow:0 18px 35px #3c463127;transition:width .25s ease;max-width:none}.page-stage .book-volume>#book-page,.page-stage .book-volume>#book-page-right{display:block;width:100%;background:#fffef8;border-radius:2px;filter:sepia(.1);margin:0;max-width:none;box-shadow:none;user-select:none}.page-stage .book-volume.spread>#book-page,.page-stage .book-volume.spread>#book-page-right{width:50%}.book-volume.spread:after{left:50%;width:34px;transform:translateX(-50%);border:0;z-index:4;background:linear-gradient(90deg,transparent,#4c493529 44%,#3e3f3438 50%,#f8f5e920 58%,transparent);pointer-events:none}.book-volume.spread .opening-cover{width:50%;left:50%;transform-origin:left}.book-volume:before{right:-7px;bottom:-6px;border-right-width:2px;border-bottom-width:3px}.reader-footer{background:#f9f8f1;height:62px;padding:0 30px;gap:18px}.page-position{font-size:11px}.page-position input{font-size:11px}.spread-label{font-size:11px;white-space:nowrap}.reader-footer #total-pages{font-size:10px;color:#87907b}.reader-drawer{width:320px;position:absolute;left:0;top:0;bottom:0;z-index:8;box-shadow:10px 0 30px #3c49342b;background:#f9f8f1}.reader-drawer.question-drawer{left:auto;right:0;box-shadow:-10px 0 30px #3c49342b}.drawer-heading{background:#f9f8f1}.drawer-heading h3{font:22px Georgia}.toc-button{padding:15px 20px;line-height:1.6;font-size:12px}.drawer-question,.reading-preferences{padding:24px;font-size:12px;line-height:1.7}.drawer-question textarea{background:#fdfcf7;font-size:13px}.question-context{margin:22px 0;padding:15px;background:#e9eedf;border-left:2px solid #779268;font-size:11px}.preference-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0 25px}.preference-row .btn{font-size:11px;padding:10px 13px;background:transparent;border:1px solid #ccd5c4;color:#3f5846;border-radius:4px}.preference-row .btn[aria-pressed=true]{background:#dce6d2;border-color:#729262}.reading-preferences p{font-size:12px}.reader.sage .page-stage{background:#d9e2d2}.reader.sage #book-page,.reader.sage #book-page-right{filter:sepia(.25) hue-rotate(30deg) saturate(.7)}.reader.night #book-page-right{filter:invert(.87) hue-rotate(160deg)}.reader.night .preference-row .btn{color:#d5dfc9;border-color:#627158}.reader.night .question-context{background:#3b4b37}.reader.night .drawer-question textarea{background:#27352b;color:#d5dfc9}.reader-conflict{inset:68px 0 62px}.opening .opening-cover{animation-duration:1.3s}
@media(max-width:1100px){.sidebar{gap:15px;padding:0 20px}.sidebar nav{gap:2px}.sidebar .nav-item{padding:10px 7px;font-size:10px}.sidebar .profile>div{display:none}.library-book{gap:35px}.view{padding:40px 32px}.library-description h2{font-size:35px}.library-cover{min-height:550px}.library-description{padding:20px 0}.reader-toolbar{padding:0 20px;gap:9px}}
@media(max-width:800px){.sidebar{height:66px;padding:0 20px;transform:none;box-shadow:none;justify-content:space-between}.sidebar nav{display:none;position:absolute;top:65px;left:0;right:0;background:#fbfaf4;padding:12px 20px;box-shadow:0 12px 20px #243c3220;flex-wrap:wrap}.app.menu-open .sidebar nav{display:flex}.sidebar .sidebar-bottom{margin-left:auto;margin-right:40px}.sidebar .wordmark{font-size:9px}.workspace{margin-top:66px}.workspace-header{display:block;position:absolute;top:12px;right:10px;height:auto;padding:0;border:0;z-index:25}.workspace-header>#breadcrumb,.workspace-header>.header-note{display:none}.mobile-menu{display:block}.library-book{grid-template-columns:1fr;gap:0;max-width:540px;margin:auto}.library-cover{min-height:390px;padding:65px 30px}.library-cover .shelf-volume img{width:180px}.library-description{padding:32px 6px}.library-description h2{font-size:34px}.view{padding:28px 22px}.edition-tag{top:22px}.shelf-hint{bottom:20px}.feature-row{max-width:540px;margin:0 auto;grid-template-columns:1fr 1fr}.reader-toolbar{height:60px;padding:0 10px;gap:3px}.reader-title strong{font-size:11px}.reader-title small{font-size:8px}.reader-footer{padding:0 12px;height:60px;gap:9px}.reader-footer .page-position label{display:none}.reader-footer .spread-label{display:none}.reader-drawer{width:min(340px,92vw)}.reader-tool{min-width:32px;padding:5px;font-size:21px}.reader-conflict{inset:60px 0}.page-stage{padding:24px 24px 35px}.book-volume:after{width:17px}}
@media(max-width:540px){.sidebar .brand-mark{font-size:20px}.sidebar .profile .avatar{width:26px;height:26px;font-size:10px}.sidebar .profile #logout{min-width:25px;font-size:20px}.sidebar-bottom{gap:5px}.library-cover{min-height:330px;padding:50px 30px}.library-cover .shelf-volume img{width:150px}.library-description h2{font-size:30px}.book-facts{font-size:10px}.library-description>.btn{max-width:none;width:100%;font-size:13px}.shelf-shortcuts{gap:25px}.feature-row{grid-template-columns:1fr}.reader-title strong{max-width:110px;font-size:10px}.reader-title small{display:none}.reader-toolbar #night-mode{display:none}.reader-toolbar #reader-settings{font-size:16px}.reader-tool span{display:none}.page-stage{padding:18px 18px 30px}.reader-footer{gap:6px;padding:0 6px}.reader-footer .page-position input{width:40px}.reader-footer .page-range{width:40px;min-width:25px}.reader-footer #total-pages{font-size:9px}.reader-drawer .drawer-heading h3{font-size:21px}.drawer-question,.reading-preferences{padding:22px}.recent-bookmarks .eyebrow{font-size:10px}.shelf-hint{font-size:10px}.page-stage .book-volume{transition:none}}
.sidebar .wordmark,.sidebar .nav-item,.sidebar .profile,.sidebar .profile strong{color:#3d5947}.sidebar .wordmark .brand-mark{color:#47664e;border-color:#aaba9e}.sidebar .nav-item.active{border-left:0}.sidebar .profile{align-self:center}.sidebar .wordmark{align-self:center}.sidebar .nav-item b{color:#496640}

.sidebar .wordmark{margin:0}.sidebar-bottom{padding-top:0}.sidebar .nav-item.active{box-shadow:none}.sidebar nav{height:100%}.sidebar .nav-item>span{color:#72856b}.sidebar .profile small{color:#7b8972}
/* Объёмная книга (как в макете): корешок, срез страниц, матовая обложка */
.b3d{--w:300px;--h:calc(var(--w) * 1.429);--t:calc(var(--w) * .11);--ease:cubic-bezier(.55,.05,.25,1);position:relative;width:calc(var(--w) + var(--t) * 2 + 24px);height:calc(var(--h) + 56px);perspective:calc(var(--w) * 5.5);perspective-origin:50% 35%;flex:none}
.b3d-shadow{position:absolute;left:50%;top:calc(var(--h) + 2px);width:calc(var(--w) * 1.12);height:46px;transform:translateX(-46%);border-radius:50%;background:radial-gradient(closest-side,rgba(28,38,30,.30),rgba(28,38,30,0));filter:blur(6px);transition:width 1s var(--ease),transform 1s var(--ease);pointer-events:none}
.b3d-book{position:absolute;left:calc(var(--t) + 12px);top:22px;width:var(--w);height:var(--h);transform-style:preserve-3d;transform:rotateX(-6deg) rotateY(21deg);transition:transform .45s cubic-bezier(.3,.7,.3,1)}
.b3d-back,.b3d-first,.b3d-side,.b3d-top,.b3d-spine,.b3d-cover,.b3d-face,.b3d-endpaper{position:absolute;box-sizing:border-box}
.b3d-back{inset:0;transform:rotateY(180deg) translateZ(calc(var(--t) / 2));background:#E9E4D8;border-radius:3px 1px 1px 3px}
.b3d-first{top:3px;left:1px;width:calc(var(--w) - 5px);height:calc(var(--h) - 6px);transform:translateZ(calc(var(--t) / 2 - 1.5px));background:linear-gradient(90deg,#E2DBCB 0%,#F3EEE4 4%,#FBF8F1 14%,#FBF8F1 100%)}
.b3d-side{top:3px;left:calc((var(--w) - var(--t) + 3px) / 2);width:calc(var(--t) - 3px);height:calc(var(--h) - 6px);transform:rotateY(90deg) translateZ(calc(var(--w) / 2 - 4px));background:linear-gradient(to bottom,rgba(40,40,30,.06),rgba(40,40,30,0) 22%,rgba(40,40,30,0) 78%,rgba(40,40,30,.08)),repeating-linear-gradient(90deg,#F8F5EE 0 1px,#E1DACB 1px 2px)}
.b3d-top{left:1px;top:calc((var(--h) - var(--t) + 3px) / 2);width:calc(var(--w) - 5px);height:calc(var(--t) - 3px);transform:rotateX(90deg) translateZ(calc(var(--h) / 2 - 3px));background:repeating-linear-gradient(0deg,#F9F6EF 0 1px,#E3DDCF 1px 2px)}
.b3d-spine{top:0;left:calc((var(--w) - var(--t)) / 2);width:var(--t);height:var(--h);transform:rotateY(-90deg) translateZ(calc(var(--w) / 2));background:linear-gradient(90deg,#D2CCBD 0%,#EEEAE1 18%,#F6F3EC 50%,#EDE9E0 82%,#CFC8B9 100%);border-radius:2px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:calc(var(--t) * .9) 0 calc(var(--t) * .6);overflow:hidden}
.b3d-spine span{writing-mode:vertical-rl;font-family:Oswald,'Arial Narrow',sans-serif;font-weight:600;font-size:calc(var(--t) * .32);line-height:1;letter-spacing:.04em;color:#2F6A36;white-space:nowrap}
.b3d-spine svg{width:calc(var(--t) * .5);height:calc(var(--t) * .5);flex:none}
.b3d-cover{inset:0;transform-style:preserve-3d;transform-origin:0 50%;transform:translateZ(calc(var(--t) / 2));transition:transform .85s var(--ease) .15s}
.b3d-face,.b3d-endpaper{inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.b3d-face{border-radius:1px 3px 3px 1px;overflow:hidden;background:#fff}
.b3d .b3d-face img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;transform:none;box-shadow:none;border-radius:0;margin:0}
.b3d-face::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(38,44,34,.20) 0,rgba(255,255,255,.14) calc(var(--w) * .012),rgba(38,44,34,.10) calc(var(--w) * .03),rgba(38,44,34,0) calc(var(--w) * .06)),linear-gradient(160deg,rgba(255,255,255,.05),rgba(0,0,0,0) 40%,rgba(30,36,28,.06))}
.b3d-endpaper{transform:rotateY(180deg);border-radius:3px 1px 1px 3px;background:linear-gradient(90deg,#A5B59E 0%,#AEBDA7 70%,#9DAE96 93%,#8B9C85 100%)}
.b3d-hover:hover .b3d:not(.is-open) .b3d-book,.b3d-hover:focus-visible .b3d:not(.is-open) .b3d-book{transform:rotateX(-5deg) rotateY(13deg) translateY(-4px)}
/* Открытие: книга встаёт анфас, обложка поворачивается вокруг корешка */
.b3d.is-open .b3d-book{transform:translateX(calc(var(--w) / 2)) rotateX(0deg) rotateY(0deg)}
.b3d.is-open .b3d-cover{transform:translateZ(calc(var(--t) / 2)) rotateY(-176deg)}
.b3d.is-open .b3d-shadow{width:calc(var(--w) * 2.15);transform:translateX(-50%)}
@media (prefers-reduced-motion:reduce){.b3d-book,.b3d-cover,.b3d-shadow{transition:none}}

/* ===== Оформление по согласованному макету «Веб-читалка», октябрь 2026 ===== */
:root{--paper:#F3EFE6;--surface:#FBF8F1;--ink:#23291F;--muted:#5A6055;--line:#E2DCCF;--green:#1F3A2A;--lime:#DDE5D7;--sage:#6E8B6F;--sage-d:#4F6A53;--serif:'Literata',Georgia,serif;--sans:'Manrope',Arial,sans-serif}
body{background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:15px;line-height:1.6}
h1,h2{font-family:var(--serif);font-weight:500;letter-spacing:-.01em;color:#1F2A21}
.eyebrow{font-size:11px;letter-spacing:.16em;color:var(--sage-d)}
.muted{color:var(--muted)}
.subtle{font-size:13px;color:var(--muted)}
.btn{background:var(--green);color:#F6F3EC;border-radius:12px;font-size:15px;font-weight:600;min-height:52px;padding:14px 26px;justify-content:center;gap:12px}
.btn:hover{background:#152A1E}
.text-button{font-size:14px;color:var(--green);border-bottom-color:#B9C4B3}
.icon-button{color:#2E352B;border-radius:10px;min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.icon-button:hover{background:#E9E3D7}
.ic{width:20px;height:20px;flex:none}
:focus-visible{outline:2px solid var(--sage-d);outline-offset:2px}
.opening-cover{display:none!important}
.no-anim,.no-anim *{transition:none!important}

/* Вход */
.auth-story>p:not(.eyebrow){font-size:16px;color:var(--muted)}
.auth-book{align-items:center;gap:28px}
.auth-book .b3d{--w:150px}
.auth-book span{font-size:11px;letter-spacing:.14em;color:var(--muted)}
.auth-card label{font-size:14px}

/* Шапка кабинета */
.sidebar{background:var(--paper);border-bottom-color:var(--line)}
.sidebar .wordmark{font-size:12px;color:var(--green)}
.sidebar .brand-mark{border-color:#B9C4B3;color:var(--green)}
.sidebar .nav-item{font-size:14px;color:#4E5449;border-radius:0}
.sidebar .nav-item.active{color:var(--green);font-weight:700;border-bottom:2px solid #8FA58A}
.sidebar .nav-item b{background:var(--lime);color:var(--green);border-radius:999px;padding:0 7px;font-size:12px}
.profile strong{font-size:13px}.profile small{font-size:11px;color:var(--muted)}
.profile .avatar{background:var(--lime);color:var(--green)}

/* Полка */
.library-book{gap:64px}
.library-cover{background:linear-gradient(#EFEAE0 0%,#EDE8DD 63%,#E4DDCF 63%,#E7E1D4 100%);border-radius:24px;min-height:600px;padding:60px 30px 70px;overflow:visible;display:flex;align-items:center;justify-content:center}
.library-cover .b3d{--w:260px;position:relative;z-index:2}
.edition-tag{font-size:11px;letter-spacing:.14em;color:var(--sage-d);top:26px;left:28px}
.shelf-hint{font-size:13px;color:var(--muted);bottom:26px;left:0;right:0;text-align:center}
.library-description .eyebrow{font-size:12px;letter-spacing:.16em}
.library-description h2{font:500 42px/1.14 var(--serif);letter-spacing:-.01em;margin:14px 0 14px;color:#1F2A21}
.library-description h2 em{font-style:normal}
.library-description .muted{font-size:16px;color:#3F463B}
.book-facts{font-size:14px;color:var(--muted)}
.reading-progress{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:18px 20px;max-width:440px}
.reading-progress>div{font-size:14px;color:#3F463B}
.reading-progress strong{font-family:var(--serif);font-weight:500;color:var(--green)}
.progress-track{height:6px;border-radius:3px;background:#E6E0D3}
.progress-track i{background:var(--sage);border-radius:3px}
.library-description>.btn{max-width:300px;border-radius:12px;font-size:16px;min-height:54px}
.shelf-shortcuts button{font-size:14px}
.recent-bookmarks{max-width:440px}
#shelf-bookmarks button{font:16px var(--serif);color:var(--ink);min-height:46px}
#shelf-bookmarks small{font:14px var(--sans);color:var(--muted)}
.feature-row h3{font:500 17px var(--serif)}
.feature-row p{font-size:14px;color:var(--muted)}
.note-card h3{font-family:var(--serif)}
.note-card p{font-size:15px}
.message strong{font-size:13px}.message time{font-size:12px}.message p{font-size:15px}
.message-context,.message .text-button{font-size:13px}

/* Читалка */
.reader{background:var(--paper);animation:reader-in .35s ease both}
@keyframes reader-in{from{opacity:0}to{opacity:1}}
.reader-toolbar{height:64px;background:var(--paper);border-bottom:1px solid var(--line);padding:0 24px;gap:6px}
#reader-back{gap:6px;padding:0 12px 0 6px;font:600 14px var(--sans);color:var(--green)}
.reader-title{padding-left:14px;margin-left:6px;border-left:1px solid #D9D2C4}
.reader-title strong{font:500 16px/1.25 var(--serif);color:#1F2A21;max-width:360px}
.reader-title small{font-size:13px;color:var(--muted);margin-top:2px}
.reader-tool{height:44px;padding:0 12px;border-radius:10px;color:#2E352B;font-size:14px;gap:8px}
.reader-tool span{font-size:14px;font-weight:500}
.reader-tool:hover{background:#E9E3D7}
.reader-tool .aa{font:500 18px/1 var(--serif);color:var(--green)}
.reader-tool.saved{background:transparent;color:var(--sage-d)}
.reader-tool.saved .ic{fill:var(--sage);stroke:var(--sage-d)}
.ask-tool{background:var(--lime);color:var(--green);border-radius:999px;margin-left:6px;padding:0 16px}
.ask-tool:hover{background:#CFDBC8}
.ask-tool span{font-weight:600}
.page-stage{background:var(--paper);padding:30px 44px 44px}
.book-volume{background:linear-gradient(180deg,#24412F 0%,#1F3A2A 100%);padding:9px 14px 11px 8px;border-radius:6px;box-sizing:border-box;box-shadow:0 2px 3px rgba(20,30,22,.22),0 26px 50px -18px rgba(20,30,22,.45),0 60px 90px -50px rgba(20,30,22,.40);transform:none}
.book-volume:before{display:none}
.book-volume:after{display:none}
.book-volume.spread:after{display:block;content:'';position:absolute;top:9px;bottom:11px;left:calc(8px + (100% - 22px) / 2);width:64px;transform:translateX(-50%);border:0;z-index:4;pointer-events:none;background:linear-gradient(90deg,rgba(70,60,40,0) 0%,rgba(70,60,40,.07) 38%,rgba(60,50,30,.17) 50%,rgba(70,60,40,.07) 62%,rgba(70,60,40,0) 100%)}
.page-stage .book-volume>#book-page,.page-stage .book-volume>#book-page-right{background:#FBF8F1;filter:sepia(.06);border-radius:0;transition:opacity .4s ease}
.page-stage .book-volume>#book-page{box-shadow:1px 0 0 #DCD5C5,2px 0 0 #F4F0E7,3px 0 0 #D9D2C2,4px 0 0 #F2EEE4,5px 0 0 #D6CFBF}
.page-stage .book-volume.spread>#book-page{box-shadow:-1px 0 0 #DCD5C5,-2px 0 0 #F2EEE4,-3px 0 0 #D8D1C1;border-radius:3px 0 0 3px}
.page-stage .book-volume.spread>#book-page-right{box-shadow:1px 0 0 #DCD5C5,2px 0 0 #F4F0E7,3px 0 0 #D9D2C2,4px 0 0 #F2EEE4,5px 0 0 #D6CFBF,6px 0 0 #F0EBE1,7px 0 0 #D3CCBC,8px 0 0 #EAE4D8,9px 0 0 #CFC8B8;border-radius:0 3px 3px 0}
.page-loading{font-size:14px;color:var(--muted)}
.reader-watermark{font-size:11px}
.reader-footer{height:60px;background:var(--paper);border-top:1px solid var(--line);padding:0 24px;gap:16px}
.page-position,.page-position label,.spread-label{font-size:13px;color:#3F463B}
.page-position input{font-size:14px;border-color:#D5CEC0;border-radius:8px;background:var(--surface);min-height:36px}
.reader-footer #total-pages{font-size:13px;color:var(--muted)}
.page-range{accent-color:var(--sage-d)}
.zoom-controls output{font-size:13px;color:#3F463B;min-width:44px}
.reader-drawer{background:var(--surface);width:360px;box-shadow:18px 0 50px -20px rgba(20,30,22,.35)}
.reader-drawer.question-drawer{width:400px;box-shadow:-18px 0 50px -20px rgba(20,30,22,.35)}
.drawer-heading{background:var(--surface);border-bottom-color:var(--line);padding:16px 20px}
.drawer-heading h3{font:500 22px var(--serif);color:#1F2A21}
.toc-button{font:15px/1.4 var(--serif);color:var(--ink);border-bottom-color:#EEE8DC;padding:12px 20px;min-height:48px}
.toc-button span{font:14px var(--sans);color:var(--muted)}
.toc-button.active{background:#E3EADD;color:#1F2A21;font-weight:600}
.drawer-search,.drawer-question,.reading-preferences{font-size:15px;line-height:1.6}
.drawer-search input,.drawer-question textarea{font-size:16px;border-radius:12px;border-color:#D5CEC0;background:#fff}
.search-result strong{font-size:13px;color:var(--sage-d)}
.search-result p{font:15px/1.5 var(--serif);color:#3F463B}
.question-context{background:#E3EADD;border:0;border-radius:12px;font:italic 15px/1.5 var(--serif);color:#1F2A21}
.reading-preferences p{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:0}
.reading-preferences p.subtle{text-transform:none;letter-spacing:0;font-weight:400;font-size:13px}
.preference-row{background:#ECE6DA;border-radius:12px;padding:4px;gap:4px;margin:10px 0 22px}
.preference-row .btn{flex:1;min-height:38px;padding:0 10px;border:0;border-radius:9px;background:transparent;color:#3F463B;font-size:14px;font-weight:500}
.preference-row .btn[aria-pressed=true]{background:var(--surface);color:var(--green);font-weight:700;box-shadow:0 1px 2px rgba(30,40,32,.15)}
.preference-row output{min-width:70px;text-align:center;font:500 17px var(--serif);color:var(--green)}
.reader.sage .page-stage{background:#E3EADD}
.reader.night{background:#141B16}
.reader.night .page-stage{background:#1A221C}
.reader.night .book-volume{background:#101611}
.reader.night .reader-title strong{color:#D6DFCD}
.reader.night .ask-tool{background:#33452F;color:#D6DFCD}
.reader-conflict{inset:64px 0 60px;background:rgba(243,239,230,.96)}

@media(max-width:1100px){.reader-tool span{display:none}.ask-tool span{display:inline}}
@media(max-width:800px){
 .library-cover{min-height:400px;padding:50px 16px 56px;border-radius:20px}
 .library-cover .b3d{--w:178px}
 .library-description h2{font-size:30px}
 .reader-toolbar{height:56px;padding:0 6px;gap:0}
 .back-label,.reader-title small{display:none}
 .reader-title{border:0;padding-left:4px;margin-left:0}
 .reader-title strong{font-size:15px;max-width:150px}
 .reader-tool{min-width:44px;padding:0 10px;justify-content:center}
 .reader-tool span,.ask-tool span{display:none}
 .ask-tool{margin-left:2px;padding:0 12px}
 #fullscreen{display:none}
 .page-stage{padding:0}
 .book-volume,.book-volume.spread{background:none;padding:0;border-radius:0;box-shadow:none}
 .page-stage .book-volume>#book-page{box-shadow:none}
 .reader-footer{height:56px;padding:0 6px;gap:6px}
 .zoom-controls{display:none}
 .reader-drawer,.reader-drawer.question-drawer{width:100%;left:0;right:0;top:auto;max-height:82%;border-radius:22px 22px 0 0;box-shadow:0 -12px 40px -16px rgba(20,30,22,.4)}
}
.page-stage .book-volume>#book-page,.page-stage .book-volume>#book-page-right{height:var(--page-h,auto);object-fit:contain}

/* Стрелки перелистывания в нижних углах страницы */
.page-corner{position:absolute;bottom:22px;z-index:6;width:44px;height:44px;display:grid;place-items:center;padding:0;border:1px solid rgba(36,65,47,.16);border-radius:50%;background:rgba(251,248,241,.86);color:#24412F;cursor:pointer;opacity:.6;box-shadow:0 4px 12px -4px rgba(20,30,22,.35);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);transition:opacity .2s ease,transform .2s ease,background .2s ease}
.page-corner svg{width:22px;height:22px}
.page-corner-prev{left:24px}.page-corner-next{right:30px}
.page-corner:hover,.page-corner:focus-visible{opacity:1;background:#FBF8F1}
.page-corner-prev:hover{transform:translateX(-2px)}.page-corner-next:hover{transform:translateX(2px)}
.page-corner:focus-visible{outline:2px solid #8FA98F;outline-offset:2px}
.page-corner[hidden]{display:none}
.opening .page-corner,.opening-ready .page-corner{opacity:0;pointer-events:none}
.reader.night .page-corner{background:rgba(24,32,26,.82);color:#d9e2d4;border-color:rgba(217,226,212,.18)}
@media(hover:none){.page-corner{opacity:.85}}
@media(max-width:700px){.page-corner{bottom:14px;width:40px;height:40px}.page-corner-prev{left:10px}.page-corner-next{right:10px}}
a.nav-item{text-decoration:none;box-sizing:border-box}
