
#sxChapterButton{display:inline-flex;align-items:center;gap:6px;background:#3b2444;color:#ffe1a4;border-color:#d1aa63;white-space:nowrap}
#sxChapterDialog{position:fixed;inset:0;margin:auto;padding:0;width:min(1180px,96vw);max-width:96vw;height:94dvh;max-height:94dvh;border:1px solid #c3a060;border-radius:14px;background:#100c18;color:#ffe6b5;overflow:hidden;box-shadow:0 25px 90px #000b}
#sxChapterDialog:not([open]){display:none}#sxChapterDialog[open]{display:flex;flex-direction:column}#sxChapterDialog::backdrop{background:#070310d9}
#sxChapterDialog .sx-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;padding:13px 18px;background:#24172d;border-bottom:1px solid #8f7047}
#sxChapterDialog h2{font:23px/1.25 Georgia,serif;color:#ffe1a2;margin:3px 0}#sxChapterDialog .sx-eyebrow{font:10px Arial,sans-serif;letter-spacing:.14em;color:#d1b77c}
#sxChapterClose{background:#e7c78d;color:#21152b;border-color:#e7c78d;font-weight:bold;min-height:44px;white-space:nowrap}
#sxChapterDialog .sx-context{padding:8px 17px;display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap;font:12px/1.5 Arial,sans-serif;background:#171020;color:#cdbcd7;border-bottom:1px solid #55405e;flex:none}
#sxChapterDialog .sx-context a{padding:0;border:0;background:none;font-size:12px;text-decoration:underline}
#sxChapterFrame{display:block;width:100%;height:100%;flex:1;min-height:0;border:0;background:#100c18}
#sxChapterNotice{margin:0;padding:8px 17px;background:#33251d;color:#ffe2b5;font:12px/1.6 Arial,sans-serif;flex:none}
#sxChapterDialog [hidden]{display:none!important}
@media(max-width:680px){#sxChapterDialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}#sxChapterDialog .sx-head{padding:10px;align-items:flex-start}#sxChapterDialog h2{font-size:18px}#sxChapterClose{font-size:12px;padding:8px;white-space:normal;max-width:118px}#sxChapterDialog .sx-context{font-size:11px;padding:7px 10px}}
