/* Genzo Reader 4.10.2 — navigation, reactions and community are independent. */
#gmr-root .gmr-completion{width:min(calc(100% - 32px),1120px)!important;max-width:1120px!important;margin:28px auto 80px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#f4f6f8;box-shadow:none!important}
#gmr-root .gmr-completion-inner{width:100%;max-width:none!important;text-align:left!important}
#gmr-root .gmr-completion-check,#gmr-root #gmr-reading-time:empty{display:none}
#gmr-root[data-mode="strip"] .gmr-completion[hidden]{display:block!important}
#gmr-root[data-mode="double"] .gmr-completion,#gmr-root[data-mode="double"] .gmr-completion:not([hidden]){display:none!important;position:relative!important;inset:auto!important;z-index:25;overflow:visible!important}

#gmr-root .gmr-endcap{display:grid;gap:16px;width:100%;font-family:inherit;text-align:left!important}
#gmr-root .gmr-end-navigation,#gmr-root .gmr-end-reaction-card,#gmr-root .gmr-end-community{box-sizing:border-box;border:1px solid #2b343c;border-radius:22px;background:linear-gradient(145deg,#151b20,#0f1418);box-shadow:0 16px 50px #0005}
#gmr-root .gmr-end-navigation{padding:clamp(22px,3vw,34px)}
#gmr-root .gmr-end-reaction-card{padding:clamp(20px,2.8vw,30px)}
#gmr-root .gmr-end-community{padding:clamp(20px,3vw,34px)}
#gmr-root .gmr-endcap button{min-height:40px;color:inherit;font:inherit;cursor:pointer;transition:background .16s,border-color .16s,transform .16s}
#gmr-root .gmr-endcap button:disabled{opacity:.55;cursor:wait}
#gmr-root .gmr-endcap button:focus-visible,#gmr-root .gmr-endcap a:focus-visible,#gmr-root .gmr-book-exit a:focus-visible,#gmr-root .gmr-end-book-cta:focus-visible{outline:2px solid #72d9bd;outline-offset:4px}

/* Completion and chapter navigation. */
#gmr-root .gmr-end-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:0 0 22px}
#gmr-root .gmr-end-heading small,#gmr-root .gmr-end-reaction-card>header small,#gmr-root .gmr-end-community-heading small{display:block;color:#7bdabb;font-size:10px;line-height:1.2;letter-spacing:.17em;font-weight:850}
#gmr-root .gmr-end-heading h2{margin:7px 0 0;color:#fff;font-size:clamp(26px,3vw,36px);line-height:1.05}
#gmr-root .gmr-end-heading p{max-width:360px;margin:0;color:#929da6;font-size:13px;text-align:right}
#gmr-root .gmr-end-chapter-nav{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#gmr-root .gmr-end-chapter-link{box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;min-height:86px;padding:16px 18px;border:1px solid #34404a;border-radius:15px;background:#192129;color:#f3f5f6;text-decoration:none}
#gmr-root .gmr-end-chapter-link small{margin-bottom:6px;color:#8d9aa4;font-size:9px;letter-spacing:.12em;font-weight:800}
#gmr-root .gmr-end-chapter-link strong{font-size:15px;line-height:1.3;overflow-wrap:anywhere}
#gmr-root .gmr-end-chapter-link:not(.is-disabled):not(.is-current):hover{border-color:#648577;background:#202c2a;transform:translateY(-1px)}
#gmr-root .gmr-end-chapter-next{align-items:flex-end;border-color:#c9631e;background:linear-gradient(135deg,#f47a21,#d65d0d);color:#17120e;text-align:right}
#gmr-root .gmr-end-chapter-next small{color:#482510}
#gmr-root .gmr-end-chapter-link.is-disabled{opacity:.52}
#gmr-root .gmr-end-chapter-link.is-current{align-items:flex-end;border-style:dashed;text-align:right}
#gmr-root .gmr-completion-actions{display:flex!important;align-items:center;justify-content:flex-start!important;flex-wrap:wrap;gap:8px;margin:15px 0 0!important;padding:0!important;border:0!important}
#gmr-root .gmr-completion-actions .gmr-comp-btn{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:39px!important;margin:0!important;padding:8px 13px!important;border:1px solid #343f48!important;border-radius:10px!important;background:#181f25!important;color:#dfe4e7!important;font-size:12px!important;font-weight:750!important;text-decoration:none!important;box-shadow:none!important}
#gmr-root .gmr-completion-actions .gmr-comp-btn:hover{border-color:#56636d!important;background:#222b32!important;transform:none!important}
#gmr-root .gmr-completion-actions .gmr-comp-btn-sub{display:none!important}
#gmr-root .gmr-end-favorite{margin-left:auto!important;background:#1d2d26!important;border-color:#3c574b!important}
#gmr-root #gmr-comp-comments{display:none!important}

