#chapter-updates-toggle{position:fixed;right:20px;bottom:20px;z-index:1050;display:flex;align-items:center;gap:9px;border:1px solid #526461;border-radius:28px;background:#20332e;color:#f1fff8;padding:11px 16px;box-shadow:0 5px 24px #0005;font:600 14px system-ui;cursor:pointer}#chapter-updates-toggle[hidden],#chapter-updates-toggle b[hidden]{display:none}#chapter-updates-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}#chapter-updates-toggle b{background:#65dca8;color:#10251d;border-radius:14px;min-width:21px;padding:1px 5px;font-size:12px}
#chapter-updates-panel{position:fixed;margin:0 0 0 auto;top:auto;bottom:16px;right:16px;width:420px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 40px);border:1px solid #45524e;border-radius:16px;background:#18231f;color:#f3f8f5;padding:0;box-shadow:0 12px 60px #0008;font:14px/1.5 system-ui;overflow:auto}#chapter-updates-panel::backdrop{background:#0005}#chapter-updates-panel header{display:flex;align-items:center;justify-content:space-between;padding:18px 20px 10px}#chapter-updates-panel h2{font-size:19px;font-weight:650;margin:0}#chapter-updates-panel button{border:0;background:transparent;color:#85e0b7;cursor:pointer;font:inherit;padding:6px;border-radius:6px}#chapter-updates-panel button:focus-visible,#chapter-updates-panel a:focus-visible,#chapter-updates-toggle:focus-visible{outline:2px solid #93f0c7;outline-offset:-3px}#chapter-updates-panel button:disabled{opacity:.45;cursor:default}#chapter-updates-panel [data-close]{font-size:27px;color:#e0ece5;padding:0 5px;line-height:1}.chapter-updates-tools{display:flex;align-items:center;justify-content:space-between;padding:0 16px 12px;color:#b4c5bb;font-size:12px}#chapter-updates-panel .chapter-update{display:block;position:relative;padding:15px 22px 15px 28px;border-top:1px solid #344039;color:inherit;text-decoration:none}#chapter-updates-panel .chapter-update:hover{background:#25382f}#chapter-updates-panel .chapter-update.unread:before{position:absolute;left:12px;top:23px;content:'';width:6px;height:6px;background:#76e5ac;border-radius:50%}#chapter-updates-panel .chapter-update strong{display:block;font-size:14px;font-weight:600;overflow-wrap:anywhere}#chapter-updates-panel .chapter-update span{display:block;color:#c4d8cb;margin:4px 0;font-size:13px}#chapter-updates-panel time{font-size:11px;color:#9eafa4}#chapter-updates-panel footer{padding:14px 20px;border-top:1px solid #344039;color:#9eafa4;font-size:11px}#chapter-updates-panel .chapter-updates-empty{padding:20px;color:#c3d4c9}#chapter-updates-panel [data-error]{padding:5px 20px;color:#ffbba5}#chapter-updates-panel [data-more]{display:block;margin:10px auto}#chapter-updates-panel [data-more][hidden]{display:none}@media(max-width:480px){#chapter-updates-toggle{right:12px;bottom:14px;padding:11px 13px}#chapter-updates-panel{bottom:12px;right:12px}#chapter-updates-toggle>span{font-size:12px}}
/* Latest indexed manga chapter, separate from file counts and reading progress. */
.companion-latest-chapter {position:absolute;top:.5rem;right:.5rem;z-index:3;pointer-events:none;font-size:.8rem;max-width:calc(100% - 1rem);white-space:nowrap;}
.companion-has-latest > .count {display:none !important;}
/* A Home-only entry remains available before a reader has any libraries. */
#companion-home-entry{position:fixed;right:20px;bottom:76px;z-index:1040;max-width:min(340px,calc(100vw - 24px));font:14px/1.5 system-ui;color:#f1fff8}#companion-home-entry[hidden],#companion-home-entry [hidden]{display:none}#companion-home-entry a{display:inline-block;border:1px solid #526461;border-radius:24px;background:#20332e;color:#f1fff8;padding:11px 16px;text-decoration:none;font-weight:600;box-shadow:0 5px 24px #0005}#companion-home-entry a:focus-visible{outline:2px solid #93f0c7;outline-offset:3px}#companion-home-entry [data-welcome]{background:#18231f;border:1px solid #526461;border-radius:16px;padding:16px;margin-bottom:10px;box-shadow:0 5px 24px #0005}#companion-home-entry strong{font-size:16px}#companion-home-entry p{margin:8px 0 0;color:#c4d8cb}@media(max-width:480px){#companion-home-entry{right:12px;bottom:68px;font-size:13px}#companion-home-entry a{padding:10px 13px}}
.companion-other-nav,.companion-other-home{display:none!important}#companion-other-libraries{color:inherit;margin:4px 0}#companion-other-libraries summary{padding:12px 14px;cursor:pointer;font:inherit}#companion-other-libraries>a{padding-left:26px!important}#companion-other-libraries summary:focus-visible{outline:2px solid currentColor;outline-offset:-2px}
/* Webtoon load handlers retain a height attribute while responsive width changes.
   Let the browser derive height from the original page's aspect ratio. */
app-infinite-scroller img[id^="page-"]{height:auto!important}

/* Only ahead series replace the downloaded-page progress display. */
.companion-has-ahead-progress > p{display:none!important}
.companion-ahead-progress{height:5px;width:100%;background:transparent;pointer-events:auto}
.companion-ahead-progress>span{display:block;height:100%;background:var(--primary-color)}
