.thr-app{--thr-navy:#153c58;--thr-peach:#f3d8c6;--thr-paper:#fbfaf7;--thr-line:#dfe3e8;--thr-muted:#697481;font-family:inherit;color:var(--thr-navy);background:var(--thr-paper);border-radius:26px;padding:clamp(14px,3vw,36px);margin:9px auto;max-width:1440px;box-shadow:0 12px 48px #182c4509;box-sizing:border-box;line-height:1.8}
.thr-app *{box-sizing:border-box}.thr-app h2,.thr-app h3{color:inherit;font-family:inherit;line-height:1.65;margin:0 0 12px}.thr-app h2{font-size:clamp(20px,2.5vw,32px)}.thr-app h3{font-size:19px}.thr-app p{margin:0 0 18px}.thr-app .thr-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:linear-gradient(110deg,#ffe2ca,#f3b28e);color:var(--thr-navy);border:1px solid transparent;border-radius:50px;min-height:44px;padding:8px 18px;font:inherit;font-size:14px;text-decoration:none;cursor:pointer;transition:box-shadow .2s,background .2s;white-space:nowrap;line-height:1.7}.thr-app .thr-button:hover{background:#f6c5a5;box-shadow:0 5px 16px #182c4520}.thr-app .thr-button:disabled{opacity:.4;cursor:default;box-shadow:none}.thr-app .thr-secondary{background:#fff;color:var(--thr-navy);border-color:var(--thr-line)}.thr-app .thr-secondary:hover{background:#f3e9df}.thr-app :focus-visible{outline:3px solid #ca9c70;outline-offset:3px}.thr-eyebrow{font-size:10px;letter-spacing:2px;color:var(--thr-muted);display:block;margin-bottom:9px}.thr-library-head,.thr-reader-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:25px}.thr-reader-head h2{font-size:clamp(18px,2vw,25px)}.thr-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:24px}.thr-card{padding:18px;background:linear-gradient(160deg,#fff,#f4f1eb);border-radius:22px;border:1px solid #e8e5de}.thr-cover{height:230px;display:flex;align-items:center;justify-content:center;margin:0 0 22px;background:radial-gradient(ellipse at bottom,#d6dce3 0,transparent 65%);border-radius:16px}.thr-cover img{max-height:215px;max-width:88%;width:auto;object-fit:contain;box-shadow:9px 12px 20px #182c4529;border-radius:3px}.thr-cover>span{font-size:28px;background:var(--thr-navy);color:var(--thr-peach);padding:50px 25px;border-radius:4px}.thr-card-info progress{width:100%;height:6px;accent-color:var(--thr-navy);border:0;border-radius:5px;overflow:hidden}.thr-card-info progress::-webkit-progress-bar{background:#e6e4df}.thr-card-info progress::-webkit-progress-value{background:var(--thr-navy)}.thr-muted{color:var(--thr-muted);font-size:13px}.thr-trace{display:block;direction:ltr;text-align:right;color:var(--thr-muted);font:10px monospace;margin-top:15px}.thr-empty{text-align:center;padding:45px 12px}.thr-toolbar{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:9px;background:#fff;padding:12px;border:1px solid #e8e5de;border-radius:18px;margin-bottom:18px}.thr-counter{font-size:13px;white-space:nowrap;min-width:105px;text-align:center}.thr-app .thr-jump{width:65px;min-height:44px;padding:4px 6px;direction:ltr;text-align:center;border:1px solid var(--thr-line);border-radius:10px;background:#fff;color:var(--thr-navy);font:inherit}.thr-zoom-label{font-size:12px;min-width:34px;direction:ltr}.thr-canvas{height:75vh;max-height:1000px;overflow:auto;background:#e4e7eb;border-radius:16px;padding:clamp(8px,2vw,22px);overscroll-behavior:contain;scrollbar-width:thin;direction:ltr;touch-action:pan-x pan-y pinch-zoom}.thr-paper{width:100%;margin:0 auto;min-height:250px}.thr-page{display:block;width:100%;height:auto;max-width:none!important;box-shadow:0 5px 25px #182c4520;user-select:none}.thr-status{padding:10px 14px;background:#edf1f5;border-radius:12px;margin:0 0 14px;font-size:14px}.thr-status.thr-error{background:#fbeae6;color:#803d30}.thr-note{text-align:center;font-size:12px;color:var(--thr-muted);padding-top:16px;overflow-wrap:anywhere}.thr-devices{margin-top:30px;padding:22px;background:#fff;border-radius:18px}.thr-device{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid #eee;padding:12px 0}.thr-app:fullscreen{max-width:none;width:100vw;height:100dvh;overflow:auto;border-radius:0;padding:15px}.thr-app:fullscreen .thr-canvas{height:calc(100dvh - 220px);max-height:none}.thr-app [hidden]{display:none!important}@media(max-width:600px){.thr-library-head,.thr-reader-head{align-items:flex-start;flex-direction:column;gap:10px}.thr-toolbar{gap:6px;padding:8px}.thr-app .thr-button{padding:7px 12px;font-size:12px}.thr-counter{min-width:90px}.thr-canvas{height:68vh;padding:5px;border-radius:10px}.thr-grid{grid-template-columns:1fr}.thr-device{flex-wrap:wrap}.thr-app:fullscreen .thr-canvas{height:calc(100dvh - 280px)}}@media print{.thr-app{display:none!important}}

body.thr-reading-mode #goftino_w,body.thr-reading-mode .wd-toolbar{display:none!important}body.thr-reading-mode{padding-bottom:0!important}

body.thr-immersive-open{overflow:hidden!important}.thr-app.thr-expanded{position:fixed;inset:0;margin:0;width:auto;height:100dvh;max-width:none;z-index:2147483000;overflow:auto;border-radius:0;padding:12px}.thr-app.thr-expanded .thr-canvas{height:calc(100dvh - 240px);max-height:none}@media(max-width:600px){.thr-app.thr-expanded .thr-canvas{height:calc(100dvh - 320px)}}

/* Reader 0.3: viewport layout uses remaining space, never a fixed height deduction. */
.thr-reader-shell .thr-reader-head{gap:10px}.thr-reader-shell .thr-reader-head>div:first-child{min-width:0}.thr-head-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.thr-toolbar-main{display:flex;align-items:center;justify-content:center;gap:8px;width:100%}.thr-tool-options{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;width:100%}.thr-reader-shell .thr-toolbar{flex-direction:column;gap:9px}.thr-reader-shell .thr-canvas{touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch;overflow:auto;overscroll-behavior:contain}.thr-reader-shell .thr-page{pointer-events:none}.thr-reader-shell .thr-paper{min-height:0;transition:none}.thr-reader-shell .thr-counter{font-variant-numeric:tabular-nums}
body.thr-immersive-open{overflow:hidden!important;overscroll-behavior:none}
.thr-app.thr-reader-shell.thr-expanded,.thr-app.thr-reader-shell:fullscreen{position:fixed;inset:0;width:100%;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px)!important;border-radius:0;overflow:hidden;display:flex;flex-direction:column;background:#e5e8eb;z-index:2147483646;box-shadow:none}
.thr-reader-shell.thr-expanded>.thr-content,.thr-reader-shell:fullscreen>.thr-content{display:flex;flex-direction:column;flex:1;min-height:0;width:100%}
.thr-reader-shell.thr-expanded .thr-reader-head,.thr-reader-shell:fullscreen .thr-reader-head{flex:0 0 auto;flex-direction:row;align-items:center;margin:0;padding:7px 10px;min-height:45px;background:#153c58;color:#fff;gap:8px}
.thr-reader-shell.thr-expanded .thr-reader-head .thr-eyebrow,.thr-reader-shell:fullscreen .thr-reader-head .thr-eyebrow{display:none}
.thr-reader-shell.thr-expanded .thr-reader-head h2,.thr-reader-shell:fullscreen .thr-reader-head h2{font-size:14px;font-weight:650;line-height:1.6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0;color:#fff}
.thr-reader-shell.thr-expanded .thr-reader-head .thr-button,.thr-reader-shell:fullscreen .thr-reader-head .thr-button{font-size:11px;min-height:32px;padding:5px 10px;border:1px solid #ffffff40;background:#ffffff12;color:#fff}
.thr-reader-shell.thr-expanded .thr-toolbar,.thr-reader-shell:fullscreen .thr-toolbar{flex:0 0 auto;border:0;border-radius:0;margin:0;padding:5px 8px;gap:5px;background:#fbfaf7;box-shadow:0 2px 6px #153c5810;z-index:2}
.thr-reader-shell.thr-expanded .thr-toolbar .thr-button,.thr-reader-shell:fullscreen .thr-toolbar .thr-button{min-height:36px;padding:5px 12px;font-size:12px}
.thr-reader-shell.thr-expanded .thr-jump,.thr-reader-shell:fullscreen .thr-jump{min-height:36px;height:36px;width:56px;font-size:14px}
.thr-app.thr-reader-shell.thr-expanded .thr-canvas,.thr-app.thr-reader-shell:fullscreen .thr-canvas{flex:1 1 0;min-height:0;height:auto!important;max-height:none;width:100%;padding:4px;border-radius:0;position:relative;scrollbar-gutter:stable}
.thr-reader-shell.thr-expanded .thr-page,.thr-reader-shell:fullscreen .thr-page{box-shadow:none}
.thr-reader-shell.thr-expanded .thr-note,.thr-reader-shell:fullscreen .thr-note,.thr-reader-shell.thr-expanded .thr-preview-footer,.thr-reader-shell:fullscreen .thr-preview-footer{display:none}
.thr-reader-shell.thr-expanded>.thr-status,.thr-reader-shell:fullscreen>.thr-status{position:absolute;top:96px;left:50%;transform:translateX(-50%);z-index:4;max-width:calc(100% - 24px);padding:7px 12px;box-shadow:0 5px 20px #153c5820;font-size:12px;pointer-events:none}
@media(max-width:600px){.thr-reader-shell .thr-toolbar-main{gap:6px}.thr-reader-shell .thr-tool-options{gap:5px}.thr-reader-shell .thr-reader-head{flex-direction:column;align-items:flex-start}.thr-head-actions{gap:5px}.thr-reader-shell.thr-expanded .thr-reader-head>div:first-child,.thr-reader-shell:fullscreen .thr-reader-head>div:first-child{flex:1}.thr-reader-shell .thr-zoom-label{min-width:28px}.thr-reader-shell.thr-expanded .thr-counter,.thr-reader-shell:fullscreen .thr-counter{min-width:94px;font-size:12px}.thr-reader-shell.thr-expanded .thr-reader-head .thr-button,.thr-reader-shell:fullscreen .thr-reader-head .thr-button{padding:5px 8px}}

.thr-reader-shell .thr-canvas{touch-action:pan-y}.thr-library-actions{display:flex;gap:8px;flex-wrap:wrap}
