.esign-body { font-family: 'Poppins', system-ui, sans-serif; background: #f6f5fb; color: #1e1b2e; min-height: 100vh; }
.esign-nav { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .7rem; border-radius: .5rem; color: #fff; background: transparent; border: 0; cursor: pointer; font: inherit; }
.esign-nav:hover, .esign-nav.is-active { background: rgba(255,255,255,.16); }
.esign-nav i { font-size: 1.15rem; }
.esign-card { background: #fff; border: 1px solid #e7e3f3; border-radius: .9rem; }
.esign-input { width: 100%; border: 1px solid #d6d1e6; border-radius: .55rem; padding: .55rem .75rem; font: inherit; font-size: .9rem; background: #fff; }
.esign-input:focus { outline: 2px solid #7c3aed; outline-offset: 0; border-color: #7c3aed; }
.esign-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border-radius: .55rem; padding: .55rem 1rem; font-weight: 500; font-size: .9rem; border: 1px solid transparent; cursor: pointer; text-decoration: none; }
.esign-btn-primary { background: #5b21b6; color: #fff; }
.esign-btn-primary:hover { background: #4c1d95; }
.esign-btn-primary:disabled { background: #a5a0b8; cursor: not-allowed; }
.esign-btn-light { background: #fff; color: #3b2a6b; border-color: #d6d1e6; }
.esign-btn-light:hover { background: #f3f0fb; }
.esign-btn-danger { background: #b91c1c; color: #fff; }
.esign-btn-danger:hover { background: #991b1b; }
.esign-btn:focus-visible, .esign-nav:focus-visible { outline: 2px solid #7c3aed; outline-offset: 2px; }
.esign-label { display: block; font-size: .8rem; font-weight: 500; color: #4b4566; margin-bottom: .3rem; }

/* Editor */
.esign-stage { position: relative; margin: 0 auto 1.25rem; box-shadow: 0 2px 10px rgba(30,27,46,.12); background: #fff; touch-action: none; }
.esign-stage canvas.esign-page { display: block; width: 100%; height: auto; }
.esign-page-label { font-size: .75rem; color: #6b6585; margin: 0 auto .35rem; }
.esign-box { position: absolute; border: 2px dashed #7c3aed; background: rgba(124,58,237,.06); cursor: move; user-select: none; touch-action: none; box-sizing: border-box; }
.esign-box.is-selected { border-style: solid; background: rgba(124,58,237,.12); }
.esign-box .esign-box-preview { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; overflow: hidden; }
.esign-box .esign-handle { position: absolute; right: -8px; bottom: -8px; width: 16px; height: 16px; border-radius: 50%; background: #7c3aed; border: 2px solid #fff; cursor: nwse-resize; touch-action: none; }
.esign-box .esign-remove { position: absolute; top: -12px; right: -12px; width: 24px; height: 24px; border-radius: 50%; background: #b91c1c; color: #fff; border: 2px solid #fff; font-size: 14px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.esign-box-tag { position: absolute; top: -20px; left: -2px; font-size: 10px; background: #7c3aed; color: #fff; padding: 1px 6px; border-radius: 4px 4px 0 0; white-space: nowrap; }
@media (pointer: coarse) { .esign-box .esign-handle { width: 24px; height: 24px; right: -12px; bottom: -12px; } }
