/* Demo-only surfaces. They never hide or replace real signing controls. */
.cd-launch{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #d7c8d5;border-radius:8px;padding:16px;background:linear-gradient(115deg,#eee6ee,#faf6f9);margin:0 0 24px}.cd-launch h2{margin:0;font-size:18px}.cd-launch p{font-size:13px;line-height:1.75;color:#776573;margin:0;max-width:620px}.cd-launch .btn{flex-shrink:0}.cd-demo-badge{display:inline-block;color:#715368;background:#ebe1e9;border:1px solid #d6c4d2;border-radius:5px;padding:2px 7px;font:11px/1.5 ui-monospace,monospace;letter-spacing:.02em}.cd-dialog{box-sizing:border-box;width:min(940px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #dfd3dd;border-radius:14px;color:#433440;background:#fffdfd;box-shadow:0 20px 90px #281b3a33;overflow:auto;overscroll-behavior:contain}.cd-dialog *{box-sizing:border-box}.cd-dialog::backdrop{background:#281c2d70;backdrop-filter:blur(3px)}body:has(.cd-dialog[open]){overflow:hidden}.cd-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:22px 28px 18px;background:#f9f4f8;border-bottom:1px solid #e5dbe2}.cd-head h2{font-size:26px;line-height:1.3;margin:8px 0 0}.cd-head>.icon-btn{min-width:44px;min-height:44px}.cd-progress{display:grid;grid-template-columns:1fr auto;gap:10px 16px;padding:14px 28px;background:#fffdfd;color:#827380;font-size:12px;border-bottom:1px solid #e5dbe2}.cd-progress progress{grid-column:1/-1;width:100%;height:5px;accent-color:#715368;border:0;border-radius:3px;overflow:hidden}.cd-progress progress::-webkit-progress-bar{background:#eee5ec}.cd-progress progress::-webkit-progress-value{background:#80647b}.cd-body{padding:24px 28px 30px}.cd-sample,.cd-send,.cd-signature-box{background:#faf6f9;border:1px solid #e3d8e0;border-radius:8px;padding:23px;margin:20px 0}.cd-sample h3,.cd-send h3,.cd-signature-box h3{font-size:20px;margin:12px 0 18px}.cd-signature-box>p,.cd-sample>p{font-size:13px;line-height:1.8;color:#827380}.cd-summary{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:20px 0}.cd-summary dt{color:#827380;font-size:11px;margin-bottom:5px}.cd-summary dd{margin:0;font-size:15px;overflow-wrap:anywhere}.cd-products>div{display:flex;gap:15px;justify-content:space-between;padding:12px 0;border-top:1px solid #e5dbe2;font-size:13px}.cd-products strong{white-space:nowrap;font-weight:500}.cd-mode{border:0;padding:0;margin:25px 0 0;display:grid;gap:10px}.cd-mode legend{font-size:15px;margin-bottom:13px}.cd-mode label,.cd-template{display:flex;align-items:start;gap:12px;padding:17px;border:1px solid #d9cbd5;border-radius:8px;background:white;cursor:pointer;margin:0!important}.cd-mode label:has(input:checked),.cd-template:has(input:checked){background:#f3eaf1;border-color:#977b8f}.cd-mode input,.cd-template input{width:19px!important;min-width:19px;height:19px;min-height:19px!important;margin:2px 0 0!important;accent-color:#715368}.cd-mode strong,.cd-template strong{font-size:14px;font-weight:500}.cd-mode small,.cd-template small{display:block;font-size:12px;color:#827380;margin-top:6px;line-height:1.7}.cd-template-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.cd-dialog label{font-size:13px}.cd-dialog input,.cd-dialog textarea{font-size:16px;max-width:100%}.cd-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.cd-edit-items>div{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:16px}.cd-edit-total{display:flex;justify-content:space-between;gap:20px;background:#f6eff4;padding:18px;margin:14px 0 25px;border-radius:6px}.cd-edit-total strong{white-space:nowrap}.cd-note{font-size:12px;color:#827380;line-height:1.8}.cd-dialog textarea{line-height:1.8;resize:vertical}.cd-footer{position:sticky;bottom:0;display:flex;justify-content:space-between;gap:16px;align-items:center;padding:18px 28px;border-top:1px solid #dfd3dd;background:#fffdfdf5;backdrop-filter:blur(8px);z-index:3}.cd-footer>div{display:flex;align-items:center;gap:12px}.cd-footer .btn{min-height:46px;font-size:13px}.cd-text-button{background:transparent!important;color:#827380!important;border-color:transparent!important;padding-inline:0!important}.cd-dialog .btn:focus-visible,.cd-dialog .icon-btn:focus-visible,.cd-dialog input:focus-visible,.cd-dialog textarea:focus-visible,.cd-dialog summary:focus-visible{outline:3px solid #b39aad;outline-offset:3px}.cd-head h2:focus{outline:0}.cd-error{padding:12px 15px;background:#fff1f1;border:1px solid #e8c4c4;border-radius:5px;color:#9d4747;margin:0 0 20px;font-size:13px;line-height:1.7}.cd-error[hidden]{display:none}.cd-saved-signature{max-width:320px;padding:5px 0}.cd-consent{display:flex;align-items:start;gap:12px;line-height:1.8;margin:15px 0!important}.cd-consent input{width:19px!important;min-width:19px;height:19px;min-height:19px!important;margin:3px 0 0!important;accent-color:#715368}.cd-status-card{display:grid;gap:12px;padding:22px;border:1px solid #dfd3dd;border-radius:8px;background:#f8f4f7;margin:0 0 25px}.cd-status-card>strong{font-size:20px;font-weight:500}.cd-status-card p{margin:0;font-size:13px;line-height:1.8;color:#827380}.cd-status{justify-self:start;border-radius:20px;padding:7px 12px;font-size:12px;background:#e9f1e7;color:#486b47}.cd-status.waiting{background:#fbefd6;color:#80652c}.cd-email{background:#fff;border:1px solid #dbd3d8;border-radius:12px;padding:28px;box-shadow:0 12px 35px #4c314b08;max-width:650px;margin:auto}.cd-email-top{display:flex;align-items:center;gap:17px;border-bottom:1px solid #e5dbe2;padding-bottom:20px;margin-bottom:20px}.cd-email-top>span{font-size:35px;color:#997b8f}.cd-email h3{font-size:23px;margin:10px 0 0}.cd-email dl{margin:0 0 25px;font-size:12px}.cd-email dl>div{display:grid;grid-template-columns:40px 1fr;gap:10px;margin:8px 0}.cd-email dt{color:#827380}.cd-email dd{margin:0;overflow-wrap:anywhere}.cd-email>p{font-size:14px;line-height:1.8;margin-bottom:18px}.cd-email>.cd-note{font-size:12px;margin:20px 0 0}.cd-document-details{border:1px solid #dfd3dd;border-radius:6px;overflow:hidden;margin:20px 0}.cd-document-details>summary{padding:17px;cursor:pointer;background:#f7eff5;font-size:14px;line-height:1.7}.cd-document-details .cs-document{border:0}.cd-shortcut{border-top:1px solid #e5dbe2;padding-top:20px;margin-top:22px}.cd-shortcut .btn{width:100%;white-space:normal;line-height:1.7}
@media(max-width:680px){.cd-launch{align-items:stretch;flex-direction:column;padding:20px;gap:18px}.cd-launch .btn{width:100%}.cd-dialog{width:calc(100% - 16px);max-height:calc(100dvh - 16px);border-radius:10px}.cd-head,.cd-progress{padding-inline:18px}.cd-head h2{font-size:22px}.cd-body{padding:20px 18px 24px}.cd-template-grid,.cd-form-grid{grid-template-columns:1fr}.cd-footer{padding:14px 18px;flex-direction:column-reverse;align-items:stretch;gap:10px}.cd-footer>div{justify-content:space-between}.cd-footer>.btn{width:100%;white-space:normal;line-height:1.5}.cd-footer .btn{min-height:44px}.cd-sample,.cd-send,.cd-signature-box,.cd-email{padding:18px}.cd-progress{font-size:11px;gap:10px}.cd-summary{gap:18px 12px}.cd-summary dd{font-size:14px}.cd-edit-items>div{grid-template-columns:minmax(0,1fr) 115px;gap:10px}.cd-edit-total{font-size:14px}.cd-email h3{font-size:21px}.cd-dialog .cs-document{padding:24px 18px}}
@media(max-width:370px){.cd-summary{grid-template-columns:1fr}.cd-edit-items>div{grid-template-columns:1fr}.cd-progress{grid-template-columns:1fr}.cd-progress progress{grid-column:1}.cd-demo-badge{font-size:9px;letter-spacing:.04em}}
@media print{body:has(.cd-dialog[open])>*:not(.cd-dialog){display:none!important}.cd-dialog[open]{position:static;width:100%;max-height:none;border:0;overflow:visible}.cd-head,.cd-progress,.cd-footer{display:none}.cd-dialog .cs-document:before{content:'Testkontrakt';display:block;font-weight:bold;color:#715368}.cd-dialog::backdrop{display:none}}
/* The contract is prepared from the assignment; editing stays optional. */
.cd-body>.cd-sample:first-child{margin-top:0}.cd-products small{display:block;color:#827380;font-size:11px;margin-top:4px}.cd-products .cd-price-total{font-size:17px;padding-top:17px;font-weight:500}.cd-standard{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;line-height:1.7;color:#827380;margin:15px 0 20px}.cd-standard strong{font-weight:500;color:#433440;margin-right:8px}.cd-edit-details{border:1px solid #dfd3dd;border-radius:6px;margin:20px 0;overflow:hidden}.cd-edit-details>summary{padding:16px 18px;background:#faf6f9;cursor:pointer;font-size:14px;line-height:1.7}.cd-edit-details form{padding:20px}.cd-edit-items>div{grid-template-columns:minmax(0,1fr) 80px 140px;gap:12px}.cd-saved-locations{display:grid;grid-template-columns:1fr 1fr;gap:16px}.cd-saved-locations>section{border:1px solid #dfd3dd;border-radius:8px;padding:20px;background:#faf6f9}.cd-saved-locations h3{font-size:18px;margin:0 0 10px}.cd-saved-locations p{font-size:13px;color:#827380;line-height:1.7;margin:0 0 16px}.cd-saved-locations .btn{width:100%;white-space:normal}.cd-stored-row{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:20px 0 0;border-top:1px solid #dfd3dd}.cd-stored-row>div{display:grid;gap:10px;min-width:0}.cd-stored-row strong{font-size:16px;font-weight:500;overflow-wrap:anywhere}.cd-stored-row small{font-size:12px;line-height:1.7;color:#827380}.cd-stored-row .btn{flex-shrink:0}.cd-body>.btn+.cs-document{margin-top:20px}
@media(max-width:580px){.cd-edit-details form{padding:17px}.cd-edit-items>div{grid-template-columns:1fr 1fr;gap:0 12px;padding:10px 0;border-bottom:1px solid #e5dbe2;margin-bottom:12px}.cd-edit-items>div>label:first-child{grid-column:1/-1}.cd-saved-locations{grid-template-columns:1fr;gap:12px}.cd-saved-locations>section{padding:17px}.cd-stored-row{align-items:stretch;flex-direction:column}.cd-standard{display:grid;gap:3px}.cd-products .cd-price-total{font-size:16px}}
.cd-product-actions{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin-top:17px}.cd-product-actions .btn{min-height:44px;font-size:13px}.cd-add-product{border:1px solid #cbb6c6;background:#f7eff5;padding:20px;border-radius:8px;margin:20px 0}.cd-add-product h3{font-size:18px;margin:0 0 18px}.cd-new-product-fields{display:grid;grid-template-columns:minmax(0,1fr) 80px 150px;gap:12px}.cd-edit-items>div{grid-template-columns:minmax(0,1fr) 70px 130px 30px;align-items:center}.cd-remove-product{align-self:center;background:transparent;border:0;color:#827380;font-size:25px;cursor:pointer;min-height:44px;padding:0}.cd-remove-product:hover{color:#714d64}.cd-add-product .cd-product-actions{justify-content:flex-end}
@media(max-width:580px){.cd-new-product-fields{grid-template-columns:1fr 1fr}.cd-new-product-fields>label:first-child{grid-column:1/-1}.cd-edit-items>div{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 30px}.cd-edit-items>div>label:first-child{grid-column:1/-1}.cd-edit-items .cd-remove-product{grid-column:3}.cd-add-product{padding:17px}.cd-product-actions{gap:10px}.cd-product-actions>.btn:first-child{flex-grow:1}}
.cd-product-name{min-width:0}.cd-product-name>label{margin-bottom:0}.cd-product-results{border:1px solid #d8cbd4;border-radius:0 0 6px 6px;background:#fffdfd;max-height:230px;overflow:auto;overscroll-behavior:contain}.cd-product-results[hidden]{display:none}.cd-product-match{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;text-align:left;background:transparent;border:0;border-bottom:1px solid #eee6ec;color:#433440;padding:12px;min-height:44px;font:inherit;font-size:13px;cursor:pointer}.cd-product-match:last-child{border-bottom:0}.cd-product-match:hover,.cd-product-match:focus-visible{background:#eee4ec}.cd-product-match span{overflow-wrap:anywhere}.cd-product-match strong{font-size:12px;font-weight:500;white-space:nowrap}.cd-product-empty{padding:12px;margin:0;font-size:12px;color:#827380;line-height:1.6}
@media(max-width:580px){.cd-new-product-fields>.cd-product-name{grid-column:1/-1}.cd-product-results{max-height:190px}}
/* Four authoring steps; only the current section contains its form. */
.cd-author-steps{border:1px solid #dfd3dd;border-radius:9px;overflow:hidden}.cd-author-step{border-top:1px solid #e7dfe5}.cd-author-step:first-child{border-top:0}.cd-step-heading{display:flex;align-items:center;gap:12px;width:100%;padding:15px 18px;background:#f8f4f7;border:0;text-align:left;color:#433440;cursor:pointer;min-height:58px}.cd-step-heading strong{font-size:14px;font-weight:500;line-height:1.5}.cd-step-heading:disabled{cursor:default;color:#a0939d;background:#fbf9fa}.cd-author-step.active>.cd-step-heading{background:#eee4ec}.cd-step-number{display:grid;place-items:center;border:1px solid #d8cbd4;border-radius:50%;width:25px;height:25px;flex-shrink:0;font-size:12px;background:#fffdfd}.cd-step-number.done{color:#567653;background:#edf3ec;border-color:#d2dfcf}.cd-author-body{padding:20px}.cd-template-choice{display:grid;gap:10px;padding:0;border:0;margin:0}.cd-template-choice legend{font-size:13px;margin-bottom:12px;color:#827380}.cd-template-choice label{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #dfd3dd;border-radius:6px;padding:14px;margin:0;cursor:pointer}.cd-template-choice label:has(input:checked){border-color:#9a7e92;background:#f6eff4}.cd-template-choice input{width:18px!important;min-width:18px;min-height:18px!important;height:18px;margin:0;accent-color:#715368}.cd-manual-choice{margin-top:15px}.cd-assignment-ref{margin:0 0 12px;font-size:12px;color:#827380}.cd-customer-details,.cd-copy-details{border:1px solid #dfd3dd;border-radius:6px;margin:16px 0 0;overflow:hidden}.cd-customer-details>summary,.cd-copy-details>summary{padding:14px 16px;background:#faf6f9;cursor:pointer;font-size:13px;line-height:1.7}.cd-customer-details form,.cd-copy-details form{padding:18px}.cd-author-body>.cd-summary{margin-top:0}.cd-author-body .cs-document{padding:28px}.cd-author-body .cd-standard{margin:16px 0 0}.cd-author-body .cd-edit-details{margin-bottom:0}.cd-author-body .cd-consent{margin-bottom:0!important}
@media(max-width:580px){.cd-author-body{padding:16px}.cd-step-heading{padding:13px 15px;min-height:54px}.cd-customer-details form,.cd-copy-details form{padding:15px}.cd-author-body .cs-document{padding:22px 15px}.cd-author-body .cd-product-actions{align-items:stretch}.cd-author-body .cd-product-actions .btn{white-space:normal}}
.cd-signing-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.cd-signing-choice{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid #d9cbd5;border-radius:8px;padding:22px;text-align:left;background:#fffdfd;color:#433440;font:inherit;cursor:pointer;min-height:112px}.cd-signing-choice strong{display:block;font-size:17px;font-weight:500;line-height:1.5}.cd-signing-choice small{display:block;font-size:13px;line-height:1.6;color:#827380;margin-top:6px}.cd-signing-choice>span:last-child{color:#715368;flex-shrink:0}.cd-signing-choice:hover{background:#f8f2f6;border-color:#9a7e92}.cd-signing-choice:focus-visible{outline:3px solid #b39aad;outline-offset:3px}.cd-manual-confirm>strong{font-size:16px;font-weight:500}.cd-manual-confirm p{font-size:14px;line-height:1.8;margin:12px 0 0;color:#827380}.cd-manual-confirm p strong{color:#433440}
@media(max-width:580px){.cd-signing-choices{grid-template-columns:1fr;gap:12px}.cd-signing-choice{padding:18px;min-height:100px}}

.cd-draft-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:20px;padding-top:14px;border-top:1px solid #e5dbe2}.cd-draft-actions .btn{min-height:44px;font-size:12px;padding:10px 12px;white-space:normal}.cd-draft-actions .cd-text-button{padding-inline:0}.cd-draft-actions>.btn:last-child{margin-left:auto}
@media(max-width:380px){.cd-draft-actions{justify-content:center}.cd-draft-actions>.btn:last-child{width:100%;margin-left:0}}
