html:has(.chapter-reader){scroll-behavior:auto}body:has(main>.chapter-reader)>:is(.header,.home-nav,.footer){display:none}body:has(.chapter-reader dialog[open]){overflow:hidden}body:has(main>.chapter-reader){--chapter-bg:#f4eddb;--chapter-surface:#fcf7e9;--chapter-ink:#362c22;--chapter-muted:#695c4b;--chapter-accent:#815819;--chapter-soft:#ede2c8;--chapter-edge:#dbccb0;--chapter-shadow:0 10px 36px #19171424;--chapter-tint:color-mix(in srgb,var(--chapter-accent) 12%,var(--chapter-surface));--chapter-control-edge:color-mix(in srgb,var(--chapter-accent) 26%,var(--chapter-edge));color-scheme:light}.chapter-reader{--chapter-width:clamp(760px,62vw,max(1000px,calc(var(--chapter-font-size) * 60)));--chapter-gutter:clamp(16px,3vw,44px);--chapter-font:"Source Serif 4",Georgia,serif;--chapter-dock-bottom:max(16px,env(safe-area-inset-bottom));position:relative;min-height:100vh;min-height:100dvh;padding-bottom:calc(var(--chapter-dock-bottom) + 90px);background:color-mix(in srgb,black var(--chapter-dim),var(--chapter-bg));color:var(--chapter-ink);font-family:Inter,Arial,sans-serif}body:has(main>.chapter-reader[data-reader-theme=light]){--chapter-bg:#f8fafc;--chapter-surface:#fff;--chapter-ink:#1e2939;--chapter-muted:#536174;--chapter-accent:#235eb6;--chapter-soft:#eaf1fa;--chapter-edge:#d7e1ed}body:has(main>.chapter-reader[data-reader-theme=parchment]){--chapter-bg:#e7dbc5;--chapter-surface:#f4e9d5;--chapter-ink:#3a2a20;--chapter-muted:#604e3e;--chapter-accent:#774521;--chapter-soft:#e9dbc0;--chapter-edge:#cebb9c}body:has(main>.chapter-reader:is([data-reader-theme=dark],[data-reader-theme=charcoal])){--chapter-bg:#111522;--chapter-surface:#1a2030;--chapter-ink:#e7eaf2;--chapter-muted:#aeb8ca;--chapter-accent:#a9bfff;--chapter-soft:#262f48;--chapter-edge:#353f55;--chapter-shadow:0 10px 36px #0006;color-scheme:dark}body:has(main>.chapter-reader[data-reader-theme=charcoal]){--chapter-bg:#242323;--chapter-surface:#2c2a28;--chapter-ink:#ece3d8;--chapter-muted:#c3b6a6;--chapter-accent:#e1b578;--chapter-soft:#38322b;--chapter-edge:#51463a}.chapter-reader[data-reader-width=narrow]{--chapter-width:620px}.chapter-reader[data-reader-width=wide]{--chapter-width:clamp(960px,76vw,max(1380px,calc(var(--chapter-font-size) * 72)))}.chapter-reader[data-reader-width=full]{--chapter-width:100%}.chapter-reader:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:var(--chapter-grain);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.84' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)'/%3E%3C/svg%3E")}.chapter-reader :is(button,select,input){font:inherit}.chapter-reader a{color:inherit}.chapter-reader button{cursor:pointer}.chapter-reader :is(button,input):disabled{opacity:.42;cursor:default}.chapter-reader :is(button,a,input,select,summary):focus-visible{outline:2px solid var(--chapter-accent);outline-offset:3px}.chapter-reader-bar{position:sticky;z-index:40;top:0;background:var(--chapter-surface);border-bottom:1px solid var(--chapter-edge)}.chapter-reader-bar-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(112px,218px) minmax(0,1fr);align-items:center;gap:16px;padding:8px clamp(12px,3vw,44px);min-height:62px}.chapter-reader-back{display:flex;align-items:center;gap:10px;justify-self:start;max-width:100%;min-height:42px;padding:0 10px;border-radius:10px;font-size:14px;font-weight:650}.chapter-reader-back span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chapter-reader svg{flex-shrink:0}.chapter-arrow-back{transform:rotate(180deg)}.chapter-reader-select{position:relative;min-width:0}.chapter-reader-select summary{position:relative;display:grid;place-items:center;width:100%;height:40px;padding:0 32px;border:1px solid var(--chapter-edge);border-radius:999px;background:var(--chapter-soft);color:var(--chapter-ink);text-align:center;font-size:14px;font-weight:700;cursor:pointer}.chapter-reader-select summary::-webkit-details-marker{display:none}.chapter-reader-select summary svg{position:absolute;top:50%;right:12px;width:14px;transform:translateY(-50%);color:var(--chapter-accent);pointer-events:none}.chapter-reader-select[open] summary svg{transform:translateY(-50%) rotate(180deg)}.chapter-reader-select-list{position:absolute;top:calc(100% + 6px);left:50%;transform:translateX(-50%);width:min(24rem,calc(100vw - 32px));max-height:min(20rem,55vh);overflow:auto;overscroll-behavior:contain;margin:0;padding:5px;list-style:none;border:1px solid var(--chapter-edge);border-radius:14px;background:var(--chapter-surface);box-shadow:var(--chapter-shadow);text-align:center;font-size:14px}.chapter-reader-select-list a{display:grid;place-items:center;min-height:40px;padding:6px 10px;border-radius:8px;overflow-wrap:anywhere}.chapter-reader-select-list a:is(:hover,:focus-visible,[aria-current]){background:var(--chapter-tint);color:var(--chapter-accent)}.chapter-reader-select-list a:focus-visible{outline-offset:-2px}.chapter-reader-bar-actions{display:flex;justify-self:end;align-items:center;gap:4px;padding:3px;border:1px solid var(--chapter-edge);border-radius:14px;background:var(--chapter-soft)}.chapter-reader-bar-actions>button:first-child{border-color:transparent;background:transparent;color:var(--chapter-accent)}.chapter-reader-bar-actions>button:first-child:hover{background:var(--chapter-surface)}.chapter-reader-button{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--chapter-edge);border-radius:10px;background:var(--chapter-surface);color:var(--chapter-ink)}.chapter-reader-back:hover,.chapter-reader-button:hover{background:var(--chapter-soft)}.chapter-reader .chapter-reader-aa{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:auto;padding:0 12px;border-color:var(--chapter-accent);background:var(--chapter-accent);color:var(--chapter-surface);box-shadow:0 3px 8px color-mix(in srgb,var(--chapter-accent) 18%,transparent);font-size:.8rem;font-weight:700;white-space:nowrap}.chapter-reader-aa strong{display:grid;place-items:center;width:28px;height:26px;border-radius:6px;background:color-mix(in srgb,currentColor 18%,transparent);font-size:1rem;line-height:1}.chapter-reader .chapter-reader-aa:hover{background:color-mix(in srgb,var(--chapter-accent) 85%,var(--chapter-ink))}.chapter-reader .chapter-bookmark-clip{border-color:var(--chapter-control-edge);background:var(--chapter-tint);color:var(--chapter-accent)}.chapter-bookmark-clip span{display:none}.chapter-reader .chapter-bookmark-clip:hover,.chapter-reader .chapter-bookmark-clip[data-saved=true]{background:var(--chapter-accent);color:var(--chapter-surface)}.chapter-reader-progress-line{position:absolute;inset:auto 0 -1px;height:2px;pointer-events:none}.chapter-reader-progress-line:before{content:"";display:block;width:var(--chapter-progress);height:100%;background:var(--chapter-accent)}.chapter-reading-pane{--chapter-reading-ink:color-mix(in srgb,black var(--chapter-dim),var(--chapter-ink));--chapter-reading-muted:color-mix(in srgb,var(--chapter-reading-ink) var(--chapter-dim),var(--chapter-muted));--chapter-reading-accent:color-mix(in srgb,var(--chapter-reading-ink) var(--chapter-dim),var(--chapter-accent));position:relative;width:min(var(--chapter-width),calc(100% - var(--chapter-gutter) - var(--chapter-gutter)));margin-inline:auto;padding-top:clamp(32px,5vw,76px);color:var(--chapter-reading-ink);overflow-wrap:anywhere}.chapter-reading-heading{padding-bottom:clamp(22px,3vw,34px);margin-bottom:clamp(22px,3vw,34px);border-bottom:1px solid color-mix(in srgb,var(--chapter-edge) 65%,transparent);text-align:center}.chapter-reader-kicker{color:var(--chapter-reading-accent,var(--chapter-accent));font-size:.72rem;font-weight:750;letter-spacing:.13em}.chapter-reading-heading h1{margin:10px 0 12px;font:750 clamp(1.65rem,1.2rem + 1.4vw,2.65rem)/1.24 Inter,Arial,sans-serif;letter-spacing:-.035em;color:inherit}.chapter-reading-meta{display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:5px 10px;color:var(--chapter-reading-muted);font-size:.82rem}.chapter-reading-meta span:before{content:"·";margin-right:10px}.chapter-reading-meta a:hover{color:var(--chapter-reading-accent);text-decoration:underline}.chapter-audio{display:grid;justify-items:center;gap:12px;margin-top:18px}.chapter-reader .chapter-audio-button{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:8px 15px;border:1px solid var(--chapter-control-edge);border-radius:12px;background:var(--chapter-tint);color:var(--chapter-accent);font-size:14px;font-weight:700}.chapter-audio-button svg{width:15px;height:15px}.chapter-audio-button[aria-expanded=true] svg{transform:rotate(180deg)}.chapter-audio-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.chapter-audio-player,.chapter-reader .chapter-audio-secondary{background:var(--chapter-surface)}.chapter-audio-player{width:min(100%,460px);padding:12px;border:1px solid var(--chapter-edge);border-radius:14px;color:var(--chapter-muted);font-size:13px;text-align:left}.chapter-audio-picker{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}.chapter-audio-picker label{display:grid;gap:4px;font-weight:650}.chapter-audio-picker select{width:100%;min-height:42px;padding:6px 8px;border:1px solid var(--chapter-edge);border-radius:9px;background:var(--chapter-bg);color:var(--chapter-ink)}.chapter-audio-player audio{display:block;width:100%;height:42px;margin-top:10px}.chapter-audio-status{margin:8px 0 0}.chapter-audio-status:empty{margin:0}.chapter-reading-text{font-family:var(--chapter-font);font-size:var(--chapter-font-size);line-height:var(--chapter-line-height)}.chapter-reading-text p{margin:0 0 1.4em;white-space:pre-wrap}.chapter-reader [data-reader-prose]{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-touch-callout:none}.chapter-reader .chapter-paragraph-comment{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:34px;min-height:26px;margin-inline-start:.28em;padding:2px 6px;border:1px solid var(--chapter-edge);border-radius:999px;background:var(--chapter-soft);color:var(--chapter-accent);font:700 .72rem/1 Inter,Arial,sans-serif;vertical-align:middle;scroll-margin-block:80px}.chapter-paragraph-comment:after{content:attr(data-count)}.chapter-paragraph-comment svg{width:13px;height:13px}.chapter-reader .chapter-paragraph-comment[data-count="0"]{color:var(--chapter-muted);background:transparent}.chapter-reader .chapter-paragraph-comment:is(:hover,:focus-visible){border-color:var(--chapter-control-edge);background:var(--chapter-tint);color:var(--chapter-accent)}.chapter-reading-text p[data-bookmark-target=true]{border-radius:4px;background:color-mix(in srgb,var(--chapter-accent) 12%,transparent);outline:5px solid color-mix(in srgb,var(--chapter-accent) 12%,transparent);box-shadow:-8px 0 var(--chapter-accent)}.chapter-reading-end{display:flex;align-items:center;justify-content:center;gap:12px;padding:12px 0 26px;color:var(--chapter-reading-accent)}.chapter-reading-end:after,.chapter-reading-end:before{content:"";width:28px;border-top:1px solid var(--chapter-edge)}.chapter-reading-next{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;padding-top:16px;border-top:1px solid var(--chapter-edge);font-size:.875rem}.chapter-reading-next :is(a,span){display:block;padding:8px 0}.chapter-reading-next small{display:block;margin-bottom:4px;color:var(--chapter-reading-accent)}.chapter-reading-next>span{color:var(--chapter-reading-muted)}.chapter-reading-next>:last-child{text-align:right}.chapter-reading-next a:hover strong{text-decoration:underline}.chapter-reading-next button,.chapter-settings-quick button,.chapter-settings-reset{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:7px 12px;border:1px solid var(--chapter-edge);border-radius:10px;background:var(--chapter-surface);color:var(--chapter-accent);font-weight:650}.chapter-reading-next button svg{width:16px}.chapter-reader-dock{position:fixed;z-index:45;left:50%;bottom:var(--chapter-dock-bottom);transform:translateX(-50%);display:flex;align-items:center;gap:5px;width:min(750px,calc(100% - 24px));padding:6px;border:1px solid var(--chapter-edge);border-radius:16px;background:var(--chapter-surface);box-shadow:var(--chapter-shadow)}.chapter-reader-dock>:is(button,a){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;flex-shrink:0;min-width:62px;min-height:46px;padding:4px 7px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--chapter-muted);font-size:.67rem;font-weight:650}.chapter-reader-dock>:is(button:not(:disabled),a):hover,.chapter-reader-dock>button[aria-pressed=true]{background:var(--chapter-soft);color:var(--chapter-accent)}.chapter-reader-dock svg{width:17px;height:17px}.chapter-dock-progress{display:flex;align-items:center;flex:1;min-width:0;gap:8px;padding:0 7px;color:var(--chapter-muted);font-size:.73rem;font-variant-numeric:tabular-nums}.chapter-dock-progress>span{min-width:4ch;text-align:right}.chapter-progress-count{display:grid;justify-items:center;flex-shrink:0;min-width:36px;min-height:36px;padding:4px;border:1px solid var(--chapter-edge);border-radius:8px;background:var(--chapter-surface);color:var(--chapter-muted);line-height:1.15}.chapter-progress-count:hover{background:var(--chapter-soft)}.chapter-progress-count small{color:var(--chapter-accent);font-size:.62rem;font-weight:700}.chapter-reader input[type=range]{width:100%;margin:0;accent-color:var(--chapter-accent)}.chapter-reader input[type=range]:enabled{cursor:pointer}.chapter-dock-progress input{min-width:0;height:28px}.chapter-progress-track{position:relative;flex:1;min-width:0}.chapter-progress-track input{display:block}.chapter-progress-markers{position:absolute;inset-inline:8px;bottom:calc(50% + 1px);pointer-events:none}.chapter-progress-marker{position:absolute;bottom:0;display:grid;place-items:center;width:22px;height:26px;padding:0;border:0;border-radius:7px;transform:translateX(-50%);background:transparent;pointer-events:auto}.chapter-progress-marker:is(:hover,:focus-visible){z-index:1;background:var(--chapter-soft)}.chapter-progress-marker svg{fill:var(--chapter-accent);stroke:var(--chapter-surface)}.chapter-reader-panel{position:fixed;inset:auto 0 0;width:min(690px,calc(100% - 20px));max-width:none;max-height:min(86dvh,770px);margin:0 auto;padding:0;overflow:hidden;border:1px solid var(--chapter-edge);border-radius:22px 22px 0 0;background:var(--chapter-surface);color:var(--chapter-ink);box-shadow:var(--chapter-shadow)}.chapter-reader-panel::backdrop{background:#100e155e}.chapter-panel-inner{display:flex;flex-direction:column;max-height:min(86dvh,770px)}.chapter-panel-head{display:flex;flex:none;justify-content:space-between;align-items:center;gap:12px;padding:16px clamp(16px,4vw,28px);border-bottom:1px solid var(--chapter-edge)}.chapter-panel-head h2{margin:3px 0 0;font-size:1.25rem;color:inherit}.chapter-panel-body{overflow-y:auto;overscroll-behavior:contain;padding:20px clamp(16px,4vw,28px) max(24px,env(safe-area-inset-bottom))}.chapter-comment-body{font-size:.875rem;line-height:1.6}.chapter-comment-quote{margin:0 0 16px;padding:10px 14px;border-inline-start:3px solid var(--chapter-accent);border-radius:0 9px 9px 0;background:var(--chapter-soft);overflow-wrap:anywhere}.chapter-comment-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}.chapter-comment-list li{padding:10px 12px;border:1px solid var(--chapter-edge);border-radius:10px}.chapter-comment-list li[data-linked-comment]{border-color:var(--chapter-accent);background:var(--chapter-tint)}.chapter-comment-author{display:flex;align-items:center;gap:9px}.chapter-comment-author>span{display:flex;flex:none}.chapter-comment-identity{min-width:0;overflow-wrap:anywhere}.chapter-comment-identity>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 10px}.chapter-comment-handle{color:var(--chapter-accent);font-size:.75rem}.chapter-comment-list time{color:var(--chapter-muted);font-size:.72rem}.chapter-comment-list p{margin:5px 0 0;overflow-wrap:anywhere;white-space:pre-wrap}.chapter-comment-body [role=alert]{color:var(--chapter-accent)}.chapter-comment-compose{flex:none;padding:12px clamp(16px,4vw,28px) max(16px,env(safe-area-inset-bottom));border-top:1px solid var(--chapter-edge);font-size:.875rem}.chapter-comment-compose form{display:grid;justify-items:start;gap:8px}.chapter-comment-compose label{font-weight:650}.chapter-comment-compose textarea{width:100%;max-height:24dvh;padding:8px 10px;border:1px solid var(--chapter-edge);border-radius:9px;background:var(--chapter-surface);color:var(--chapter-ink);resize:vertical}.chapter-comment-compose button{min-height:38px;padding:6px 13px;border:1px solid transparent;border-radius:9px;background:var(--chapter-accent);color:var(--chapter-surface);font-weight:650}@media print{.chapter-reader [data-reader-prose]{display:none}}.chapter-settings{display:grid;gap:20px}.chapter-settings-quick{display:flex;flex-wrap:wrap;gap:8px}.chapter-reading-next button:hover,.chapter-settings-quick button:not(:disabled):hover,.chapter-settings-reset:hover{background:var(--chapter-soft)}.chapter-settings-quick svg,.chapter-settings-reset svg{width:16px;height:16px}.chapter-settings-reset{justify-self:start}.chapter-setting{display:grid;gap:8px;min-width:0}.chapter-setting-label{display:flex;justify-content:space-between;gap:8px}.chapter-setting-label label,.chapter-setting-name{font-size:.9rem;font-weight:700}.chapter-setting-label output{color:var(--chapter-accent);font-size:.85rem;font-variant-numeric:tabular-nums}.chapter-setting input{height:25px}.chapter-font-count,.chapter-font-empty,.chapter-font-group-title,.chapter-font-preview small{color:var(--chapter-muted);font-size:.8rem}.chapter-font-preview{padding:12px 14px;border:1px solid var(--chapter-edge);border-radius:10px;background:var(--chapter-soft)}.chapter-font-preview p{margin:4px 0 0;font:1.15rem/1.55 var(--chapter-font)}.chapter-font-search{display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid var(--chapter-edge);border-radius:9px;color:var(--chapter-muted)}.chapter-font-search svg{width:16px}.chapter-font-search input{width:100%;min-width:0;height:42px;border:0;background:transparent;color:var(--chapter-ink)}.chapter-font-list{max-height:min(230px,32dvh);padding:5px 7px;overflow-y:auto;scrollbar-gutter:stable;border:1px solid var(--chapter-edge);border-radius:10px}.chapter-font-group-title{padding:7px 10px 4px;font-weight:700}.chapter-font-row{display:flex;align-items:center;gap:10px;min-height:39px;padding:4px 10px;border-radius:7px;font-size:.9rem;cursor:pointer}.chapter-font-row input{width:15px;height:15px;margin:0;accent-color:var(--chapter-accent)}.chapter-font-row:is(:hover,:has(:checked)){background:var(--chapter-soft);color:var(--chapter-accent)}.chapter-font-empty{margin:12px}.chapter-setting-options,.chapter-theme-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.chapter-setting-options{grid-template-columns:repeat(4,minmax(0,1fr));padding:4px;border-radius:11px;background:var(--chapter-soft)}.chapter-setting-options button,.chapter-theme-options button{padding:8px 4px;min-height:42px;border:1px solid var(--chapter-edge);border-radius:8px;background:var(--chapter-surface);color:var(--chapter-ink);font-size:.8rem;font-weight:600}.chapter-setting-options button[aria-pressed=true],.chapter-theme-options button[aria-pressed=true]{background:var(--chapter-soft);border-color:var(--chapter-accent);color:var(--chapter-accent)}.chapter-setting-options button[aria-pressed=true]{background:var(--chapter-surface)}.chapter-theme-swatch{display:block;height:17px;margin:0 4px 6px;border:1px solid var(--chapter-edge);border-radius:5px}.chapter-panel-index{display:grid;gap:5px;margin:0;padding:0;list-style:none}.chapter-panel-index :is(a,button){display:grid;grid-template-columns:max-content minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;padding:13px;border:1px solid transparent;border-radius:9px;background:transparent;color:inherit;text-align:start;overflow-wrap:anywhere}.chapter-panel-index :is(a,button):is(:hover,[aria-current=page]){border-color:var(--chapter-edge);background:var(--chapter-soft)}.chapter-panel-index :is(span,small){color:var(--chapter-accent);font-size:.76rem}.chapter-panel-index strong{font-size:.9rem}body:has(main>.chapter-reader)>.support-widget{--care-surface:var(--chapter-surface);--care-soft:var(--chapter-soft);--care-line:var(--chapter-edge);--care-ink:var(--chapter-ink);--care-muted:var(--chapter-muted);--care-accent:var(--chapter-accent);--care-tint:var(--chapter-tint)}body:has(main>.chapter-reader) .quick-action-dock{gap:4px;padding:4px;border:1px solid var(--chapter-edge);border-radius:17px;background:var(--chapter-surface);box-shadow:var(--chapter-shadow)}body:has(main>.chapter-reader) .quick-action-dock>.quick-action{width:64px;min-height:58px;padding:5px;border-color:transparent;border-radius:12px;background:transparent;color:var(--chapter-ink);box-shadow:none;transform:none}body:has(main>.chapter-reader) .quick-action-dock>.quick-action:hover{background:var(--chapter-soft);border-color:var(--chapter-edge)}body:has(main>.chapter-reader) .quick-action-dock .quick-action-icon{width:30px;height:30px;border-radius:9px;background:var(--chapter-tint);color:var(--chapter-accent)}body:has(main>.chapter-reader) .quick-action-dock .support-action .quick-action-icon,body:has(main>.chapter-reader) .support-chat-header,body:has(main>.chapter-reader) .support-composer button{background:var(--chapter-accent);color:var(--chapter-surface)}body:has(main>.chapter-reader) .support-chat-header>button{background:color-mix(in srgb,var(--chapter-surface) 16%,transparent);color:var(--chapter-surface)}@media (max-width:930px){body:has(main>.chapter-reader)>.support-widget{bottom:calc(max(16px, env(safe-area-inset-bottom)) + 67px)}}@media (min-width:931px){.chapter-reader{--chapter-gutter:98px}}@media (min-width:1200px){.chapter-reader{--chapter-gutter:clamp(116px,4vw,152px)}.chapter-reader .chapter-bookmark-clip{position:absolute;top:100%;right:clamp(12px,3vw,44px);display:flex;flex-direction:column;justify-content:center;gap:7px;width:60px;height:76px;border-top:0;border-radius:0 0 12px 12px;box-shadow:0 8px 18px color-mix(in srgb,var(--chapter-ink) 11%,transparent)}.chapter-bookmark-clip svg{width:25px;height:25px}.chapter-bookmark-clip span{display:block;font-size:.7rem;font-weight:700}}@media (max-width:620px){.chapter-reader{--chapter-dock-bottom:max(8px,env(safe-area-inset-bottom));--chapter-gutter:16px}.chapter-reader-bar-inner{grid-template-columns:minmax(42px,1fr) minmax(0,176px) minmax(142px,1fr);gap:8px}.chapter-reader .chapter-reader-aa{width:42px;padding:0}.chapter-reader-aa span{display:none}.chapter-reader-select summary{padding-inline:18px;font-size:.8rem}.chapter-reader-select summary svg{right:4px;width:12px}.chapter-reader-select-list{width:min(24rem,calc(100vw - 132px))}.chapter-reader-back span{display:none}.chapter-reading-next{gap:8px;font-size:.76rem}.chapter-reading-next button{padding:6px;gap:4px}.chapter-reader-dock{gap:2px;padding:4px}.chapter-reader-dock>:is(button,a){min-width:40px;min-height:44px;padding:4px}.chapter-reader-dock>:is(button,a) span{display:none}.chapter-dock-progress{padding:0 4px;gap:4px}.chapter-reader-panel{width:100%}.chapter-panel-index :is(a,button){gap:8px;padding-inline:8px}.chapter-panel-index small{display:none}body:has(main>.chapter-reader) .quick-action-dock{flex-direction:row}body:has(main>.chapter-reader) .quick-action-dock>.quick-action{width:42px;min-height:42px}body:has(main>.chapter-reader) .quick-action-dock>.quick-action>span:last-child{display:none}}@media (max-width:480px){.chapter-setting-options{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:380px){.chapter-theme-options{grid-template-columns:repeat(3,minmax(0,1fr))}.chapter-reader{padding-bottom:calc(var(--chapter-dock-bottom) + 125px)}.chapter-reader-dock{flex-wrap:wrap;justify-content:space-between}.chapter-reader-dock>:is(button,a){min-width:44px}.chapter-dock-progress{order:-1;flex:1 0 100%;min-height:36px}.chapter-dock-progress input{height:36px}body:has(main>.chapter-reader) .quick-action-dock{bottom:calc(max(8px, env(safe-area-inset-bottom)) + 98px)}}@media (max-width:620px){.chapter-reader{padding-bottom:calc(148px + env(safe-area-inset-bottom))}.chapter-reader-bar-inner{grid-template-columns:44px minmax(0,1fr) auto;gap:4px;padding-inline:8px}.chapter-reader-bar-actions{gap:2px;padding:2px}.chapter-reader-back,.chapter-reader-button{min-width:44px;min-height:44px}.chapter-reader-select summary{min-height:44px;display:flex;align-items:center;justify-content:center}.chapter-reader-select-list{position:fixed;left:8px;right:8px;top:64px;transform:none;width:auto;max-height:65dvh;overscroll-behavior:contain}.chapter-reader-dock{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;width:calc(100% - 16px);padding:4px}.chapter-reader-dock>:is(button,a){min-width:0;min-height:52px;padding:4px 1px;gap:4px;touch-action:manipulation}.chapter-reader-dock>:is(button,a) span{display:block;font-size:10px;white-space:nowrap}.chapter-dock-progress{grid-column:1/-1;grid-row:1;min-height:44px;padding-inline:10px;border-bottom:1px solid var(--chapter-edge)}.chapter-dock-progress input{height:44px;touch-action:pan-x}.chapter-progress-count{min-width:44px;min-height:44px}.chapter-panel-head .chapter-reader-button{width:44px;height:44px}.chapter-panel-body{min-height:0}.chapter-setting input[type=range]{height:44px;touch-action:pan-x}.chapter-font-row{min-height:44px}.chapter-panel-index :is(a,button){min-height:48px}.chapter-reading-next{grid-template-columns:1fr 1fr}.chapter-reading-next>button{grid-column:1/-1;grid-row:2;min-height:44px}body:has(main>.chapter-reader)>.support-widget{bottom:calc(132px + env(safe-area-inset-bottom))}body:has(main>.chapter-reader) .quick-action-dock{bottom:calc(132px + env(safe-area-inset-bottom))}}@media (prefers-reduced-motion:reduce){.chapter-reader *,.chapter-reader :after,.chapter-reader :before{animation:none!important;transition:none!important}}@media (max-width:767px){.chapter-reader .chapter-reader-dock{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:auto auto;align-items:stretch;gap:3px;width:calc(100% - 20px);max-width:560px;padding:5px;border-radius:18px}.chapter-reader .chapter-reader-dock>:is(button,a){grid-row:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:56px;margin:0;padding:7px 2px;border-radius:12px;line-height:1.2;text-align:center;touch-action:manipulation}.chapter-reader .chapter-reader-dock>:is(button,a) span{display:block;font-size:10px;font-weight:650;line-height:1.2;white-space:nowrap}.chapter-reader .chapter-reader-dock>:is(button,a) svg{width:19px;height:19px;flex:none}.chapter-reader .chapter-reader-dock>button>strong{display:grid;place-items:center;width:24px;height:19px;font-size:16px;line-height:1}.chapter-reader .chapter-reader-dock .chapter-dock-progress{grid-column:1/-1;grid-row:1;order:0;min-width:0;min-height:40px;padding:0 9px 3px;gap:10px;border-bottom:1px solid var(--chapter-edge)}.chapter-reader .chapter-dock-progress input{height:36px;touch-action:pan-x}.chapter-reader .chapter-dock-progress>span{min-width:4ch;text-align:right}.chapter-reader .chapter-reader-dock .chapter-progress-count{min-height:36px}.chapter-reader{padding-bottom:calc(148px + env(safe-area-inset-bottom))}}