/* Reactions return to the vertical card layout. */
#gmr-root .gmr-end-reaction-card>header{margin:0 0 18px}
#gmr-root .gmr-end-reaction-card>header h2{margin:7px 0 0;color:#f5f7f8;font-size:clamp(20px,2.5vw,27px);line-height:1.15}
#gmr-root .gmr-end-reactions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0}
#gmr-root .gmr-end-reactions button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:112px;padding:12px 7px;border:1px solid #34404a;border-radius:16px;background:#1a232a;text-align:center}
#gmr-root .gmr-end-reactions button:hover{border-color:#648878;background:#22312b;transform:translateY(-2px)}
#gmr-root .gmr-end-reactions button[aria-pressed="true"]{border-color:#74d9b6;background:#213d33;box-shadow:inset 0 0 0 1px #74d9b6,0 9px 24px #0003}
#gmr-root .gmr-end-reactions button span{font-size:30px;line-height:1}
#gmr-root .gmr-end-reactions button b{font-size:12px;font-weight:800}
#gmr-root .gmr-end-reactions button small{color:#9aaba4;font-size:11px;font-variant-numeric:tabular-nums}

/* Larger creator spotlight. */
#gmr-root .gmr-end-creator{position:relative;min-height:118px;margin:0 0 27px;overflow:hidden;border:1px solid #355044;border-radius:18px;background:linear-gradient(115deg,#1b342b,#16231f 55%,#13191d)}
#gmr-root .gmr-end-creator-cover{position:absolute;inset:0 0 0 auto;width:48%;overflow:hidden;pointer-events:none}
#gmr-root .gmr-end-creator-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#1b342b 0%,#1b342bcc 30%,#10151980 100%)}
#gmr-root .gmr-end-creator-cover img{width:100%;height:100%;object-fit:cover;filter:grayscale(.25) saturate(.75);opacity:.24}
#gmr-root .gmr-end-creator-content{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:118px;padding:20px 22px}
#gmr-root .gmr-end-creator-content>a{display:flex;align-items:center;gap:16px;min-width:0;color:inherit;text-decoration:none}
#gmr-root .gmr-end-creator-avatar{width:68px;height:68px;flex:none;border:3px solid #77dbb9;border-radius:50%;object-fit:cover;box-shadow:0 0 0 5px #77dbb917}
#gmr-root .gmr-end-creator-content small{display:block;color:#88dec1;font-size:9px;letter-spacing:.16em;font-weight:850}
#gmr-root .gmr-end-creator-content strong{display:block;margin:4px 0 3px;color:#fff;font-size:21px;line-height:1.15;overflow-wrap:anywhere}
#gmr-root .gmr-end-creator-content em{color:#aab7b1;font-size:11px;font-style:normal}
#gmr-root .gmr-end-creator-content>button{padding:9px 16px;border:1px solid #74b99e;border-radius:12px;background:#234237;color:#ecfff8;font-weight:750;white-space:nowrap}
#gmr-root .gmr-end-community-heading{margin:0 0 16px}
#gmr-root .gmr-end-community-heading h2{margin:6px 0 4px;color:#f4f6f8;font-size:clamp(22px,2.4vw,28px);line-height:1.15}
#gmr-root .gmr-end-community-heading p{margin:0;color:#aab4bd;font-size:13px}
#gmr-root .gmr-end-status{min-height:0;margin:7px 0;color:#e3bf89;font-size:13px}
#gmr-root .gmr-end-status:empty{display:none}

