@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#16213b;background:#f8faff;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;border:0;background:transparent;color:inherit}button:focus-visible,a:focus-visible,[role=button]:focus-visible{outline:3px solid #8aa4ff;outline-offset:4px}button:disabled{opacity:.5;cursor:default}[hidden]{display:none!important}header{height:96px;padding:0 4.5%;display:flex;align-items:center;gap:35px;border-bottom:1px solid #e8edf7;background:#f8faff;position:relative;z-index:20}.brand{display:flex;align-items:center;color:inherit;text-decoration:none;font-family:Manrope,sans-serif;font-size:24px;font-weight:800;letter-spacing:-1px}.light{font-weight:500}.mark{width:33px;height:33px;border-radius:9px;background:#2b54ea;color:white;margin-right:10px;font-size:25px;line-height:33px;text-align:center;letter-spacing:-3px;padding-right:3px}.mark span{color:#aebfff}.header-note{font-size:14px;color:#8690a3}.actions{margin-left:auto;display:flex;align-items:center;gap:12px}.actions>button:not(.round){font-size:14px;padding:12px 16px}.round{width:48px;height:48px;display:grid;place-items:center;border:1px solid #dfe5ef;border-radius:50%;background:white;box-shadow:0 3px 10px #223c6310}.round svg{width:22px}.round[aria-expanded=true]{background:#2b54ea;color:white;border-color:#2b54ea}.primary{background:#2b54ea;color:white;border-radius:9px;padding:15px 24px;font-weight:600;box-shadow:0 5px 14px #2b54ea21}.primary:hover{background:#2044d0}#empty{max-width:1180px;margin:0 auto;min-height:calc(100svh - 96px);display:grid;grid-template-columns:1fr 1.04fr;align-content:center;gap:60px;padding:60px 40px 30px}.eyebrow{font-size:12px;letter-spacing:2px;font-weight:700;color:#6680b4;margin-bottom:23px}h1{font-family:Manrope,sans-serif;font-size:clamp(64px,7vw,94px);letter-spacing:-5px;line-height:1.08;margin:0;font-weight:800}h1 span{color:#2b54ea}.intro>p{font-size:19px;color:#7a8599;line-height:1.7;margin-top:26px}.dropzone{background:white;border:1.5px dashed #b9c7e5;border-radius:20px;min-height:360px;display:flex;align-items:center;justify-content:center;flex-direction:column;box-shadow:0 14px 60px #253f6610;transition:background .2s,border-color .2s}.dropzone:hover{background:#fcfdff;border-color:#2b54ea}.upload-icon{height:64px;width:64px;background:#eef2ff;border-radius:17px;display:grid;place-items:center;margin-bottom:10px;color:#2b54ea}.upload-icon svg{width:33px}h2{font-family:Manrope,sans-serif;font-size:23px;font-weight:700;letter-spacing:-.6px;margin:14px 0 8px}.dropzone>p{margin:0 0 27px;font-size:16px;color:#8b94a6}.dropzone .primary{display:flex;gap:17px;align-items:center;font-size:15px}.primary svg{width:20px}.local-note{font-size:12px;color:#929cad;display:flex;align-items:center;gap:6px;margin-top:25px}.local-note svg{width:14px;height:14px}footer{display:flex;justify-content:space-between;padding:25px 4.5%;font-size:12px;color:#99a2b3}#panel{position:fixed;right:4.5%;top:83px;width:310px;background:white;border:1px solid #e1e6f0;border-radius:17px;padding:22px;z-index:40;box-shadow:0 18px 60px #18274b22}.panel-head{display:flex;align-items:center;justify-content:space-between}.panel-head h2{font-size:20px;margin:0}.panel-head button{font-size:25px;color:#8a95a9}#panel>p{font-size:13px;color:#8590a3;margin:8px 0 25px}label{display:block;font-size:14px;font-weight:500;margin-bottom:8px}label span{color:#8a95a9}select,input[type=number]{border:1px solid #dce3f0;background:#fafbfe;border-radius:8px;width:100%;height:43px;padding:0 12px;color:#16213b}.fieldrow{display:flex;gap:16px;margin:20px 0}.fieldrow>div{flex:1}input[type=color]{width:100%;height:43px;padding:5px;border:1px solid #dce3f0;border-radius:8px;background:#fafbfe}.toggle-row{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #edf0f6;padding-top:20px;cursor:pointer}.toggle-row span{color:#16213b}.toggle-row small{display:block;color:#8590a3;font-size:12px;margin-top:6px;font-weight:400}.toggle-row input{accent-color:#2b54ea;width:19px;height:19px}#sample{margin-top:23px;background:#f6f8ff;border-radius:9px;padding:18px;overflow-wrap:anywhere}.danger{color:#d34343;font-size:14px;margin-top:17px}.editing header{height:70px;background:white;padding:0 24px;gap:12px}.editing .header-note{display:none}.editing #savestatus{margin-left:12px;font-size:13px;color:#5d6a82;font-weight:600;white-space:nowrap}#workspace{height:calc(100svh - 70px);overflow:auto;background:#e9edf4;padding:28px 24px calc(48px + var(--action-docks-height,64px))}#pages{display:flex;flex-direction:column;align-items:center;gap:24px;min-width:100%}.pdf-page{position:relative;background:white;box-shadow:0 4px 20px #2339561c;flex-shrink:0;cursor:text}.pdf-page canvas{display:block;width:100%;height:100%;pointer-events:none}.annotation{position:absolute;line-height:1.2;white-space:pre;outline:none;min-width:3px;min-height:1.2em;padding:0;margin:0;cursor:text;transform-origin:top left;z-index:2}.annotation.boxed{white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid currentColor;padding:6px}.annotation:focus{outline:1px dashed #8b93a3}.handle{position:absolute;top:-20px;left:-1px;height:19px;padding:0 7px;background:#8b93a3;color:white;font-size:12px;font-family:sans-serif;cursor:grab;display:none;user-select:none;border-radius:6px}.annotation:focus-within .handle{display:none}.text{outline:0;min-height:1.2em}.annotation.boxed{resize:horizontal;overflow:auto}.zoom{display:flex;align-items:center;gap:8px}.zoom button{font-size:20px;width:26px}.divider{width:1px;height:20px;background:#e1e7f0}.zoom{display:flex;align-items:center;gap:8px}.zoom button{font-size:20px;width:26px}#editorbar .hint{color:#8892a6;font-size:12px}#toast{position:fixed;bottom:calc(28px + var(--action-docks-height,64px));left:50%;transform:translateX(-50%);background:#16213b;color:white;z-index:80;max-width:90%;padding:13px 20px;border-radius:10px;font-size:14px}
#uploadbanner{position:fixed;top:70px;left:50%;z-index:19;max-width:min(90vw,560px);padding:11px 18px;border-radius:12px;background:#16213b;color:#fff;font-size:14px;font-weight:500;line-height:1.4;text-align:center;box-shadow:0 8px 24px #16213b28;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#uploadbanner.is-in{animation:uploadBannerIn .42s ease-out both}
#uploadbanner.is-out{animation:uploadBannerOut .5s ease-in both}
@keyframes uploadBannerIn{from{opacity:0;transform:translate(-50%,-18px)}to{opacity:1;transform:translate(-50%,10px)}}
@keyframes uploadBannerOut{from{opacity:1;transform:translate(-50%,10px)}to{opacity:0;transform:translate(calc(-50% - 120px),10px)}}
@media(prefers-reduced-motion:reduce){
#uploadbanner.is-in,#uploadbanner.is-out{animation:none}
#uploadbanner.is-in{opacity:1;transform:translate(-50%,10px)}
#uploadbanner.is-out{opacity:0}
}#dragmask{position:fixed;inset:0;z-index:100;background:#edf2fff0;display:grid;place-items:center;border:5px dashed #2b54ea;color:#2b54ea;font-size:30px;font-weight:600}@media(max-width:760px){header{height:76px;padding:0 22px}.header-note{display:none}#empty{grid-template-columns:1fr;gap:30px;padding:38px 24px 20px}.intro{text-align:center}h1{font-size:62px;letter-spacing:-3px}h1 br{display:none}h1 span{margin-left:12px}.eyebrow{margin-bottom:15px}.intro>p{font-size:16px;margin:18px 0 0}.intro p br{display:none}.dropzone{min-height:320px}footer{padding:25px 24px;font-size:11px}.editing header{padding:0 14px}.editing .brand{font-size:20px}.editing .mark{display:none}.actions{gap:5px}.actions>button:not(.round){padding:10px;font-size:12px}#workspace{padding:15px 10px calc(48px + var(--action-docks-height,64px))}.round{width:42px;height:42px}}

