/* ==========================================================================
   signature-maker - built from the supplied prototype

   The prototype's own stylesheet, every selector scoped to .tkw-signature so nothing
   here can reach the rest of the account. Its top bar is left out: the
   Toolkit supplies the page.
   ========================================================================== */

/* The script faces, self-hosted (latin subset) rather than fetched from Google. */
@font-face{font-family:'Allura';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/signature/allura-400.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Caveat';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/signature/caveat-400.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Caveat';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/signature/caveat-500.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Caveat';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/signature/caveat-600.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Dancing Script';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/signature/dancing-script-400.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Dancing Script';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/signature/dancing-script-600.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Great Vibes';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/signature/great-vibes-400.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Pacifico';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/signature/pacifico-400.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Sacramento';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/signature/sacramento-400.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

.tkw-signature{font-family:Inter,'Segoe UI',Arial,sans-serif;--navy:#0d2e5e;--dark:#0c294d;--blue:#176bed;--teal:#078e89;--light:#f2f7fd;--line:#e0eaf4;--muted:#6d829e;--shadow:0 14px 32px rgba(24,59,106,.055)}
.tkw-signature *{box-sizing:border-box}
.tkw-signature{margin:0;background:linear-gradient(115deg,#f8fbff 0%,#eef8ff 70%,#f8fbff 100%);color:var(--dark);font-size:14px;line-height:1.5}
.tkw-signature button,.tkw-signature input{font:inherit}
.tkw-signature button{cursor:pointer}
.tkw-signature button:disabled{opacity:.45;cursor:not-allowed}
.tkw-signature button:focus-visible,.tkw-signature input:focus-visible,.tkw-signature a:focus-visible{outline:3px solid #85baf4;outline-offset:2px}
.tkw-signature a{color:#1260cb;text-decoration:none}
.tkw-signature .hidden{display:none!important}
.tkw-signature svg{display:block}
.tkw-signature .topbar{height:58px;background:#f2f5fa;border-bottom:1px solid #e6ecf3;display:flex;align-items:center;justify-content:space-between;padding:0 26px}
.tkw-signature .menu{background:#fff;border:1px solid #dbe7f3;border-radius:10px;width:39px;height:39px;display:grid;place-items:center;color:#113a70}
.tkw-signature .topright{display:flex;gap:19px;align-items:center;color:#1d60c2}
.tkw-signature .divider-v{height:30px;border-left:1px solid #dce5ee}
.tkw-signature .avatar{background:#cfd6df;color:white;border-radius:50%;width:32px;height:32px;display:grid;place-items:center;font-size:20px}
.tkw-signature .account{display:flex;gap:9px;align-items:center;color:#0d2b54}
.tkw-signature .account b{font-size:12px;display:block;line-height:1.3}
.tkw-signature .account small{font-size:10px;display:block;color:#778ca6}
.tkw-signature .wrap{max-width:1460px;margin:auto;padding:18px 24px 50px}
.tkw-signature .breadcrumb{font-size:12px;color:#6a7f9a;display:flex;align-items:center;gap:10px;margin-bottom:22px;flex-wrap:wrap}
.tkw-signature .breadcrumb strong{color:#0c2b57}
.tkw-signature .back{font-size:21px;color:#1a69cc}
.tkw-signature .intro{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:19px}
.tkw-signature .intro-main{display:flex;align-items:flex-start;gap:16px}
.tkw-signature .tool-icon{height:51px;width:51px;background:#eaf3ff;border-radius:15px;color:#1279eb;display:grid;place-items:center;flex:none}
.tkw-signature .intro h1{font-size:clamp(26px,2.4vw,33px);line-height:1.17;letter-spacing:-.9px;margin:0 0 8px;font-weight:800}
.tkw-signature .intro p{margin:0 0 11px;color:#687e9a;font-size:13.5px;max-width:710px}
.tkw-signature .privacy{display:inline-flex;gap:8px;align-items:center;padding:6px 12px;border-radius:30px;background:#e2f5f0;color:#087c79;font-size:11.5px;font-weight:750}
.tkw-signature .intro-actions{display:flex;align-items:flex-start;gap:13px;flex:0 0 auto}
.tkw-signature .hero{width:208px;height:105px}
.tkw-signature .guide-trigger{padding:10px 13px;border-radius:9px;background:white;border:1px solid #c9dcef;color:#134e94;font-size:11.5px;font-weight:800;display:flex;gap:7px;align-items:center;box-shadow:0 2px 8px #183a6310}
.tkw-signature .guide-holder{position:relative;z-index:20}
.tkw-signature .guide-pop{display:none;position:absolute;right:0;top:47px;width:min(380px,calc(100vw - 28px));max-height:74vh;overflow:auto;background:#fff;border:1px solid #d8e5f4;box-shadow:0 20px 45px #092b5533;border-radius:15px}
.tkw-signature .guide-pop.open{display:block}
.tkw-signature .guide-head{position:sticky;top:0;background:#fff;padding:14px 16px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #edf1f6}
.tkw-signature .guide-head b{font-size:15px}
.tkw-signature .guide-head button{background:#fff;border:1px solid #d7e4f4;border-radius:7px;font-size:21px;width:29px;height:29px;line-height:24px}
.tkw-signature .guide-content{padding:15px;display:grid;gap:10px}
.tkw-signature .guide-box{padding:12px 13px;border-radius:11px;font-size:12px;line-height:1.5}
.tkw-signature .guide-box strong{display:block;margin-bottom:5px}
.tkw-signature .guide-box.blue{background:#eaf4ff;border-left:3px solid #2785e5}
.tkw-signature .guide-box.green{background:#e8f7ef;border:1px solid #ceeadd}
.tkw-signature .guide-box.amber{background:#fff5e7;border:1px solid #f2dfba}
.tkw-signature .guide-steps{display:grid;gap:7px}
.tkw-signature .guide-steps div{display:flex;gap:9px;font-size:12px;align-items:flex-start}
.tkw-signature .guide-steps b{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#2593d3;color:#fff;flex:none;font-size:11px}
.tkw-signature .workspace{display:grid;grid-template-columns:minmax(0,1fr) 395px;gap:18px;align-items:start}
.tkw-signature .viewer,.tkw-signature .settings{background:#fff;border:1px solid #e3ebf5;border-radius:17px;box-shadow:var(--shadow);min-width:0}
.tkw-signature .viewer{overflow:hidden}
.tkw-signature .viewer-header{padding:17px 20px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #e9eef5}
.tkw-signature .viewer-header h2,.tkw-signature .settings-header h2{font-size:17px;font-weight:800;margin:0}
.tkw-signature .live{background:#e7f8f0;color:#087a69;border-radius:30px;padding:5px 10px;font-size:11px;font-weight:750}
.tkw-signature .live::before{content:'';display:inline-block;border-radius:50%;height:7px;width:7px;background:#0caa7d;margin-right:7px}
.tkw-signature .viewer-content{padding:17px 20px 19px}
.tkw-signature .stage-box{background:#edf3f9;border-radius:13px;padding:15px}
.tkw-signature .stage-title{font-size:13px;font-weight:800;color:#183d70;margin:0 0 6px}
.tkw-signature .stage-sub{color:#6e829c;font-size:11.8px;margin:0 0 14px}
.tkw-signature .stage{height:355px;border:1.5px dashed #c4d9ef;border-radius:12px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;background:#fff;transition:background .12s;touch-action:none}
.tkw-signature .stage.checker{background-color:white;background-image:linear-gradient(45deg,#e8edf3 25%,transparent 25%),linear-gradient(-45deg,#e8edf3 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e8edf3 75%),linear-gradient(-45deg,transparent 75%,#e8edf3 75%);background-size:24px 24px;background-position:0 0,0 12px,12px -12px,-12px 0}
.tkw-signature .canvas-wrap{height:100%;width:100%;position:relative}
.tkw-signature #drawCanvas{display:block;height:100%;width:100%;touch-action:none;cursor:crosshair}
.tkw-signature .sign-hint{position:absolute;left:13%;right:13%;top:54%;transform:translateY(-50%);pointer-events:none;color:#a1b2c6;font-size:14px}
.tkw-signature .sign-hint:after{content:'';display:block;margin-top:17px;border-bottom:1px solid #bdccdc}
.tkw-signature .type-preview{width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:24px 34px;min-width:0;overflow:hidden}
.tkw-signature .type-preview .rendered{white-space:nowrap;max-width:100%;line-height:1.45;transition:color .1s;text-align:center;font-size:clamp(35px,4.4vw,69px);font-weight:400;font-style:normal}
.tkw-signature .type-placeholder{font-size:14px;color:#a1b1c6;text-align:center;max-width:280px}
.tkw-signature .stage-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 2px 0;flex-wrap:wrap}
.tkw-signature .stage-bottom span{color:#68819d;font-size:11.3px}
.tkw-signature .stage-bottom button{background:#fff;border:1px solid #d0e0f1;color:#1757a4;padding:7px 10px;border-radius:8px;font-size:11px;font-weight:750}
.tkw-signature .preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:16px 0 9px;flex-wrap:wrap}
.tkw-signature .preview-toolbar strong{font-size:12.5px;color:#1a4074}
.tkw-signature .preview-toolbar small{color:#7a8fa7;font-size:11px}
.tkw-signature .preview-variants{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tkw-signature .preview-variant{min-width:0;border:1px solid #d8e5f2;background:#fff;border-radius:11px;padding:11px;display:flex;flex-direction:column;gap:9px}
.tkw-signature .preview-variant .tag{font-size:10.7px;font-weight:750;color:#51759d}
.tkw-signature .variant-canvas{height:130px;width:100%;border-radius:7px;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;border:1px solid #e5ebf3}
.tkw-signature .variant-canvas.trans{background-color:white;background-image:linear-gradient(45deg,#ebeff4 25%,transparent 25%),linear-gradient(-45deg,#ebeff4 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ebeff4 75%),linear-gradient(-45deg,transparent 75%,#ebeff4 75%);background-size:18px 18px;background-position:0 0,0 9px,9px -9px,-9px 0}
.tkw-signature .variant-canvas img{object-fit:contain;max-width:90%;max-height:95%;width:auto;height:auto}
.tkw-signature .variant-canvas .empty{font-size:11px;color:#91a3b8;text-align:center;padding:12px;max-width:190px}
.tkw-signature .variant-canvas.white{background:#fff}
.tkw-signature .viewer-footer{border-top:1px solid #e7edf5;background:#fbfdff;padding:13px 18px;display:flex;align-items:flex-start;gap:9px;color:#69809a;font-size:11px}
.tkw-signature .info-circle{width:16px;height:16px;border:1.5px solid #1f8d9f;color:#168a93;display:grid;place-items:center;border-radius:50%;flex:none;font-weight:800;font-size:10px}
.tkw-signature .settings{overflow:hidden;position:sticky;top:12px}
.tkw-signature .settings-header{padding:17px 18px 14px;border-bottom:1px solid #ebf0f6}
.tkw-signature .settings-header p{font-size:12px;color:#7085a0;margin:5px 0}
.tkw-signature .scroll-cue{font-size:10.5px;color:#296ba8;font-weight:750}
.tkw-signature .settings-scroll{height:clamp(550px,71vh,820px);overflow-y:auto;padding:0 18px 15px;scrollbar-color:#a7c3e1 #f1f6fb;scrollbar-width:thin}
.tkw-signature .setting-section{padding:17px 0;border-bottom:1px solid #eaf0f6}
.tkw-signature .setting-section:last-child{border:0}
.tkw-signature .section-label{display:flex;align-items:center;gap:10px;font-size:13.6px;font-weight:800;color:#184379}
.tkw-signature .num{width:26px;height:26px;flex:none;border-radius:50%;background:#113262;color:#fff;display:grid;place-items:center;font-size:12px}
.tkw-signature .help{color:#7689a2;font-size:11.8px;margin:7px 0 12px}
.tkw-signature .mode-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tkw-signature .mode-btn{padding:13px 9px;border:1.5px solid #d8e4f2;background:#fff;border-radius:10px;font-size:12px;font-weight:800;color:#254d7b;display:flex;align-items:center;justify-content:center;gap:7px}
.tkw-signature .mode-btn[aria-selected=true]{background:#ebf5ff;border-color:#237ee8;box-shadow:0 0 0 1px #d9ebff;color:#115cb7}
.tkw-signature .input{border:1px solid #d6e3f0;border-radius:9px;background:#fff;padding:11px 12px;color:#183d6a;width:100%;font-size:12.5px;min-height:43px}
.tkw-signature .field{display:grid;gap:6px}
.tkw-signature .field label{font-size:11.7px;font-weight:800;color:#1e4c7f}
.tkw-signature .style-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.tkw-signature .style-card{border:1.5px solid #dae6f2;background:#fff;border-radius:11px;padding:8px 5px 7px;display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;height:91px}
.tkw-signature .style-card:hover{border-color:#9cc5ed}
.tkw-signature .style-card.selected{background:#f0f7ff;border-color:#287fee;box-shadow:0 0 0 1px #d7eaff}
.tkw-signature .style-card span{width:100%;max-width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;font-size:25px;line-height:1.35}
.tkw-signature .style-card small{font-size:10px;color:#6c829e;font-weight:750}
.tkw-signature .style-card.selected small{color:#1662bf}
.tkw-signature .colours{display:flex;gap:7px;flex-wrap:wrap;margin-top:7px}
.tkw-signature .ink-btn{display:flex;align-items:center;gap:7px;border:1.5px solid #dce6f2;background:white;border-radius:9px;color:#27507e;padding:7px 10px;font-size:11px;font-weight:750}
.tkw-signature .ink-btn[aria-pressed=true]{border-color:#247ae0;background:#f0f7ff}
.tkw-signature .ink-dot{width:16px;height:16px;border-radius:50%;border:1px solid #a2afbf}
.tkw-signature .thick{display:flex;gap:13px;align-items:center}
.tkw-signature .thick input{flex:1;accent-color:#1878ee}
.tkw-signature .thick strong{font-size:11.7px;color:#22599a;min-width:36px}
.tkw-signature .pen-line-preview{height:43px;background:#f9fbfe;border:1px dashed #d7e5f4;border-radius:9px;display:grid;place-items:center;margin-top:11px}
.tkw-signature .stroke-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:11px}
.tkw-signature .secondary{padding:8px 11px;background:white;color:#245b9e;border:1px solid #d6e3f1;border-radius:8px;font-size:11.3px;font-weight:750}
.tkw-signature .secondary:hover:not(:disabled){background:#f2f8ff}
.tkw-signature .segmented{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:#f0f5fb;padding:5px;border-radius:10px}
.tkw-signature .segment{border:1px solid transparent;border-radius:8px;background:transparent;color:#526d8d;font-size:11px;font-weight:750;padding:9px 6px}
.tkw-signature .segment.active{background:#fff;border-color:#d8e6f6;color:#1758a8;box-shadow:0 2px 5px #12385d12}
.tkw-signature .tickline{display:flex;align-items:center;gap:9px;font-size:11.8px;color:#3a597f;margin-top:11px}
.tkw-signature .tickline input{accent-color:#1378d9}
.tkw-signature .notice{font-size:11px;color:#50729a;background:#eef7ff;border:1px solid #dcecff;border-radius:9px;padding:10px 11px;margin-top:10px}
.tkw-signature .settings-footer{padding:14px 18px 15px;background:white;border-top:1px solid #e8eef6;box-shadow:0 -7px 20px #1f47700a}
.tkw-signature .primary{background:#0c2e60;color:#fff;border:none;border-radius:10px;width:100%;padding:14px;display:flex;gap:9px;align-items:center;justify-content:center;font-size:12.8px;font-weight:800;box-shadow:0 7px 16px #143f7420}
.tkw-signature .primary:hover:not(:disabled){background:#194b86}
.tkw-signature .footer-row{display:flex;justify-content:center;gap:9px;margin-top:10px}
.tkw-signature .status{margin-top:10px;text-align:center;font-size:10.7px;color:#7689a3;min-height:18px}
.tkw-signature .toast{position:fixed;left:50%;bottom:20px;transform:translate(-50%,12px);opacity:0;pointer-events:none;transition:.16s;background:#14345e;color:white;padding:10px 15px;border-radius:10px;font-size:12px;z-index:100}
.tkw-signature .toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1160px){.tkw-signature .hero{display:none}
.tkw-signature .workspace{grid-template-columns:minmax(0,1fr) 355px}}
@media(max-width:900px){.tkw-signature .workspace{grid-template-columns:1fr}
.tkw-signature .settings{position:static}
.tkw-signature .settings-scroll{height:auto;overflow:visible}
.tkw-signature .settings-footer{position:static}
.tkw-signature .settings{order:1}
.tkw-signature .viewer{order:0}
.tkw-signature .intro{flex-wrap:wrap}
.tkw-signature .intro-actions{margin-left:auto}}
@media(max-width:520px){.tkw-signature .wrap{padding:13px 12px 35px}
.tkw-signature .topbar{padding:0 14px}
.tkw-signature .topright{gap:9px}
.tkw-signature .topright .globe{display:none}
.tkw-signature .account b{max-width:95px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.tkw-signature .intro h1{font-size:25px}
.tkw-signature .intro-main{gap:10px}
.tkw-signature .tool-icon{width:42px;height:42px}
.tkw-signature .subtitle{font-size:12px!important}
.tkw-signature .privacy{font-size:10px}
.tkw-signature .intro-actions{margin-left:0}
.tkw-signature .guide-pop{left:0;right:auto;max-height:65vh}
.tkw-signature .viewer-content{padding:11px}
.tkw-signature .stage-box{padding:11px}
.tkw-signature .stage{height:280px}
.tkw-signature .viewer-header{padding:14px}
.tkw-signature .viewer-header h2{font-size:15px}
.tkw-signature .type-preview .rendered{font-size:42px}
.tkw-signature .preview-variants{gap:7px}
.tkw-signature .preview-variant{padding:7px}
.tkw-signature .variant-canvas{height:108px}
.tkw-signature .settings-scroll{padding:0 14px 14px}
.tkw-signature .settings-header,.tkw-signature .settings-footer{padding-left:14px;padding-right:14px}
.tkw-signature .style-card{height:92px}}
@media(prefers-reduced-motion:reduce){.tkw-signature *{transition:none!important}}


