/* Quiet, focused reading controls; the document owns the screen. */
.handout-workspace{--handout-ink:#203854;--handout-muted:#627c99;--handout-line:#dce7f2;max-width:1060px;margin:auto;color:var(--handout-ink);background:#fff;border:1px solid var(--handout-line);border-radius:24px;overflow:hidden}
.handout-workspace .handout-reading-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 24px;background:#fff}
.handout-eyebrow{color:var(--handout-muted);font-size:12px;letter-spacing:.08em}.handout-reading-head h2{font-size:20px;margin:4px 0 0;line-height:1.4}
.handout-head-actions{display:flex;gap:8px;align-items:center;flex:none}.handout-workspace button{font:inherit;cursor:pointer}.handout-workspace svg,.handout-parent-back svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.handout-icon,.handout-directory-trigger{border:1px solid var(--handout-line);background:#f5f8fc;color:var(--handout-ink);border-radius:14px;min-width:44px;min-height:44px;display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:0 12px}.handout-directory-trigger{background:#eaf2ff;color:#195bc9;border-color:#d9e7ff;font-weight:600}.handout-workspace button:hover{filter:brightness(.97)}.handout-workspace button:active{transform:translateY(1px)}.handout-workspace button:focus-visible,.handout-workspace summary:focus-visible,.handout-workspace input:focus-visible{outline:3px solid #2a70e7;outline-offset:3px}.handout-workspace [hidden]{display:none!important}
.handout-workspace .handout-document{border:0;border-radius:0;overflow:visible;background:#eff4f9}.handout-workspace .pdf-canvas-wrap{display:flex;align-items:center;justify-content:center;position:relative;min-height:180px;padding:12px;overflow:auto;background:#edf3f9}.handout-page-open{display:block;max-width:none;flex:none;border:0;background:transparent;padding:0;line-height:0;border-radius:0;touch-action:manipulation}.handout-page-open canvas{display:block;max-width:none;box-shadow:0 3px 18px #20385414}.handout-workspace .pdf-status{position:absolute;z-index:1;inset:0;display:grid;place-items:center;background:#edf3f9;font-size:14px}.handout-workspace [data-pdf-retry]{position:absolute;z-index:2;bottom:20px}.handout-workspace .pdf-toolbar.handout-pagination{display:flex;flex-wrap:nowrap;justify-content:center;align-items:center;gap:16px;padding:10px;background:#fff;border:0;border-top:1px solid var(--handout-line)}.handout-pagination>button{width:44px;height:44px;min-width:44px;padding:0;display:grid;place-items:center;border:0;background:#f1f6fc;color:#245ca4;border-radius:13px}.handout-pagination>button:disabled{opacity:.35;cursor:default}.handout-page-number{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:14px;color:var(--handout-muted)}.handout-workspace .handout-page-number input{width:48px;height:44px;min-width:0;text-align:center;padding:0;border:1px solid var(--handout-line);border-radius:12px;background:#fff;color:var(--handout-ink);font-size:16px;appearance:textfield}.handout-page-number input::-webkit-inner-spin-button{appearance:none}
.handout-workspace .handout-reading-footer{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:12px 24px;border-top:1px solid var(--handout-line)}.handout-current-section{font-size:13px;color:var(--handout-muted);line-height:1.5;min-width:0}.handout-workspace .handout-complete{min-height:44px;white-space:nowrap;background:#eaf2ff;border:0;color:#195bc9;border-radius:13px;padding:0 14px;font-size:14px}.handout-parent-back{display:flex;gap:6px;align-items:center;min-height:44px;border:0;background:transparent;color:#526e90;margin:0 0 10px;padding:0 8px}
.handout-exit-fullscreen{display:none}.handout-expanded{overflow:hidden}.handout-workspace.is-expanded{position:fixed;inset:0;z-index:180;margin:0;max-width:none;height:100dvh;border:0;border-radius:0;display:flex;flex-direction:column;background:#111b27}.handout-workspace.is-expanded .handout-reading-head{padding:12px 20px;flex:none}.handout-workspace.is-expanded .handout-document{flex:1;min-height:0;display:flex;flex-direction:column;background:#111b27}.handout-workspace.is-expanded .pdf-canvas-wrap{flex:1;min-height:0;background:#111b27}.handout-workspace.is-expanded .handout-page-open{max-width:100%;max-height:100%;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.handout-workspace.is-expanded canvas{max-width:100%;max-height:100%;object-fit:contain;width:auto!important;height:auto!important}.handout-workspace.is-expanded .handout-reading-footer{display:none}.handout-workspace.is-expanded .handout-expand{display:none}.handout-workspace.is-expanded .handout-exit-fullscreen{display:inline-flex}.handout-expanded #floating-notes-trigger{z-index:190;bottom:92px}.handout-expanded #floating-notes-panel{z-index:220}.handout-expanded #dialog{z-index:230}
.handout-directory{position:fixed;z-index:210;right:20px;bottom:20px;width:430px;max-width:calc(100vw - 32px);height:min(700px,85dvh);background:#fff;border:1px solid var(--handout-line);border-radius:26px;box-shadow:0 16px 70px #20385435;display:flex;flex-direction:column;overflow:hidden;color:var(--handout-ink)}.handout-directory-head{display:flex;justify-content:space-between;align-items:center;padding:20px 22px;border-bottom:1px solid var(--handout-line);flex:none}.handout-directory-head>div>span{font-size:10px;letter-spacing:.14em;color:var(--handout-muted)}.handout-directory-head h2{font-size:21px;margin:4px 0 0}.handout-directory-scroll{overflow:auto;padding:4px 16px 16px;overscroll-behavior:contain}.handout-chapter{border-bottom:1px solid var(--handout-line);padding:4px 0}.handout-chapter summary{display:flex;align-items:center;gap:12px;min-height:60px;cursor:pointer;list-style:none}.handout-chapter summary::-webkit-details-marker{display:none}.handout-chapter-number{width:32px;color:#8194aa;font-size:13px}.handout-chapter summary b{flex:1;font-size:15px}.handout-chapter summary small{color:var(--handout-muted);font-size:12px}.handout-chevron{color:#8194aa;transition:transform .18s}.handout-chapter[open] .handout-chevron{transform:rotate(180deg)}.handout-sections{display:grid;gap:4px;padding:0 0 12px 30px}.handout-sections button{display:flex;align-items:center;gap:12px;justify-content:space-between;text-align:left;border:0;background:#f5f8fc;border-radius:12px;color:#47617f;min-height:48px;padding:10px 12px;font-size:14px;line-height:1.5}.handout-sections button span{min-width:0}.handout-sections button small{flex:none;font-size:12px;white-space:nowrap}.handout-sections button[aria-current=page]{background:#e6f0ff;color:#125cd7;font-weight:600}
body[data-surface=mini] .handout-workspace{border-radius:20px}body[data-surface=mini] .handout-reading-head{padding:16px;gap:8px}body[data-surface=mini] .handout-reading-head h2{font-size:18px}body[data-surface=mini] .handout-directory-trigger{font-size:14px;padding:0 11px}body[data-surface=mini] .handout-reading-footer{padding:12px 16px}body[data-surface=mini] .handout-current-section{font-size:12px}body[data-surface=mini] .handout-workspace .pdf-canvas-wrap{padding:8px}body[data-surface=mini] .handout-directory{right:max(0px,calc((100vw - 430px)/2));bottom:0;width:min(430px,100vw);max-width:none;height:min(75dvh,660px);border-radius:26px 26px 0 0;padding-bottom:env(safe-area-inset-bottom)}body[data-surface=mini] .handout-workspace.is-expanded{border-radius:0}body[data-surface=mini] .handout-workspace .handout-pagination{gap:14px}body[data-surface=mini] .handout-page-number input{width:44px}
@media(max-width:380px){.handout-reading-head .handout-eyebrow{font-size:10px}.handout-head-actions{gap:6px}.handout-workspace .handout-reading-footer{gap:8px}.handout-workspace .handout-complete{font-size:12px;padding:0 10px}}
@media(prefers-reduced-motion:reduce){.handout-chevron{transition:none}}

.handout-expanded .mini-top,.handout-expanded .mini-bottom,.handout-expanded .web-header{visibility:hidden}
@media(orientation:landscape) and (max-height:500px){body[data-surface=mini] .handout-directory{right:0;width:min(360px,50vw);height:100dvh;border-radius:22px 0 0 22px}}
/* Contents navigate within one handout; course chapters switch documents. */
.handout-workspace .handout-pagination{gap:10px}.handout-workspace .handout-pagination>.handout-local-directory-trigger{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:auto;min-width:70px;font-size:14px;padding:0 10px;margin-right:auto;background:#eaf2ff;color:#195bc9}.handout-local-directory-trigger svg{width:18px;height:18px}.handout-pagination>button:last-child{margin-right:auto}.handout-workspace .handout-section-row{display:flex;align-items:center;gap:12px;width:100%;min-height:76px;padding:14px 10px;border:0;border-bottom:1px solid var(--handout-line);background:#fff;text-align:left;color:var(--handout-ink)}.handout-section-row .handout-segment-number{flex:none;font-size:13px;color:#8194aa;width:26px}.handout-segment-copy{flex:1;min-width:0}.handout-segment-copy b{display:block;font-weight:600;font-size:15px;line-height:1.5}.handout-segment-copy small{display:block;margin-top:5px;font-size:12px;color:var(--handout-muted)}.handout-section-row>svg{width:18px;height:18px;transform:rotate(180deg);color:#8194aa}.handout-section-row[aria-current]{color:#165bc7;background:#edf4ff;border-radius:14px;border-bottom-color:transparent;margin:6px 0}.handout-section-row[aria-current]>svg{transform:none;color:#165bc7}.handout-local-sections{padding-top:10px}.handout-course-chapters{padding-top:10px}.handout-local-sections .handout-segment-copy b{font-size:16px}
body[data-surface=mini] .handout-workspace .handout-pagination{gap:8px}body[data-surface=mini] .handout-workspace .handout-pagination>.handout-local-directory-trigger{padding:0 8px;min-width:64px;font-size:13px}body[data-surface=mini] .handout-directory-trigger{white-space:nowrap;gap:6px;font-size:13px;padding:0 10px}body[data-surface=mini] .handout-directory-trigger svg{width:18px;height:18px}body[data-surface=mini] .handout-head-actions{gap:6px}body[data-surface=mini] .handout-reading-head>div:first-child{min-width:0}body[data-surface=mini] .handout-reading-head h2{overflow-wrap:anywhere}
body[data-surface=mini] .handout-workspace .handout-pagination{gap:6px;padding:10px 8px}body[data-surface=mini] .handout-workspace .handout-pagination>.handout-local-directory-trigger{width:70px;min-width:70px;flex-shrink:0;white-space:nowrap;padding:0 8px}body[data-surface=mini] .handout-page-number{gap:4px}
/* Current-handout contents live below the document, never in a drawer. */
.handout-inline-directory{border-top:1px solid var(--handout-line);background:#fff}.handout-inline-directory-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 24px 8px}.handout-inline-directory-head h2{font-size:18px;margin:0;line-height:1.5}.handout-inline-directory-head>span{font-size:12px;color:var(--handout-muted)}.handout-inline-directory .handout-local-sections{padding:0 16px 10px;max-height:360px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.handout-inline-directory .handout-section-row{min-height:64px;padding:10px 12px}.handout-inline-directory .handout-segment-copy b{font-size:14px}.handout-inline-directory .handout-segment-copy small{margin-top:3px}.handout-inline-directory .handout-section-row[aria-current]{margin:3px 0}.handout-inline-directory .handout-segment-number{width:22px}.handout-workspace .handout-pagination{gap:16px}.handout-pagination>button:last-child{margin-right:0}
body[data-surface=mini] .handout-inline-directory-head{padding:14px 16px 8px}body[data-surface=mini] .handout-inline-directory .handout-local-sections{padding:0 10px 8px;max-height:min(36dvh,300px)}body[data-surface=mini] .handout-workspace .handout-pagination{gap:14px}.handout-workspace.is-expanded .handout-inline-directory{flex:none}.handout-workspace.is-expanded .handout-inline-directory .handout-local-sections{max-height:26dvh}.handout-workspace.is-expanded .handout-inline-directory-head{padding:8px 20px 4px}.handout-workspace.is-expanded .handout-inline-directory-head h2{font-size:15px}
@media(orientation:landscape) and (max-height:500px){.handout-workspace.is-expanded .handout-inline-directory .handout-local-sections{max-height:20dvh}.handout-workspace.is-expanded .handout-inline-directory .handout-section-row{min-height:52px;padding:6px 12px}}
