:root{color:#20232b;font-synthesis:none;--surface:#fff;--bg:#f6f7f9;--ink:#20232b;--muted:#828895;--border:#e7e9ee;--blue:#087afa;--soft:#edf4ff;background:#f6f7f9;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,label.button{-webkit-tap-highlight-color:transparent}button,.button{min-height:42px;color:var(--ink);cursor:pointer;background:0 0;border:0;border-radius:11px;justify-content:center;align-items:center;gap:8px;padding:10px 15px;font-size:14px;font-weight:550;text-decoration:none;transition:transform .12s,filter .12s,background-color .16s,box-shadow .16s;display:inline-flex}button:hover,.button:hover{filter:brightness(.95);background-color:var(--soft)}button:active,.button:active{filter:brightness(.9);transform:scale(.96)}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline-offset:3px;outline:3px solid #71b1ff}h1,h2,p{margin-top:0}h2{letter-spacing:-.5px;font-size:20px}p{line-height:1.65}input[type=range]{accent-color:var(--blue);width:100%;margin:12px 0 20px}select{background:var(--surface);color:var(--ink);border:1px solid var(--border);border-radius:8px;padding:6px;font-size:13px}.primary{background:var(--blue);color:#fff}.primary:hover{background:#006bea}.secondary{background:var(--soft);color:var(--blue)}.wide{width:100%;margin-top:12px}.muted{color:var(--muted)}.small{font-size:12px}.row{align-items:center;gap:8px;display:flex}.icon{min-width:42px;padding:10px}.topbar{border-bottom:1px solid var(--border);background:var(--surface);justify-content:space-between;align-items:center;gap:12px;height:88px;padding:0 max(24px,50vw - 560px);display:flex}.brand{color:var(--ink);letter-spacing:.2px;white-space:nowrap;align-items:center;gap:10px;font-size:15px;text-decoration:none;display:flex}.brand b{font-weight:750}.brand-icon{background:var(--blue);color:#fff;border-radius:12px;place-items:center;width:38px;height:38px;display:grid}.brand-icon.dog{background:0 0;overflow:hidden}.brand-icon.dog img{object-fit:contain;width:100%;height:100%;display:block}.top-actions{gap:4px}.home-close{margin-left:2px}.free-badge{color:var(--muted);margin-right:15px;font-size:12px}.dashboard{max-width:1040px;margin:auto;padding:64px 40px 24px}.intro{text-align:center;margin-bottom:36px}.eyebrow{letter-spacing:2px;color:var(--blue);font-size:10px;font-weight:700}h1{letter-spacing:-2px;margin:20px 0;font-size:48px;line-height:1.13}h1 span{color:#8c93a2}.intro p{color:var(--muted);font-size:16px}.upload-card{background:var(--surface);cursor:pointer;border:1.5px dashed #bfd5f3;border-radius:20px;flex-direction:column;align-items:center;max-width:620px;margin:0 auto 44px;padding:32px;transition:box-shadow .2s;display:flex}.upload-card:hover{box-shadow:0 10px 40px #087afa0c}.upload-icon{background:var(--soft);width:64px;height:64px;color:var(--blue);border-radius:18px;place-items:center;margin-bottom:18px;display:grid}.upload-card h2{margin-bottom:5px}.upload-card p{color:var(--muted);margin-bottom:12px;font-size:14px}.format-list{color:#9298a3;letter-spacing:1px;margin-bottom:24px;font-size:10px}.upload-card .primary{padding:12px 28px}.section-title{justify-content:space-between;align-items:center;max-width:760px;margin:auto;display:flex}.section-title h2{margin:0;font-size:18px}.section-title h2 span{color:var(--muted);vertical-align:middle;background:#e9ecf1;border-radius:6px;margin-left:5px;padding:3px 7px;font-size:11px;display:inline-block}.text-button{color:var(--blue);font-size:12px}.document-list{background:var(--surface);border:1px solid var(--border);border-radius:16px;max-width:760px;margin:12px auto 0;overflow:hidden}.empty-docs{color:#a1a7b1;flex-direction:column;align-items:center;padding:30px;display:flex}.empty-docs p{color:var(--muted);margin:12px 0 5px;font-size:13px}.empty-docs span{font-size:11px}.document-row{border-bottom:1px solid var(--border);align-items:center;gap:10px;padding:12px 16px;display:flex}.document-row:last-child{border:0}.file-icon{color:var(--blue);background:var(--soft);border-radius:9px;flex-shrink:0;place-items:center;width:42px;height:48px;display:grid}.document-name{text-align:left;flex-direction:column;flex:1;align-items:flex-start;gap:5px;min-width:0;padding:0;display:flex}.document-name strong{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:13px;overflow:hidden}.document-name span{color:var(--muted);font-size:11px;font-weight:400}.trust-row{color:var(--muted);justify-content:center;gap:28px;margin:28px 0 40px;font-size:11px;display:flex}.trust-row span{align-items:center;gap:6px;display:flex}footer{border-top:1px solid var(--border);color:#a0a5af;justify-content:space-between;align-items:center;padding-top:15px;font-size:10px;display:flex}footer button{color:var(--muted);padding:0;font-size:10px}.login-card{background:var(--surface);border:1px solid var(--border);text-align:center;border-radius:20px;max-width:520px;margin:auto;padding:32px}.login-card>svg{color:var(--blue);margin-bottom:16px}.login-card p{color:var(--muted);font-size:14px}.workspace{flex-direction:column;height:calc(100dvh - 88px);display:flex;position:relative}.editor-header{background:var(--surface);border-bottom:1px solid var(--border);align-items:center;gap:14px;padding:12px 24px;display:flex}.editor-title{flex-direction:column;flex:1;gap:5px;min-width:0;display:flex}.editor-title strong{white-space:nowrap;text-overflow:ellipsis;font-size:14px;overflow:hidden}.editor-title span{color:var(--muted);align-items:center;gap:3px;font-size:10px;display:flex}.viewer-tools{color:var(--muted);justify-content:space-between;align-items:center;width:100%;max-width:900px;margin:auto;padding:4px 24px;font-size:12px;display:flex}.viewer-tools select{background:0 0;border:0}.pdf-scroll{scroll-behavior:smooth;flex:1;padding-bottom:160px;overflow:auto}.page-wrap{margin:0 auto 24px;scroll-margin-top:8px}.page-label{letter-spacing:1.3px;color:var(--muted);padding:14px 0 9px;font-size:9px}.pdf-page{background:#fff;position:relative;box-shadow:0 2px 10px #17213813}.pdf-page>canvas,.pdf-page>.konvajs-content,.pdf-page>div:not(.suggestion){position:absolute;inset:0}.page-placeholder{color:#c0c3cb;place-items:center;height:100%;display:grid}.bottom-toolbar{bottom:max(18px,env(safe-area-inset-bottom));background:var(--surface);border:1px solid var(--border);z-index:5;border-radius:20px;align-items:center;gap:8px;padding:9px 14px;display:flex;position:absolute;left:50%;transform:translate(-50%);box-shadow:0 8px 38px #17213821}.bottom-toolbar button{min-width:66px;color:var(--blue);flex-direction:column;gap:5px;padding:8px;display:flex}.bottom-toolbar span{font-size:10px}.divider{background:var(--border);width:1px;height:30px;margin:0 5px}.object-toolbar{background:var(--surface);white-space:nowrap;border:1px solid var(--border);z-index:5;border-radius:12px;align-items:center;gap:6px;padding:5px 8px;font-size:11px;display:flex;position:absolute;bottom:110px;left:50%;transform:translate(-50%);box-shadow:0 5px 25px #0001}.object-toolbar button{font-size:11px}.danger{color:#e34c55}.suggestion{color:#645215;z-index:2;max-width:150px;min-height:28px;padding:3px 6px;font-size:10px;background:#fef1ad!important;position:absolute!important;inset:auto!important}.modal-backdrop{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);z-index:30;background:#10192d66;justify-content:center;align-items:center;padding:20px;animation:.18s ease-out fade-in;display:flex;position:fixed;inset:0;overflow:auto}.modal-backdrop>.sheet,.modal-backdrop>.signature-shell{animation:.22s cubic-bezier(.2,.8,.2,1) sheet-in}.sheet,.signature-shell{background:var(--surface);color:var(--ink);border-radius:24px;width:100%;max-width:620px;max-height:calc(100dvh - 40px);padding:28px;position:relative;overflow:auto;box-shadow:0 30px 90px #0003}.signature-shell{max-width:850px;padding:8px}.sheet header{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.sheet header h2{margin:8px 0}.sheet label{font-size:13px}.sheet .check{align-items:center;gap:8px;margin:16px 0;display:flex}.sheet .check input{accent-color:var(--blue)}.stamp-preview{border:1px solid var(--border);border-radius:12px;justify-content:center;align-items:center;height:230px;margin:18px 0;display:flex;overflow:hidden}.stamp-preview img,.stamp-preview canvas{object-fit:contain;max-width:100%;max-height:100%}.checker{background-color:#fff;background-image:linear-gradient(45deg,#e9e9ed 25%,#0000 25%),linear-gradient(-45deg,#e9e9ed 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#e9e9ed 75%),linear-gradient(-45deg,#0000 75%,#e9e9ed 75%);background-position:0 0,0 8px,8px -8px,-8px 0;background-size:16px 16px}.ready{text-align:center;max-width:430px;padding:44px 30px}.ready p{color:var(--muted);font-size:14px}.ready .small{margin:22px 0 0;font-size:11px}.ready .inline-status{color:#23784e;background:#e7f7ee;border-radius:10px;margin:10px 0 0;padding:10px 12px;font-size:12px;line-height:1.4;animation:.2s ease-out status-in}.close{position:absolute;top:10px;right:10px}.success-icon{color:#26a867;background:#e7f7ee;border-radius:50%;place-items:center;width:68px;height:68px;margin:0 auto 22px;display:grid}.alert,.notice,.warning,.dev-banner{color:#a33e3e;background:#fff0ef;justify-content:space-between;align-items:center;padding:10px 20px;font-size:12px;line-height:1.5;display:flex}.alert{z-index:40;position:relative}.notice{color:#2268a7;background:#eaf3ff}.warning{color:#806125;background:#fff4dc}.dev-banner{color:#806125;background:#fff4dc;justify-content:center;font-size:10px}.busy{z-index:50;white-space:nowrap;color:#fff;background:#20232b;border-radius:14px;align-items:center;gap:10px;padding:14px 22px;font-size:13px;display:flex;position:fixed;bottom:24px;left:50%;transform:translate(-50%);box-shadow:0 10px 30px #0003}.spin,.spinner{animation:1s linear infinite rotate}.spinner{border:2px solid var(--border);border-top-color:var(--blue);border-radius:50%;width:20px;height:20px}.empty{color:var(--muted);justify-content:center;align-items:center;gap:10px;padding:60px;font-size:13px;display:flex}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes fade-in{0%{opacity:0}}@keyframes sheet-in{0%{opacity:0;transform:translateY(16px)scale(.98)}}@keyframes status-in{0%{opacity:0;transform:translateY(-5px)}}[data-theme=dark]{--surface:#20232b;--bg:#15171d;--ink:#eff1f6;--muted:#939aa9;--border:#313641;--blue:#3393ff;--soft:#26384e;background:var(--bg);color:var(--ink)}[data-theme=dark] .section-title h2 span{background:var(--border)}[data-theme=dark] .upload-card{border-color:#3a4d65}[data-theme=dark] .notice{color:#9cccff;background:#22394f}[data-theme=dark] .dev-banner,[data-theme=dark] .warning{color:#eed39e;background:#443a27}@media (max-width:600px){.topbar{height:64px;padding:0 17px}.brand{font-size:12px}.brand-icon{border-radius:10px;width:33px;height:33px}.free-badge{display:none}.dashboard{padding:36px 20px 20px}.intro{margin-bottom:28px}h1{letter-spacing:-1.5px;font-size:36px}.intro p{font-size:14px}.eyebrow{letter-spacing:1.7px;font-size:8px}.upload-card{margin-bottom:28px;padding:26px 20px}.trust-row{gap:14px;margin-bottom:25px;font-size:9px}footer{flex-direction:column;gap:5px}.workspace{height:calc(100dvh - 64px)}.editor-header{gap:8px;padding:10px 12px}.editor-header .primary{padding:10px 12px;font-size:12px}.editor-title strong{font-size:12px}.viewer-tools{padding:4px 14px}.bottom-toolbar{border-radius:18px;gap:0;padding:6px 8px}.bottom-toolbar button{min-width:64px}.object-toolbar{gap:0;padding:3px;bottom:104px}.object-toolbar button{padding:7px}.object-toolbar label{font-size:10px}.modal-backdrop{align-items:flex-end;padding:10px}.sheet,.signature-shell{border-radius:20px;max-height:calc(100dvh - 20px)}.sheet{padding:22px}.sheet .row{flex-wrap:wrap}.document-row{padding:12px}.stamp-preview{height:200px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.corner-image{max-width:100%;height:100%;max-height:100%;display:inline-flex;position:relative}.corner-image img{object-fit:fill;width:auto;max-width:100%;height:100%}.corner-point{color:#fff;pointer-events:none;background:#087afa;border:2px solid #fff;border-radius:50%;place-items:center;width:23px;height:23px;font-size:12px;display:grid;position:absolute;transform:translate(-50%,-50%)}.app:has(.workspace){flex-direction:column;height:100dvh;display:flex;overflow:hidden}:is(.app:has(.workspace)>.topbar,.app:has(.workspace)>.dev-banner,.app:has(.workspace)>.alert,.app:has(.workspace)>.notice){flex-shrink:0}.app:has(.workspace)>.workspace{flex:1;height:auto;min-height:0}.legal-gate{text-align:left;border:1px solid #8495ad66;border-radius:20px;margin:24px 0;padding:24px}.legal-gate h2{margin-top:0}.legal-gate label{align-items:flex-start;gap:10px;margin:18px 0;line-height:1.5;display:flex}.legal-gate input{flex:none;width:20px;height:20px;margin-top:3px}.legal-gate a,footer a{color:#287ce0;text-decoration:underline}.legal-gate button:disabled{opacity:.45;cursor:not-allowed}footer{flex-wrap:wrap;gap:14px}.stamp-adjustments{position:relative}.stamp-adjustments .stamp-preview{z-index:2;height:min(200px,30dvh);margin-top:20px;position:sticky;top:0;box-shadow:0 3px 12px #0002}.stamp-preview canvas{object-fit:contain;max-width:100%;max-height:100%}.stamp-sliders{padding-top:18px}.stamp-sliders label{margin-bottom:24px;display:block}.stamp-sheet>.primary{margin-top:16px}.geometry-editor svg{touch-action:none;background:#171b24;border-radius:12px;width:100%;height:min(52dvh,440px);display:block}.geometry-editor g{cursor:grab;outline:none}.geometry-editor g:focus circle{stroke:#fc0}.geometry-editor p{margin:14px 0;font-size:14px}.geometry-editor .row{margin-top:12px}.upload-card{position:relative}.upload-content{display:block}.upload-loading .upload-content{visibility:hidden}.upload-progress{color:var(--blue);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:20px;padding:24px;display:flex;position:absolute;inset:0}.upload-content{text-align:center;flex-direction:column;align-items:center;width:100%;display:flex}.upload-card{overflow:hidden}@media (max-width:600px){.upload-card{width:100%;min-height:340px}.upload-card h2{font-size:20px}.upload-card .primary{max-width:100%}.section-title{gap:10px}.section-title h2{min-width:0}.text-button{flex-shrink:0}}.welcome-visual{background:#dcd2ff;border:1px solid #ffffff80;border-radius:28px;max-width:900px;margin:34px auto 36px;overflow:hidden;box-shadow:0 24px 64px #40276f20}.welcome-visual img{aspect-ratio:1600/922;object-fit:cover;width:100%;height:auto;display:block}.advantages{background:var(--surface);border:1px solid var(--border);text-align:left;border-radius:26px;max-width:900px;margin:0 auto 46px;padding:34px;box-shadow:0 14px 50px #1721380a}.advantages-heading{text-align:center;max-width:620px;margin:0 auto 28px}.advantages-heading h2{letter-spacing:-1px;margin:10px 0 8px;font-size:28px}.intro .advantages-heading p{color:var(--muted);margin:0;font-size:14px}.feature-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.feature-card{border:1px solid var(--border);background:var(--bg);border-radius:16px;align-items:flex-start;gap:12px;min-width:0;padding:18px;display:flex}.feature-icon{background:var(--soft);width:40px;height:40px;color:var(--blue);border-radius:12px;flex:0 0 40px;place-items:center;display:grid}.feature-card h3{letter-spacing:-.2px;margin:1px 0 6px;font-size:14px}.intro .feature-card p{color:var(--muted);margin:0;font-size:12px;line-height:1.5}[data-theme=dark] .welcome-visual{border-color:#3a3e49;box-shadow:0 24px 64px #0004}@media (max-width:760px){.feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:600px){.welcome-visual{border-radius:20px;margin:26px -8px 28px}.advantages{border-radius:22px;margin:0 -4px 34px;padding:24px 18px}.advantages-heading{margin-bottom:20px}.advantages-heading h2{font-size:23px}.feature-grid{grid-template-columns:1fr;gap:9px}.feature-card{padding:14px}.feature-icon{flex-basis:38px;width:38px;height:38px}}
