/* @Ownership(team = ProductTeam.NS_AI_PRODUCT_ENGINEERING_BRNO_A) */
:root{color-scheme:light;--bg:oklch(1 0 0);--surface:oklch(.978 .003 270);--workspace:oklch(.95 .005 270);--ink:oklch(.25 .018 270);--muted:oklch(.48 .015 270);--line:oklch(.9 .008 270);--line-strong:oklch(.78 .015 270);--brand:oklch(.48 .13 270);--brand-hover:oklch(.42 .13 270);--brand-soft:oklch(.953 .019 270);--success:oklch(.38 .072 170);--error:oklch(.45 .16 26);--error-bg:oklch(.97 .015 26);--focus:oklch(.57 .16 270);--radius:12px;--white:oklch(1 0 0)}

*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit}
button,a,input[type=range],select{cursor:pointer}
button{color:inherit}
button,a,input,select{outline-offset:4px}
button{transition:background 180ms,color 180ms,border-color 180ms,transform 180ms}
button:active:not(:disabled){transform:translateY(1px)}
button:disabled{opacity:.42;cursor:not-allowed}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--focus)}
[hidden]{display:none!important}
h1,h2,p{margin:0}
h1,h2{text-wrap:balance}
p{text-wrap:pretty;line-height:1.65}
svg{width:20px;height:20px;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
button{display:inline-flex;align-items:center;justify-content:center;gap:10px}
a{color:inherit}
.header{height:94px;max-width:1160px;padding:0 36px;margin:auto;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.brand{font-weight:680;font-size:23px;letter-spacing:-.8px;display:flex;gap:10px;align-items:center;text-decoration:none}
.brand-mark{width:33px;height:36px;border-radius:8px;background:var(--brand);display:grid;place-items:center;color:var(--white)}
.brand-mark svg{width:22px;height:22px}
.brand-dot{color:var(--brand);margin-left:-9px}
.privacy-button{font-size:12px;background:none;border:0;color:var(--success);padding:10px 0 10px 10px;gap:7px}
.privacy-button svg{width:16px;height:16px}
.privacy-note{position:fixed;inset:100px 36px auto auto;max-width:340px;background:var(--white);color:var(--ink);border:1px solid var(--line-strong);border-radius:10px;padding:22px;margin:0;line-height:1.7;font-size:13px;box-shadow:0 3px 7px oklch(.2 0 0/.08)}
.privacy-note p{margin-top:8px;color:var(--muted)}
main{max-width:1160px;padding:0 36px 36px;margin:auto;min-height:calc(100vh - 155px)}
.progress{max-width:570px;margin:40px auto 46px}
.progress ol{list-style:none;padding:0;margin:0;display:flex;align-items:center;gap:14px}
.progress li[data-step]{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted);white-space:nowrap;font-weight:500}
.step-number{display:grid;place-items:center;width:25px;height:25px;border:1px solid var(--line-strong);border-radius:50%;font-size:11px}
.progress .current{color:var(--brand);font-weight:650}
.current .step-number,.complete .step-number{background:var(--brand);color:var(--white);border-color:var(--brand)}
.progress .complete{color:var(--ink)}
.step-line{height:1px;flex:1;background:var(--line)}
.intro{text-align:center;margin-bottom:30px}
.intro h1,.complete-heading h1{font-size:34px;line-height:1.2;font-weight:630;letter-spacing:-1.1px}
.intro p,.complete-heading>p{font-size:14px;color:var(--muted);margin-top:13px}
.upload-view,.signature-view{max-width:760px;margin:auto}
.upload-workspace{border:1px solid var(--line);border-radius:var(--radius);padding:12px 12px 0}
.document-drop{border:1.5px dashed var(--line-strong);border-radius:8px;background:var(--surface);min-height:315px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px 20px;transition:border-color 180ms,background 180ms}
.document-drop.dragging,.signature-drop.dragging{border-color:var(--brand);background:var(--brand-soft)}
.document-symbol{position:relative;width:54px;height:64px;margin-bottom:22px}
.document-symbol>svg{width:48px;height:56px;stroke:var(--brand);stroke-width:1.6}
.document-symbol>span{width:28px;height:28px;background:var(--brand);color:var(--white);border:3px solid var(--surface);border-radius:50%;position:absolute;right:-4px;bottom:0;display:grid;place-items:center}
.document-symbol span svg{width:16px;height:16px;stroke-width:1.8}
.document-drop h2{font-size:18px;font-weight:570;letter-spacing:-.35px}
.document-drop p{font-size:13px;color:var(--muted);margin-top:7px}
.primary,.secondary{min-height:44px;border-radius:7px;padding:12px 19px;font-size:13px;font-weight:570;line-height:1.3;white-space:nowrap}
.primary{background:var(--brand);color:var(--white);border:1px solid var(--brand)}
.primary:hover{background:var(--brand-hover);border-color:var(--brand-hover)}
.primary svg{width:17px;height:17px}
.secondary{border:1px solid var(--line-strong);background:var(--white)}
.secondary:hover{background:var(--surface);border-color:var(--muted)}
.document-drop .primary{margin-top:23px}
.file-limit{font-size:11px;color:var(--muted);margin-top:15px}
.supported-formats{display:flex;align-items:center;justify-content:center;gap:22px;min-height:57px;font-size:11px;color:var(--muted);flex-wrap:wrap;padding:13px 5px}
.supported-formats span{display:flex;align-items:center;gap:5px}
.supported-formats svg{width:14px;height:14px}
.supported-formats>span:first-child{color:var(--muted)}
.supported-formats>span:not(:first-child){font-weight:540;color:var(--ink)}
.sample-button{background:none;border:0;display:flex;margin:20px auto 0;font-size:12px;color:var(--muted);gap:6px;padding:8px;flex-wrap:wrap}
.sample-button>span{color:var(--ink);text-decoration:underline;text-underline-offset:4px}
.sample-button:hover>span{color:var(--brand)}
.reassurance{display:flex;gap:60px;justify-content:center;border-top:1px solid var(--line);margin-top:38px;padding-top:25px}
.reassurance>div{display:flex;gap:11px}
.reassurance svg{color:var(--muted);width:19px;height:19px;margin-top:2px}
.reassurance p{font-size:11px}
.reassurance strong{font-weight:600;display:block;font-size:12px}
.reassurance span{display:block;color:var(--muted);margin-top:3px}
footer{text-align:center;color:var(--muted);font-size:11px;padding:22px 20px 27px}
.notice{max-width:760px;margin:0 auto 24px;background:var(--error-bg);color:var(--error);border:1px solid oklch(.85 .06 26);padding:12px 14px;border-radius:8px;display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:13px;line-height:1.6}
.notice .icon-button{color:var(--error)}
.icon-button{min-width:36px;min-height:36px;padding:7px;border:0;background:transparent;border-radius:5px;font-size:19px}
.icon-button:hover{background:var(--workspace)}
.icon-button svg{width:17px;height:17px}
.text-button{background:none;border:0;padding:8px 0;color:var(--muted);font-size:12px;text-underline-offset:4px}
.text-button:hover{color:var(--brand);text-decoration:underline}
.file-summary{display:flex;align-items:center;gap:12px;margin-bottom:18px;padding:0 3px;min-width:0}
.file-badge{width:37px;height:43px;border-radius:5px;border:1px solid var(--line);color:var(--brand);background:var(--brand-soft);display:grid;place-items:center;font-size:9px;font-weight:700}
.file-summary>div:nth-child(2){flex:1;min-width:0}
.file-summary strong{font-size:12px;font-weight:550;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.file-summary span{font-size:11px;color:var(--muted);display:block;margin-top:4px}
.file-summary .text-button{margin-left:auto}
.signature-workspace{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.tabs{display:flex;padding:0 25px;border-bottom:1px solid var(--line);gap:28px;background:var(--surface)}
.tabs button{padding:18px 0;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;color:var(--muted);background:transparent;font-size:13px;gap:8px;white-space:nowrap}
.tabs button[aria-selected=true]{border-bottom-color:var(--brand);color:var(--brand);font-weight:600}
.tabs button svg{width:17px;height:17px}
.method-panel{padding:23px 26px}
.method-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}
.method-heading p{font-size:12px;color:var(--muted)}
.method-heading .text-button{padding:4px}
.drawing-wrap{position:relative;height:215px;background:var(--surface);border-radius:7px;overflow:hidden;border:1px solid var(--line)}
#drawing{width:100%;height:100%;display:block;touch-action:none;position:relative;z-index:2;cursor:crosshair}
.signature-baseline{position:absolute;bottom:52px;left:35px;right:35px;border-bottom:1px solid var(--line-strong);pointer-events:none}
#drawing-hint{position:absolute;left:0;right:0;top:82px;text-align:center;pointer-events:none;color:var(--muted);font-size:16px;letter-spacing:-.2px}
.draw-options{display:flex;align-items:center;gap:9px;font-size:11px;color:var(--muted);margin-top:15px}
.ink-swatch{width:23px;height:23px;border-radius:50%;border:3px solid var(--white);outline:1px solid transparent;padding:0}
.ink-swatch.black{background:oklch(.25 .015 270)}
.ink-swatch.blue{background:oklch(.42 .12 260)}
.ink-swatch.selected{outline-color:var(--muted)}
.draw-hint{margin-left:auto}
.signature-actions{border-top:1px solid var(--line);padding:18px 26px;display:flex;justify-content:space-between;align-items:center}
.signature-drop,.camera-intro{min-height:275px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px dashed var(--line-strong);border-radius:7px;background:var(--surface);padding:24px 15px}
.signature-drop>svg,.camera-intro>svg{width:32px;height:32px;color:var(--brand);margin-bottom:17px}
.signature-drop strong,.camera-intro strong{font-size:14px;font-weight:570}
.signature-drop p,.camera-intro p{font-size:12px;color:var(--muted);margin-top:8px}
.signature-drop .secondary,.camera-intro .secondary{margin-top:18px}
.signature-drop>span{font-size:11px;color:var(--muted);margin-top:14px}
.camera-intro .text-button{margin-top:5px}
.camera-actions{display:flex;justify-content:center;gap:10px;margin-top:14px}
video{max-height:330px;width:100%;background:var(--ink);border-radius:7px}
.signature-cleanup{padding:23px 26px}
.cleanup-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.cleanup-heading strong{font-size:13px;font-weight:570}
.checkerboard{background-color:var(--white);background-image:conic-gradient(var(--surface) 25%,transparent 0 50%,var(--surface) 0 75%,transparent 0);background-size:16px 16px}
.signature-cleanup .checkerboard{height:180px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:7px;padding:20px}
.signature-cleanup img{max-width:100%;max-height:100%;object-fit:contain}
.cleanup-controls{display:flex;align-items:center;gap:15px;margin-top:20px;flex-wrap:wrap;font-size:11px;color:var(--muted)}
.cleanup-controls label{font-size:12px;color:var(--ink)}
input[type=range]{accent-color:var(--brand);height:5px;min-height:20px;margin:5px 0;touch-action:pan-x}
.cleanup-controls input{flex:1;min-width:120px}
.cleanup-controls>span{width:100%}
#source-page-control{display:flex;align-items:center;gap:12px;font-size:12px;margin-top:15px}
select{border:1px solid var(--line-strong);border-radius:5px;padding:7px;background:var(--white);color:var(--ink)}
.editor-heading{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:25px}
.editor-heading h1{font-size:27px;letter-spacing:-.7px;font-weight:620}
.editor-heading p{font-size:13px;color:var(--muted);margin-top:8px}
.editor-heading .primary{min-width:102px}
.editor-layout{display:grid;grid-template-columns:237px minmax(0,1fr);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.editor-tools{padding:25px 23px;background:var(--white)}
.tool-section+.tool-section{border-top:1px solid var(--line);margin-top:22px;padding-top:24px}
.tool-section h2{font-size:12px;font-weight:600}
.stamp-preview{height:90px;display:flex;justify-content:center;align-items:center;padding:15px;margin-top:15px;border:1px solid var(--line);border-radius:6px}
.stamp-preview img{max-width:100%;max-height:100%;object-fit:contain}
.tool-section>.text-button{margin-top:5px;font-size:11px}
.tool-label{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-bottom:13px}
.tool-label label{font-weight:550}
.tool-label output{color:var(--muted);font-size:11px}
.tool-section input{width:100%}
.tool-hint{font-size:11px;line-height:1.8;color:var(--muted);margin-top:14px}
.placement-actions{display:flex;align-items:center;justify-content:space-between;margin-top:17px;gap:5px}
.small{font-size:11px;padding:9px 11px;min-height:36px}
.format-note{font-size:11px;line-height:1.8;color:var(--muted);margin-top:30px}
.start-over{margin-top:25px}
.document-area{background:var(--workspace);border-left:1px solid var(--line);min-width:0}
.document-toolbar,.final-toolbar{min-height:54px;display:flex;justify-content:space-between;align-items:center;padding:8px 19px;border-bottom:1px solid var(--line);gap:10px;background:var(--surface)}
.document-toolbar>span{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.page-controls{display:flex;align-items:center;gap:4px;flex-shrink:0}
.page-controls select{font-size:11px;max-width:110px;border-color:transparent;background:transparent;padding:6px 2px}
.page-controls button{min-width:30px;min-height:30px;font-size:15px}
.page-scroll{padding:28px;max-height:680px;overflow:auto;overscroll-behavior:contain}
.page-surface{width:100%;position:relative;background:var(--white);box-shadow:0 2px 7px oklch(.2 0 0/.1);margin:auto}
#document-canvas{display:block;width:100%;height:auto}
.placement-layer{position:absolute;inset:0;cursor:crosshair;touch-action:pan-y}
.placement-layer:focus-visible{outline-offset:5px}
.placed-signature{position:absolute;touch-action:none;cursor:grab;padding:0;background:transparent;border:1.5px solid transparent;min-width:0;min-height:0;transform:none!important;display:block}
.placed-signature.selected{border-color:var(--brand);z-index:1}
.placed-signature img{display:block;width:100%;height:100%;pointer-events:none;user-select:none}
.resize-handle{position:absolute;width:12px;height:12px;border:1.5px solid var(--brand);background:var(--white);border-radius:2px;bottom:-6px;right:-6px;cursor:nwse-resize;touch-action:none}
.placed-signature:not(.selected) .resize-handle{display:none}
.placed-signature.selected:before{content:attr(data-label);position:absolute;top:-24px;left:-1px;font-size:9px;background:var(--brand);color:var(--white);padding:4px 7px;border-radius:3px;white-space:nowrap;pointer-events:none}
.placement-tip{display:flex;align-items:center;justify-content:center;gap:7px;padding:14px 12px;font-size:11px;color:var(--muted);text-align:center;border-top:1px solid var(--line)}
.tip-dot{height:5px;width:5px;background:var(--brand);border-radius:50%;flex-shrink:0}
.complete-view{max-width:820px;margin:auto}
.complete-heading{text-align:center}
.complete-check{width:43px;height:43px;margin:0 auto 17px;display:grid;place-items:center;border-radius:50%;color:var(--success);background:oklch(.95 .023 170)}
.complete-check svg{width:24px;height:24px;stroke-width:2}
.complete-actions{display:flex;justify-content:center;gap:10px;margin-top:24px}
.download-details{display:block;margin-top:13px;color:var(--muted);font-size:11px;overflow-wrap:anywhere}
.final-document{margin:30px auto 0;background:var(--workspace);border:1px solid var(--line);border-radius:var(--radius);padding-bottom:24px;overflow:hidden}
.final-toolbar{font-size:11px;color:var(--muted);margin-bottom:24px}
#final-canvas{width:calc(100% - 60px);height:auto;display:block;margin:auto;background:var(--white);box-shadow:0 2px 7px oklch(.2 0 0/.1)}
.sign-another{display:flex;margin:20px auto}
.loading{max-width:760px;min-height:370px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center}
.loading strong{font-size:16px;font-weight:570;margin-top:24px}
.loading p{font-size:12px;color:var(--muted);margin-top:8px}
.loading-skeleton{width:64px;height:82px;border:1px solid var(--line);border-radius:7px;padding:20px 12px;background:var(--surface);display:flex;flex-direction:column;gap:8px}
.loading-skeleton i{height:4px;width:100%;background:var(--line-strong);animation:pulse 1.4s ease-in-out infinite}
.loading-skeleton i:nth-child(2){animation-delay:150ms}
.loading-skeleton i:last-child{width:65%;animation-delay:300ms}
@keyframes pulse{50%{opacity:.3}
}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

@media(min-width:1400px){.header,main{max-width:1240px}
.progress{margin-top:48px;margin-bottom:52px}
.document-drop{min-height:340px}
}

@media(max-width:760px){.header{height:77px;padding:0 22px}
.brand{font-size:21px}
.brand-mark{width:30px;height:33px}
.privacy-button{font-size:11px}
.privacy-button span{max-width:85px;text-align:left;line-height:1.4}
main{padding:0 22px 25px}
.progress{margin:29px auto 34px;max-width:500px}
.progress ol{gap:9px}
.progress li[data-step]{font-size:11px;gap:6px}
.step-number{width:23px;height:23px;font-size:10px}
.intro h1,.complete-heading h1{font-size:28px;letter-spacing:-.7px}
.intro p{font-size:13px;max-width:36ch;margin:12px auto 0}
.document-drop{min-height:290px}
.supported-formats{gap:14px;font-size:10px}
.reassurance{gap:30px}
.reassurance span{max-width:23ch}
.editor-layout{grid-template-columns:190px minmax(0,1fr)}
.editor-tools{padding:20px 15px}
.page-scroll{padding:22px 17px;max-height:640px}
.document-toolbar{padding:8px 10px}
.editor-heading h1{font-size:25px}
.editor-heading p{font-size:12px}
.editor-heading .primary{min-width:85px}
.placement-tip{font-size:10px}
.privacy-note{inset:82px 20px auto;max-width:none}
.draw-hint{display:none}
}

@media(max-width:550px){main{padding:0 16px 20px}
.header{padding:0 20px}
.progress{margin-bottom:30px}
.progress ol{gap:7px}
.progress li[data-step]{font-size:10px}
.step-number{width:21px;height:21px}
.intro h1{font-size:26px}
.intro{margin-bottom:24px}
.upload-workspace{padding:8px 8px 0}
.document-drop{min-height:310px;padding:26px 12px}
.document-drop h2{font-size:17px}
.supported-formats{column-gap:15px;row-gap:9px;line-height:1.5}
.supported-formats>span:first-child{display:none}
.sample-button{font-size:11px;gap:5px;margin-top:16px}
.reassurance{margin-top:27px;padding:23px 6px 0;gap:22px}
.reassurance>div{gap:8px;flex:1}
.reassurance svg{width:17px;height:17px}
.reassurance strong{font-size:11px}
.reassurance span{font-size:10px;line-height:1.7}
.tabs{padding:0 17px;gap:25px;justify-content:space-between}
.tabs button{font-size:12px;gap:6px;padding:17px 0}
.tabs button svg{width:15px;height:15px}
.method-panel{padding:19px 16px}
.method-heading p{font-size:11px}
.drawing-wrap{height:235px}
.signature-actions{padding:17px 16px}
.signature-actions .primary{padding:12px 14px;font-size:12px}
.signature-cleanup{padding:19px 16px}
.signature-drop,.camera-intro{min-height:285px}
.editor-heading{gap:12px;align-items:flex-start;margin-bottom:20px}
.editor-heading h1{font-size:23px;max-width:15ch;letter-spacing:-.5px}
.editor-heading p{max-width:25ch;font-size:11px}
.editor-heading .primary{padding:11px 14px;min-width:79px;font-size:12px}
.editor-layout{display:flex;flex-direction:column}
.editor-tools{display:grid;grid-template-columns:90px minmax(0,1fr);gap:0 18px;padding:17px;align-items:start}
.tool-section h2{font-size:11px}
.stamp-preview{height:55px;margin-top:10px;padding:8px}
.tool-section>.text-button{font-size:10px;margin-top:3px}
.tool-section+.tool-section{border:0;margin:0;padding:0}
.tool-label{margin-bottom:4px;font-size:11px}
.tool-label output{font-size:10px}
.tool-hint{display:none}
.placement-actions{margin-top:8px}
.small{font-size:10px;min-height:33px;padding:8px 10px}
.format-note{grid-column:1/-1;font-size:10px;line-height:1.6;margin-top:11px}
.start-over{grid-column:1/-1;margin-top:5px;justify-content:flex-start;font-size:10px;padding:4px 0}
.document-area{border-left:0;border-top:1px solid var(--line)}
.page-scroll{max-height:620px;padding:23px 15px}
.placement-tip{font-size:10px;padding:13px 9px}
.document-toolbar{min-height:49px}
.complete-actions{gap:8px}
.complete-actions button{font-size:12px;padding:12px 13px}
.complete-heading>p{font-size:13px}
.final-document{margin-top:25px}
.final-toolbar{margin-bottom:17px}
.final-document{padding-bottom:17px}
#final-canvas{width:calc(100% - 32px)}
.resize-handle{width:17px;height:17px;bottom:-9px;right:-9px}
.placed-signature.selected:before{font-size:8px;top:-22px}
.loading{min-height:340px}
footer{font-size:10px;padding:18px 15px 23px}
}

@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

