/* Reader Studio: all selectors namespaced; no theme-wide overrides. */
.gres-tools,.gres-feed-tools,.gres-section,.gres-dialog,.gres-ai-popup,.gres-qr-float,.gres-comment-menu{--gres-ink:var(--gre-ink,#181320);--gres-paper:var(--gre-paper,#fff);--gres-muted:var(--gre-muted,#645b73);--gres-line:var(--gre-line,#e8e2ee);--gres-accent:#713aa7;--gres-tint:#f5effb;box-sizing:border-box;color:var(--gres-ink)}
[data-theme="dark"] :is(.gres-tools,.gres-feed-tools,.gres-section,.gres-dialog,.gres-ai-popup,.gres-qr-float,.gres-comment-menu){--gres-accent:#d4b4ff;--gres-tint:#322343}
.gres-tools{margin:12px 0 20px;padding:10px 0;border-block:1px solid var(--gres-line)}.gres-actions,.gres-feed-tools{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.gres-feed-tools{margin-top:14px}.gres-btn,.gres-close,.gres-comment-menu summary,.gres-comment-delete{font-family:inherit;font-size:12px;line-height:1.35;font-weight:600;cursor:pointer;color:var(--gres-accent,#713aa7);background:var(--gres-paper,#fff);border:1px solid var(--gres-line,#e8e2ee);border-radius:9px;padding:8px 11px;white-space:normal;max-width:100%;box-sizing:border-box}.gres-btn:disabled{opacity:.65;cursor:default}.gres-primary{background:#653295!important;color:#fff!important;border-color:#653295!important}.gres-btn:hover,.gres-comment-menu summary:hover{background:var(--gres-tint,#f5effb)}.gres-dialog{width:min(680px,calc(100vw - 24px));max-height:85dvh;max-width:none;overflow:auto;padding:0;border:1px solid var(--gres-line);background:var(--gres-paper);border-radius:15px;box-shadow:0 20px 70px #11091e66;z-index:2147483000}.gres-dialog::backdrop{background:#10091c99}.gres-modal-head{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;gap:12px;align-items:center;padding:15px 18px;border-bottom:1px solid var(--gres-line);background:var(--gres-paper)}.gres-modal-head h2{font-size:19px;line-height:1.3;margin:0;color:inherit}.gres-close{font-size:24px;padding:3px 10px}.gres-modal-body{padding:18px;display:grid;gap:12px;overflow-wrap:anywhere}.gres-modal-body p,.gres-section p{font-size:14px;line-height:1.6;margin:0;white-space:pre-line}.gres-modal-body h3,.gres-section h3{font-size:16px;line-height:1.4;margin:0 0 6px;color:inherit}.gres-muted{color:var(--gres-muted);font-size:12px!important}.gres-section{padding:13px;border:1px solid var(--gres-line);border-radius:10px;display:grid;gap:8px;margin:8px 0;min-width:0}.gres-field{display:grid;gap:6px;font-size:13px;font-weight:600;margin:8px 0}.gres-field input,.gres-field textarea,.gres-field select,.gres-image-select{border:1px solid var(--gres-line);background:var(--gres-paper);color:var(--gres-ink);padding:9px;border-radius:8px;width:100%;box-sizing:border-box;font:inherit}.gres-field textarea{min-height:85px;resize:vertical}.gres-link{color:var(--gres-accent);text-decoration:underline;font-size:13px;overflow-wrap:anywhere}.gres-details{display:grid;gap:8px}.gres-collection-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.gres-graph svg{width:100%;height:auto;display:block;overflow:visible}.gres-graph-center{fill:#653295}.gres-graph-centertext{fill:#fff;font-size:13px;font-weight:700}.gres-graph-line{stroke:#b99bd5;stroke-width:1.5}.gres-node{cursor:pointer;transform-box:fill-box;transform-origin:center;transition:transform .18s ease}.gres-node:hover,.gres-node:focus{transform:scale(1.08)}.gres-node rect{fill:var(--gres-tint);stroke:#b99bd5}.gres-node text{fill:var(--gres-ink);font-size:11px;pointer-events:none}.gres-map-view{width:100%;overflow:hidden;touch-action:none;min-height:100px;background:var(--gres-tint);border-radius:10px;cursor:grab}.gres-map-layer,.gres-annotation-image{position:relative;display:block;transform-origin:center;width:100%;transition:transform .12s ease-out}.gres-map-layer img,.gres-annotation-image img{width:100%;height:auto;display:block;margin:0!important;border-radius:8px}.gres-map-pin{position:absolute!important;transform:translate(-50%,-50%);width:22px;height:22px;border:2px solid white;border-radius:50%;padding:0;color:white;background:#783abb;box-shadow:0 2px 6px #0007;cursor:pointer;font-size:11px;line-height:1;display:grid;place-items:center}.gres-new-pin{pointer-events:none;background:#127455}.gres-map-info{min-height:32px}.gres-ai-popup{position:fixed;z-index:2147483000;display:flex;flex-wrap:wrap;gap:4px;max-width:calc(100vw - 16px);background:var(--gres-paper);border:1px solid var(--gres-line);border-radius:10px;padding:5px;box-shadow:0 8px 25px #0003}.gres-ai-popup .gres-btn{font-size:11px;padding:6px}.gres-ai-result{white-space:pre-wrap!important}.gres-qr{display:grid;place-items:center}.gres-qr-float{position:fixed;left:max(12px,env(safe-area-inset-left));bottom:calc(18px + env(safe-area-inset-bottom));z-index:1000;box-shadow:0 3px 15px #0002;background:var(--gres-paper);color:var(--gres-accent);border:1px solid var(--gres-line);border-radius:18px;padding:9px 12px;font:600 12px/1.4 sans-serif;cursor:pointer}.gres-qr-float[hidden],.gres-dialog [hidden],#clist .comment[hidden]{display:none!important}.gres-resume-highlight{outline:2px solid #b99bd5;outline-offset:4px;scroll-margin-top:110px}.gres-comment-menu{position:relative;display:inline-block;flex:none;line-height:1}.gres-comment-menu summary{list-style:none;padding:3px 9px;font-size:17px;line-height:1}.gres-comment-menu summary::-webkit-details-marker{display:none}.gres-comment-menu-list{position:absolute;top:calc(100% + 5px);left:0;z-index:30;display:grid;gap:2px;min-width:155px;max-width:calc(100vw - 24px);background:var(--gres-paper);border:1px solid var(--gres-line);padding:5px;border-radius:10px;box-shadow:0 8px 25px #0002}.gres-comment-menu-list :is(button,a){display:flex!important;text-align:left!important;justify-content:flex-start!important;white-space:normal!important;padding:7px!important;margin:0!important;max-width:100%!important}.gres-comment-delete{color:#b42345}.gres-stance{font-size:11px;color:var(--gres-accent,#713aa7);border:1px solid var(--gres-line,#e8e2ee);border-radius:6px;padding:2px 5px;margin-left:5px}.gres-comment-menu .gre-comment-tool{font-size:12px}.gres-comment-menu .gre-comment-actions:empty{display:none}.gres-comment-menu:not([open]) .gres-comment-menu-list{display:none}.gres-image-select{font-size:14px}.gres-annotation-image{width:fit-content;max-width:100%;margin:auto}.gres-annotation-image img{max-width:100%;max-height:500px;object-fit:contain;cursor:crosshair}.gres-annotation-image{width:100%}.gres-annotation-image img{max-height:none}.gres-comment-menu-list .gres-btn{color:var(--gres-accent)}@media(max-width:600px){.gres-dialog{max-height:82dvh}.gres-modal-body{padding:12px}.gres-modal-head{padding:12px}.gres-qr-float{bottom:calc(68px + env(safe-area-inset-bottom))}.gres-comment-menu-list{left:auto;right:0}.gres-tools .gres-btn{font-size:11px;padding:7px}.gres-node text{font-size:12px}}@media(prefers-reduced-motion:reduce){.gres-node,.gres-map-layer{transition:none}}
.gres-graph-branch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:6px;position:relative}.gres-graph-parent{grid-column:1/-1;justify-self:center;background:#653295;color:#fff;border-radius:8px;padding:8px 14px;font-size:13px;font-weight:700}.gres-graph-child{display:block;position:relative;border:1px solid var(--gres-line);border-radius:9px;padding:10px;background:var(--gres-tint);text-decoration:none;animation:gres-grow .2s ease-out}.gres-graph-child::before{content:'';height:8px;width:1px;background:#b99bd5;position:absolute;top:-9px;left:50%}.gres-tools .gres-btn:focus-visible,.gres-comment-menu summary:focus-visible,.gres-node:focus-visible{outline:2px solid #a67bdf;outline-offset:2px}.comment__actions:has(.gres-comment-menu)>.gre-comment-actions:empty{display:none!important}@keyframes gres-grow{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.gres-graph-child{animation:none}}
.gres-ai-panel{position:fixed;z-index:2147483000;width:min(390px,calc(100vw - 16px));box-sizing:border-box;max-height:min(60vh,460px);overflow:auto;padding:16px;border:1px solid var(--gre-line,#e8e2ee);background:var(--gre-paper,#fff);color:var(--gre-ink,#181320);border-radius:12px;box-shadow:0 10px 35px #12091e44}.gres-ai-panel h3{font-size:15px;line-height:1.4;margin:0 36px 10px 0;color:inherit}.gres-ai-panel>.gres-close{position:absolute;right:8px;top:8px}.gres-ai-panel p{font-size:13px;line-height:1.6;margin:10px 0}.gres-ai-panel .gres-ai-result{white-space:pre-wrap;overflow-wrap:anywhere}[data-theme="dark"] .gres-ai-panel .gres-btn{color:#d4b4ff;background:#322343}
.gres-annotation-host{position:relative!important}.gres-inline-annotation{position:absolute;z-index:5;pointer-events:none;overflow:hidden;border-radius:inherit}.gres-inline-annotation .gres-map-pin{pointer-events:auto}.gres-inline-qa{margin:20px 0}.gres-qa-row{padding:9px 0;border-top:1px solid var(--gre-line)}.gres-qa-row summary{font-size:14px;font-weight:700;cursor:pointer}.gres-qa-row p{margin-top:8px}.gres-recommendation{padding:10px 12px;background:var(--gres-tint);border-radius:8px;font-weight:600;color:var(--gres-ink)}

.gres-more-tools{margin-top:7px}.gres-more-tools summary{font-size:12px;color:var(--gres-accent);font-weight:700;cursor:pointer;line-height:1.4;padding:4px 0;list-style:none;display:inline-flex;align-items:center;gap:5px}.gres-more-tools summary::before{content:"＋";font-size:13px}.gres-more-tools[open] summary::before{content:"−"}.gres-more-tools summary::-webkit-details-marker{display:none}.gres-extra-actions{padding-top:6px}.gres-tools>.gres-actions:empty{display:none}

.article-body [id^="gre-rp-"]{scroll-margin-top:110px}
