.pdf-tool-label{font-size:11px;font-weight:750;letter-spacing:-.5px}
.canvas-pdf{border:1px solid #c5cebe;background:#fffefa;border-radius:9px;box-shadow:0 6px 22px #24362712;display:flex;flex-direction:column;min-height:220px}.canvas-pdf-handle{min-height:49px;display:flex;align-items:center;gap:12px;padding:12px 15px;background:#fffefa;border-radius:9px 9px 0 0;cursor:grab;flex-shrink:0}.canvas-pdf-handle strong{font-size:13px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pdf-file-symbol{font-size:9px;letter-spacing:.3px;font-weight:700;border:1px solid #c4ceba;color:#52724e;padding:5px 4px;border-radius:4px;flex-shrink:0}.pdf-actions{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:0 10px 10px;flex-shrink:0;cursor:default}.pdf-modes{display:flex;padding:3px;background:#eef1e8;border-radius:6px;gap:2px}.pdf-modes button{font-size:10px;font-weight:600;padding:7px 9px;color:#6b7860;border-radius:4px;white-space:nowrap}.pdf-modes button[aria-pressed=true]{background:#fffefa;box-shadow:0 1px 4px #283b201a;color:#34543c}.pdf-file-actions{display:flex;gap:2px;align-items:center}.pdf-file-actions button,.pdf-file-actions a{display:flex;align-items:center;justify-content:center;width:28px;height:28px;font-size:19px;color:#67775f;text-decoration:none;border-radius:5px}.pdf-file-actions button:hover,.pdf-file-actions a:hover{background:#edf1e5}
.pdf-pages{min-height:0;flex:1;overflow:auto;padding:14px;background:#e4e8df;overscroll-behavior:contain;cursor:default;scrollbar-width:thin;touch-action:pan-y}.pdf-page{position:relative;width:100%;background:#fff;box-shadow:0 2px 6px #283b2020;overflow:hidden;margin-bottom:14px}.pdf-page:last-child{margin-bottom:0}.pdf-page-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#acb6a5;font-size:12px;pointer-events:none}.pdf-page canvas{position:absolute;inset:0;width:100%;height:100%;display:block}.pdf-state{font-size:9px;color:#7e8b74;line-height:1.4;padding:9px 12px;flex-shrink:0;background:#fffefa;border-radius:0 0 9px 9px}.canvas-pdf[data-pdf-mode=stack] .pdf-pages{overflow:visible;flex:none;touch-action:none}.canvas-pdf .canvas-resize{right:-6px;bottom:-6px}.canvas-pdf[data-pdf-error=true] .pdf-state{color:#a14235}
/* The stage uses JS gestures. Allow native touch scrolling in an embedded PDF;
   the other canvas surfaces keep their explicit gesture handlers. */
.canvas-stage:has(.canvas-pdf){touch-action:pan-y}.canvas-node.canvas-pdf[data-pdf-mode=scroll]{touch-action:pan-y}.canvas-pdf-handle,.pdf-actions{touch-action:none}
.pdf-storage-dialog{width:min(560px,calc(100vw - 32px));max-height:85dvh;padding:28px;border:1px solid #d4dccb;border-radius:12px;background:#fffefa;color:#33472e}.pdf-storage-dialog::backdrop{background:#20332155;backdrop-filter:blur(3px)}.pdf-storage-dialog header{display:flex;justify-content:space-between;align-items:center;gap:12px}.pdf-storage-dialog h2{font:400 27px var(--serif);margin:0}.pdf-storage-dialog header button{font-size:25px;color:#7b8a6e}.pdf-storage-summary{display:flex;flex-direction:column;gap:6px;padding:23px 0 19px;border-bottom:1px solid #dde3d5}.pdf-storage-summary strong{font-size:23px;color:#41633d}.pdf-storage-summary span,.pdf-storage-note{font-size:12px;line-height:1.8;color:#78866d}.pdf-storage-list{padding:0;list-style:none}.pdf-storage-list li{padding:14px 0;border-bottom:1px solid #e4e9df;display:flex;flex-direction:column;gap:5px}.pdf-storage-list strong{font-size:13px;overflow-wrap:anywhere}.pdf-storage-list span{font-size:11px;color:#738069}.pdf-storage-list small{font-size:10px;color:#879379}.pdf-storage-empty{padding:20px 0;color:#7d8a72;font-size:13px}
@media(max-width:700px){.pdf-storage-dialog{padding:22px}.pdf-storage-dialog h2{font-size:24px}.canvas-pdf .pdf-modes button{padding:6px;font-size:9px}}

.pdf-actions{flex-wrap:wrap}.pdf-file-actions{margin-left:auto}
