html, body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
}

.signature-overlay {
    position: fixed;
    inset: 0;
    z-index: 1400;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overscroll-behavior: contain;
}

.signature-dialog {
    width: min(100%, 960px);
    height: min(100%, 560px);
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.signature-dialog__canvas-wrap {
    flex: 1;
    min-height: 260px;
}

.signature-dialog__canvas {
    width: 100%;
    height: 100%;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    background: #ffffff;
    touch-action: none;
}
.attachment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.attachment-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid #64748b;
    border-radius: 0.4rem;
    color: #334155;
    background: #fff;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
}

.attachment-button-camera {
    border-color: #2563eb;
    color: #1d4ed8;
}

.attachment-button input {
    display: none;
}