/* Existing comment engine, rebuilt visually without nested cards. */
#gmr-root #gmr-end-comments-host .gmrp-comments-box{display:flex;flex-direction:column;width:100%;gap:12px;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;text-align:left!important}
#gmr-root #gmr-end-comments-host .gmrp-comments-box__head{display:flex;align-items:center;justify-content:space-between;order:0;margin:0!important;padding:0 0 7px!important;border:0!important}
#gmr-root #gmr-end-comments-host .gmrp-comments-box__head h3{margin:0;color:#e9edef;font-size:15px}
#gmr-root #gmr-end-comments-host .gmrp-comments-box__head span{color:#8f9aa4;font-size:12px}
#gmr-root #gmr-end-comments-host .gmrp-comment-form{order:1;display:flex;flex-direction:column;gap:10px;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
#gmr-root #gmr-end-comments-host .gmrp-comment-form textarea{box-sizing:border-box;display:block;width:100%;min-height:112px;padding:15px 16px;border:1px solid #3a4650!important;border-radius:13px;background:#0c1216!important;color:#f5f7f8!important;font:inherit;line-height:1.55;text-align:left!important;resize:vertical;outline:none}
#gmr-root #gmr-end-comments-host .gmrp-comment-form textarea:focus{border-color:#69caaa!important;box-shadow:0 0 0 3px #69caaa1c!important}
#gmr-root #gmr-end-comments-host .gmrp-comment-form__footer{display:grid!important;grid-template-columns:auto 1fr auto;align-items:center;gap:14px}
#gmr-root #gmr-end-comments-host [data-gmrp-comment-submit]{min-height:42px;padding:9px 18px;border:0!important;border-radius:11px;background:#f47a21!important;color:#fff!important;font-weight:800}
#gmr-root #gmr-end-comments-host .gmrp-comment-sort-tabs{order:2;display:flex;align-items:center;justify-content:flex-end;gap:4px;margin:4px 0 0}
#gmr-root #gmr-end-comments-host .gmrp-comment-sort-tabs button{min-height:34px;padding:6px 12px;border:1px solid transparent;border-radius:9px;background:transparent;color:#8f9aa4;font-size:11px;font-weight:700}
#gmr-root #gmr-end-comments-host .gmrp-comment-sort-tabs button:hover{color:#e8edef;background:#1b2329}
#gmr-root #gmr-end-comments-host .gmrp-comment-sort-tabs button[aria-pressed="true"]{border-color:#3d4a53;background:#202930;color:#ecf2ef}
#gmr-root #gmr-end-comments-host .gmrp-comments-list{order:3;display:flex;flex-direction:column;gap:0;overflow:visible!important;text-align:left!important}
#gmr-root #gmr-end-comments-host .gmrp-comment{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;gap:13px!important;margin:0!important;padding:20px 2px!important;border:0!important;border-top:1px solid #293139!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#e6eaed!important;text-align:left!important}
#gmr-root #gmr-end-comments-host .gmrp-comment__avatar,#gmr-root #gmr-end-comments-host .gmrp-comment__avatar img{width:42px!important;height:42px!important}
#gmr-root #gmr-end-comments-host .gmrp-comment__body{display:block!important;min-width:0!important;width:auto!important;color:#e6eaed!important;text-align:left!important}
#gmr-root #gmr-end-comments-host .gmrp-comment__head{display:flex!important;align-items:flex-start!important;margin:0 0 7px!important;color:#f1f3f5!important;text-align:left!important}
#gmr-root #gmr-end-comments-host .gmrp-comment__head>div,#gmr-root #gmr-end-comments-host .gmrp-comment__author{display:flex!important;align-items:center!important;flex-wrap:wrap;gap:7px;text-align:left!important}
#gmr-root #gmr-end-comments-host .gmrp-comment__head strong{color:#fff!important;font-size:13px!important}
#gmr-root #gmr-end-comments-host .gmrp-comment__head time{color:#83909a!important;font-size:10px!important}
#gmr-root #gmr-end-comments-host .gmrp-comment__content{display:block!important;visibility:visible!important;min-height:0!important;margin:0!important;color:#d9dfe3!important;font-size:14px!important;line-height:1.65!important;white-space:normal!important;text-align:left!important;overflow-wrap:anywhere;opacity:1!important}
#gmr-root #gmr-end-comments-host .gmrp-comment__content p{margin:0 0 7px!important;color:inherit!important;text-align:left!important}
#gmr-root #gmr-end-comments-host .gmrp-comment__content p:last-child{margin-bottom:0!important}
#gmr-root #gmr-end-comments-host .gmrp-comment__actions{display:flex!important;align-items:center;flex-wrap:wrap;gap:3px!important;margin:9px 0 0!important;text-align:left!important}
#gmr-root #gmr-end-comments-host .gmrp-comment__actions button{display:inline-flex!important;align-items:center;gap:5px;min-height:31px!important;padding:5px 8px!important;border:1px solid transparent!important;border-radius:9px!important;background:transparent!important;color:#8f9ba4!important;font-size:11px!important;font-weight:650!important}
#gmr-root #gmr-end-comments-host .gmrp-comment__actions button:hover{border-color:#2d3d36!important;color:#8ce0c3!important;background:#192620!important}
#gmr-root #gmr-end-comments-host [data-gmrp-comment-react]{padding:5px 10px!important;border-color:#31413a!important;border-radius:999px!important;background:#18251f!important;color:#b7d8cb!important}
#gmr-root #gmr-end-comments-host [data-gmrp-comment-react]>span:first-child{font-size:15px;line-height:1}
#gmr-root #gmr-end-comments-host [data-gmrp-comment-react] em{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:#0e1713;color:#8fdabd;font-size:10px;font-style:normal;font-variant-numeric:tabular-nums}
#gmr-root #gmr-end-comments-host [data-gmrp-comment-react].is-active{border-color:#6bc9a8!important;background:#214033!important;color:#eefff9!important}
#gmr-root #gmr-end-comments-host .gmrp-comment__replies{margin:12px 0 0 5px!important;padding-left:12px!important;border-left:2px solid #314039!important}
#gmr-root #gmr-end-comments-host .gmrp-comments-empty{order:3;padding:22px 0;text-align:left;color:#98a3ad;border:0;border-top:1px solid #293139;border-radius:0;background:transparent}
#gmr-root .gmr-creator-badge{display:inline-block;margin-left:0;padding:3px 7px;border-radius:20px;background:#253e33;color:#91e0c4;font-size:9px;font-weight:750;vertical-align:middle}
#gmr-root .gmr-site-owner-badge{display:inline-flex;align-items:center;gap:4px;margin-left:0;padding:3px 8px 3px 4px;border:1px solid #f3a34a70;border-radius:999px;background:linear-gradient(135deg,#6e310f,#311a10);color:#ffd69a;font-size:9px;line-height:1;font-weight:850;letter-spacing:.02em;vertical-align:middle;box-shadow:inset 0 0 10px #ff8a1f12}
#gmr-root .gmr-site-owner-badge i{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:linear-gradient(145deg,#ff9a36,#e86410);color:#fff;font:900 10px/1 Inter,system-ui,sans-serif;font-style:normal;box-shadow:0 2px 6px #0004}

