.annotation-body{height:100vh;height:100dvh;overflow:hidden;background:var(--surface2);display:flex;flex-direction:column;font-size:13px}.annotation-header{display:flex;align-items:center;gap:9px;min-height:70px;padding:12px 20px;background:var(--surface);border-bottom:1px solid var(--line);flex-shrink:0}.annotation-header>div{min-width:0;flex:1}.annotation-brand{font-family:MyDocsScript,cursive;font-size:25px;margin-right:18px;display:block;line-height:1}.annotation-header strong{display:block;font-size:11px;font-weight:500;color:var(--muted);margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.annotation-header .secondary,.annotation-header .primary{font-size:11px;min-height:33px;padding:8px 12px}.annotation-header #ann-undo,.annotation-header #ann-redo{padding:4px 10px;font-size:21px;min-width:32px}.annotation-header #annotation-save-state{color:var(--muted);font-size:10px;margin-right:8px}.annotation-header #annotation-save-state.dirty{color:#b07e32}.embedded-edit-link{display:none}.annotation-tools{display:flex;align-items:center;gap:19px;padding:11px 20px;background:color-mix(in srgb,var(--surface) 85%,var(--surface2));border-bottom:1px solid var(--line);flex-shrink:0;flex-wrap:wrap}.annotation-toolset{display:flex;gap:3px;padding:3px;background:var(--surface2);border:1px solid var(--line);border-radius:9px}.annotation-toolset button{font-size:14px;padding:7px 10px;border-radius:6px;display:flex;gap:7px;align-items:center;min-height:32px}.annotation-toolset button span{font-size:11px}.annotation-toolset button.active{background:var(--surface);box-shadow:0 1px 4px #0001}.annotation-colors{display:flex;gap:7px;align-items:center}.annotation-colors button{background:var(--annotation-color);height:21px;width:21px;border-radius:50%;border:1px solid #0001}.annotation-colors button.active{outline:2px solid var(--text);outline-offset:3px}.annotation-pagination{display:flex;align-items:center;gap:9px;margin-left:auto;flex-wrap:wrap;font-size:11px;color:var(--muted)}.annotation-pagination label{display:inline-flex;gap:7px;align-items:center}.annotation-pagination input[type=number]{width:48px;border:1px solid var(--line);padding:6px;border-radius:6px;background:var(--input);color:var(--text);font-size:11px}.annotation-pagination select{background:var(--input);border:1px solid var(--line);color:var(--text);border-radius:6px;padding:6px;font-size:11px;max-width:115px}.annotation-layer-toggle{white-space:nowrap}.annotation-layer-toggle input{accent-color:var(--accent);margin:0}.annotation-layout{display:flex;flex:1;min-height:0;overflow:hidden}.annotation-workspace{flex:1;min-width:0;overflow:auto;padding:26px;background:color-mix(in srgb,var(--surface2) 86%,#9fa8b5);position:relative;overscroll-behavior:contain}.annotation-page-wrap{width:100%;min-height:100%;display:flex;justify-content:center;align-items:flex-start}.annotation-page-canvas{position:relative;max-width:1100px;flex-shrink:0;box-shadow:0 6px 30px #0002;background:#fff;line-height:0;align-self:flex-start}.annotation-page-canvas.fixed-zoom{max-width:none}.annotation-page-canvas>img{width:100%;height:auto;display:block;pointer-events:none;user-select:none}.annotation-overlay{position:absolute;inset:0;width:100%;height:100%;touch-action:none;overflow:hidden}.annotation-overlay>g:focus{outline:none}.annotation-page-canvas[data-tool=highlight] .annotation-overlay{cursor:crosshair}.annotation-page-canvas[data-tool=note] .annotation-overlay,.annotation-page-canvas[data-tool=stamp] .annotation-overlay{cursor:copy}.annotation-inspector{width:290px;flex-shrink:0;overflow-y:auto;overscroll-behavior:contain;background:var(--surface);border-left:1px solid var(--line);padding:20px 17px}.annotation-inspector-head{display:flex;align-items:center;gap:8px;margin-bottom:10px}.annotation-inspector-head h2{font-size:13px;font-weight:600}.annotation-inspector-head>span{margin-left:auto;font-size:10px;color:var(--muted);padding:4px 7px;border:1px solid var(--line);border-radius:6px}.annotation-help{color:var(--muted);font-size:11px;line-height:1.65}.annotation-inspector h3{font-size:11px;font-weight:600;margin:19px 0 11px}.annotation-stamp-picker{border:1px solid var(--line);border-radius:10px;padding:12px;margin:17px 0;background:var(--surface2)}.annotation-inspector label,.stamp-edit-form label{display:flex;flex-direction:column;font-size:11px;gap:7px;font-weight:500}.annotation-inspector input:not([type=checkbox]):not([type=range]),.annotation-inspector textarea,.annotation-inspector select,.stamp-edit-form input,.stamp-edit-form textarea,.stamp-edit-form select{background:var(--input);border:1px solid var(--line);border-radius:7px;padding:9px;color:var(--text);font-size:12px;width:100%;min-width:0}.annotation-inspector input[type=color],.stamp-edit-form input[type=color]{height:34px;padding:3px!important;width:55px!important}.annotation-inspector input[type=range]{width:100%;accent-color:var(--accent)}.annotation-stamp-picker>svg{width:100%;height:75px;margin:10px 0;display:block;background:var(--surface);border-radius:6px}.annotation-inspector .secondary,.annotation-inspector .danger{font-size:10px;min-height:30px;padding:7px 10px}.annotation-properties{border-top:1px solid var(--line);padding-top:1px;display:flex;flex-direction:column;gap:12px}.annotation-properties h3{margin-bottom:0}.annotation-properties-row{display:flex;gap:10px;align-items:flex-end}.annotation-properties-row>label{flex:1;min-width:0}.annotation-check{flex-direction:row!important;align-items:center;gap:7px!important}.annotation-check input{accent-color:var(--accent);margin:0}.annotation-fit-warning{font-size:10px;color:var(--danger);line-height:1.5}.annotation-object-list{display:flex;flex-direction:column;gap:6px;margin-bottom:18px;max-height:340px;overflow:auto}.annotation-object-list button{display:flex;align-items:flex-start;gap:9px;text-align:left;padding:10px;border:1px solid var(--line);border-radius:7px;background:var(--surface2);min-width:0}.annotation-object-list button.active{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,var(--surface))}.annotation-object-list i{height:10px;width:10px;flex-shrink:0;border-radius:3px;margin-top:2px}.annotation-object-list span{min-width:0}.annotation-object-list strong{display:block;font-size:10px;font-weight:550}.annotation-object-list small{font-size:9px;line-height:1.5;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:4px;overflow-wrap:anywhere}.annotation-message{padding:0 20px;background:var(--surface);font-size:11px;color:var(--muted);line-height:1.6;flex-shrink:0}.annotation-message:not(:empty){padding-top:9px;padding-bottom:9px;border-bottom:1px solid var(--line)}.annotation-message.error{color:var(--danger)}.annotation-stale{display:flex;align-items:center;gap:15px;padding:12px 20px;background:#fff3cf;color:#6c5019;border-bottom:1px solid #eadcab;flex-shrink:0;font-size:11px;line-height:1.6}.annotation-stale>span{flex:1}.annotation-stale .secondary{font-size:10px;background:#fffaf0}.annotation-loading{position:sticky;top:0;z-index:5;left:0;text-align:center;font-size:11px;padding:12px 18px;background:var(--surface);border:1px solid var(--line);border-radius:8px;width:max-content;margin:0 auto 15px;box-shadow:0 3px 15px #0001}.annotation-readonly .annotation-toolset,.annotation-readonly .annotation-colors,.annotation-readonly #ann-undo,.annotation-readonly #ann-redo{display:none}.annotation-readonly .annotation-overlay{pointer-events:none;touch-action:auto}.annotation-embedded .annotation-header{min-height:32px;padding:5px 9px;justify-content:flex-end}.annotation-embedded .annotation-header>*{display:none}.annotation-embedded .annotation-header>.embedded-edit-link{display:inline-flex;padding:4px 7px;min-height:24px;font-size:9px}.annotation-embedded .annotation-tools{padding:5px 8px;gap:0}.annotation-embedded .annotation-pagination{gap:6px;font-size:9px;margin-left:0;width:100%;justify-content:center}.annotation-embedded .annotation-pagination .icon-button{width:22px;height:24px}.annotation-embedded .annotation-pagination input[type=number]{font-size:9px;padding:4px;width:38px}.annotation-embedded .annotation-pagination select{font-size:9px;padding:4px}.annotation-embedded .annotation-layer-toggle{font-size:9px}.annotation-embedded .annotation-inspector,.annotation-embedded .annotation-toolset,.annotation-embedded .annotation-colors{display:none}.annotation-embedded .annotation-workspace{padding:12px}.annotation-embedded .annotation-message:not(:empty){padding:6px 10px;font-size:9px}.annotation-embedded .annotation-stale{padding:8px;font-size:9px}.annotation-embedded .annotation-stale button{display:none}
/* Stamp library, shared with the application settings dialog. */
.stamp-library{display:flex;flex-direction:column;gap:18px}.stamp-library-head{display:flex;gap:15px;align-items:center;justify-content:space-between}.stamp-library-head>p{font-size:11px;color:var(--muted);line-height:1.6;flex:1}.stamp-library-head .secondary{font-size:11px}.stamp-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:12px}.stamp-template{padding:13px;background:var(--surface2);border:1px solid var(--line);border-radius:10px;min-width:0}.stamp-template>svg{width:100%;height:80px;display:block;background:var(--surface);margin-bottom:10px;border-radius:5px}.stamp-template>strong{display:block;font-size:12px;font-weight:550;margin:8px 0 13px}.stamp-template>div{display:flex;gap:7px}.stamp-template .secondary{font-size:10px;padding:6px 9px;min-height:30px}.stamp-edit-form{display:flex;flex-direction:column;gap:14px;border-top:1px solid var(--line);padding-top:20px}.stamp-edit-form h3{margin:0;font-size:15px}.stamp-edit-row{display:flex;gap:15px;align-items:flex-end}.stamp-edit-row>label{flex:1;min-width:0}.stamp-edit-row>label:first-child{flex:0 0 55px}.stamp-live-preview{width:100%;height:115px;background:var(--surface2);border:1px solid var(--line);border-radius:8px;padding:12px}.stamp-library-error{color:var(--danger);font-size:11px;line-height:1.5}#ann-stamp-dialog{width:850px;max-width:calc(100vw - 24px);max-height:90vh}#ann-stamp-library{padding:24px}
@media(max-width:1000px){.annotation-header{padding:10px 13px}.annotation-header .annotation-brand{font-size:23px}.annotation-tools{padding:9px 12px;gap:12px}.annotation-toolset button{padding:6px 8px}.annotation-inspector{width:250px;padding:16px 12px}.annotation-pagination{margin-left:0}.annotation-colors{gap:6px}.annotation-workspace{padding:18px}}
@media(max-width:760px){.annotation-body:not(.annotation-embedded){overflow:auto;height:auto;min-height:100dvh}.annotation-header{flex-wrap:wrap;gap:6px}.annotation-header>div{flex-basis:100%}.annotation-header .annotation-brand{display:inline;font-size:26px}.annotation-header strong{display:inline;font-size:10px}.annotation-header #annotation-save-state{font-size:9px;margin-left:auto}.annotation-header .secondary,.annotation-header .primary{font-size:10px;padding:6px 9px;min-height:30px}.annotation-tools{gap:10px;position:sticky;top:0;z-index:10}.annotation-toolset{width:100%;justify-content:space-between}.annotation-toolset button{padding:6px 9px}.annotation-pagination{gap:7px;font-size:10px}.annotation-pagination label{gap:4px}.annotation-pagination select{max-width:103px}.annotation-colors{padding-left:4px}.annotation-layout{flex-direction:column;overflow:visible;flex:initial}.annotation-workspace{height:68vh;flex:none;overflow:auto;padding:14px 10px}.annotation-inspector{width:100%;border-left:0;border-top:1px solid var(--line);padding:20px;overflow:visible}.annotation-inspector-head{margin-bottom:8px}.annotation-stamp-picker{max-width:420px}.annotation-object-list{max-height:250px}.annotation-stale{flex-wrap:wrap;padding:10px 13px}.annotation-stale>span{flex-basis:100%}.annotation-message{padding-left:13px;padding-right:13px}.annotation-embedded{height:100dvh!important;min-height:0!important;overflow:hidden!important}.annotation-embedded .annotation-layout{flex:1;min-height:0;overflow:hidden}.annotation-embedded .annotation-workspace{height:100%;flex:1;min-height:0}.annotation-embedded .annotation-tools{position:static}.annotation-embedded .annotation-header>div{display:none}.stamp-library-head{flex-direction:column;align-items:flex-start}.stamp-gallery{grid-template-columns:1fr}.stamp-edit-row{gap:10px}#ann-stamp-library{padding:18px}}

.annotation-geometry{font-size:10px;color:var(--muted)}.annotation-geometry summary{cursor:pointer}.annotation-geometry-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-top:12px}.annotation-readonly #ann-add-current{display:none}#ann-add-current{margin:12px 0 0}
/* Embedded editing workbench and handwritten signature field. */
.annotation-workbench .annotation-brand,.annotation-workbench .annotation-header strong,.annotation-workbench .annotation-header>div,.annotation-workbench .annotation-header>a{display:none}.annotation-workbench .annotation-header{min-height:51px;padding:8px 14px;gap:8px}.annotation-workbench #annotation-save-state{margin-right:auto}.annotation-workbench .annotation-header #ann-details{order:5}.annotation-workbench .annotation-tools{padding:9px 12px;gap:12px}.annotation-workbench .annotation-inspector{width:245px;padding:16px 13px}.annotation-workbench .annotation-workspace{padding:20px}.annotation-document-fields{position:absolute;right:0;top:0;bottom:0;width:340px;max-width:100%;z-index:12;background:var(--surface);border-left:1px solid var(--line);box-shadow:-12px 0 35px #0002;padding:18px 20px;overflow:auto}.annotation-layout{position:relative}.document-fields-head{display:flex;align-items:center;gap:15px;margin-bottom:18px}.document-fields-head h2{font-size:15px;font-weight:550;flex:1}.document-fields-form{display:flex;flex-direction:column;gap:14px}.document-fields-form label{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:500}.document-fields-form input:not([type=checkbox]),.document-fields-form select,.document-fields-form textarea{width:100%;background:var(--input);color:var(--text);padding:10px;border:1px solid var(--line);border-radius:7px;font:inherit;min-width:0}.document-fields-form small{color:var(--muted);font-size:10px;line-height:1.6}.document-fields-form fieldset{padding:0;border:0}.document-fields-form legend{font-size:11px;margin-bottom:8px}.document-fields-form pre{font-size:11px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:12px}.document-fields-form details{font-size:11px;color:var(--muted)}.document-fields-message{font-size:11px;line-height:1.6;color:var(--muted)}.signature-dialog{width:820px;max-width:calc(100vw - 24px);max-height:95dvh}.signature-content{padding:20px 24px}.signature-content>p{font-size:12px;line-height:1.7;color:var(--muted);margin-bottom:14px}.signature-paper{position:relative;background:#fff;border:1px solid #cbd5df;border-radius:10px;overflow:hidden;isolation:isolate}.signature-paper>span{position:absolute;left:4%;right:4%;bottom:7%;font-size:10px;color:#9aa8b8;border-top:1px solid #d9e0e7;padding-top:5px;pointer-events:none;z-index:-1}.signature-paper svg{display:block;width:100%;height:auto;touch-action:none;user-select:none;cursor:crosshair;max-height:55dvh}.signature-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end;margin-top:15px}.signature-actions .secondary,.signature-actions .primary{font-size:11px}.signature-content #signature-error{color:var(--danger);font-size:11px;margin:8px 0;min-height:1em}.annotation-page-canvas[data-tool=signature] .annotation-overlay{cursor:copy}
@media(max-width:760px){.annotation-workbench .annotation-header{flex-wrap:wrap;padding:8px 10px}.annotation-workbench .annotation-header>div{display:none}.annotation-workbench .annotation-header #annotation-save-state{margin-left:0;font-size:9px}.annotation-toolset{flex-wrap:wrap}.annotation-toolset button{gap:5px;padding:6px 7px}.annotation-toolset button span{font-size:10px}.annotation-workbench .annotation-inspector{width:100%;padding:18px}.annotation-workbench .annotation-workspace{padding:13px}.annotation-document-fields{position:fixed;top:0;bottom:0;max-width:100%;width:360px;z-index:25}.signature-content{padding:14px}.signature-actions{gap:7px}.signature-actions .secondary,.signature-actions .primary{font-size:10px;padding:8px 10px}.signature-dialog .modal-top{padding:13px 17px}}
.annotation-workbench .annotation-header #ann-details,.annotation-workbench .annotation-header #ann-print{display:none}

.signature-paper svg{margin-inline:auto}
/* Mobile editor stays inside its iframe; only the document area scrolls horizontally. */
.annotation-body{min-width:0;width:100%;max-width:100%;-webkit-text-size-adjust:100%}.annotation-header,.annotation-tools,.annotation-pagination{min-width:0;max-width:100%}.annotation-pagination{gap:6px}.annotation-tools{overflow-wrap:anywhere}.annotation-document-fields{max-width:100%}
@media(max-width:1050px){.annotation-workbench .annotation-inspector{width:220px}.annotation-tools{gap:10px}.annotation-toolset{flex-wrap:wrap}.annotation-header{flex-wrap:wrap}.annotation-workbench .annotation-workspace{padding:12px}.annotation-pagination{margin-left:0;flex-wrap:wrap}}
@media(max-width:760px){.annotation-body.annotation-workbench{height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column}.annotation-workbench .annotation-header{flex-shrink:0;gap:6px;padding:6px 10px}.annotation-workbench .annotation-tools{position:static;flex-shrink:0;max-height:32dvh;overflow-y:auto;padding:7px 10px;gap:10px}.annotation-workbench .annotation-layout{flex:1;min-height:0;overflow-y:auto;display:block}.annotation-workbench .annotation-workspace{width:100%;height:58dvh;min-height:230px;padding:10px;overflow:auto}.annotation-workbench .annotation-inspector{width:100%;max-width:100%;height:auto;overflow:visible;padding:16px;border-top:1px solid var(--line)}.annotation-toolset{flex-wrap:wrap;gap:2px;justify-content:flex-start}.annotation-toolset button{padding:7px;min-height:38px}.annotation-toolset button span{font-size:11px}.annotation-pagination{width:100%;gap:7px;justify-content:flex-start}.annotation-pagination label{min-width:0;gap:4px}.annotation-pagination input[type=number]{width:54px}.annotation-pagination select{max-width:105px}.annotation-layer-toggle{white-space:normal}.annotation-document-fields{width:100%;height:100dvh}.annotation-object-list{max-height:200px}.annotation-workbench .annotation-header .secondary,.annotation-workbench .annotation-header .primary{min-height:36px;font-size:11px}.signature-dialog{max-width:calc(100% - 12px)}}
@media(hover:none) and (pointer:coarse){.annotation-body input:not([type=checkbox]):not([type=color]):not([type=range]),.annotation-body textarea,.annotation-body select,.signature-dialog input{font-size:16px!important}}
