:root{--accent:#cd0000;--ink:#24334a;--muted:#7f8ca1;--line:#e5eaf1;--ui-height:181px}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{background:#e7f0fc;color:var(--ink);font:14px/1.45 Inter,system-ui,-apple-system,'Segoe UI',Arial,sans-serif}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.32;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}[hidden]{display:none!important}#viewerApp{height:100dvh;min-height:260px;display:flex;flex-direction:column;overflow:hidden}
.viewer-header{height:71px;flex:0 0 71px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:8px clamp(10px,2vw,34px);background:#fff;border-bottom:1px solid var(--line);z-index:10}.viewer-brand{display:flex;align-items:center;flex:0 0 auto}.viewer-brand img{width:clamp(130px,13vw,184px);height:auto;display:block;object-fit:contain}.viewer-title{flex:1;min-width:0;text-align:center;display:flex;flex-direction:column}.viewer-title strong{font-size:15px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.viewer-title small{color:#94a0b3;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-actions{display:flex;align-items:center;gap:8px}.header-button{display:flex;align-items:center;gap:7px;background:#fff;color:#3d526e;border:1px solid var(--line);padding:10px 13px;white-space:nowrap;text-decoration:none;border-radius:9px;font-size:12px;font-weight:700}.header-button:hover{border-color:#d99ca0;color:var(--accent)}.header-button>span:first-child{font-size:17px}
.tool-row{height:49px;flex:0 0 49px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 15px;background:#fafcff;border-bottom:1px solid #d9e4f2;z-index:9}.toolbar-group{display:flex;align-items:center;gap:4px;min-width:0}.tool-button{min-width:34px;height:35px;padding:0 5px;border:0;border-radius:8px;display:grid;place-items:center;background:transparent;color:#4f6785;font-size:21px;font-weight:500;line-height:1}.tool-button:hover,.tool-button.active{background:#e8eff8;color:var(--accent)}#fitBtn{font-size:16px}.zoom-label{font-variant-numeric:tabular-nums;min-width:48px;text-align:center;font-size:12px;font-weight:700;color:#6c7b90}.tool-divider{height:21px;width:1px;background:#d9e3ed;margin:0 5px}.tools-menu{position:relative}.tools-menu>summary{list-style:none;display:flex;gap:5px;align-items:center;padding:6px 12px;min-height:35px;border:1px solid #dce5f0;background:#fff;color:#536987;border-radius:8px;cursor:pointer;font-size:13px;font-weight:750}.tools-menu>summary::-webkit-details-marker{display:none}.tools-popup{position:absolute;right:0;top:calc(100% + 8px);width:230px;padding:7px;background:#fff;border:1px solid #dfe6ee;border-radius:12px;box-shadow:0 12px 36px #22344a24;z-index:30}.tools-popup button,.tools-popup a{display:block;width:100%;text-align:left;color:#354661;background:transparent;border:0;border-radius:7px;padding:10px 11px;text-decoration:none;font-size:13px}.tools-popup button:hover,.tools-popup a:hover{background:#f0f5fa;color:var(--accent)}
#workArea{position:relative;display:flex;flex:1;min-height:0;overflow:hidden}.stage-wrap{position:relative;flex:1;min-width:0;display:flex;align-items:safe center;justify-content:safe center;overflow:auto;isolation:isolate;background:linear-gradient(135deg,#e3efff 0%,#dbe9fc 48%,#d5e6fb 100%);scrollbar-color:#a6b9d5 transparent}.stage-decor{position:absolute;border-radius:50%;pointer-events:none;z-index:-1;background:#fff5}.stage-decor.a{height:70vw;width:70vw;min-width:500px;min-height:500px;top:-80%;left:-12%}.stage-decor.b{height:55vw;width:55vw;min-width:440px;min-height:440px;right:-23%;bottom:-120%}.stage-decor.c{height:42vw;width:42vw;min-width:320px;min-height:320px;left:-14%;bottom:-100%;background:#fff3}.book-container{position:relative;flex:0 0 auto;margin:auto;display:flex;align-items:center;justify-content:center;min-height:0}.book{position:relative;display:flex;width:100%;height:100%;transform-style:preserve-3d;filter:drop-shadow(8px 12px 13px #2a416227)}.sheet{height:100%;min-width:0;min-height:0;flex:1;position:relative;overflow:hidden;background:#fff;box-shadow:0 0 1px #142d4555}.book.spread-mode .sheet{width:50%;flex:0 0 50%}.book.single-mode .sheet,.book.cover-mode .sheet{width:100%;flex:0 0 100%}.sheet.left{box-shadow:inset -12px 0 15px -12px #17273a9c}.sheet.right{box-shadow:inset 12px 0 15px -12px #17273a9c}.sheet.left:after,.sheet.right:after{position:absolute;content:"";top:0;bottom:0;width:14px;pointer-events:none}.sheet.left:after{right:0;background:linear-gradient(to right,transparent,#15233a20)}.sheet.right:after{left:0;background:linear-gradient(to left,transparent,#15233a20)}.sheet canvas{display:block;width:100%;height:100%;object-fit:fill}.page-wait{position:absolute;inset:0;background:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;color:#98a5b6;font-size:13px}.page-wait:before{content:"";height:27px;width:27px;border:3px solid #dbe6f4;border-top-color:var(--accent);border-radius:50%;animation:spin 850ms linear infinite}.page-error{color:#a91a20;padding:20px;text-align:center;background:#fff5f5}.page-number{position:absolute;right:8px;bottom:5px;color:#9ea5b2;background:#ffffffa8;padding:0px 4px;border-radius:3px;font-size:10px;pointer-events:none}.link-zone{position:absolute;z-index:3;border:1px solid transparent;cursor:pointer}.link-zone:hover{background:#cd00001a;border:1px dashed var(--accent)}.edge-button{position:sticky;top:50%;align-self:center;flex:0 0 auto;height:55px;width:40px;border:1px solid #ffffffaf;background:#ffffffd9;color:#3d5978;border-radius:10px;z-index:4;font-size:34px;line-height:1;box-shadow:0 4px 20px #25436528}.edge-button:hover{background:#fff;color:var(--accent)}.edge-left{order:-1;margin-right:8px;left:6px}.edge-right{order:2;margin-left:8px;right:6px}.book-container{order:1}
.viewer-footer{height:61px;flex:0 0 61px;z-index:8;display:flex;align-items:center;gap:12px;padding:0 18px;background:#fff;border-top:1px solid var(--line)}.nav-page{background:#f3f7fc;border:1px solid var(--line);border-radius:8px;color:#526884;font-size:25px;line-height:1;height:36px;width:38px}.nav-page:hover{color:var(--accent)}.jump-label{font-size:12px;color:var(--muted);font-weight:700}.page-jump{width:57px;height:35px;text-align:center;border:1px solid #dae4ef;border-radius:8px;background:#fafcff;color:#334b69;font-weight:700;font-variant-numeric:tabular-nums}.page-total{white-space:nowrap;color:#8c9aad;font-size:12px;font-weight:700}.viewer-footer input[type=range]{min-width:0;flex:1;accent-color:var(--accent)}.foot-brand{border-left:1px solid var(--line);padding-left:17px;white-space:nowrap;font-size:11px;color:#93a0b0}.foot-brand b{color:#405879}.thumb-sidebar{width:238px;flex:0 0 238px;min-height:0;background:#fff;border-right:1px solid var(--line);z-index:6;display:flex;flex-direction:column}.thumb-header{display:flex;align-items:center;justify-content:space-between;padding:13px 15px;border-bottom:1px solid var(--line)}.thumb-header b{font-size:13px}.thumb-header button,.dialog-head button{background:transparent;border:0;color:#617793;font-size:23px}.thumb-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:11px;overflow-y:auto}.thumb-item{border:2px solid transparent;padding:5px;min-width:0;background:#f5f8fc;border-radius:8px;display:flex;flex-direction:column;align-items:center;gap:6px;color:#74849b;font-size:11px}.thumb-item.selected{border-color:var(--accent);color:var(--accent)}.thumb-item img{width:100%;height:105px;object-fit:contain}.thumb-item span{font-weight:750}/* Kartka 3D: front to bieżąca strona PDF, rewers to następna strona PDF. */
.book-container{perspective:2200px;perspective-origin:50% 50%}
.book.is-turning{filter:none;perspective:inherit}
.turn-underlay{position:absolute;inset:0;display:flex;z-index:1;pointer-events:none}
.turn-underlay.preparing{opacity:0}
.turn-underlay.spread .sheet{width:50%;flex:0 0 50%}
.turn-underlay.one .sheet{width:100%;flex:0 0 100%}
.turn-hold{position:absolute;top:0;bottom:0;width:50%;z-index:3;pointer-events:none;background:#fff;animation:stationary-sheet 490ms linear both}
.turn-hold.left{left:0}.turn-hold.right{right:0}
.turn-hold canvas{width:100%;height:100%;display:block}
.turn-leaf{position:absolute;top:0;bottom:0;z-index:5;pointer-events:none;transform-style:preserve-3d;will-change:transform}
.turn-leaf.spread-leaf{width:50%}
.turn-leaf.single-leaf{width:100%}
.turn-leaf.forward{right:0;transform-origin:left center}
.turn-leaf.backward{left:0;transform-origin:right center}
.turn-leaf.forward.turn-active{animation:page-turn-forward 490ms cubic-bezier(.37,.04,.2,1) both}
.turn-leaf.backward.turn-active{animation:page-turn-backward 490ms cubic-bezier(.37,.04,.2,1) both}
.turn-face{position:absolute;inset:0;overflow:hidden;background:#fff;backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:0 0 1px #31476377}
.turn-face canvas{display:block;width:100%;height:100%;object-fit:fill}
.turn-face.turn-back{transform:rotateY(180deg)}
.turn-face:after{content:"";position:absolute;inset:0;pointer-events:none;opacity:0;animation:paper-fold-shadow 490ms ease-in-out both}
.turn-face.turn-front:after{background:linear-gradient(90deg,#0005 0%,transparent 18%,#0002 72%,#fff5 100%)}
.turn-face.turn-back:after{background:linear-gradient(270deg,#0005 0%,transparent 25%,#0002 75%,#fff5 100%)}
.turn-leaf:after{content:"";position:absolute;top:1%;bottom:1%;width:4px;right:0;background:linear-gradient(90deg,transparent,#d0cfc8,#fff);filter:blur(1px)}
.turn-leaf.backward:after{left:0;right:auto}
@keyframes page-turn-forward{0%{transform:rotateY(0deg)}50%{transform:rotateY(-92deg)}100%{transform:rotateY(-179.5deg)}}
@keyframes page-turn-backward{0%{transform:rotateY(0deg)}50%{transform:rotateY(92deg)}100%{transform:rotateY(179.5deg)}}
@keyframes stationary-sheet{0%,46%{opacity:1}70%,100%{opacity:0}}
@keyframes paper-fold-shadow{0%,100%{opacity:.06}40%,62%{opacity:.75}}
.sound-button{font-size:19px}
.sound-button.active{color:var(--accent);background:#fbeeee}
@keyframes spin{to{transform:rotate(360deg)}}
.loading-screen,.error-screen{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;background:linear-gradient(145deg,#f8fbff,#dfebfa);text-align:center;padding:24px}.loader-logo{width:min(290px,70vw);height:auto;margin-bottom:18px}.loading-ring{width:132px;height:132px;border-radius:50%;background:conic-gradient(var(--accent) var(--load),#dae3f0 var(--load));padding:9px;box-shadow:0 8px 28px #28496818;transition:background .25s}.loading-inner{height:100%;width:100%;border-radius:50%;background:#f8fbff;display:flex;flex-direction:column;align-items:center;justify-content:center}.loading-inner strong{font-size:32px;font-variant-numeric:tabular-nums;color:#233d5c}.loading-inner small{font-size:12px;font-weight:700;color:#97a6b9}.loading-screen h1{font-size:21px;margin:10px 0 0;color:#1a3050}.loading-screen p{margin:0;color:#5f7794}.load-track{height:7px;width:min(330px,80vw);background:#dce6f3;border-radius:20px;overflow:hidden;margin-top:8px}.load-track span{display:block;width:0;height:100%;background:var(--accent);border-radius:20px;transition:width .3s}.loading-note{font-size:12px;color:#92a0b0!important;max-width:320px}.error-screen img{width:230px;max-width:70vw}.error-mark{width:66px;height:66px;border-radius:50%;background:#cd0000;color:#fff;display:grid;place-items:center;font-size:32px;font-weight:800;margin-top:20px}.error-screen h2{margin:6px 0 0}.error-screen p{max-width:410px;color:#6e819b}.btn{background:var(--accent);border:0;border-radius:9px;padding:12px 22px;color:white;font-weight:750}
.search-dialog{width:min(650px,calc(100vw - 24px));max-height:min(78dvh,750px);border:1px solid #dce5f0;box-shadow:0 16px 60px #1a32485a;border-radius:14px;padding:18px;color:var(--ink)}.search-dialog::backdrop{background:#14263e80}.dialog-head{display:flex;align-items:center;justify-content:space-between}.dialog-head h2{margin:0 0 13px;font-size:20px}.search-form{display:flex;gap:8px}.search-form input{min-width:0;flex:1;border:1px solid #ccd9e7;border-radius:8px;padding:11px}.search-form button,.cancel-search{border:0;border-radius:8px;background:var(--accent);color:white;padding:9px 14px;font-weight:750}.cancel-search{background:#e8edf5;color:#496078;margin-top:8px}.search-dialog p{font-size:12px;color:#78899f}.search-results{max-height:50dvh;overflow:auto;display:grid;gap:6px}.search-result{width:100%;display:block;text-align:left;border:1px solid var(--line);padding:10px 12px;background:#f8fafd;border-radius:8px;color:#344966}.search-result b{display:block;margin-bottom:4px}.search-result small{display:block;overflow-wrap:anywhere;font-size:11px;color:#7788a0}.search-result:hover{border-color:var(--accent)}#toast{position:fixed;z-index:200;bottom:70px;left:50%;transform:translateX(-50%);background:#233953;color:white;padding:12px 18px;border-radius:9px;display:none;box-shadow:0 10px 34px #223a5160;text-align:center}
body.embed .viewer-header{height:52px;flex-basis:52px}body.embed .viewer-brand img{width:116px}body.embed .viewer-title small{display:none}body.embed .viewer-footer{height:49px;flex-basis:49px}body.embed .tool-row{height:43px;flex-basis:43px}
@media(max-width:850px){.viewer-header{height:59px;flex-basis:59px;gap:8px;padding:6px 10px}.viewer-brand img{width:115px}.viewer-title strong{font-size:12px}.viewer-title small{display:none}.header-button{padding:6px 8px}.header-button .label{display:none}.tool-row{height:44px;flex-basis:44px;padding:0 8px}.tool-button{min-width:29px;height:31px;font-size:19px;padding:0 2px}.zoom-label{min-width:37px;font-size:11px}.tools-menu>summary{padding:6px 9px;min-height:31px}.tools-menu>summary span{display:none}.desktop-only{display:none}.edge-button{height:46px;width:30px;font-size:29px;border-radius:7px;margin-left:2px;margin-right:2px}.viewer-footer{height:52px;flex-basis:52px;gap:6px;padding:0 8px}.viewer-footer .jump-label{display:none}.foot-brand{display:none}.thumb-sidebar{position:absolute;top:0;bottom:0;left:0;width:min(245px,75vw);box-shadow:6px 1px 26px #142e4b3c}.page-jump{width:50px}.page-total{font-size:11px}}
@media(max-width:410px){.viewer-brand img{width:100px}.viewer-title strong{font-size:11px}.header-actions{gap:3px}.header-button{padding:5px}.zoom-label{min-width:32px}.tool-button{min-width:26px}.viewer-footer .nav-page{width:31px}.tool-divider{margin:0 1px}.tools-menu>summary{padding:5px 6px}}
@media(max-height:520px){.viewer-header{height:43px;flex-basis:43px}.viewer-brand img{width:110px}.tool-row{height:35px;flex-basis:35px}.viewer-footer{height:42px;flex-basis:42px}.edge-button{height:40px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:0.01ms!important;transition-duration:0.01ms!important}}

/* Navigation arrows float over the outer edge instead of reducing book dimensions. */
.edge-button{position:absolute;top:50%;transform:translateY(-50%);margin:0;align-self:auto}.edge-left{left:5px;right:auto}.edge-right{right:5px;left:auto}.book-container{order:0}
@media(max-width:850px){.edge-button{width:27px;height:44px;background:#ffffffdb}.edge-left{left:1px}.edge-right{right:1px}}

@media(max-width:850px){.sound-button{min-width:29px}}
@media(prefers-reduced-motion:reduce){.turn-leaf,.turn-hold,.turn-face:after{animation:none!important}}

/* v1.3.2 — subtelna, płynna kartka i strzałki tuż przy krawędzi książki */
.turn-leaf.forward.turn-active{animation:page-turn-forward 490ms cubic-bezier(.46,.04,.38,.96) both}
.turn-leaf.backward.turn-active{animation:page-turn-backward 490ms cubic-bezier(.46,.04,.38,.96) both}
.turn-leaf{filter:drop-shadow(0 6px 7px #16294326)}
.turn-face:after{animation:paper-fold-shadow 490ms ease-in-out both}
.turn-face.turn-front:after{background:linear-gradient(90deg,#00000045 0%,#0000 15%,#fff2 62%,#00000035 96%,#fff6 100%)}
.turn-face.turn-back:after{background:linear-gradient(270deg,#00000045 0%,#0000 15%,#fff2 62%,#00000032 96%,#fff6 100%)}
.turn-leaf:before{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(90deg,#0000 74%,#00000017);opacity:.35;transform:translateZ(1px)}
.turn-hold{animation:stationary-sheet 490ms linear both}
@keyframes page-turn-forward{0%{transform:rotateY(0deg) skewY(0deg)}24%{transform:rotateY(-35deg) skewY(-.6deg)}50%{transform:rotateY(-91deg) skewY(-1deg)}76%{transform:rotateY(-147deg) skewY(-.4deg)}100%{transform:rotateY(-180deg) skewY(0deg)}}
@keyframes page-turn-backward{0%{transform:rotateY(0deg) skewY(0deg)}24%{transform:rotateY(35deg) skewY(.6deg)}50%{transform:rotateY(91deg) skewY(1deg)}76%{transform:rotateY(147deg) skewY(.4deg)}100%{transform:rotateY(180deg) skewY(0deg)}}
@keyframes stationary-sheet{0%,45%{opacity:1}54%,100%{opacity:0}}
@keyframes paper-fold-shadow{0%,100%{opacity:.03}47%,53%{opacity:.63}}
/* Strzałki Publuu-style: bez ciężkiej białej ramki, wycentrowane przy książce */
.book-container .edge-button{position:absolute;top:50%;transform:translateY(-50%);z-index:7;
 display:flex;align-items:center;justify-content:center;width:39px;height:84px;
 border:0;border-radius:4px;background:transparent;box-shadow:none;
 color:#657890;font-size:48px;font-family:Arial,sans-serif;font-weight:200;
 opacity:.9;transition:opacity .15s,background .15s,color .15s}
.book-container .edge-button:hover{background:#ffffff8c;color:var(--accent);opacity:1}
.book-container .edge-button:disabled{opacity:.18}
.book-container .edge-left{left:-53px;right:auto}
.book-container .edge-right{right:-53px;left:auto}
.book-container{overflow:visible}
@media(max-width:850px){
 .book-container .edge-button{width:30px;height:58px;font-size:38px;background:#ffffff7d}
 .book-container .edge-left{left:-14px}
 .book-container .edge-right{right:-14px}
}

/* v1.3.3 — zakrzywiana kartka, nie transformacja sztywnego prostokąta. */
.curl-canvas{position:absolute;top:0;display:block;pointer-events:none;z-index:5;max-width:none;/* Cienie rysowane na canvas: CSS filter przetwarzał cały duży arkusz w każdej klatce. */}
.book.curl-active{filter:none;overflow:visible}
.book.curl-active>.sheet{visibility:hidden}
.book.curl-active .turn-underlay{z-index:1}
.book.curl-active .turn-hold{z-index:2;animation:none;transition:none}
.book.curl-active .turn-underlay.one .sheet{width:100%;flex-basis:100%}
.book.curl-active .turn-underlay.spread .sheet{width:50%;flex-basis:50%}
@media(prefers-reduced-motion:reduce){.curl-canvas{filter:none}}

/* v1.4.1 — ustawienia wyglądu dla każdej publikacji */
[hidden]{display:none!important}
.stage-wrap.theme-blue{background:linear-gradient(135deg,#e3efff 0%,#dbe9fc 48%,#d5e6fb 100%)}
.stage-wrap.theme-white{background:linear-gradient(135deg,#ffffff 0%,#f2f5fa 60%,#e8edf4 100%)}
.stage-wrap.theme-sand{background:linear-gradient(135deg,#fbf3df 0%,#ebdfc6 80%,#e5d4b4 100%)}
.stage-wrap.theme-dark{background:linear-gradient(135deg,#22364e 0%,#111b2c 100%)}
.stage-wrap.theme-custom{background:var(--reader-bg,#edf4fc)}
.stage-wrap.theme-white .stage-decor,.stage-wrap.theme-sand .stage-decor,.stage-wrap.theme-dark .stage-decor,.stage-wrap.theme-custom .stage-decor{display:none}
body.hide-page-numbers .page-number{display:none}
.book.page-slide-in{animation:personal-page-slide .22s ease-out both}
@keyframes personal-page-slide{from{opacity:.45;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){.book.page-slide-in{animation:none}}

/* v1.4.2 — linki i podglądy produktów osadzone na stronach PDF */
.catalog-hotspot{position:absolute;z-index:4;border:1px solid #cd00007a;background:#cd00000d;cursor:pointer;display:flex;align-items:center;justify-content:flex-end;padding:0;min-width:0;min-height:0;text-decoration:none;border-radius:3px;color:#fff}
.catalog-hotspot:hover,.catalog-hotspot:focus-visible{outline:2px solid #cd0000;background:#cd000022}
.hotspot-bubble{background:#cd0000;color:#fff;border-radius:50%;width:clamp(14px,2vw,24px);height:clamp(14px,2vw,24px);font-size:clamp(10px,1.5vw,15px);display:grid;place-items:center;box-shadow:0 2px 5px #0003;transform:translate(28%,-28%);flex:0 0 auto}
.product-hotspot-dialog{border:0;border-radius:16px;box-shadow:0 14px 80px #111a3455;padding:0;max-width:min(460px,94vw);max-height:86dvh;overflow:auto;color:#26344d;background:white}
.product-hotspot-dialog::backdrop{background:#0b122b9c}
.product-hotspot-dialog>img{display:block;max-height:240px;max-width:100%;width:100%;object-fit:contain;background:#f5f7fa;padding:18px}
.product-dialog-content{padding:23px}.product-dialog-eyebrow{font-size:10px;font-weight:900;color:#cd0000;letter-spacing:1.5px}
.product-dialog-content h2{font-size:23px;line-height:1.2}.product-dialog-content>p:not(.product-dialog-eyebrow){font-size:13px;color:#697a92}
#hotspotProductLink{background:#cd0000;color:#fff;display:block;text-align:center;text-decoration:none;border-radius:10px;padding:13px 18px;font-weight:800;margin-top:18px}
.product-dialog-close{position:absolute;right:10px;top:10px;border-radius:50%;width:35px;height:35px;background:#fff;color:#26344d;border:1px solid #dde4ee;z-index:2}

/* v1.4.3 — spis treści i szybki powrót do strony ze spisem */
.sidebar-tabs{display:flex;gap:5px;padding:9px 9px 0;background:#fff}.sidebar-tabs button{flex:1;border:1px solid #e1e8f1;background:#f5f8fc;color:#657a94;border-radius:7px;padding:9px 3px;font-size:11px;font-weight:750}.sidebar-tabs button.active{background:#fff0f0;border-color:#ebb0b0;color:#b10000}
.contents-list{overflow:auto;padding:11px 9px;min-height:0;display:flex;flex-direction:column;gap:5px}
.contents-entry{display:flex;align-items:start;justify-content:space-between;gap:9px;text-align:left;background:#fff;border:1px solid #e5eaf2;border-radius:8px;padding:10px 8px;color:#243b5a;font-weight:700;font-size:12px;line-height:1.45}
.contents-entry.is-child{margin-left:17px;border-left:3px solid #105fa6;font-weight:500;color:#516783;background:#f8fbff}.contents-entry.selected{border-color:var(--accent);background:#fff6f6;color:var(--accent)}.contents-entry:hover{background:#f0f5fa}
.contents-entry span{flex:1;min-width:0;overflow-wrap:anywhere}.contents-entry small{font-weight:800;color:#8e9caf;flex-shrink:0}.contents-empty{font-size:12px;color:#7b899d;text-align:center;padding:14px}
.return-toc-button{flex-shrink:0;border:1px solid #e4bec1;background:#fff6f6;color:#a70000;border-radius:8px;padding:9px 11px;font-size:12px;font-weight:750;white-space:nowrap}.return-toc-button:hover{background:#ffe9e9}
@media(max-width:850px){.contents-list{flex:1}.return-toc-button{padding:7px 8px;font-size:11px}}
@media(max-width:480px){.return-toc-button{font-size:0;min-width:34px}.return-toc-button::first-letter{font-size:19px}}

/* Powrót bezpośrednio z kartki do strony ze spisem, z wyjątkiem okładki i spisu. */
.sheet-return-toc{position:absolute;right:7px;bottom:20px;z-index:5;background:#ffffffde;color:#405a7a;border:1px solid #d5deea;border-radius:5px;padding:5px 7px;font-size:clamp(7px,.74vw,10px);font-weight:750;line-height:1.1;box-shadow:0 2px 6px #24334a20;max-width:40%;cursor:pointer}
.sheet-return-toc:hover,.sheet-return-toc:focus-visible{color:#cd0000;border-color:#cd0000;background:#fff}
@media(max-width:500px){.sheet-return-toc{font-size:8px;padding:4px 5px;bottom:17px}}

/* v1.4.4 — bezpieczne multimedia otwierane na kliknięcie */
.media-hotspot-dialog{position:fixed;border:0;border-radius:16px;background:#fff;color:#26344d;width:min(820px,95vw);max-width:95vw;max-height:90dvh;padding:0;box-shadow:0 18px 80px #13203c65;overflow:auto}
.media-hotspot-dialog::backdrop{background:#0b122baf}
.media-dialog-header{position:relative;padding:17px 55px 14px 22px;border-bottom:1px solid #e9edf5}.media-dialog-header p{margin:0 0 6px}.media-dialog-header h2{font-size:20px;margin:0;overflow-wrap:anywhere}
.media-dialog-header .product-dialog-close{top:12px;right:14px}.media-hotspot-content{padding:17px 22px 23px;min-height:100px}
.media-hotspot-content iframe,.media-hotspot-content video{display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:8px;background:#000}.media-hotspot-content audio{width:100%;min-height:52px}
.media-gallery img{display:block;max-width:100%;max-height:min(65vh,650px);width:100%;object-fit:contain;background:#f2f5fa;border-radius:8px}.media-gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0 0;color:#556983;font-weight:700}.media-gallery-controls button{border:1px solid #dbe3ee;background:#fff;padding:8px 16px;border-radius:7px;color:#26344d;cursor:pointer}.media-gallery-controls button:disabled{opacity:.3;cursor:default}
.catalog-gallery-hotspot .hotspot-bubble,.catalog-video-hotspot .hotspot-bubble,.catalog-audio-hotspot .hotspot-bubble{background:#105fa6}
@media(max-width:520px){.media-hotspot-content{padding:11px}.media-dialog-header{padding:15px 47px 13px 14px}.media-dialog-header h2{font-size:17px}}

/* Zapytaj nas online: zgodny z identyfikacją A-Z BIURO (#cd0000). */
#contactOpenBtn.contact-online-btn,.contact-product-btn{
 display:inline-flex;align-items:center;justify-content:center;gap:8px;
 border:2px solid #cd0000;background:#fff;color:#111;
 border-radius:9px;padding:9px 13px;font-weight:800;cursor:pointer;
 transition:background-color .16s ease,color .16s ease,border-color .16s ease;
}
#contactOpenBtn.contact-online-btn:hover,#contactOpenBtn.contact-online-btn:focus-visible,
.contact-product-btn:hover,.contact-product-btn:focus-visible{
 background:#cd0000;color:#fff;border-color:#cd0000;
}
#contactOpenBtn.contact-online-btn:focus-visible,.contact-product-btn:focus-visible{outline:2px solid #111;outline-offset:2px}
.contact-product-btn{width:100%;margin-top:10px}
/* Jotform: okno nieruchome, przewijana wyłącznie zawartość iframe.
   Wyłączona dynamiczna zmiana wysokości Jotform, aby nie występowały dwa paski. */
.jotform-dialog{
 position:fixed;inset:0;margin:auto;
 width:min(760px,calc(100vw - 32px));max-width:calc(100vw - 32px);
 height:min(840px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);
 padding:0;border:0;border-radius:14px;background:#fff;
 box-shadow:0 20px 80px #0f213b75;overflow:hidden;overscroll-behavior:contain;
}
.jotform-dialog[open]{display:flex;flex-direction:column}
.jotform-dialog::backdrop{background:#0b162bb8}
.jotform-dialog iframe{
 display:block;flex:1 1 auto;min-height:0;height:100%;min-width:0;width:100%;
 border:0;background:#fff;overscroll-behavior:contain;
}
.jotform-close{
 position:absolute;top:9px;right:9px;z-index:10;
 width:38px;height:38px;border:1px solid #d7dfe9;border-radius:50%;
 background:#fff;color:#1e2838;font-size:24px;font-weight:500;line-height:1;
 cursor:pointer;box-shadow:0 2px 8px #0002;
}
.jotform-close:hover{background:#cd0000;color:#fff;border-color:#cd0000}
@media(max-width:600px){
 .jotform-dialog{
  width:calc(100vw - 12px);max-width:calc(100vw - 12px);
  height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);
  border-radius:9px;
 }
 .jotform-close{top:7px;right:7px;width:34px;height:34px}
}
@media(max-width:850px){#contactOpenBtn.contact-online-btn{min-width:37px;padding:6px 9px}}

/* v1.4.6 — stabilne gesty i czytelne krawędzie, bez kosztownych filtrów pełnego canvas. */
#book{user-select:none;-webkit-user-select:none}
#book .sheet .link-zone,#book .sheet .catalog-hotspot{user-select:auto;-webkit-user-select:auto}
.stage-wrap{overscroll-behavior:contain}
@media(pointer:coarse){.stage-wrap{touch-action:pan-y pinch-zoom}}

/* v1.4.9: Telefon — nawigacja zawsze widoczna i przyciskalna, bez poziomego przelewania. */
@media(max-width:850px){
 .stage-wrap{touch-action:pan-y pinch-zoom;overscroll-behavior-x:contain}
 .book-container{overflow:visible;position:relative}
 .book-container .edge-button{position:absolute;top:50%;transform:translateY(-50%);margin:0;
  width:40px;height:60px;z-index:12;touch-action:manipulation;user-select:none}
 .book-container .edge-left{left:-48px;right:auto}
 .book-container .edge-right{right:-48px;left:auto}
}

/* Powiększony PDF można przesuwać w dowolnym kierunku; na zwykłym widoku
   ruch poziomy przewraca stronę, pionowy pozostaje gestem natywnym. */
@media(max-width:850px){
 .stage-wrap:not(.zoomed){overflow-x:hidden;touch-action:pan-y pinch-zoom}
 .stage-wrap.zoomed{overflow-x:auto;overflow-y:auto;touch-action:pan-x pan-y pinch-zoom}
}

/* PC: aktywny narożnik kartki, widoczne przeciąganie podążające za myszą. */
@media(min-width:851px) and (pointer:fine){
 #book.can-grab-page{cursor:grab}
 #book.dragging-page{cursor:grabbing}
 #book.can-grab-page:not(.curl-active)::after{
  content:"";position:absolute;right:0;bottom:0;width:34px;height:34px;
  z-index:6;pointer-events:none;
  background:linear-gradient(135deg,transparent 46%,#ffffffa6 48%,#d9e2e9 65%,#8da6bb55 100%);
  clip-path:polygon(100% 0%,100% 100%,0% 100%);
  opacity:.8;
 }
 #book.dragging-page::after{display:none}
}

/* v1.5.0 — naprawa geometrii stron i mobilnego układu katalogu.
   object-fit:contain: strony o innych proporcjach niż okładka nie są deformowane. */
#book .sheet canvas:not(.curl-canvas){object-fit:contain;object-position:center center;background:#fff}
#book .turn-face canvas{object-fit:contain;object-position:center center;background:#fff}
#stageWrap{min-width:0;min-height:0}
#bookContainer,#book{box-sizing:border-box}
@media(max-width:850px){
 #bookContainer .edge-button{width:32px;height:50px;font-size:35px;border-radius:9px;z-index:12;background:#fffffff0;box-shadow:0 2px 12px #142d4526}
 #bookContainer .edge-left{left:2px}
 #bookContainer .edge-right{right:2px}
 #stageWrap:not(.zoomed){overflow-x:hidden}
}


/* v1.5.3: Tryb czytania — bez górnego nagłówka, tylko menu i wąski suwak. */
#fullscreenBtn.fullscreen-toggle{
 display:inline-flex;align-items:center;justify-content:center;gap:7px;
 width:auto;min-width:0;min-height:35px;padding:0 11px;
 border:1.5px solid #cd0000;border-radius:9px;
 background:#fff;color:#cd0000;font-size:12px;font-weight:750;white-space:nowrap;
 transition:background-color .14s,color .14s;
}
#fullscreenBtn .fullscreen-icon{font-size:17px;line-height:1;font-weight:500}
#fullscreenBtn:hover,#fullscreenBtn.active{background:#cd0000;color:#fff}
/* v1.5.5 — jedna ramka; pulsowanie bialy/czerwony przycisk z bialym tekstem, 25% krotszy cykl. */
#fullscreenBtn:focus-visible{
 outline:none;
 border-color:#cd0000;
 background:#cd0000;
 color:#fff;
 box-shadow:none;
 text-decoration:underline;
 text-underline-offset:3px;
}
#fullscreenBtn.fullscreen-toggle:not(.active):not(:hover):not(:focus-visible){
 animation:fullscreen-button-pulse 3.45s ease-in-out infinite;
 box-shadow:none;
}
@keyframes fullscreen-button-pulse{
 0%,15%,75%,100%{background-color:#fff;color:#cd0000;border-color:#cd0000}
 38%,50%{background-color:#cd0000;color:#fff;border-color:#cd0000}
}
@media(prefers-reduced-motion:reduce){
 #fullscreenBtn.fullscreen-toggle{animation:none!important}
}
body.reader-fullscreen .viewer-header{display:none!important}
body.reader-fullscreen .viewer-footer{
 height:23px;flex:0 0 23px;padding:0 7px;gap:0;
 border-top:1px solid #dce4ee;background:#fff;
}
body.reader-fullscreen .viewer-footer>:not(#pageSlider){display:none!important}
body.reader-fullscreen .viewer-footer #pageSlider{
 display:block!important;flex:1;min-width:0;width:100%;height:19px;margin:0;
 accent-color:#cd0000;cursor:pointer;
}
body.reader-fullscreen #workArea{flex:1;min-height:0}
body.reader-fullscreen .tool-row{border-bottom:1px solid #e1e8f0}
@media(max-width:850px){
 #fullscreenBtn.fullscreen-toggle{min-height:32px;padding:0 8px;gap:5px;font-size:11px}
 body.reader-fullscreen .viewer-footer{height:26px;flex-basis:26px;padding:0 6px}
 body.reader-fullscreen .viewer-footer #pageSlider{height:24px}
}
/* Przy małej szerokości przycisk z napisem pozostaje dostępny; mniej ważne
   funkcje nadal dostępne z rozwijanego Menu katalogu. */
@media(max-width:590px){
 .tool-row #soundBtn,.tool-row #printBtn{display:none!important}
 .tool-row{gap:3px;padding:0 5px}
 .toolbar-group{gap:1px}
 #fullscreenBtn.fullscreen-toggle{padding:0 6px}
}
@media(max-width:390px){
 .tool-row #resetZoom,.tool-row #fitBtn{display:none!important}
 #fullscreenBtn.fullscreen-toggle{font-size:10px}
}

/* v1.5.9 – pełny ekran na telefonie: cała szerokość strony PDF jest widoczna.
   Przy dopasowaniu gest poziomy zmienia stronę. Po świadomym powiększeniu
   przyciskiem + można przesuwać obraz w obu kierunkach bez obcinania dostępu do krawędzi. */
@media(max-width:850px){
 body.reader-fullscreen #stageWrap{overflow-x:hidden;touch-action:pan-y pinch-zoom;overscroll-behavior-x:contain}
 body.reader-fullscreen #stageWrap.zoomed{overflow-x:auto;overflow-y:auto;touch-action:pan-x pan-y pinch-zoom}
}
