/* Quiet page reading on PC and mini-program, with controls revealed on intent. */
body.hr-at-reader{padding-bottom:0!important;overflow:hidden;background:#f7f9fb!important}
body.hr-at-reader>.web-header,body.hr-at-reader>.mini-top,body.hr-at-reader>.mini-bottom{display:none!important}
body.hr-at-reader #main{width:100%;max-width:none!important;height:calc(100dvh - var(--mini-system-height,0px));padding:0!important;margin:0!important}
body.hr-at-reader #main>.route-enter{height:100%;animation:none}
body.hr-at-reader .hr-workspace{position:relative;display:block;width:100%;height:100%;max-width:none;margin:0;border:0!important;border-radius:0!important;overflow:hidden;background:#f7f9fb;--reader-paper:#fff;--reader-ink:#263d50;--reader-muted:#7a8b99}
.hr-workspace .hr-stage{width:100%;height:100%;max-width:none!important;border:0!important;border-radius:0!important;background:transparent;overflow:hidden;padding:58px 18px 100px;box-sizing:border-box}
.hr-workspace .doc-reader{display:block;width:100%;height:100%;border:0;border-radius:0;background:transparent;overflow:hidden;margin:0;padding:0}
.hr-workspace .pdf-canvas-wrap{display:grid!important;place-items:center;width:100%;height:100%;min-height:0!important;max-height:none!important;margin:0;padding:0!important;background:transparent!important;position:relative;overflow:auto;overscroll-behavior:contain}
.hr-page-surface{position:relative;max-width:100%;user-select:text}
.hr-workspace .hl-pdf-page{margin:auto;box-shadow:0 4px 22px #1b364814}
.hr-workspace .hr-native-paging{display:none!important}
.hr-workspace .pdf-status{position:absolute;left:20px;right:20px;top:45%;text-align:center;font-size:14px;color:#7a8b99}
.hr-workspace [data-pdf-retry]{position:absolute;top:53%;left:50%;transform:translateX(-50%);z-index:2}
.hr-chrome{position:fixed;z-index:42;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,transform .2s ease}
.hr-tools-visible .hr-chrome{opacity:1;visibility:visible;pointer-events:auto;transform:none}
.hr-top{top:var(--mini-system-height,0px);left:0;right:0;height:52px;min-height:52px;max-height:52px;box-sizing:border-box;display:flex;flex-wrap:nowrap;align-items:center;gap:6px;padding:4px 16px;background:#fffffffa;border-bottom:1px solid #edf0f4;transform:translateY(-6px)}
.hr-top>strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;color:#263d50;font-weight:600}
.hr-top-actions{display:flex;flex:none;gap:0}
.hr-chrome button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:44px;min-height:44px;padding:5px;border:0;background:transparent;color:#60788c;font:inherit;font-size:11px;border-radius:10px;cursor:pointer}
.hr-chrome svg{width:23px;height:23px;flex:none}.hr-top button>span{display:none}
.hr-chrome button:hover{background:#edf3f9}.hr-chrome button:active{background:#e1ecf7}.hr-chrome button:disabled{opacity:.32;cursor:default}.hr-chrome button:focus-visible{outline:2px solid #397fcb;outline-offset:-2px}
.hr-dock{left:50%;bottom:0;transform:translate(-50%,6px);display:flex;align-items:center;justify-content:space-around;gap:8px;width:min(460px,100%);height:76px;box-sizing:border-box;padding:6px 12px max(8px,env(safe-area-inset-bottom));background:#fffffffa;border:1px solid #e5ebef;border-bottom:0;border-radius:16px 16px 0 0}
.hr-tools-visible .hr-dock{transform:translate(-50%,0)}
.hr-page-position{position:absolute;bottom:82px;left:50%;transform:translateX(-50%);font-size:12px;color:#8c9aa5;font-variant-numeric:tabular-nums;pointer-events:none;line-height:1.5}
.hr-workspace :is(.u-notes,.u-tree){display:none;position:fixed;z-index:80!important;background:#fff;color:#263d50;box-sizing:border-box}
.hr-workspace :is(.u-notes,.u-tree).u-panel-open{display:flex!important;flex-direction:column!important;right:24px!important;left:auto!important;top:76px!important;bottom:24px!important;max-height:calc(100dvh - 100px)!important;width:min(440px,calc(100vw - 48px))!important;border-radius:22px!important;padding:0!important;overflow:hidden!important}
.hr-workspace .reader-panel-grip{display:none}
.hr-workspace .u-tree-top{display:flex;align-items:center;justify-content:space-between;padding:20px!important;gap:12px}
.hr-workspace .u-tree-top b{display:block;font-size:20px;color:#263d50}.hr-workspace .u-tree-top small{display:block;margin-top:5px;font-size:12px;line-height:1.5;color:#7a8b99}
.hr-workspace .u-panel-close{display:grid;place-items:center;min-width:44px;min-height:44px;border:0;border-radius:50%;background:#f1f5f8;color:#60788c;cursor:pointer}.hr-workspace .u-panel-close svg{width:20px;height:20px}
.hr-directory-list{overflow:auto;min-height:0;overscroll-behavior:contain;padding:0 16px 24px}
.hr-section-row{display:flex;align-items:center;gap:8px;border-bottom:1px solid #edf1f4;padding:6px 4px;border-radius:10px}
.hr-section-row.is-current{background:#edf5fc;border-bottom-color:transparent}
.hr-section-target{flex:1;display:flex;align-items:center;gap:12px;min-width:0;min-height:66px;padding:10px 8px;text-align:left;border:0;background:transparent;color:#395870;cursor:pointer;font:inherit}
.hr-section-target>span:first-child{font-size:12px;color:#91a1ad;flex:none}.hr-section-target>span:last-child{min-width:0}.hr-section-target b{display:block;font-size:15px;font-weight:550;line-height:1.6}.hr-section-target small{display:block;font-size:12px;color:#8b9aa7;margin-top:5px}
.hr-read-state{display:grid;place-items:center;width:44px;height:44px;flex:none;border:0;background:none;color:#b8c5ce;border-radius:10px;cursor:pointer}.hr-read-state svg{width:19px;height:19px}.hr-read-state[aria-pressed=true]{color:#397fcb;background:#e6f0fc}
.hr-read-state:focus-visible,.hr-section-target:focus-visible{outline:2px solid #397fcb;outline-offset:-2px}
.hr-workspace .reader-panel-head{padding:22px 20px 16px;gap:8px}.hr-workspace .reader-panel-head>div{min-width:0;flex:1}.hr-workspace .reader-panel-head h2{font-size:20px!important}.hr-workspace .reader-total{font-size:12px;white-space:nowrap}
.hr-workspace .reader-panel-head.is-composing :is(.dr-note-new,.reader-total){display:none}
.hr-workspace .reader-note-scroll{padding:16px 20px 28px}.hr-workspace .reader-compose-heading h3{display:none}.hr-workspace .reader-compose-heading{justify-content:flex-end}
.hr-workspace #u-selectable .reader-mark{border:0!important;color:transparent!important;text-underline-offset:2px;text-decoration-thickness:2px;border-radius:1px}
body.hr-at-reader #reader-toolbar{z-index:100!important}
body.hr-at-reader .reader-backdrop{z-index:60!important}
body.hr-at-reader.reader-panel-open .hr-chrome{pointer-events:none}
body.hr-at-reader [data-action="lc-feedback"]{display:none!important}
@media(max-width:760px){
 .hr-workspace .hr-stage{padding:54px 10px 100px}
 .hr-dock{width:100%;border-radius:0;border-left:0;border-right:0;gap:6px}
 .hr-workspace :is(.u-notes,.u-tree).u-panel-open{inset:auto 0 0!important;width:100%!important;height:82dvh!important;max-height:calc(100dvh - 64px)!important;border:0!important;border-radius:24px 24px 0 0!important;padding-bottom:env(safe-area-inset-bottom,0px)!important;animation:reader-sheet-in .22s cubic-bezier(.22,1,.36,1)!important}
 .hr-workspace .reader-panel-grip{display:block;width:100%;height:24px;flex:none;background:transparent;padding:10px 0;margin:0!important;box-sizing:border-box;touch-action:none}
 .hr-workspace .reader-panel-grip:before{content:'';display:block;width:34px;height:4px;border-radius:4px;background:#ccd5dc;margin:auto}
 .hr-workspace .u-tree-top{padding:0 20px 14px!important;touch-action:none}
 .hr-workspace .reader-panel-head{padding:0 20px 16px;touch-action:none}
}
@media(orientation:landscape) and (max-height:600px){.hr-workspace .hr-stage{padding:44px 58px 66px}.hr-top{height:44px;min-height:44px;max-height:44px}.hr-dock{height:60px}.hr-page-position{bottom:64px}.hr-chrome button{gap:1px}.hr-chrome svg{width:20px;height:20px}}
@media(prefers-reduced-motion:reduce){.hr-workspace *,.hr-chrome{transition:none!important;animation:none!important}}

.hr-workspace.path-workspace :is(.u-notes,.u-tree).u-panel-open{z-index:80!important}
@media(max-width:760px){.hr-workspace.path-workspace .reader-panel-grip{display:block;width:100%;height:24px;flex:none;background:transparent;border-radius:0;margin:0!important;padding:10px 0;box-sizing:border-box}}
@media(orientation:landscape) and (max-height:600px){.hr-workspace .hr-stage{padding:4px 10px}}

@media(orientation:landscape) and (max-height:600px){.hr-workspace .hr-page-position{bottom:8px;padding:2px 6px;border-radius:6px;background:#f7f9fbbf}}
body[data-surface=mini].hr-at-reader{max-width:none!important;width:100%;margin:0;box-shadow:none}

/* Mini-program PPT: the whole handout opens as a continuous page stack. */
.hr-mobile-reader .hr-chrome{opacity:1;visibility:visible;pointer-events:auto;transform:none}
.hr-mobile-reader .hr-dock{transform:translateX(-50%);height:66px}
.hr-mobile-reader .hr-stage{padding:56px 0 78px}
.hr-mobile-reader .hr-top{height:52px;padding:4px 12px}
.hr-mobile-reader .hr-page-position{bottom:70px;padding:2px 8px;border-radius:6px;background:#f7f9fbe8;color:#526b80}
.hr-mobile-reader.hr-continuous .pdf-canvas-wrap{display:block!important;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;touch-action:pan-y}
.hr-mobile-reader.hr-continuous .hr-page-surface{width:100%;max-width:none;padding:4px 0 12px;box-sizing:border-box}
.pdf-scroll-page{position:relative;width:calc(100% - 24px);margin:0 12px 18px;min-height:120px;background:#fff;box-shadow:0 2px 12px #29445c0d;border:1px solid #e1e8ef;box-sizing:border-box;border-radius:3px}
.hr-continuous .pdf-scroll-page .hl-pdf-page{width:100%;aspect-ratio:var(--pdf-page-ratio,4/3);position:relative;margin:0;box-shadow:none}
.hr-page-open{display:block;width:100%;height:100%;margin:0;padding:0;border:0;background:transparent;cursor:zoom-in;color:inherit}
.hr-page-open:focus-visible{outline:3px solid #3685da;outline-offset:2px}
.pdf-scroll-page canvas{display:block;max-width:100%;height:auto}
.pdf-scroll-page .hl-pdf-text{position:absolute;inset:0;overflow:hidden}
.pdf-page-status{position:absolute;top:42%;left:12px;right:12px;text-align:center;font-size:13px;color:#75879a;pointer-events:none}
.pdf-page-status[hidden],.pdf-page-retry[hidden]{display:none!important}
.pdf-page-retry{position:absolute;top:55%;left:50%;transform:translateX(-50%);min-height:44px;padding:8px 14px;border:1px solid #cad8e6;background:#eff5fc;color:#315f8b;border-radius:10px;white-space:nowrap}
.hr-continuous .pdf-page-caption{position:absolute;right:8px;bottom:8px;z-index:3;width:auto;font-size:11px;line-height:1.3;font-variant-numeric:tabular-nums;color:#526b80;text-align:right;padding:3px 7px;background:#f9fbfdf0;border:0;border-radius:5px;pointer-events:none}
.hr-mobile-focused .hr-stage{padding:54px 6px 78px}
.hr-mobile-focused .pdf-canvas-wrap{display:flex!important;align-items:center;justify-content:center;touch-action:pan-x pan-y}
.hr-mobile-focused .hr-page-surface{max-width:none;flex:none}
.hr-focus-zoom{position:fixed;top:calc(var(--mini-system-height,0px) + 58px);right:12px;display:flex;align-items:center;background:#f9fbfde8;border:1px solid #dfe8ef;border-radius:12px;gap:2px;z-index:45}
.hr-focus-zoom button{font-size:20px;min-height:44px;min-width:44px}
.hr-focus-zoom output{min-width:40px;text-align:center;font-size:12px;color:#536e84;font-variant-numeric:tabular-nums}
.hr-mobile-focused:not(.hr-tools-visible) .hr-chrome{opacity:0;visibility:hidden;pointer-events:none}
@media(orientation:landscape) and (max-height:600px){.hr-mobile-reader .hr-stage{padding-top:52px;padding-bottom:72px}.hr-mobile-focused .hr-stage{padding:4px 8px}.hr-mobile-focused .hr-focus-zoom{top:8px}.hr-mobile-reader .hr-dock{height:60px}.hr-mobile-reader .hr-page-position{bottom:62px}}
.hr-mobile-focused .pdf-canvas-wrap{justify-content:safe center;align-items:safe center}

/* Course-level return rows must not consume the reader viewport. */
body[data-surface=mini].hr-at-reader .ppt-legacy-navigation{display:none!important}
body[data-surface=mini].hr-at-reader .hr-workspace{position:fixed;inset:var(--mini-system-height,0px) 0 0;height:calc(100dvh - var(--mini-system-height,0px));min-height:0!important}

/* Page numbers belong to the slide, never the bottom reader toolbar. */
.hr-mobile-reader.hr-continuous .hr-page-position{display:none!important}
.hr-workspace .hl-pdf-page>.hr-page-position{left:auto!important;top:auto!important;right:8px!important;bottom:8px!important;transform:none!important;margin:0;padding:3px 7px;border:0;border-radius:5px;background:#f9fbfdf0;color:#526b80;font-size:11px;line-height:1.3;z-index:3}

/* Reading preferences stay in a compact bottom sheet, outside the document. */
.hr-top [data-action="hr-favorite"][aria-pressed=true]{color:#276ac5}
.hr-top [data-action="hr-favorite"][aria-pressed=true] svg{fill:#d9e9ff}
.hr-mobile-reader .hr-dock{gap:2px;padding-inline:6px}
.hr-mobile-reader .hr-dock>button{flex:1;min-width:44px;white-space:nowrap;padding-inline:2px}
.hr-workspace.path-workspace .hr-settings.u-panel-open{height:auto!important;min-height:0!important;top:auto!important;bottom:0!important;max-height:calc(100dvh - 80px)!important;border-radius:24px 24px 0 0!important}
.hr-setting-body{padding:0 20px 24px;overflow:auto}
.hr-setting-body h3{margin:0 0 12px;font:500 14px/1.5 system-ui;color:#60788c}
.hr-mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hr-mode-options button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;min-width:0;padding:8px 10px;border:1px solid #dce5ed;border-radius:12px;background:#f8fafc;color:#526c81;font:500 14px/1.4 system-ui;white-space:nowrap;cursor:pointer}
.hr-mode-options svg{width:20px;height:20px;flex:none}
.hr-mode-options button>svg:last-child{display:none;width:16px;height:16px}
.hr-mode-options button[aria-pressed=true]{border-color:#86afe8;background:#eaf2ff;color:#2464b9}
.hr-mode-options button[aria-pressed=true]>svg:first-child{display:none}
.hr-mode-options button[aria-pressed=true]>svg:last-child{display:block}
.hr-mode-options button:hover{border-color:#86afe8}.hr-mode-options button:active{background:#dceafe}
.hr-mode-options button:focus-visible{outline:2px solid #397fcb;outline-offset:3px}
@media(max-width:360px){.hr-setting-body{padding-inline:16px}.hr-mode-options{gap:8px}.hr-mode-options button{font-size:13px;gap:5px}}

/* Shared reading marks on the transparent, selectable PDF text layer. */
.hl-pdf-text[data-u-block]{-webkit-user-select:text;-webkit-touch-callout:none}
.hl-pdf-text[data-u-block] mark.reader-mark{
 color:transparent;
 background:transparent;
 border:0;
 border-radius:2px;
 cursor:pointer;
 text-underline-offset:2px;
 text-decoration-skip-ink:none;
}
.hl-pdf-text[data-u-block] mark.reader-mark-highlight{background:var(--mark-fill)}
.hl-pdf-text[data-u-block] mark.reader-mark-line{text-decoration:underline solid var(--mark-color)}
.hl-pdf-text[data-u-block] mark.reader-mark-wave{text-decoration:underline wavy var(--mark-color)}
body #reader-toolbar[data-reader-pdf]{z-index:500!important}
