.pdf-page-wrapper{position:relative;margin-bottom:16px;border-radius:8px;overflow:hidden;box-shadow:0 4px 10px rgba(0,0,0,.15)}.pdf-page-canvas{display:block;width:100%;height:auto}.textLayer{position:absolute;top:0;left:0;right:0;bottom:0;overflow:hidden;opacity:.25;line-height:1;pointer-events:none}.textLayer.study-active{pointer-events:auto;opacity:.25}.textLayer span{color:transparent;position:absolute;white-space:pre;transform-origin:0% 0%;cursor:default}.textLayer.study-active span{cursor:text}.textLayer ::selection{background:rgba(59,130,246,.3)}.highlightLayer{position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none;z-index:1}.highlight-rect{position:absolute;opacity:.35;border-radius:2px;pointer-events:auto;cursor:pointer;transition:opacity .2s}.highlight-rect:hover{opacity:.55}.notesLayer{position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none;z-index:3}.study-note-marker{position:absolute;width:26px;height:26px;border-radius:50%;background:linear-gradient(135deg,#fbbf24,#f59e0b);border:2px solid #d97706;display:flex;align-items:center;justify-content:center;cursor:pointer;pointer-events:auto;box-shadow:0 2px 8px rgba(217,119,6,.4);z-index:4;transition:transform .2s,box-shadow .2s}.study-note-marker:hover{transform:scale(1.2);box-shadow:0 4px 14px rgba(217,119,6,.6)}.study-note-popup{position:absolute;width:220px;background:#fff;border-radius:12px;box-shadow:0 8px 30px rgba(0,0,0,.18);z-index:50;pointer-events:auto;overflow:hidden;animation:notePopIn .2s ease-out}@keyframes notePopIn{from{opacity:0;transform:scale(.92) translateY(-6px)}to{opacity:1;transform:scale(1) translateY(0)}}.study-note-popup-header{background:linear-gradient(135deg,#fbbf24,#f59e0b);padding:7px 10px;display:flex;align-items:center;justify-content:space-between;color:#78350f;font-weight:600;font-size:11px}.study-note-popup-body{padding:8px 10px}.study-note-popup textarea{width:100%;border:1px solid #e5e7eb;border-radius:8px;padding:7px;font-size:12px;font-family:Inter,sans-serif;resize:vertical;min-height:50px;outline:0;transition:border-color .2s}.study-note-popup textarea:focus{border-color:#fbbf24}.study-note-popup-actions{display:flex;gap:5px;padding:0 10px 8px;justify-content:flex-end}.note-btn-delete,.note-btn-save{padding:4px 10px;border-radius:6px;font-size:11px;font-weight:600;border:none;cursor:pointer;transition:all .2s}.note-btn-save{background:#3b82f6;color:#fff}.note-btn-save:hover{background:#2563eb}.note-btn-delete{background:#fee2e2;color:#dc2626}.note-btn-delete:hover{background:#fecaca}.study-fab{position:fixed;bottom:80px;right:16px;width:50px;height:50px;border-radius:50%;background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;border:none;font-size:20px;cursor:pointer;z-index:1001;box-shadow:0 4px 18px rgba(59,130,246,.45);display:flex;align-items:center;justify-content:center;transition:all .3s cubic-bezier(.4, 0, .2, 1)}.study-fab:hover{transform:scale(1.08);box-shadow:0 6px 24px rgba(59,130,246,.55)}.study-toolbar{position:fixed;bottom:80px;right:16px;z-index:1001;display:flex;flex-direction:column;align-items:center;gap:6px;opacity:0;pointer-events:none;transform:translateY(20px) scale(.9);transition:all .3s cubic-bezier(.4, 0, .2, 1)}.study-toolbar.visible{opacity:1;pointer-events:auto;transform:translateY(0) scale(1)}.toolbar-card{background:#fff;border-radius:16px;box-shadow:0 8px 32px rgba(0,0,0,.15),0 0 0 1px rgba(0,0,0,.04);padding:10px;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:52px}.toolbar-label{font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;color:#94a3b8;padding:2px 0 4px;border-bottom:1px solid #f1f5f9;width:100%;text-align:center}.toolbar-sep{width:32px;height:1px;background:#e5e7eb;margin:2px 0}.toolbar-tool-btn{width:40px;height:40px;border-radius:10px;border:2px solid transparent;background:#f8fafc;color:#64748b;font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;position:relative}.toolbar-tool-btn:hover{background:#eff6ff;color:#3b82f6}.toolbar-tool-btn.active{background:#3b82f6;color:#fff;border-color:#2563eb;box-shadow:0 2px 8px rgba(59,130,246,.35)}.toolbar-tool-btn::after{content:attr(data-tooltip);position:absolute;right:calc(100% + 8px);top:50%;transform:translateY(-50%);background:#1e293b;color:#fff;font-size:11px;font-weight:500;padding:4px 8px;border-radius:6px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s}.toolbar-tool-btn:hover::after{opacity:1}.toolbar-colors{display:flex;flex-direction:column;gap:4px;align-items:center;padding:4px 0}.toolbar-color-btn{width:22px;height:22px;border-radius:50%;border:2.5px solid transparent;cursor:pointer;transition:all .15s}.toolbar-color-btn:hover{transform:scale(1.2)}.toolbar-color-btn.selected{border-color:#1e293b;box-shadow:0 0 0 2px #fff,0 0 0 3.5px #1e293b;transform:scale(1.15)}.toolbar-close-btn{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;border:none;font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 12px rgba(239,68,68,.35);transition:all .2s}.toolbar-close-btn:hover{transform:scale(1.08);box-shadow:0 5px 18px rgba(239,68,68,.5)}.toolbar-save-dot{width:8px;height:8px;border-radius:50%;background:#94a3b8;transition:background .3s}.toolbar-save-dot.saving{background:#fbbf24;animation:pulse-save 1s infinite}.toolbar-save-dot.saved{background:#22c55e}.toolbar-save-dot.error{background:#ef4444}@keyframes pulse-save{0%,100%{opacity:1}50%{opacity:.4}}.study-toast{position:fixed;bottom:80px;left:50%;transform:translateX(-50%) translateY(20px);background:#1f2937;color:#fff;padding:8px 18px;border-radius:10px;font-size:13px;font-weight:500;z-index:1100;opacity:0;transition:all .3s cubic-bezier(.4, 0, .2, 1);pointer-events:none;box-shadow:0 4px 20px rgba(0,0,0,.25)}.study-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}@media (max-width:640px){.study-note-popup{width:190px}.study-fab{width:46px;height:46px;font-size:18px;bottom:74px;right:12px}.study-toolbar{bottom:74px;right:12px}.toolbar-card{padding:8px}.toolbar-tool-btn{width:36px;height:36px;font-size:14px}.toolbar-color-btn{width:20px;height:20px}.toolbar-close-btn{width:36px;height:36px;font-size:14px}}