/* Text-selection comments are intentionally retired from the reader UI. */
#gmr-root .gmrp-inline-comment-runtime,[data-gmrp-inline-comment-runtime]{display:none!important}

#gmr-root .gmr-book-exit{display:none;position:absolute;top:env(safe-area-inset-top,0px);left:0;z-index:150;width:200px;min-height:76px;padding:16px;box-sizing:border-box}
#gmr-root[data-mode="double"] .gmr-book-exit{display:block}
#gmr-root .gmr-book-exit a{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:1px solid #555c66;border-radius:12px;background:#151b23ed;color:#f4f4f5;text-decoration:none;font-size:14px;opacity:0;transition:opacity .2s}
#gmr-root .gmr-book-exit:hover a,#gmr-root .gmr-book-exit:focus-within a,#gmr-root .gmr-book-exit.is-visible a{opacity:1}
#gmr-root .gmr-end-book-cta{position:absolute;bottom:24px;left:50%;z-index:75;transform:translateX(-50%);padding:12px 22px;border:1px solid #5f7e6c;border-radius:30px;background:#1c3028ed;color:#e9fff4;font:inherit;cursor:pointer;box-shadow:0 5px 20px #0005}
#gmr-root .gmr-end-book-cta[hidden],#gmr-root .gmr-endcap button[hidden]{display:none!important}

