.ps-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:0 0 18px; font-family:inherit; }
.ps-state { padding:5px 9px; border-radius:7px; font-size:12px; line-height:1.5; }
.ps-pending { background:#faf0dc; color:#815819; }
.ps-signed { background:#edf3e2; color:#496637; }
.ps-sign,.ps-submit { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 16px; border:0; border-radius:10px; background:#50773d; color:#fff; cursor:pointer; font:inherit; font-size:14px; font-weight:500; box-shadow:none; }
.ps-sign { margin-left:auto; background:#edf3e2; color:#3e5b2e; }
.ps-link { color:#496637; font-size:12px; font-weight:500; text-underline-offset:4px; padding:12px 0; }
.ps-actions .ps-link { margin-left:auto; }
.ps-document { border-bottom:1px solid #dfe5d9; padding-top:20px; }
.ps-document-top { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:16px; }
.ps-document-top h3 { margin:0 0 6px; color:#273328; font-size:16px; font-weight:550; text-transform:capitalize; }
.ps-document-top small,.ps-empty { color:#65705f; font-size:13px; line-height:1.6; }
.ps-document-top small { overflow-wrap:anywhere; }
.ps-dialog { box-sizing:border-box; margin:auto; width:min(540px,calc(100vw - 28px)); max-height:calc(100dvh - 32px); padding:0; border:0; border-radius:20px; background:#fcfdf9; color:#273328; box-shadow:0 18px 60px #1d2c2430; overflow:auto; font-family:inherit; }
.ps-dialog::backdrop { background:#20282066; backdrop-filter:blur(4px); }
.ps-header { display:flex; align-items:center; justify-content:space-between; padding:24px; border-bottom:1px solid #dfe5d9; }
.ps-header h2 { margin:0 0 6px; font-size:22px; font-weight:600; letter-spacing:-.4px; }
.ps-header p { margin:0; font-size:13px; color:#65705f; }
.ps-close { display:grid; place-items:center; min-width:44px; min-height:44px; border:0; background:transparent; color:#65705f; cursor:pointer; }
.ps-body { padding:0 24px 24px; }
.ps-status { font-size:13px; line-height:1.6; color:#496637; }
.ps-status:empty { display:none; }
.ps-review { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:22px 0; padding:16px; border-radius:10px; background:#edf3e2; color:#3e5b2e; font-size:14px; text-decoration:none; }
.ps-label { display:block; font-size:14px; font-weight:550; }
.ps-help { margin:6px 0 14px; color:#65705f; font-size:12px; line-height:1.6; }
.ps-dialog canvas { display:block; width:100%; height:174px; border:1px solid #cbd5c5; border-radius:12px; background:white; touch-action:none; cursor:crosshair; box-sizing:border-box; }
.ps-clear,.ps-cancel { min-height:44px; border:0; background:transparent; color:#65705f; font:inherit; font-size:13px; cursor:pointer; padding:10px 0; }
.ps-consent { display:flex; align-items:flex-start; gap:10px; margin:12px 0 22px; font-size:13px; line-height:1.6; cursor:pointer; }
.ps-consent input { width:20px; height:20px; margin-top:1px; flex:none; accent-color:#50773d; }
.ps-footer { display:flex; justify-content:space-between; align-items:center; gap:16px; padding-top:18px; border-top:1px solid #dfe5d9; }
.ps-submit:disabled { opacity:.5; cursor:default; }
.ps-dialog [hidden] { display:none!important; }
:is(.ps-dialog,.ps-actions) :is(button,a,input):focus-visible { outline:2px solid #50773d; outline-offset:4px; }
.ps-dialog[open] { animation:ps-enter 200ms cubic-bezier(.23,1,.32,1); }
@keyframes ps-enter { from { opacity:.6; transform:translateY(8px); } to { opacity:1; transform:none; } }
@media(prefers-reduced-motion:reduce) { .ps-dialog[open] { animation:none; } }
