/* Signature Maker — tool-specific styles (site design tokens only).
   The signing pad stays white like paper in both themes. */
@media (min-width: 1024px) {
  .tool-shell.sig-shell { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
}

.sig-pad {
  position: relative; width: 100%; aspect-ratio: 5 / 2; min-height: 200px;
  background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, .08); overflow: hidden;
}
.sig-pad canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  touch-action: none; cursor: crosshair; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.sig-placeholder {
  position: absolute; left: 0; right: 0; top: 38%; transform: translateY(-50%); text-align: center;
  font-size: clamp(1.4rem, 4vw, 2.2rem); font-style: italic; font-weight: 500; color: #b6bdcc; pointer-events: none; letter-spacing: .02em;
}
.sig-baseline {
  position: absolute; left: 6%; right: 6%; top: 72%; border-top: 1.5px dashed #c3c9d6; pointer-events: none;
}
.sig-x { position: absolute; left: 0; bottom: 4px; font-size: 1.3rem; line-height: 1; color: #9aa3b5; }
.sig-pad.has-ink .sig-placeholder { display: none; }
.sig-pad:focus-within { border-color: var(--focus); }

.sig-toolbar { padding: 12px 0 16px; }
.sig-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--border-strong); }

.sig-result { min-height: 180px; padding: 16px; display: flex; align-items: center; justify-content: center; }
.sig-result img { max-width: 100%; max-height: 40vh; min-width: 0; }
.sig-empty { margin: 0; padding: 0 12px; text-align: center; color: #64748b; }

.sig-export { padding: 18px 20px; }
.sig-export h2 { font-size: 1.05rem; margin-bottom: 12px; }
.sig-buttons { display: flex; flex-direction: column; gap: 10px; }
.sig-buttons .btn { justify-content: center; white-space: normal; text-align: center; }

.size-badge[hidden], .sig-result img[hidden], .sig-empty[hidden] { display: none; }

@media (max-width: 640px) {
  .sig-toolbar .btn { flex: 1 1 40%; }
  .sig-toolbar .spacer { display: none; }
  .sig-toolbar #sig-count { flex: 1 1 100%; }
}
.sig-buttons .btn[hidden] { display: none; }