.shape{cursor:pointer;padding:0!important;border:0!important}.shape svg{width:100%;height:100%;display:block}.shape:focus{outline:1px dashed #8b93a3}.shape:focus .handle{display:none}.shape .handle{z-index:3}#editorbar .hint{max-width:220px;white-space:normal}

.shape{touch-action:none}.pdf-page.draw-mode{touch-action:none;cursor:crosshair}.resize-handle{display:none;position:absolute;width:7px;height:7px;background:white;border:2px solid #8b93a3;border-radius:50%;padding:0;z-index:5;touch-action:none}.shape.selected .resize-handle{display:block}.resize-handle.nw{left:-3.5px;top:-3.5px;cursor:nwse-resize}.resize-handle.ne{right:-3.5px;top:-3.5px;cursor:nesw-resize}.resize-handle.sw{left:-3.5px;bottom:-3.5px;cursor:nesw-resize}.resize-handle.se{right:-3.5px;bottom:-3.5px;cursor:nwse-resize}.shape.selected{outline:1px dashed #8b93a3}.shape.selected .handle{display:flex}.handle{touch-action:none}

.shape-help{font-size:13px;color:#8590a3;line-height:1.5;margin:16px 0 0}

.line-shape,.line-shape:focus,.line-shape:focus-within,.line-shape.selected{outline:none!important;min-width:0;min-height:0;pointer-events:none}.line-shape svg{pointer-events:none;overflow:visible}.line-shape svg line{pointer-events:stroke;cursor:pointer}.line-shape .handle,.line-shape .rotate-handle{pointer-events:auto}.endpoint-handle{display:none;position:absolute;width:14px;height:14px;transform:translate(-50%,-50%);background:white;border:2px solid #2b54ea;border-radius:50%;padding:0;z-index:5;cursor:crosshair;touch-action:none;pointer-events:auto}.line-shape.selected .endpoint-handle{display:block}

.text-tools{position:absolute;z-index:4;pointer-events:none}.text-tools .handle,.text-tools .rotate-handle,.text-tools .resize-handle{pointer-events:auto;touch-action:none}.text-tools .handle{white-space:nowrap}.text-tools .handle:active{cursor:grabbing}

.align-guides{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:6}.align-guides line{stroke:#2b54ea;stroke-width:1;stroke-dasharray:5 4;vector-effect:non-scaling-stroke}
.pdf-page{touch-action:none}.annotation:not(.shape){cursor:default}.annotation.boxed:not(.shape).selected,.annotation.selected:not(.shape):not(.boxed){outline:1px dashed #8b93a3;outline-offset:-1px}.annotation .text{cursor:text}.annotation.boxed.fixed-height{resize:both}.text-border-hit{position:absolute;z-index:3;cursor:pointer;touch-action:none}.text-border-hit.top{top:0;left:0;right:0;height:5px}.text-border-hit.bottom{bottom:0;left:0;right:7px;height:5px}.text-border-hit.left{left:0;top:0;bottom:0;width:5px}.text-border-hit.right{right:0;top:0;bottom:7px;width:5px}

.annotation.boxed,.annotation.boxed.fixed-height{resize:none}.text-tools .resize-handle{display:block;pointer-events:auto}.actions>button.history-button{display:flex;align-items:center;gap:5px;font-size:20px;padding:9px;border-radius:8px}.history-button span{font-size:13px}.history-button:hover:not(:disabled){background:#edf2ff}.history-button:disabled{cursor:default;opacity:.35}@media(max-width:760px){.history-button span{display:none}.actions>button.history-button{padding:6px;font-size:20px}.editing .brand{font-size:18px}.actions>button:not(.round){padding:8px;font-size:12px}}

@media(max-width:480px){.editing header{padding:0 8px;gap:8px}.editing .brand{font-size:0}.editing .mark{display:block;font-size:22px;width:28px;height:28px;line-height:28px;margin:0}.editing .actions{gap:3px}.editing .round{width:36px;height:36px}.editing .actions>button:not(.round):not(.history-button){padding:8px 6px;font-size:11px}}

#exportmenu{position:fixed;right:80px;top:64px;width:320px;max-width:calc(100% - 24px);z-index:45;border:1px solid #dce3f0;background:white;border-radius:13px;padding:6px;box-shadow:0 12px 36px #18274b22}#exportmenu button{display:block;text-align:left;width:100%;padding:14px;border-radius:8px}#exportmenu button:hover,#exportmenu button:focus-visible{background:#edf2ff}#exportmenu strong{display:block;font-size:15px}#exportmenu span{display:block;font-size:13px;line-height:1.5;color:#7a8599;margin-top:5px}@media(max-width:480px){#exportmenu{right:12px}}

.text-tools.unboxed .resize-handle,.annotation:not(.boxed) .text-border-hit{display:none}.annotation:not(.shape):not(.boxed):not(.selected){outline:none;cursor:text}
@media(hover:hover) and (pointer:fine){
body:not(.touch-ui) .annotation:not(.selected):hover{outline:1px dashed #8b93a3;outline-offset:-1px;cursor:grab}
body:not(.touch-ui) .shape:not(.selected):hover{outline-offset:0}
body:not(.touch-ui) .line-shape:not(.selected):hover{outline:1px dashed #8b93a3!important;outline-offset:2px}
body:not(.touch-ui) .annotation.selected,body:not(.touch-ui) .shape.selected{cursor:grab}
body:not(.touch-ui) .annotation.selected .text{cursor:text}
body:not(.touch-ui) .annotation.selected:active,body:not(.touch-ui) .shape.selected:active,body:not(.touch-ui) .handle:active{cursor:grabbing}
}
.formatting{display:flex;gap:8px;margin-top:16px}.formatting button{border:1px solid #dce3f0;border-radius:7px;width:42px;height:36px;font-size:17px}.formatting button[aria-pressed=true]{background:#eaf0ff;color:#2b54ea;border-color:#2b54ea}.navigation{display:flex;align-items:center;gap:4px;white-space:nowrap}.navigation input{width:2.4ch;min-width:1.25em;padding:0;border:0;background:transparent;border-radius:0;text-align:right;font-variant-numeric:tabular-nums;appearance:textfield;-moz-appearance:textfield}.navigation input::-webkit-outer-spin-button,.navigation input::-webkit-inner-spin-button{appearance:none;margin:0}.navigation button{font-size:22px;padding:0 5px}.navigation button:disabled{opacity:.3;cursor:default}.navigation label{font-size:12px}#pagecount{font-variant-numeric:tabular-nums}#editorbar .hint{display:none}.text-warning{position:absolute;z-index:5;background:#fff3db;border:1px solid #e8bc63;color:#865610;border-radius:4px;font-size:11px;padding:2px 6px;white-space:nowrap}.export-name{padding:12px}.export-name label{font-size:13px;display:block;margin-bottom:6px}.export-name>div{display:flex;align-items:center;gap:8px}.export-name input{width:100%;min-width:0;border:1px solid #dce3f0;border-radius:6px;padding:9px;font:inherit}.export-name>div>span{margin:0}#exportwarning{font-size:12px;line-height:1.5;color:#865610;margin:10px 0 0}#recovery{position:relative;z-index:2;display:flex;align-items:center;gap:14px;margin:20px auto 0;padding:16px 20px;width:fit-content;max-width:calc(100% - 32px);background:white;border:1px solid #dce3f0;border-radius:12px;box-shadow:0 5px 20px #18274b08}#recovery span{display:block;color:#74809a;font-size:13px;margin-top:4px}#recovery .primary{padding:9px 16px}#recovery[hidden]{display:none}#recovery{flex-wrap:wrap}#recovery #opennew{border:1px solid #c5d0e6;background:#fff;border-radius:9px;padding:9px 16px;font-weight:600}#recovery #opennew:hover{border-color:#2b54ea;color:#2b54ea}#recovery #discard{padding:9px 12px;color:#74809a}#replacedialog{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:24px;background:#16213b59}#replacedialog[hidden]{display:none}.replace-card{width:min(440px,100%);background:#fff;border:1px solid #dce3f0;border-radius:14px;padding:22px;box-shadow:0 18px 60px #18274b33}.replace-card p{margin:0;font-size:15px;line-height:1.5}.replace-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:18px}.replace-actions button{border-radius:9px;padding:10px 14px;font-weight:600}#replacecontinue{border:1px solid #c5d0e6;background:#fff}#replacecontinue:hover{border-color:#2b54ea;color:#2b54ea}.replace-actions .primary{padding:10px 14px;box-shadow:none}@media(max-width:760px){#recovery{gap:8px;padding:12px;font-size:13px}.editing #savestatus{font-size:12px}.shortcuthelp{display:none}}
#shortcuthelp, .shortcuthelp{margin:0;border:0;padding:0;position:relative}.shortcuthelp summary{cursor:pointer;color:#2b54ea;font-size:12px;font-weight:600;list-style:none;padding:8px 10px;border:1px solid #dce3f0;border-radius:8px;background:#fafbfe;white-space:nowrap}.shortcuthelp[open] summary{background:#edf2ff;border-color:#2b54ea}.shortcuthelp dl{position:absolute;top:calc(100% + 8px);right:0;width:260px;margin:0;padding:10px 12px;background:white;border:1px solid #e1e6f0;border-radius:12px;box-shadow:0 12px 36px #18274b22;z-index:40}.shortcuthelp dl>div{padding:8px 0;border-bottom:1px solid #edf0f5}.shortcuthelp dt{font-size:13px;font-weight:600}.shortcuthelp dd{font-size:12px;margin:3px 0 0;color:#74809a}

@media(max-width:760px){#empty{min-height:calc(100svh - 76px)}}
.rotation-controls{display:none}
.rotate-handle{display:none;position:absolute;left:50%;bottom:-40px;transform:translateX(-50%);width:22px;height:22px;padding:0;border-radius:50%;background:#fff;border:2px solid #8b93a3;color:#5d6a82;z-index:6;cursor:grab;touch-action:none;place-items:center}
.rotate-handle::before{content:'';position:absolute;left:50%;bottom:100%;width:1px;height:12px;background:#8b93a3;transform:translateX(-50%)}
.rotate-handle svg{width:14px;height:14px;display:block;fill:none;stroke:currentColor;stroke-width:2.25;stroke-linecap:round;stroke-linejoin:round}
.shape.selected .rotate-handle,.annotation.selected .rotate-handle,.text-tools:not([hidden]) .rotate-handle{display:grid}
.rotate-handle:active{cursor:grabbing}

/* Clearly labeled settings and sturdy history icons. */
.history-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
@media(max-width:760px){
.actions>button.history-button{min-width:48px;min-height:48px;justify-content:center;padding:10px;background:#e5ecff;color:#183da8;border:1px solid #a8b9eb;border-radius:10px}
.history-button svg{width:26px;height:26px;stroke-width:3}
.actions>button.history-button:disabled{opacity:1;background:#f0f3f8;color:#8590a3;border-color:#d6ddea;cursor:default}
}
@media(max-width:600px){
.editing header{height:auto;min-height:70px;gap:8px;padding:8px 10px}
.editing #savestatus{font-size:11px;max-width:38vw;overflow:hidden;text-overflow:ellipsis}
.editing #workspace{height:calc(100svh - 70px)}
#exportmenu{top:70px}
}

.intro h1{font-size:clamp(34px,3.6vw,52px);letter-spacing:-1.6px;line-height:1.12;max-width:12em}@media(max-width:760px){.intro h1{font-size:34px;letter-spacing:-1.2px;max-width:none}}

.annotation,.text-tools{transform-origin:top left}

#actiondocks{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);z-index:26;width:min(1480px,calc(100vw - 32px));pointer-events:none;display:flex;flex-direction:column;align-items:stretch}
#alignbar{pointer-events:auto;display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 auto 8px;align-self:center;width:max-content;max-width:100%;background:#fff;border:1px solid #dce3ed;border-radius:12px;padding:6px 8px 6px 12px;box-shadow:0 8px 28px #192d5024}
#alignbar[hidden]{display:none!important}
#aligncount{font-size:12px;font-weight:700;color:#5d6a82;white-space:nowrap}
#alignbar button{height:34px;padding:0 10px;border:1px solid #dce3f0;border-radius:8px;background:#fafbfe;display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:inherit}
#alignbar button:hover{background:#edf2ff;color:#2b54ea;border-color:#2b54ea}
#alignbar button:disabled{opacity:.4;cursor:default}
#alignbar button:disabled:hover{background:#fafbfe;color:inherit;border-color:#dce3f0}
#alignbar svg{width:16px;height:16px;display:block;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}
body.multi-select .annotation.selected .resize-handle,body.multi-select .shape.selected .resize-handle,body.multi-select .annotation.selected .rotate-handle,body.multi-select .shape.selected .rotate-handle,body.multi-select .line-shape.selected .endpoint-handle{display:none}
body.touch-ui #alignbar{display:none!important}
.action-orbit{position:relative;width:100%;height:var(--action-orbit-height,64px);overflow:visible;isolation:isolate}
.action-bar{pointer-events:auto;position:relative;display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #dce3ed;border-radius:14px;padding:8px 12px;box-shadow:0 8px 28px #192d5024;overflow:visible}
.action-bar-scroll{display:flex;align-items:center;gap:8px;flex:1;min-width:0;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin}
.action-orbit .action-bar{position:absolute;left:0;right:0;top:0;width:100%}
.action-bar[data-profile=normal]{transform:translateY(0);z-index:2}
.action-bar[data-profile=shift]{transform:translateY(10%);opacity:.92;z-index:1}
.action-orbit.shift-front .action-bar[data-profile=normal]{transform:translateY(10%);opacity:.92;z-index:1}
.action-orbit.shift-front .action-bar[data-profile=shift]{transform:translateY(0);opacity:1;z-index:2}
.action-orbit.shuffle-to-shift .action-bar[data-profile=normal]{animation:cardToBack .44s cubic-bezier(.22,.72,.18,1) both}
.action-orbit.shuffle-to-shift .action-bar[data-profile=shift]{animation:cardToFront .44s cubic-bezier(.22,.72,.18,1) both}
.action-orbit.shuffle-to-click .action-bar[data-profile=normal]{animation:cardToFront .44s cubic-bezier(.22,.72,.18,1) both}
.action-orbit.shuffle-to-click .action-bar[data-profile=shift]{animation:cardToBack .44s cubic-bezier(.22,.72,.18,1) both}
@keyframes cardToBack{
0%{transform:translate(0,0);opacity:1;z-index:4}
48%{transform:translate(18px,-20px);opacity:1;z-index:4}
52%{transform:translate(18px,-20px);z-index:1}
100%{transform:translate(0,10%);opacity:.92;z-index:1}
}
@keyframes cardToFront{
0%{transform:translate(0,10%);opacity:.92;z-index:1}
48%{transform:translate(-18px,20px);opacity:.96;z-index:1}
52%{transform:translate(-18px,20px);z-index:4}
100%{transform:translate(0,0);opacity:1;z-index:4}
}
.action-bar-end{display:flex;align-items:center;gap:6px;flex:none;margin-left:auto}
.action-alternate{height:36px;padding:0 10px;border:1px solid #dce3f0;border-radius:8px;background:#fafbfe;display:flex;align-items:center;gap:6px;flex:none;color:#5d6a82;font-size:12px;font-weight:700}
.action-alternate:hover{background:#edf2ff;color:#2b54ea;border-color:#2b54ea}
.action-alternate[aria-pressed=true]{background:#eaf0ff;color:#2b54ea;border-color:#2b54ea}
.action-alternate svg{width:16px;height:16px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.action-profile-label{flex:none;position:relative;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#2b54ea;background:#edf2ff;border-radius:999px;padding:7px 10px;white-space:nowrap}
.action-bar[data-profile=shift] .action-profile-label{color:#5b3cc4;background:#f1ecff}
.action-bar label{margin:0;display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;white-space:nowrap}
.action-bar label span{color:#5d6a82;font-weight:600}
.action-bar select,.action-bar input[type=number]{width:auto;min-width:0;height:36px;padding:0 8px;font-size:13px}
.action-bar input[data-field=size],.action-bar input[data-field=shapewidth],.action-bar input[data-field=shapeheight]{width:58px}
.action-bar .formatting{margin:0;gap:4px}
.action-bar .formatting button{width:34px;height:34px;font-size:14px}
.action-bar input[type=color]{width:42px;height:36px;padding:3px;border:1px solid #dce3f0;border-radius:8px;background:#fafbfe}
.action-text-fields,.action-shape-fields,.action-signature-fields,.action-rotation-fields{display:flex;align-items:center;gap:10px}
.action-signature-fields>button{height:36px;padding:0 10px;border:1px solid #dce3f0;border-radius:8px;background:#fafbfe;font-size:13px;font-weight:600}
.action-bar input[data-field=rotation]{width:58px}
.action-lock{width:34px;height:34px;padding:0;border:1px solid #dce3f0;border-radius:8px;background:#fafbfe;display:grid;place-items:center;flex:none;color:#5d6a82}
.action-lock[aria-pressed=true]{background:#eaf0ff;color:#2b54ea;border-color:#2b54ea}
.action-lock svg{width:16px;height:16px;display:block;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.action-lock .lock-off{display:none}
.action-lock[aria-pressed=false] .lock-on{display:none}
.action-lock[aria-pressed=false] .lock-off{display:block}
.action-bar .action-toggle{gap:5px;padding:0 4px}
.action-toggle input{width:16px;height:16px;margin:0;accent-color:#2b54ea}
.action-bar .danger{margin:0;padding:8px 10px;border-radius:8px;white-space:nowrap}
@media(prefers-reduced-motion:reduce){
.action-bar,.action-orbit .action-bar{animation:none!important;transition:none}
}

#editorchrome{display:none;align-items:center;gap:12px;margin-left:auto}
.editing #editorchrome:not([hidden]){display:flex}
.editing .actions{margin-left:10px}
.editing header{--chrome-h:48px}
.editing #download{height:var(--chrome-h);padding:0 18px;display:inline-flex;align-items:center;line-height:1;border-radius:10px;box-sizing:border-box;border:1px solid #2b54ea}
#editorchrome .navigation,#editorchrome .zoom{background:#f6f8fd;border:1px solid #e1e6f0;border-radius:10px;padding:0 8px;height:var(--chrome-h);box-sizing:border-box}
#editorchrome .shortcuthelp summary{height:var(--chrome-h);display:flex;align-items:center;padding:0 12px;border-radius:10px;box-sizing:border-box}
#editorchrome .navigation{gap:4px;padding-left:10px;padding-right:10px}
#editorchrome .navigation label{margin:0;line-height:1;font-weight:400;display:block}
.page-readout{display:flex;align-items:center;flex:none;gap:4px;font-size:14px;font-weight:400;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap;min-width:max-content}
.page-current-wrap,.zoom-current-wrap{position:relative;display:inline-block}
.zoom-readout{display:flex;align-items:center;flex:none;gap:0;font-size:14px;font-weight:400;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap}
#editorchrome #pagecurrent,#editorchrome #pagecount,#editorchrome #zoomlabel,.zoom-pct{display:block;line-height:1;font-size:14px;font-weight:400;font-variant-numeric:tabular-nums;white-space:nowrap}
#editorchrome #pagecount{flex:none;min-width:max-content}
#editorchrome #pagecurrent{min-width:1.2ch;text-align:right}
#editorchrome #zoomlabel{min-width:2.4ch;text-align:right}
#editorchrome .navigation input,#editorchrome .zoom input{position:absolute;inset:0;width:100%;min-width:0;height:100%;margin:0;padding:0;border:0;background:transparent;line-height:1;font:inherit;font-size:14px;font-weight:400;color:transparent;caret-color:#16213b}
#editorchrome .history-button{display:flex;align-items:center;justify-content:center;gap:5px;min-width:var(--chrome-h);height:var(--chrome-h);padding:8px 12px;background:#e5ecff;color:#183da8;border:1px solid #a8b9eb;border-radius:10px;box-sizing:border-box}
#editorchrome .history-button:disabled{opacity:1;background:#f0f3f8;color:#8590a3;border-color:#d6ddea;cursor:default}
#editorchrome .history-button svg{width:22px;height:22px;stroke-width:3}
#editorchrome .history-button,#editorchrome .history-button span,#editorchrome .navigation label,#editorchrome .page-readout,#editorchrome #pagecurrent,#editorchrome #pagecount,#editorchrome .zoom,#editorchrome #zoomlabel,#editorchrome .zoom-pct,#editorchrome .shortcuthelp summary{font-size:14px;font-weight:400}
.editing #download{font-size:14px;font-weight:600}
.handle,.text-tools .handle,.shape .handle{left:50%;right:auto;transform:translateX(-50%);width:32px;min-width:32px;height:20px;padding:0;display:none;align-items:center;justify-content:center;font-size:0;background:#8b93a3;color:#fff;border-radius:6px}
.annotation.selected .handle,.shape.selected .handle,.text-tools:not([hidden]) .handle{display:flex}
.handle .grip{display:block;width:10px;height:16px;background-image:radial-gradient(circle,currentColor 1.05px,transparent 1.15px);background-size:5px 5.5px;background-repeat:repeat;background-position:center}
#itemmenu{position:fixed;z-index:80;display:flex;gap:4px;padding:5px;background:white;border:1px solid #dce3ed;border-radius:12px;box-shadow:0 5px 24px #16213b25}
#itemmenu[hidden]{display:none!important}
#itemmenu button{min-width:94px;min-height:40px;padding:10px 14px;border-radius:8px;font-size:15px;margin:0}
#itemmenu button:hover{background:#edf2ff}
#itemmenu .danger{color:#c83535}
.select-wrap{position:relative;display:inline-flex;align-items:center}
.select-native{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;margin:0;padding:0;border:0;clip:rect(0,0,0,0)}
.select-trigger{height:36px;padding:0 26px 0 8px;border:1px solid #dce3f0;border-radius:8px;background:#fafbfe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235d6a82' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 6.5 6 1.5 11 6.5'/%3E%3C/svg%3E") no-repeat right 8px center;background-size:10px 7px;font:inherit;font-size:13px;font-weight:600;color:inherit;white-space:nowrap;max-width:160px}
.select-trigger[aria-expanded=true]{border-color:#2b54ea;background-color:#edf2ff}
.select-menu{position:fixed;z-index:90;display:flex;flex-direction:column;gap:2px;min-width:120px;padding:4px;background:#fff;border:1px solid #dce3ed;border-radius:10px;box-shadow:0 8px 24px #192d5028}
.select-menu[hidden]{display:none!important}
.select-menu [role=option]{display:block;width:100%;text-align:left;padding:8px 10px;border-radius:7px;font-size:13px;font-weight:600;color:inherit}
.select-menu [role=option]:hover,.select-menu [role=option]:focus-visible{background:#edf2ff}
.select-menu [role=option][aria-selected=true]{background:#eaf0ff;color:#2b54ea}

.signature-shape{background:transparent;padding:0!important}
.signature-shape img{display:block;width:100%;height:100%;pointer-events:none;user-select:none;-webkit-user-select:none}
#signaturestudio{position:fixed;inset:0;z-index:85;background:#16213b45;display:grid;place-items:center;padding:24px}
#signaturestudio[hidden]{display:none!important}
.sig-dialog{width:min(640px,100%);max-height:min(88vh,720px);overflow:auto;background:#fff;border:1px solid #dce3ed;border-radius:16px;padding:18px 20px 20px;box-shadow:0 18px 50px #16213b30}
.sig-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.sig-local{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 14px;padding:10px 12px;background:#edf2ff;border:1px solid #d6e0ff;border-radius:10px;font-size:13px;line-height:1.4;color:#3d4f78}
.sig-local span{font-weight:700;color:#16213b}
.sig-local svg{width:16px;height:16px;flex:none;stroke:#2b54ea;fill:none;stroke-width:1.5}
.sig-head h2{margin:0;font-size:20px}
#sigclose{font-size:28px;line-height:1;color:#8590a3;padding:0 6px}
.sig-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.sig-toolbar button,.sig-toolbar .primary{padding:9px 14px;border-radius:8px;font-size:14px;font-weight:600}
.sig-toolbar button:not(.primary){border:1px solid #dce3f0;background:#fafbfe}
.sig-hint{margin:12px 0 0;font-size:13px;color:#74809a;line-height:1.5}
.sig-empty{grid-column:1/-1;margin:8px 0;color:#74809a;font-size:14px;white-space:nowrap}
#coach{position:fixed;inset:0;z-index:40;pointer-events:none}
.coach-bubble{position:fixed;width:min(300px,calc(100vw - 24px));padding:14px 14px 12px;background:#16213b;color:#fff;border-radius:14px;box-shadow:0 12px 32px #16213b40;pointer-events:auto;font-size:14px;line-height:1.4}
.coach-bubble p{margin:0 0 12px}
.coach-bubble::after{content:"";position:absolute;border:8px solid transparent}
.coach-bubble[data-tail=top]::after{top:-14px;left:28px;border-bottom-color:#16213b}
.coach-bubble[data-tail=bottom]::after{bottom:-14px;left:var(--tail-x,24px);border-top-color:#16213b}
.coach-bubble[data-tail=right]::after{right:-14px;top:18px;border-left-color:#16213b}
.coach-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.coach-actions button{color:#c9d4ee;font-size:13px;font-weight:600;padding:6px 2px;white-space:nowrap}
.coach-actions .primary{background:#fff;color:#16213b;border-radius:8px;padding:7px 12px}
#siglist{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.sig-card-item{border:1px solid #e1e6f0;border-radius:12px;padding:8px;background:#fafbfe}
.sig-card-item.is-active{border-color:#2b54ea;background:#edf2ff}
.sig-preview{display:block;width:100%;height:72px;border:0;border-radius:8px;background:#eef2f8 center/contain no-repeat;box-shadow:inset 0 0 0 1px #edf0f5}
.sig-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;font-size:12px;font-weight:600}
.sig-meta .danger{padding:0;font-size:12px}
.sig-pad-label{margin:0 0 10px;font-size:14px;font-weight:600}
.sig-pad-wrap{border:1px dashed #b9c7e5;border-radius:12px;background:repeating-linear-gradient(180deg,#fff 0 46px,#edf2ff 46px 47px);height:200px}
#sigcanvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}
.sig-name{margin:14px 0 0;font-size:13px}
.sig-name input{display:block;width:100%;margin-top:6px;height:40px;padding:0 10px;border:1px solid #dce3f0;border-radius:8px}
.upload-panel{display:flex;flex-direction:column;gap:14px;min-width:0}
.dropzone{min-height:520px;padding:48px 36px}
.sample-button{margin-top:16px;border:1.5px solid #2b54ea;background:#fff;color:#2b54ea;border-radius:9px;padding:13px 22px;font-size:15px;font-weight:700}
.sample-button:hover{background:#edf2ff}
.download-group{display:flex;align-items:center;gap:8px}
.download-group .download-more{width:34px;height:var(--chrome-h,48px);display:grid;place-items:center;background:#1d3ec4;color:#fff;border-radius:0 10px 10px 0;margin-left:-8px}
.download-group #download{border-radius:10px 0 0 10px}
.download-more svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.export-default{margin:10px 0 0;font-size:12px;line-height:1.5;color:#74809a}
#exportflat.export-flat{padding:10px 12px}
#exportflat.export-flat strong{font-size:13px}
@media(max-width:760px){.dropzone{min-height:440px;padding:32px 22px}.editing #download{padding:0 12px}.editing .actions{margin-left:6px}}
