/* "Add a signature" dialog (assets/site/app-sign.js), 2026-10-26. Self-contained colours, so it looks
   the same on the export page (v3) and in the app. The app resets every margin, so the centring is set here. */
@font-face { font-family: 'CVM Sig Dancing'; src: url(/assets/site/fonts/signature/dancing-script.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: 'CVM Sig Vibes'; src: url(/assets/site/fonts/signature/great-vibes.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: 'CVM Sig Caveat'; src: url(/assets/site/fonts/signature/caveat.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: 'CVM Sig Allura'; src: url(/assets/site/fonts/signature/allura.ttf) format('truetype'); font-display: swap; }
.sg-ff-dancing { font-family: 'CVM Sig Dancing', cursive; }
.sg-ff-vibes { font-family: 'CVM Sig Vibes', cursive; }
.sg-ff-caveat { font-family: 'CVM Sig Caveat', cursive; }
.sg-ff-allura { font-family: 'CVM Sig Allura', cursive; }

html.sg-open { overflow: hidden; }
.sg, .sg *, .sg *::before, .sg *::after { box-sizing: border-box; }
.sg { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; color: #1d1a26; background: #fffdf8; border: 0; border-radius: 22px; box-shadow: 0 24px 60px rgba(20, 24, 50, .35); overflow: auto; }
.sg::backdrop { background: rgba(16, 20, 44, .55); }
.sg-box { display: grid; gap: 14px; margin: 0; padding: 20px 22px 18px; font-family: inherit; font-weight: 500; font-size: 15px; line-height: 1.5; }
.sg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sg-head h2 { margin: 0; font-size: 22px; font-weight: 900; line-height: 1.15; color: #1e2a5a; }
.sg-x { width: 40px; height: 40px; flex: none; font-size: 26px; line-height: 1; color: #1e2a5a; background: #f1ede2; border: 0; border-radius: 50%; cursor: pointer; }
.sg-lede { margin: -6px 0 0; font-size: 14px; color: #5d5869; }
.sg-tabs { display: flex; padding: 4px; background: #f1ede2; border-radius: 999px; }
.sg-tabs button { flex: 1 1 0; min-height: 40px; padding: 8px 10px; font-family: inherit; font-weight: 800; font-size: 15px; color: #1e2a5a; background: none; border: 0; border-radius: 999px; cursor: pointer; }
.sg-tabs button[aria-selected="true"] { color: #fff6e0; background: #1e2a5a; }
.sg-pane[hidden] { display: none; }
.sg-label { display: block; margin: 0 0 6px; font-size: 12.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #5d5869; }
.sg-input { width: 100%; min-height: 46px; padding: 10px 12px; font-family: inherit; font-weight: 600; font-size: 16px; color: #1d1a26; background: #fff; border: 2px solid #ddd6c3; border-radius: 12px; }
.sg-fonts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.sg-font { position: relative; display: grid; gap: 2px; padding: 10px 12px 8px; background: #fff; border: 2px solid #e6dfcc; border-radius: 14px; cursor: pointer; min-width: 0; }
.sg-font input { position: absolute; opacity: 0; pointer-events: none; }
.sg-font-sample { overflow: hidden; font-size: 30px; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; color: #141418; }
.sg-font-name { font-size: 12px; font-weight: 800; color: #5d5869; }
.sg-font:has(input:checked) { border-color: #1e2a5a; box-shadow: inset 0 0 0 1px #1e2a5a; }
.sg-font:has(input:focus-visible) { outline: 3px solid #ff8a3d; outline-offset: 2px; }
.sg-pad { position: relative; height: 190px; background: #fff; border: 2px dashed #cfc6ae; border-radius: 14px; overflow: hidden; }
.sg-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.sg-line { position: absolute; left: 7%; right: 7%; bottom: 46px; height: 1.5px; background: #e1d9c4; pointer-events: none; }
.sg-pad-hint { position: absolute; left: 0; right: 0; bottom: 18px; font-size: 13px; text-align: center; color: #8a8496; pointer-events: none; }
.sg-row { display: flex; justify-content: flex-end; margin-top: 6px; }
.sg-link { padding: 4px 2px; font-family: inherit; font-weight: 800; font-size: 14.5px; color: #1e2a5a; background: none; border: 0; text-decoration: underline; text-decoration-color: #ffc93c; text-decoration-thickness: 3px; text-underline-offset: 4px; cursor: pointer; }
.sg-drop { display: block; padding: 22px 16px; text-align: center; background: #fff; border: 2px dashed #cfc6ae; border-radius: 14px; cursor: pointer; }
.sg-drop.is-over { border-color: #1e2a5a; background: #eaf4fb; }
.sg-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sg-drop:focus-within { outline: 3px solid #ff8a3d; outline-offset: 2px; }
.sg-drop-text { display: grid; gap: 4px; }
.sg-drop-text b { font-size: 15.5px; color: #1e2a5a; }
.sg-drop-text span { font-size: 13.5px; color: #5d5869; }
.sg-upimg { display: block; max-width: 100%; max-height: 120px; margin: 10px auto 0; border-radius: 8px; }
.sg-upimg[hidden] { display: none; }
.sg-opts { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 0; padding: 0; border: 0; min-width: 0; }
.sg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sg-opt { min-width: 0; }
.sg-seg { display: inline-flex; flex-wrap: wrap; padding: 3px; background: #f1ede2; border-radius: 999px; }
.sg-seg label { position: relative; cursor: pointer; }
.sg-seg input { position: absolute; opacity: 0; pointer-events: none; }
.sg-seg span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 14px; font-weight: 800; color: #1e2a5a; border-radius: 999px; }
.sg-seg input:checked + span { color: #fff6e0; background: #1e2a5a; }
.sg-seg input:focus-visible + span { outline: 3px solid #ff8a3d; outline-offset: 1px; }
.sg-dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.sg-dot--black { background: #141418; }
.sg-dot--blue { background: #162a70; }
.sg-preview { position: relative; padding: 14px 18px 12px; background: #fff; border-radius: 14px; box-shadow: inset 0 0 0 1px #e6dfcc; font-family: Helvetica, Arial, sans-serif; color: #2a2a2a; }
.sg-prev-cap { position: absolute; top: 8px; right: 12px; font-family: inherit; font-weight: 900; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #a39d8c; }
.sg-prev-line { margin: 0; font-size: 14px; }
.sg-prev-sig { display: flex; align-items: center; min-height: 56px; margin: 4px 0; }
.sg-prev-sig.sg-a-center { justify-content: center; }
.sg-prev-sig.sg-a-right { justify-content: flex-end; }
.sg-prev-sig img { display: block; max-width: 62%; height: 46px; object-fit: contain; }
.sg-prev-sig.sg-s-s img { height: 34px; }
.sg-prev-type { font-size: 36px; line-height: 1.1; white-space: nowrap; }
.sg-prev-sig.sg-s-s .sg-prev-type { font-size: 27px; }
.sg-prev-empty { font-size: 13px; color: #a39d8c; }
.sg-err { margin: 0; padding: 10px 12px; font-size: 14px; font-weight: 700; color: #8a1f11; background: #fde3dc; border-radius: 12px; }
.sg-err[hidden] { display: none; }
.sg-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.sg-foot-btns { display: flex; gap: 8px; margin-left: auto; }
.sg-remove[hidden] { display: none; }
.sg-btn { min-height: 46px; padding: 10px 20px; font-family: inherit; font-weight: 900; font-size: 15.5px; color: #fff6e0; background: #1e2a5a; border: 0; border-radius: 999px; cursor: pointer; }
.sg-btn:disabled { opacity: .65; cursor: progress; }
.sg-btn--ghost { color: #1e2a5a; background: #f1ede2; }
.sg-btn:focus-visible, .sg-x:focus-visible, .sg-link:focus-visible, .sg-tabs button:focus-visible, .sg-input:focus-visible { outline: 3px solid #ff8a3d; outline-offset: 2px; }
@media (max-width: 480px) {
  .sg-box { padding: 16px 14px 14px; gap: 12px; }
  .sg-fonts { grid-template-columns: minmax(0, 1fr); }
  .sg-font-sample { font-size: 27px; }
  .sg-pad { height: 170px; }
  .sg-foot-btns { width: 100%; }
  .sg-foot-btns .sg-btn { flex: 1 1 0; }
}
