@font-face{font-family:"Lama Custody";src:url("./lama-login-400-v0139.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Lama Custody";src:url("./lama-login-800-v0139.woff2") format("woff2");font-weight:800;font-display:swap}
.custody-signature-form{display:grid;gap:12px}
.custody-signature-form button{justify-self:start}
.custody-signature-form input[type=file]{max-width:100%;margin-block:6px}
.custody-signature-form .custody-check{display:flex;align-items:flex-start;gap:9px;color:inherit}
.custody-check input[type=checkbox]{inline-size:18px;block-size:18px;padding:0;min-height:0;flex:0 0 auto;margin-block-start:3px;accent-color:#10304b}
.custody-signature-image{display:block;max-width:min(100%,410px);max-height:158px;object-fit:contain;object-position:center;background:#fff;border:1px solid #d9e0e6;border-radius:12px;margin-block:5px 16px}
.custody-signature-image[hidden],.custody-error[hidden]{display:none}
.custody-error{color:#981d34}
.custody-badge{display:inline-block;border-radius:8px;background:#e9f1ed;color:#234e37;padding:.26em .6em;font-size:.86em;font-weight:700;margin:.3em .2em}
.custody-pending{background:#efe9db;color:#65471d}
.custody-history ul{list-style:none;padding:0;margin:0}
.custody-history li{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 0;border-block-start:1px solid #e3e2df}
.custody-history small{display:block;color:#465c70}
.custody-dialog{box-sizing:border-box;font-family:"Lama Custody","Lama Sans",Lama,Arial,sans-serif;color:#10304b;background:#fcfbf8;
 width:min(620px,calc(100% - 24px));max-height:calc(100dvh - 30px);padding:0;border:1px solid #ddd2c1;border-radius:18px;box-shadow:0 20px 60px #0d26384a;overflow:auto}
.custody-dialog::backdrop{background:#0b253a85}
.custody-dialog header{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f0e7d8;padding:14px 20px;position:sticky;inset-block-start:0;z-index:1}
.custody-dialog h2,.custody-dialog h3{color:inherit;margin:0}
.custody-dialog h2{font-size:1.22rem}
.custody-dialog h3{font-size:1rem}
.custody-dialog main{margin:0;padding:16px 20px 23px}
.custody-dialog :is(.primary,.secondary){font:inherit;cursor:pointer;min-height:42px;border-radius:9px;padding:8px 14px;font-weight:700}
.custody-dialog .primary{background:#10304b;color:#fff;border:1px solid #10304b}
.custody-dialog .secondary{background:#fcfbf8;color:#10304b;border:1px solid #beccda}
.custody-dialog .primary[disabled]{opacity:.65}
.custody-details{margin:0 0 17px}
.custody-details div{display:grid;grid-template-columns:minmax(110px,2fr) minmax(120px,3fr);gap:12px;border-block-end:1px solid #e2e6e9;padding:7px 0}
.custody-details dt{color:#465c70}
.custody-details dd{margin:0;overflow-wrap:anywhere;font-weight:600}
.custody-consent{background:#f0e7d8;border-radius:8px;padding:10px}
@media(max-width:440px){.custody-details div{display:block}.custody-details dd{margin-block-start:2px}.custody-dialog header,.custody-dialog main{padding-inline:14px}}
[data-signature-profile]{margin-block-start:16px}
.custody-prepare{display:grid;gap:10px}
.custody-prepare[hidden],.custody-clean-preview[hidden],[data-signature-loading][hidden]{display:none}
.custody-clean-preview{margin:0;min-height:84px;display:grid;place-items:center;border:1px solid #d9e0e6;border-radius:9px;overflow:hidden;
 background-color:#fff;background-image:conic-gradient(#e9edf0 25%,#fff 0 50%,#e9edf0 0 75%,#fff 0);background-size:16px 16px}
.custody-clean-preview img{margin:0;max-height:172px;border:0;border-radius:0;background:none;padding:10px;box-sizing:border-box}
.custody-original-preview{background:#fcfbf8}
