#gm-reader{position:fixed;right:18px;bottom:20px;z-index:100050;font:15px/1.5 system-ui,sans-serif;color:#202b2b;text-align:left}
#gm-reader *{box-sizing:border-box}
#gm-reader [hidden]{display:none!important}
#gm-reader button{font:inherit;cursor:pointer;min-height:42px;border:1px solid #c6cfcc;border-radius:10px;padding:8px 13px;background:#fff;color:#202b2b;letter-spacing:normal;text-transform:none}
#gm-reader button:focus-visible,#gm-reader input:focus-visible{outline:3px solid #b06c14;outline-offset:3px}
#gm-reader #gm-reader-toggle{display:flex;align-items:center;gap:8px;background:#f8f1df;color:#183b32;border:1px solid #d5bc80;border-radius:999px;box-shadow:0 3px 18px #0003;font-weight:700;padding:10px 17px}
#gm-reader-toggle span{font-family:Georgia,serif;font-size:21px}
#gm-reader-panel{position:absolute;bottom:58px;right:0;width:340px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 100px);overflow:auto;border:1px solid #d2d9d5;border-radius:18px;background:#fffdf7;padding:20px;box-shadow:0 12px 60px #0005}
#gm-reader .gmr-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
#gm-reader h2{color:#183b32;font:700 20px/1.3 system-ui,sans-serif;margin:0}
#gm-reader p{font:14px/1.5 system-ui,sans-serif;color:#53615a;margin:10px 0 16px}
#gm-reader #gm-reader-close{border:0;background:transparent;font-size:26px;padding:0;min-width:38px}
#gm-reader fieldset{padding:0;border:0;margin:0 0 16px;min-width:0}
#gm-reader legend{font-weight:650;margin-bottom:8px;color:#202b2b}
#gm-reader .gmr-presets{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}
#gm-reader .gmr-presets button{padding:8px 4px;font-size:13px}
#gm-reader .gmr-presets button[aria-pressed=true]{background:#204f40;color:#fff;border-color:#204f40}
#gm-reader .gmr-colors{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:16px}
#gm-reader label{font-size:14px;color:#202b2b;display:flex;align-items:center;justify-content:space-between;gap:7px}
#gm-reader input[type=color]{width:45px;height:36px;padding:2px;border:1px solid #b1bcb5;border-radius:6px;background:white;cursor:pointer}
#gm-reader .gmr-size{display:flex;justify-content:space-between;align-items:center;gap:12px}
#gm-reader output{color:#183b32;font-weight:700}
#gm-reader input[type=range]{width:100%;accent-color:#204f40;margin:12px 0 0;min-height:24px}
#gm-reader #gm-reader-reset{width:100%;background:#f0f2ed}
#gm-reader .gmr-note{font-size:12px;margin-bottom:0}
#gm-reader #gm-reader-contrast{color:#80520b;background:#fff0ce;border-radius:8px;padding:8px;font-size:12px}
html.gmr-colors{background:var(--gmr-bg)!important}
html.gmr-colors body{background:var(--gmr-bg)!important;color:var(--gmr-fg)!important;--bg:var(--gmr-bg);--surface:var(--gmr-bg);--text:var(--gmr-fg);--muted:var(--gmr-fg)}
html.gmr-colors :is(.gm-header,.gm-footer,main,.gm-entry,.gm-panel,.gm-post-mini,.gm-poet-card,.gm-page-shell,.gm-page-title,.gm-host-card){background-color:var(--gmr-bg)!important;background-image:none!important;color:var(--gmr-fg)!important}
html.gmr-colors :is(main,.gm-header,.gm-footer) :is(h1,h2,h3,h4,h5,h6,p,li,blockquote,figcaption,small,span,strong,em,a,label,legend,time){color:var(--gmr-fg)!important}
html.gmr-colors main :is(p,li,blockquote) a{text-decoration:underline;text-underline-offset:3px}
html.gmr-colors :is(.gm-entry,.gm-panel,.gm-poet-card,.gm-post-mini){border-color:var(--gmr-fg)!important}
html.gmr-size body{font-size:var(--gmr-body-size)!important}
html.gmr-size main :is(p,li,blockquote,figcaption,.gm-entry,.entry-content,.gm-poem-author,.gm-post-mini){font-size:var(--gmr-reading-size)!important;line-height:1.75!important;overflow-wrap:anywhere}
@media(max-width:600px){#gm-reader{right:12px;bottom:14px}#gm-reader-panel{padding:16px;max-height:calc(100dvh - 95px)}}
@media print{#gm-reader{display:none!important}}
/* Keep chosen text readable on the home page's mixed light/dark surfaces. */
html.gmr-colors main :is(section,article,nav,table,th,td,pre,.gm-player,.gm-broadcast,.gm-broadcast-console,.gm-next-song,.gm-wave,.gm-volume-row,.gm-song-library,.gm-library-player,.gm-ps,.gm-ps-controls,.gm-modal-dialog){background-color:var(--gmr-bg)!important;background-image:none!important;color:var(--gmr-fg)!important}
html.gmr-colors main :is(div,summary,td,th,pre,code){color:var(--gmr-fg)!important}
html.gmr-colors .gm-hero::before{opacity:.06!important}
html.gmr-colors :is(main,.gm-header,.gm-footer) :is(button,input,textarea,select,.gm-btn,.gm-chip,.gmk-link){background-color:var(--gmr-bg)!important;color:var(--gmr-fg)!important;border-color:var(--gmr-fg)!important}
html.gmr-colors .gm-header :is(.sub-menu,.gm-submenu){background:var(--gmr-bg)!important;color:var(--gmr-fg)!important}
html.gmr-size main :is(td,th,pre,.siir-ornegi){font-size:var(--gmr-reading-size)!important}

/* Reader font preferences: scoped to content, leaving controls readable. */
#gm-reader select{display:block;width:100%;min-height:42px;padding:8px 10px;border:1px solid #b1bcb5;border-radius:8px;background:#fff;color:#202b2b;font:15px/1.4 system-ui,sans-serif;margin:5px 0 10px}
#gm-reader select:focus-visible{outline:3px solid #b06c14;outline-offset:3px}
#gm-reader .gmr-font-label{display:block;margin-top:8px}
#gm-reader .gmr-italic{width:100%;margin-top:2px}
#gm-reader .gmr-italic[aria-pressed=true]{background:#204f40;color:#fff;border-color:#204f40}
html.gmr-font main :is(h1,h2,h3,h4,h5,h6,p,li,blockquote,figcaption,td,th,.gm-entry,.entry-content,.gm-poem-author,.gm-post-mini,.gmls-snippet){font-family:var(--gmr-font)!important}
html.gmr-weight main :is(h1,h2,h3,h4,h5,h6,p,li,blockquote,figcaption,td,th,.gm-entry,.entry-content,.gm-poem-author,.gm-post-mini,.gmls-snippet){font-weight:var(--gmr-weight)!important}
html.gmr-italic main :is(h1,h2,h3,h4,h5,h6,p,li,blockquote,figcaption,td,th,.gm-entry,.entry-content,.gm-poem-author,.gm-post-mini,.gmls-snippet){font-style:italic!important}
html.gmr-font main :is(p,li,blockquote,td,th) :is(a,span,strong,b,em,i){font-family:inherit!important}
html.gmr-weight main :is(p,li,blockquote,td,th) :is(a,span,strong,b,em,i){font-weight:inherit!important}
html.gmr-italic main :is(p,li,blockquote,td,th) :is(a,span,strong,b,em,i){font-style:inherit!important}

/* Adaptive controls and navigation surfaces, reader palette v1.1.1. */
html.gmr-colors{--gmr-control-hover:color-mix(in srgb,var(--gmr-bg) 90%,var(--gmr-fg) 10%);--gmr-control-active:color-mix(in srgb,var(--gmr-bg) 82%,var(--gmr-fg) 18%)}
html.gmr-colors .gm-header :is(.gm-nav-dropdown,.sub-menu,.gm-submenu){background:var(--gmr-bg)!important;color:var(--gmr-fg)!important;border-color:var(--gmr-fg)!important}
html.gmr-colors .gm-header :is(.gm-nav-dropdown,.sub-menu,.gm-submenu) :is(a,span){color:var(--gmr-fg)!important}
html.gmr-colors :is(main,.gm-header,.gm-footer,#gm-library-search) :is(button,summary,input,textarea,select,.gm-btn,.gm-chip,.gmk-link,.gm-full-button){background:var(--gmr-bg)!important;color:var(--gmr-fg)!important;border-color:var(--gmr-fg)!important}
html.gmr-colors :is(main,.gm-header,.gm-footer,#gm-library-search) :is(button,summary,.gm-btn,.gm-chip,.gmk-link,.gm-full-button) :is(span,strong,em,i){color:inherit!important}
html.gmr-colors :is(main,.gm-header,.gm-footer,#gm-library-search) :is(button,summary,.gm-btn,.gm-chip,.gmk-link,.gm-full-button):is(:hover,:focus-visible),
html.gmr-colors .gm-header :is(.gm-nav-dropdown,.sub-menu,.gm-submenu) a:is(:hover,:focus-visible){background:var(--gmr-control-hover,var(--gmr-bg))!important;color:var(--gmr-fg)!important}
html.gmr-colors :is(main,.gm-header,.gm-footer) :is(button[aria-pressed="true"],[role="tab"][aria-selected="true"],details[open]>summary){background:var(--gmr-control-active,var(--gmr-bg))!important;color:var(--gmr-fg)!important;box-shadow:inset 0 -3px 0 var(--gmr-fg)!important}
html.gmr-colors :is(main,.gm-header,.gm-footer,#gm-library-search) :is(a,button,summary,input,textarea,select):focus-visible{outline:2px solid var(--gmr-fg)!important;outline-offset:3px}
html.gmr-colors :is(main,#gm-library-search) :is(input,textarea)::placeholder{color:var(--gmr-fg)!important;opacity:.7}
html.gmr-colors #sairler .gm-author-invite{background:var(--gmr-bg)!important;color:var(--gmr-fg)!important;border-color:var(--gmr-fg)!important}
@media(max-width:900px){html.gmr-colors .gm-header .gm-menu{background:var(--gmr-bg)!important;color:var(--gmr-fg)!important}}
