/* Kopnota marketing site · signature pad and image library */
/* ---------- Signature pad ---------- */
.sign-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: clamp(16px, 2.5vw, 22px); display: grid; gap: 14px; }
.sign-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.inks { display: flex; gap: 10px; }
.inks button { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; transition: box-shadow .2s, transform .2s; }
.inks button[aria-checked="true"] { box-shadow: 0 0 0 2.5px var(--blue); transform: scale(1.08); }
.sign-pad { position: relative; aspect-ratio: 2.4 / 1; border-radius: 14px; background: #fff; border: 1.5px dashed rgba(91, 100, 137, .5); overflow: hidden; touch-action: none; }
.sign-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.sign-hint { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: .78rem; color: #8A90AA; pointer-events: none; transition: opacity .3s; }
.sign-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.lib-h { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.lib-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.lib-list li { position: relative; flex: none; width: 112px; height: 56px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff conic-gradient(#F3F5FC 25%, #fff 0 50%, #F3F5FC 0 75%, #fff 0) 0 0 / 12px 12px; display: grid; place-items: center; cursor: pointer; animation: tpl-pop .45s cubic-bezier(.2, .8, .2, 1) both; }
.lib-list li img { max-width: 92%; max-height: 80%; }
.lib-list li.on { border-color: var(--blue); box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue) 30%, transparent); }
.lib-list li.on::after { content: "✓"; position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.lib-list li.empty { width: auto; padding: 0 14px; cursor: default; color: var(--muted); font-size: .8rem; background: var(--surface-2); }
