
:root{--bg:#f5f5ef;--paper:#fbfcf8;--ink:#344a43;--line:#d9dfd7}.book-tools{position:static;z-index:auto;max-width:1380px;margin:0 auto;background:transparent;border-bottom:1px solid var(--line);font:14px/1.8 system-ui,sans-serif}.book-tools .site-logo{font:16px/1.5 Georgia,serif;white-space:normal}.book-tools .ui-btn{font:13px/1.7 system-ui,sans-serif}.sidebar{top:118px;max-height:calc(100vh - 142px)}html{scroll-padding-top:125px}.reading-progress{top:94px;z-index:1001}.search-overlay{z-index:2000}.home-hero{background:linear-gradient(135deg,#123b37,#092d31)}.chapter-card:nth-child(3n+2){background:#f3ecdf}.chapter-card:nth-child(3n){background:#e5eef1}.book-footer{padding:28px 24px;text-align:center;background:#13243c;color:#f5f5ef;font:13px/1.8 system-ui,sans-serif}.book-footer p{margin:5px 0}.book-footer a{text-underline-offset:4px}header.shared-header .reading-submenu{font-family:system-ui,sans-serif}html[data-theme="dark"] .chapter-card:nth-child(n){background:var(--panel)}@media(max-width:760px){.book-tools{padding:15px;flex-wrap:wrap;justify-content:center;gap:12px}.book-tools .site-logo{font-size:15px}.reading-progress{top:74px}.home-hero h1{font-size:42px}.book-tools .top-actions{justify-content:center}.search-box{max-height:85vh;overflow:auto}.book-footer{text-align:center}}@media print{header.shared-header,.book-tools,.book-footer{display:none!important}}

/* Naturalne proporcje okładki na każdym ekranie */
.home-cover img{width:100%;max-width:300px;height:auto!important;max-height:none!important;aspect-ratio:880 / 1250;object-fit:contain}@media(max-width:810px){.home-cover img{max-width:260px}}

/* Przyciski wielkości tekstu dostępne także na telefonach */
.book-tools .top-actions .font-size-button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:42px}.book-tools .top-actions{gap:8px}.book-tools .ui-btn{min-height:42px}@media(max-width:810px){.book-tools .top-actions{display:flex;flex-wrap:wrap;justify-content:center;width:100%}.book-tools{gap:12px}.book-tools .top-actions .ui-btn{padding:8px 12px;font-size:14px}}