@media(max-width:700px){
 #gmr-root .gmr-completion{width:min(calc(100% - 20px),1120px)!important;margin:20px auto 60px!important}
 #gmr-root .gmr-end-navigation,#gmr-root .gmr-end-reaction-card,#gmr-root .gmr-end-community{border-radius:17px}
 #gmr-root .gmr-end-heading{display:block}
 #gmr-root .gmr-end-heading p{margin-top:7px;text-align:left}
 #gmr-root .gmr-end-chapter-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #gmr-root .gmr-end-chapter-link{min-width:0;min-height:76px;padding:12px}
 #gmr-root .gmr-end-chapter-link small{font-size:8px;letter-spacing:.08em}
 #gmr-root .gmr-end-chapter-link strong{display:-webkit-box;overflow:hidden;font-size:12px;-webkit-box-orient:vertical;-webkit-line-clamp:2}
 #gmr-root .gmr-end-reactions{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}
 #gmr-root .gmr-end-reactions button{grid-column:span 2;min-height:96px;border-radius:14px;padding:10px 4px}
 #gmr-root .gmr-end-reactions button:nth-child(4){grid-column:2/span 2}
 #gmr-root .gmr-end-reactions button:nth-child(5){grid-column:4/span 2}
 #gmr-root .gmr-end-reactions button span{font-size:26px}
 #gmr-root .gmr-end-reactions button b{font-size:10px}
 #gmr-root .gmr-end-favorite{margin-left:0!important}
 #gmr-root .gmr-end-creator-content{padding:17px}
 #gmr-root .gmr-end-creator-avatar{width:58px;height:58px}
 #gmr-root .gmr-end-creator-content strong{font-size:18px}
 #gmr-root #gmr-end-comments-host .gmrp-comment-form__footer{display:flex!important;align-items:center;gap:9px}
 #gmr-root #gmr-end-comments-host .gmrp-comment-form__hint{display:none}
 #gmr-root #gmr-end-comments-host [data-gmrp-comment-submit]{margin-left:auto}
 #gmr-root #gmr-end-comments-host .gmrp-comment{grid-template-columns:36px minmax(0,1fr)!important;gap:10px!important}
 #gmr-root #gmr-end-comments-host .gmrp-comment__avatar,#gmr-root #gmr-end-comments-host .gmrp-comment__avatar img{width:36px!important;height:36px!important}
}
@media(max-width:430px){
 #gmr-root .gmr-completion-actions .gmr-comp-btn{flex:1 1 calc(50% - 4px)}
 #gmr-root .gmr-end-favorite{flex-basis:100%!important}
 #gmr-root .gmr-end-creator-content{align-items:flex-end}
 #gmr-root .gmr-end-creator-content>button{padding:8px 11px;font-size:11px}
 #gmr-root .gmr-end-creator-cover{width:62%}
 #gmr-root #gmr-end-comments-host .gmrp-comment-sort-tabs{justify-content:flex-start}
}
@media(prefers-reduced-motion:reduce){#gmr-root .gmr-endcap button,#gmr-root .gmr-endcap a,#gmr-root .gmr-book-exit a{transition:none}}
