.sidebar{overflow-y:auto}.sidebar-footer{flex-shrink:0}.pdf-subnav{padding:0 0 12px 22px}.pdf-subnav a{display:flex;gap:5px;align-items:center;font-size:13px;padding:8px 10px;color:#84728e;border-left:1px solid #e2d7ef;border-radius:0 6px 6px 0}.pdf-subnav a svg{width:15px;height:15px}.pdf-subnav a.active,.pdf-subnav a:hover{background:#efe7fc;color:#7953d7}.pdf-subnav a.active{border-left:2px solid #7953d7;font-weight:600}.pdf-eyebrow{color:#7953d7!important;font-size:12px!important;letter-spacing:1px;margin-bottom:10px!important}.ps-steps{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:24px;color:#897695;font-size:13px}.ps-steps span{border-bottom:2px solid #e6ddf4;padding:8px 0}.ps-upload{border:1.5px dashed #cbbbeb;background:#faf7ff;border-radius:18px;text-align:center;padding:28px;margin-bottom:20px}.ps-upload.drag-over{background:#ede4ff;border-color:#7953d7}.ps-upload strong{font-size:20px}.ps-upload p{color:#897695}.ps-file-list{margin-bottom:18px}.ps-file{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #e7def1;border-radius:10px;margin-bottom:8px;background:#fff}.ps-file-name{flex:1;overflow-wrap:anywhere;min-width:0}.ps-file button,.ps-page button{border:1px solid #e2d7ef;border-radius:6px;background:white;color:#7953d7;padding:5px 9px}.ps-file small{color:#897695}.ps-pages{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:15px;margin-bottom:24px}.ps-page{border:2px solid #e8e0f0;border-radius:12px;padding:10px;background:#fff;min-width:0}.ps-page.selected{border-color:#9473df;background:#faf7ff}.ps-page canvas{display:block;width:100%;height:auto;min-height:100px;background:#f7f5fa}.ps-page label{display:flex;align-items:center;gap:8px;margin:10px 0}.ps-page input{accent-color:#7953d7}.ps-page-actions{display:flex;gap:5px}.ps-status{padding:16px;background:#f4effb;border-radius:10px;margin:18px 0;white-space:pre-line;overflow-wrap:anywhere}.ps-status.error{background:#fff1ef;color:#a54942}#ps-options label{display:block;margin:12px 0;color:#6e617c}#ps-options input,#ps-options select,#ps-options textarea{display:block;width:100%;padding:11px;border:1px solid #ded3ed;border-radius:8px;margin-top:8px;font:inherit;color:#302640;background:white}#ps-options textarea{min-height:260px;font-size:16px;line-height:1.8}.ps-canvas-wrap{position:relative;max-width:850px;border:1px solid #ddd2ed;margin:18px auto;background:white;touch-action:none}.ps-canvas-wrap canvas{width:100%;height:auto;display:block}#ps-overlay{position:absolute;inset:0;cursor:crosshair}#ps-editor input[type=color]{width:44px;padding:3px}#ps-text{min-width:180px;width:240px}#ps-editor .editor-toolbar label{display:flex;gap:8px;align-items:center}#ps-editor input,#ps-editor select{max-width:100%}#ps-editor select{padding:9px;border:1px solid #ded3ed;border-radius:7px}#ps-submit:disabled{opacity:.6}.ps-file[draggable=true],.ps-page[draggable=true]{cursor:grab}.ps-busy{pointer-events:none;opacity:.65}@media(max-width:600px){.pdf-subnav{display:flex;flex-wrap:wrap;width:100%;padding:0 0 10px;gap:5px}.pdf-subnav a{font-size:12px;border:1px solid #e2d7ef;border-radius:7px;padding:7px}.pdf-subnav a.active{border:1px solid #7953d7}.ps-pages{grid-template-columns:repeat(2,minmax(0,1fr))}.ps-upload{padding:20px 12px}.ps-file{flex-wrap:wrap}.ps-file-name{flex-basis:70%}.ps-steps{gap:10px}.ps-canvas-wrap{max-width:100%}}

/* Large readable page cards and a separate full-resolution inspector. */
main,#pdf-suite,#ps-page-area{min-width:0}#pdf-suite{max-width:1400px}.ps-pages{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:20px;width:100%;min-width:0}.ps-page{padding:12px;overflow:hidden}.ps-page .ps-page-preview{display:block;width:100%;border:0;padding:0;background:#f2eff6;color:#715491;cursor:zoom-in;overflow:hidden}.ps-page-preview canvas{width:100%;height:auto;min-height:0;aspect-ratio:0.707;object-fit:contain;background:white}.ps-page-preview span{display:block;padding:10px 4px;font-size:13px;font-weight:600}.ps-page label{font-size:15px;min-height:34px;cursor:pointer}.ps-page input{width:19px;height:19px;flex-shrink:0}.ps-page.selected{box-shadow:0 0 0 1px #9473df}#ps-selection-summary{color:#7953d7;font-size:14px}.ps-preview-open{overflow:hidden}
#ps-preview-dialog{width:min(1180px,calc(100vw - 32px));height:calc(100dvh - 32px);max-width:none;max-height:none;padding:0;border:1px solid #d9cbed;border-radius:18px;color:#302640;background:#fcfaff;overflow:hidden}
#ps-preview-dialog[open]{display:flex;flex-direction:column}#ps-preview-dialog::backdrop{background:#251b3dcc;backdrop-filter:blur(4px)}
.ps-preview-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 22px;border-bottom:1px solid #e7def1}.ps-preview-header h2{font-size:20px;margin:0}.ps-preview-header p{margin:3px 0 0;color:#79678d;font-size:14px}.ps-preview-toolbar{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;padding:12px 18px}.ps-preview-toolbar label{display:flex;align-items:center;gap:8px}.ps-preview-toolbar input,.ps-preview-toolbar select{padding:8px;border:1px solid #d9cbed;border-radius:8px;background:white;color:inherit;font:inherit}.ps-preview-toolbar input{width:72px}#ps-preview-status{font-size:13px;color:#7b688d;margin:0;padding:0 20px 10px;text-align:center}#ps-preview-stage{flex:1;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;background:#e8e4ed;padding:20px;position:relative}#ps-preview-canvas{display:block;margin:0 auto;background:white;box-shadow:0 2px 14px #291c4126;max-width:none}.ps-preview-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:12px 20px;border-top:1px solid #e1d7ed}.ps-preview-footer button[aria-pressed=true]{background:#553899}.ps-preview-footer span{font-size:14px}
@media(max-width:600px){.ps-pages{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ps-page{padding:7px}.ps-page label{font-size:13px;gap:5px}.ps-page-preview span{font-size:12px}.ps-page label input{width:18px;height:18px}#ps-preview-dialog{width:100vw;height:100dvh;margin:0;border:0;border-radius:0}.ps-preview-header{padding:12px}.ps-preview-header h2{font-size:17px}.ps-preview-header .button{padding:8px 10px}.ps-preview-toolbar{gap:8px;padding:10px}.ps-preview-toolbar .button{padding:8px 10px}#ps-preview-stage{padding:10px}.ps-preview-footer{padding:12px;justify-content:center}.ps-preview-footer .tool-hint{display:none}}

/* Keep the next action visible and separate navigation from drawing. */
.ps-action-dock{position:sticky;bottom:0;z-index:5;padding:12px 16px;background:#fffefc;box-shadow:0 -4px 18px #30264012;border:1px solid #ded3ed;border-radius:12px;margin:20px 0}.ps-action-dock .editor-toolbar{margin:0}.ps-action-dock .ps-status{margin:8px 0 0;padding:8px 10px;max-height:110px;overflow:auto;font-size:14px}.ps-action-dock #ps-download{margin-top:10px}.ps-editor-viewport{max-height:70vh;overflow:auto;border:1px solid #ded3ed;background:#eeebf2;padding:12px;overscroll-behavior:contain}.ps-editor-viewport .ps-canvas-wrap{margin:0 auto;flex-shrink:0}.ps-file-thumbnail{width:84px;height:90px;object-fit:contain;background:#f5f1fa;border-radius:6px;flex-shrink:0}.ps-file button,.ps-page-actions button{min-height:38px;min-width:38px}.ps-page-actions{flex-wrap:wrap}@media(max-width:600px){.ps-action-dock{padding:10px;bottom:0}.ps-action-dock .ps-status{max-height:80px}.ps-editor-viewport{max-height:65vh;padding:8px}.ps-file-thumbnail{width:70px;height:78px}.ps-file:has(.ps-file-thumbnail) .ps-file-name{flex-basis:50%}}

#pdf-navigation{margin:0;min-width:0}#pdf-navigation>summary{list-style:none;user-select:none}#pdf-navigation>summary::-webkit-details-marker{display:none}#pdf-navigation[open] .menu-smile{transform:rotate(-10deg);background:#e7dbfb}@media(max-width:600px){#pdf-navigation{width:100%}#pdf-navigation>summary{width:100%}}

.pdf-subnav a{gap:8px}.pdf-subnav a .pdf-menu-icon{width:16px;height:16px;flex:0 0 16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.pdf-subnav a span{min-width:0}
