:root{--react-pdf-annotation-layer: 1;--annotation-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>");--input-focus-border-color: Highlight;--input-focus-outline: 1px solid Canvas;--input-unfocused-border-color: transparent;--input-disabled-border-color: transparent;--input-hover-border-color: black;--link-outline: none}@media screen and (forced-colors: active){:root{--input-focus-border-color: CanvasText;--input-unfocused-border-color: ActiveText;--input-disabled-border-color: GrayText;--input-hover-border-color: Highlight;--link-outline: 1.5px solid LinkText}.annotationLayer .textWidgetAnnotation :is(input,textarea):required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid selectedItem}.annotationLayer .linkAnnotation:hover{-webkit-backdrop-filter:invert(100%);backdrop-filter:invert(100%)}}.annotationLayer{position:absolute;top:0;left:0;pointer-events:none;transform-origin:0 0;z-index:3}.annotationLayer[data-main-rotation="90"] .norotate{transform:rotate(270deg) translate(-100%)}.annotationLayer[data-main-rotation="180"] .norotate{transform:rotate(180deg) translate(-100%,-100%)}.annotationLayer[data-main-rotation="270"] .norotate{transform:rotate(90deg) translateY(-100%)}.annotationLayer canvas{position:absolute;width:100%;height:100%}.annotationLayer section{position:absolute;text-align:initial;pointer-events:auto;box-sizing:border-box;margin:0;transform-origin:0 0}.annotationLayer .linkAnnotation{outline:var(--link-outline)}.textLayer.selecting~.annotationLayer section{pointer-events:none}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}.annotationLayer .textAnnotation img{position:absolute;cursor:pointer;width:100%;height:100%;top:0;left:0}.annotationLayer .textWidgetAnnotation :is(input,textarea),.annotationLayer .choiceWidgetAnnotation select,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{background-image:var(--annotation-unfocused-field-background);border:2px solid var(--input-unfocused-border-color);box-sizing:border-box;font:calc(9px * var(--scale-factor)) sans-serif;height:100%;margin:0;vertical-align:top;width:100%}.annotationLayer .textWidgetAnnotation :is(input,textarea):required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid red}.annotationLayer .choiceWidgetAnnotation select option{padding:0}.annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}.annotationLayer .textWidgetAnnotation textarea{resize:none}.annotationLayer .textWidgetAnnotation :is(input,textarea)[disabled],.annotationLayer .choiceWidgetAnnotation select[disabled],.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input[disabled]{background:none;border:2px solid var(--input-disabled-border-color);cursor:not-allowed}.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:hover{border:2px solid var(--input-hover-border-color)}.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation.checkBox input:hover{border-radius:2px}.annotationLayer .textWidgetAnnotation :is(input,textarea):focus,.annotationLayer .choiceWidgetAnnotation select:focus{background:none;border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) :focus{background-image:none;background-color:transparent}.annotationLayer .buttonWidgetAnnotation.checkBox :focus{border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.radioButton :focus{border:2px solid var(--input-focus-border-color);outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:CanvasText;content:"";display:block;position:absolute}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{height:80%;left:45%;width:1px}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}.annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}.annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{-webkit-appearance:none;-moz-appearance:none;appearance:none}.annotationLayer .popupTriggerArea{height:100%;width:100%}.annotationLayer .fileAttachmentAnnotation .popupTriggerArea{position:absolute}.annotationLayer .popupWrapper{position:absolute;font-size:calc(9px * var(--scale-factor));width:100%;min-width:calc(180px * var(--scale-factor));pointer-events:none}.annotationLayer .popup{position:absolute;max-width:calc(180px * var(--scale-factor));background-color:#ff9;box-shadow:0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor)) #888;border-radius:calc(2px * var(--scale-factor));padding:calc(6px * var(--scale-factor));margin-left:calc(5px * var(--scale-factor));cursor:pointer;font:message-box;white-space:normal;word-wrap:break-word;pointer-events:auto}.annotationLayer .popup>*{font-size:calc(9px * var(--scale-factor))}.annotationLayer .popup h1{display:inline-block}.annotationLayer .popupDate{display:inline-block;margin-left:calc(5px * var(--scale-factor))}.annotationLayer .popupContent{border-top:1px solid rgba(51,51,51,1);margin-top:calc(2px * var(--scale-factor));padding-top:calc(2px * var(--scale-factor))}.annotationLayer .richText>*{white-space:pre-wrap;font-size:calc(9px * var(--scale-factor))}.annotationLayer .highlightAnnotation,.annotationLayer .underlineAnnotation,.annotationLayer .squigglyAnnotation,.annotationLayer .strikeoutAnnotation,.annotationLayer .freeTextAnnotation,.annotationLayer .lineAnnotation svg line,.annotationLayer .squareAnnotation svg rect,.annotationLayer .circleAnnotation svg ellipse,.annotationLayer .polylineAnnotation svg polyline,.annotationLayer .polygonAnnotation svg polygon,.annotationLayer .caretAnnotation,.annotationLayer .inkAnnotation svg polyline,.annotationLayer .stampAnnotation,.annotationLayer .fileAttachmentAnnotation{cursor:pointer}.annotationLayer section svg{position:absolute;width:100%;height:100%;top:0;left:0}.annotationLayer .annotationTextContent{position:absolute;width:100%;height:100%;opacity:0;color:transparent;-webkit-user-select:none;user-select:none;pointer-events:none}.annotationLayer .annotationTextContent span{width:100%;display:inline-block}:root{--react-pdf-text-layer: 1;--highlight-bg-color: rgba(180, 0, 170, 1);--highlight-selected-bg-color: rgba(0, 100, 0, 1)}@media screen and (forced-colors: active){:root{--highlight-bg-color: Highlight;--highlight-selected-bg-color: ButtonText}}[data-main-rotation="90"]{transform:rotate(90deg) translateY(-100%)}[data-main-rotation="180"]{transform:rotate(180deg) translate(-100%,-100%)}[data-main-rotation="270"]{transform:rotate(270deg) translate(-100%)}.textLayer{position:absolute;text-align:initial;top:0;right:0;bottom:0;left:0;overflow:hidden;line-height:1;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;z-index:2}.textLayer :is(span,br){color:transparent;position:absolute;white-space:pre;cursor:text;margin:0;transform-origin:0 0}.textLayer span.markedContent{top:0;height:0}.textLayer .highlight{margin:-1px;padding:1px;background-color:var(--highlight-bg-color);border-radius:4px}.textLayer .highlight.appended{position:initial}.textLayer .highlight.begin{border-radius:4px 0 0 4px}.textLayer .highlight.end{border-radius:0 4px 4px 0}.textLayer .highlight.middle{border-radius:0}.textLayer .highlight.selected{background-color:var(--highlight-selected-bg-color)}.textLayer br::selection{background:transparent}.textLayer .endOfContent{display:block;position:absolute;top:100%;right:0;bottom:0;left:0;z-index:-1;cursor:default;-webkit-user-select:none;user-select:none}.textLayer.selecting .endOfContent{top:0}.hiddenCanvasElement{position:absolute;top:0;left:0;width:0;height:0;display:none}*{margin:0;padding:0;box-sizing:border-box}:root{--bg: #f0f2f5;--surface: #ffffff;--text: #1a1a2e;--text-secondary: #6b7280;--primary: #2563eb;--primary-hover: #1d4ed8;--secondary: #64748b;--secondary-hover: #475569;--border: #e2e8f0;--danger: #ef4444;--radius: 8px;--shadow: 0 1px 3px rgba(0, 0, 0, .1)}body{font-family:Inter,system-ui,-apple-system,sans-serif;background:var(--bg);color:var(--text);min-height:100vh}#root{min-height:100vh}.app{display:flex;flex-direction:column;min-height:100vh}.app-header{position:relative;background:var(--surface);border-bottom:1px solid var(--border);padding:1rem 2rem;box-shadow:var(--shadow)}.app-header h1{font-size:1.5rem;font-weight:700}.app-header p{font-size:.875rem;color:var(--text-secondary);margin-top:.25rem}.auth-bar{position:absolute;top:50%;right:2rem;transform:translateY(-50%);display:flex;align-items:center;gap:.75rem}.user-chip{background:var(--bg);border:1px solid var(--border);color:var(--text);border-radius:999px;padding:.35rem .9rem;font-size:.8rem;font-weight:600}.btn-logout{background:transparent;border:1px solid var(--border);color:var(--secondary);border-radius:var(--radius);padding:.35rem .85rem;font-size:.8rem;font-weight:600;cursor:pointer;transition:background .15s,color .15s}.btn-logout:hover{background:var(--danger);border-color:var(--danger);color:#fff}.app-main{display:flex;flex:1;gap:0}.sidebar{width:300px;flex-shrink:0;background:var(--surface);border-right:1px solid var(--border);padding:1.5rem;display:flex;flex-direction:column;gap:1.5rem;overflow-y:auto}.content{flex:1;display:flex;flex-direction:column;align-items:center;padding:2rem;overflow-y:auto}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.625rem 1.25rem;border:none;border-radius:var(--radius);font-size:.875rem;font-weight:500;cursor:pointer;transition:all .15s}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover:not(:disabled){background:var(--primary-hover)}.btn-secondary{background:var(--secondary);color:#fff}.btn-secondary:hover:not(:disabled){background:var(--secondary-hover)}.btn-icon{background:none;border:none;cursor:pointer;color:var(--text-secondary);padding:.25rem;font-size:.875rem;border-radius:4px;line-height:1}.btn-icon:hover{color:var(--danger);background:#fef2f2}.upload-section{display:flex;flex-direction:column;gap:.5rem}.upload-btn{width:100%}.file-name{font-size:.8rem;color:var(--text-secondary);word-break:break-all}.empty-state{text-align:center;padding:4rem 2rem;color:var(--text-secondary)}.empty-icon{font-size:4rem;margin-bottom:1rem}.empty-state h2{color:var(--text);margin-bottom:.5rem}.signature-manager h3{font-size:1rem;margin-bottom:.75rem}.signature-actions{display:flex;gap:.5rem;margin-bottom:.75rem}.signature-actions .btn{flex:1;font-size:.8rem;padding:.5rem .75rem}.signature-list{display:flex;flex-direction:column;gap:.5rem;margin-top:.75rem}.signature-item{display:flex;align-items:center;gap:.75rem;padding:.5rem;border:1px solid var(--border);border-radius:var(--radius);cursor:grab}.signature-item:hover{background:#f8fafc}.signature-item:active{cursor:grabbing}.signature-thumb{width:60px;height:35px;object-fit:contain;border:1px solid var(--border);border-radius:4px;background:#fff}.signature-name{flex:1;font-size:.8rem;color:var(--text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty-msg{color:var(--text-secondary);font-size:.85rem;text-align:center;padding:1rem}.hint{font-size:.75rem;color:var(--text-secondary);text-align:center;margin-top:.75rem}.signature-pad{border:1px solid var(--border);border-radius:var(--radius);padding:.5rem;background:#fff}.signature-pad canvas{display:block;width:100%;height:auto;border:1px solid var(--border);border-radius:4px;cursor:crosshair;touch-action:none}.signature-pad-actions{display:flex;gap:.5rem;margin-top:.5rem}.signature-pad-actions button{flex:1;padding:.375rem .75rem;font-size:.8rem;border:1px solid var(--border);border-radius:4px;background:#fff;cursor:pointer}.signature-pad-actions button:disabled{opacity:.4;cursor:not-allowed}.signature-pad-actions button:hover:not(:disabled){background:#f8fafc}.pdf-viewer{display:flex;flex-direction:column;align-items:center;gap:1rem;width:100%}.pdf-toolbar{display:flex;align-items:center;gap:1rem;padding:.5rem 1rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);font-size:.9rem}.pdf-toolbar button{padding:.375rem .75rem;border:1px solid var(--border);border-radius:4px;background:#fff;cursor:pointer;font-size:.9rem}.pdf-toolbar button:disabled{opacity:.4;cursor:not-allowed}.pdf-toolbar button:hover:not(:disabled){background:#f8fafc}.pdf-page-container{position:relative;box-shadow:0 4px 12px #00000026;border-radius:4px;overflow:hidden;background:#fff}.pdf-page{max-width:100%}.pdf-page canvas{display:block;max-width:100%;height:auto!important}.signature-overlay{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.placed-signature{position:absolute;pointer-events:auto;cursor:move;z-index:10}.placed-signature img{width:100%;height:100%;object-fit:contain;opacity:.85}.placed-signature:hover img{opacity:1}.sig-delete{position:absolute;top:-8px;right:-8px;width:20px;height:20px;border-radius:50%;border:1px solid var(--danger);background:#fff;color:var(--danger);font-size:.7rem;cursor:pointer;display:none;align-items:center;justify-content:center;line-height:1;padding:0}.placed-signature:hover .sig-delete{display:flex}.sig-resize{position:absolute;bottom:0;right:0;width:14px;height:14px;cursor:nwse-resize;background:radial-gradient(circle,var(--primary) 2px,transparent 2px);display:none}.placed-signature:hover .sig-resize{display:block}.export-section{margin-top:1.5rem}.btn-export{padding:.75rem 2rem;font-size:1rem}
