
.ink-palette{border:0;padding:0;margin:0;grid-column:1/-1;min-width:0}.ink-palette legend{font-weight:600;margin-bottom:12px}.ink-swatches{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.ink-swatches button{display:flex;align-items:center;flex-direction:column;gap:7px;min-height:74px;padding:10px 4px;background:transparent;color:#173e32;border:1px solid #d9ddd7;border-radius:10px;box-shadow:none}.ink-swatches button span{display:block;width:24px;height:24px;border-radius:50%;background:var(--ink-swatch);border:2px solid #fff;box-shadow:0 0 0 1px #c8ccc5}.ink-swatches button small{font-size:12px;font-weight:500}.ink-swatches button[aria-pressed=true]{border-color:#173e32;background:#edf2ee;outline:1px solid #173e32}.ink-swatches button:focus-visible{outline:3px solid #bd985f;outline-offset:3px}.ink-palette .custom-ink-label{display:flex;flex-direction:row;align-items:center;gap:12px;margin-top:12px;font-size:13px}.custom-ink-label input{width:40px;height:32px;padding:2px}@media(max-width:480px){.ink-swatches{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}}
@media(min-width:761px){.controls>.ink-palette{grid-column:1/-1;display:flex;align-items:center;gap:12px;padding:8px 0 0}.controls>.ink-palette legend{float:left;margin:0 2px 0 0;font-size:12px;line-height:36px;font-weight:600}.controls>.ink-palette .ink-swatches{display:flex;gap:5px}.controls>.ink-palette .ink-swatches button{width:36px;min-width:36px;height:36px;min-height:36px;padding:6px;border-radius:50%;border-color:transparent;gap:0}.controls>.ink-palette .ink-swatches button span{width:22px;height:22px;flex-shrink:0}.controls>.ink-palette .ink-swatches button small{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.controls>.ink-palette .custom-ink-label{margin:0 0 0 6px;display:flex;gap:8px;font-size:12px;font-weight:500;white-space:nowrap}.controls>.ink-palette .custom-ink-label input{width:30px;height:30px}.controls>.signature-settings{padding:6px 0 0;margin:0}.controls>.signature-settings summary{font-size:12px}.controls>.signature-settings summary span{display:none}.controls .settings-grid{grid-template-columns:minmax(150px,1fr) minmax(150px,1fr) auto;padding:10px 0 4px;gap:18px}}

@media(min-width:761px){.controls>.signature-settings{padding:0!important;min-height:0!important}.controls>.signature-settings .settings-grid{grid-template-columns:minmax(130px,210px) minmax(130px,210px) auto;gap:24px;padding:4px 0 0;align-items:center}.controls>.signature-settings .settings-grid>label{margin:0;font-size:12px}.controls>.signature-settings .settings-grid>label small{display:none}.controls>.signature-settings .settings-grid input[type=range]{display:block;margin:5px 0 0;height:16px}.controls>.signature-settings .settings-grid .check{align-self:center;white-space:nowrap}}

[data-export-svg]{display:inline-flex;align-items:center;justify-content:center;padding:13px 22px;min-height:48px;border:1px solid #173e32;border-radius:7px;text-decoration:none;font-weight:600}
.signature-name-entry{position:relative;min-width:0}.signature-name-entry input[data-name]{padding-right:52px;width:100%;box-sizing:border-box}.signature-name-entry .signature-name-clear{position:absolute;right:5px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:42px;height:42px;min-height:0;padding:0;border:0;border-radius:50%;background:transparent;color:#62776c;box-shadow:none}.signature-name-entry .signature-name-clear:hover{background:#edf1ec;color:#173e32}.signature-name-entry .signature-name-clear:focus-visible{outline:2px solid #173e32;outline-offset:-4px}.signature-name-entry .signature-name-clear[hidden]{display:none}
@media(max-width:760px){.live-style-layout>.mobile-font-section{display:flex;flex-direction:column;gap:12px;order:0;min-width:0;width:100%;position:relative;align-self:stretch}.mobile-font-section>.result{flex:none;align-self:stretch}.mobile-font-section>.font-picker{order:1;width:100%;box-sizing:border-box;min-width:0}.mobile-font-section>.result{position:sticky!important;top:8px!important}}
/* Font labels must not resize the signature preview when styles change. */
.studio .result .font-nav-label{min-width:0;flex:1}.studio .result [data-style-name]{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.studio .result .paper-head{min-height:44px;box-sizing:border-box}.studio .result canvas[data-preview]{aspect-ratio:1400/440}
@media(max-width:760px){.mobile-font-section>.result .paper-head{height:44px;min-height:44px;flex:none;margin:0 0 4px}.mobile-font-section>.result .preview-font-nav{height:44px}.mobile-font-section>.result .font-nav-label{max-width:none}.mobile-font-section>.result canvas[data-preview]{height:94px!important;min-height:94px;max-height:94px;flex:none}.mobile-font-section>.result .actions{min-height:44px;align-items:stretch}.mobile-font-section>.result .actions button{height:44px;white-space:nowrap}.mobile-font-section>.result{min-height:216px!important;box-sizing:border-box}}
.signature-upgrade-dialog{padding:0;border:1px solid #c7ab75;border-radius:22px;width:min(850px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);overflow:auto;background:#fffdf8;color:#173e32;box-shadow:0 30px 100px #102b2460}
.signature-upgrade-dialog::backdrop{background:#102b2499;backdrop-filter:blur(5px)}
.download-upgrade-layout{display:grid;grid-template-columns:.85fr 1.15fr}
.download-upgrade-close{position:absolute;right:12px;top:12px;z-index:2;display:grid;place-items:center;width:40px;height:40px;min-height:40px;padding:0;border:1px solid #d9ddd7;border-radius:50%;background:#fffdf8;color:#173e32;box-shadow:none}
.download-upgrade-art{padding:34px 24px;display:flex;flex-direction:column;justify-content:center;gap:38px;background:radial-gradient(ellipse at 10% 0%,#f1ddb5 0%,transparent 65%),#f1eadc;border-radius:21px 0 0 21px;min-width:0}
.download-upgrade-eyebrow{font-size:11px;letter-spacing:2px;font-weight:650;color:#586b5e}
.download-upgrade-paper{position:relative;padding:36px 5px 26px;background:#fffdf8;border:1px solid #d4c3a3;box-shadow:0 14px 28px #7e64491a;transform:rotate(-4deg);border-radius:3px}
.download-upgrade-paper img{display:block;width:100%;height:110px;object-fit:contain;mix-blend-mode:multiply}
.download-upgrade-paper-rule{display:block;height:1px;width:80%;margin:16px auto 0;background:#e3ddcf}
.download-upgrade-route{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:11px;font-weight:600;color:#526655}
.download-upgrade-route svg{width:15px;flex:none;color:#a27a3b}
.download-upgrade-content{padding:52px 34px 28px}
.download-upgrade-content h2{font:normal 35px/1.13 Georgia,serif;letter-spacing:-1.1px;margin:0 0 19px}
.download-upgrade-content h2 em{font-weight:normal;color:#8c692f}
.download-upgrade-content>p{font-size:14px;line-height:1.7;color:#59695f;margin:0 0 22px}
.download-upgrade-content ul{list-style:none;padding:0;margin:0 0 28px;display:grid;gap:12px}
.download-upgrade-content li{display:flex;align-items:flex-start;gap:9px;font-size:13px;line-height:1.5}
.download-upgrade-content li svg{flex:0 0 18px;color:#a78143;margin-top:1px}
.download-upgrade-primary{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:52px;box-sizing:border-box;padding:14px 18px;border:1px solid #d5ad6b;border-radius:10px;background:linear-gradient(110deg,#f2d9aa,#e4bc7b);color:#173e32;font-size:15px;font-weight:650;text-decoration:none;box-shadow:0 5px 14px #a27a3b17}
.download-upgrade-primary:hover{background:linear-gradient(110deg,#f8e3bc,#edc789);transform:translateY(-1px)}
.download-upgrade-secondary{display:block;width:100%;padding:12px 8px 0;min-height:44px;border:0;background:transparent;color:#66776b;font-size:13px;font-weight:500;box-shadow:none}
.signature-upgrade-dialog :focus-visible{outline:2px solid #173e32;outline-offset:3px}
@media(max-width:600px){.signature-upgrade-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:18px}.download-upgrade-layout{grid-template-columns:1fr}.download-upgrade-art{padding:22px 24px 18px;border-radius:17px 17px 0 0;gap:14px}.download-upgrade-eyebrow{font-size:10px;letter-spacing:1.7px;padding-right:35px}.download-upgrade-paper{padding:6px 12px 9px;transform:rotate(-2deg);width:85%;align-self:center}.download-upgrade-paper img{height:70px}.download-upgrade-paper-rule{margin-top:3px}.download-upgrade-route{justify-content:center;gap:12px;font-size:10px}.download-upgrade-content{padding:25px 24px 17px}.download-upgrade-content h2{font-size:30px;margin-bottom:13px;letter-spacing:-.8px}.download-upgrade-content>p{font-size:13px;line-height:1.6;margin-bottom:17px}.download-upgrade-content ul{gap:9px;margin-bottom:20px}.download-upgrade-content li{font-size:12px}.download-upgrade-close{right:9px;top:9px;width:36px;height:36px;min-height:36px}.download-upgrade-primary{min-height:50px}}
@media(prefers-reduced-motion:no-preference){.signature-upgrade-dialog[open]{animation:download-upgrade-enter .24s ease-out}@keyframes download-upgrade-enter{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}}
