/* v18: deliberate draft actions, quiet hints, and stable step-dialog geometry. */
.field-optional{font-size:10px;font-weight:400;color:var(--muted);margin-left:6px;white-space:nowrap;letter-spacing:0;text-transform:none}
.cd-document-draft{margin-top:18px;padding:16px;background:#fff;border:1px dashed #b8b2d8;border-radius:12px}
.cd-draft-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:12px}
.cd-draft-heading>span{font-size:10px;color:var(--muted);font-weight:400}
.cd-document-draft>p{margin:8px 0 16px;font-size:11px;color:var(--muted);line-height:1.5}
.cd-document-draft .cd-add-type.cd-metadata{margin:0;align-items:start}
.cd-document-draft .cd-add-document{justify-self:end;grid-column:1/-1;min-height:38px;padding:9px 14px;white-space:normal;line-height:1.4;gap:6px}
.cd-document-draft .cd-file{justify-self:end;grid-column:1/-1;margin-top:0}
.cd-document-draft .cd-binding{font-size:10px;color:var(--muted)}
.cd-document-draft .field{min-width:0}
.cd-planned-row:last-child{border-bottom:0}
.cd-builder .cd-error:not(:empty),.cd-step .cd-error:not(:empty){margin-top:12px;padding:12px 14px 12px 39px;border:1px solid #f2c3c1;background:#fff7f6;border-radius:10px;position:relative;line-height:1.5}
.block-fields>.flow-hint,.block-fields>.notice,.builder-operation-section>.notice,.builder-field-grid>.flow-hint,.step-section>.notice{margin-top:16px;margin-bottom:16px}
.flow-hint.flow-suggestion{margin:0 0 22px;padding:12px 16px 12px 42px;position:relative;line-height:1.55}
.builder-operation-section>.notice,.step-section>.notice,.sx-wizard-body>.notice,.ri-index-warning,.sx-status-error{position:relative;padding-left:42px;line-height:1.55}
.flow-hint.flow-suggestion:before,.builder-operation-section>.notice:before,.step-section>.notice:before,.sx-wizard-body>.notice:before,.ri-index-warning:before,.sx-status-error:before,.cd-error:not(:empty):before{content:'!';position:absolute;left:14px;top:14px;width:17px;height:17px;border:1.5px solid currentColor;border-radius:50%;font-size:11px;font-weight:700;line-height:15px;text-align:center}
.ri-step-errors{margin:0 0 22px!important;padding:14px 16px 14px 42px!important;position:relative;line-height:1.55}
.ri-step-errors:before{content:'!';position:absolute;left:15px;top:16px;width:17px;height:17px;border:1.5px solid currentColor;border-radius:50%;font-size:11px;font-weight:700;line-height:15px;text-align:center}
.ri-step-errors>ul{padding-left:14px;margin-bottom:0}.ri-step-errors li+li{margin-top:10px}
.ri-summary>summary{position:relative;padding-left:26px}.ri-summary>summary:before{content:'!';position:absolute;left:0;top:1px;width:16px;height:16px;line-height:14px;font-size:10px;border:1.5px solid currentColor;border-radius:50%;text-align:center}
.sx-wizard .sx-wizard-body{min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;flex:1 1 auto}
.sx-modal.modal{display:flex;flex-direction:column;max-height:calc(100dvh - 40px);overflow:hidden}
.sx-wizard .step-form-grid,.sx-step-editor .step-form-grid{align-items:start;grid-template-columns:repeat(2,minmax(0,1fr))}
.sx-wizard .field,.sx-step-editor .field{min-width:0;display:block}
.sx-wizard .field>span,.sx-wizard .field>label,.sx-step-editor .field>label{display:block;min-height:16px;margin-bottom:8px;line-height:1.4}
.sx-wizard .field>.input,.sx-wizard .field>.select,.sx-step-editor .field>.input,.sx-step-editor .field>.select{width:100%;height:38px;min-height:38px;box-sizing:border-box}
.sx-account-currencies{margin-bottom:22px}.sx-account-pair{padding-top:20px;border-top:1px solid var(--line2);gap:16px}
.sx-account-select{min-width:0}.sx-account-select>.sx-text-button{display:inline-flex;margin-top:8px;min-height:28px;justify-content:flex-start;text-align:left}
.sx-wizard .modal-foot{gap:12px;min-height:66px;align-items:center;background:#fff;border-top:1px solid var(--line2);z-index:1}
.sx-wizard .modal-foot>.primary{margin-left:auto}
.sx-wizard .sx-inline-editor{padding:18px}.sx-inline-editor .sx-party-basics{display:grid;grid-template-columns:1fr 1fr;gap:16px}.sx-inline-editor .sx-party-basics>.flow-wide{grid-column:1/-1}
.sx-inline-editor .actions{justify-content:flex-end;padding-top:12px}.sx-inline-editor .rq-ps-choice{margin:0;background:transparent;border:0;padding:0}
.sx-error:not(:empty){position:relative;padding-left:37px}.sx-error:not(:empty):before{content:'!';position:absolute;left:12px;top:12px;border:1.5px solid currentColor;border-radius:50%;width:15px;height:15px;line-height:13px;text-align:center;font-size:10px;font-weight:700}
@media(max-width:700px){.cd-draft-heading{align-items:flex-start}.cd-document-draft{padding:14px}.cd-document-draft .cd-add-document{width:100%}}
@media(max-width:560px){.sx-wizard .step-form-grid,.sx-step-editor .step-form-grid,.sx-inline-editor .sx-party-basics{grid-template-columns:1fr}.sx-modal.modal{max-height:calc(100dvh - 16px)}.sx-wizard .modal-foot{min-height:62px}.field-optional{font-size:9px}}

.operation-purpose{font-size:11px;line-height:1.5;color:var(--muted);margin:0 0 16px;grid-column:1/-1}

/* Numbered, independent disclosures inside a financial operation. */
.builder .step-block .block-fields{gap:12px}
.builder details.builder-operation-section{border:1px solid var(--line);border-radius:12px;padding:0;background:#fff;min-width:0;overflow:visible}
.builder-section-heading{display:flex;align-items:center;gap:12px;min-height:70px;padding:14px 16px;list-style:none;cursor:pointer;border-radius:12px;text-align:left}
.builder-section-heading::-webkit-details-marker{display:none}
.builder-section-heading:hover{background:#faf9ff}
.builder-section-heading:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
.builder-section-number{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:8px;background:#f0edff;color:var(--primary);font-size:12px;font-variant-numeric:tabular-nums}
.builder-section-copy{display:grid;gap:5px;min-width:0;flex:1}
.builder-section-title{font-size:12px;line-height:1.4;font-weight:700;color:var(--ink)}
.builder-section-preview{font-size:11px;line-height:1.45;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums}
.builder-section-chevron{width:18px;height:18px;flex:none;fill:none;stroke:var(--primary);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.builder-operation-section[open]>.builder-section-heading .builder-section-chevron{transform:rotate(180deg)}
.builder-operation-section[open]>.builder-section-heading{border-radius:12px 12px 0 0}
.builder-section-body{border-top:1px solid var(--line2);padding:18px 16px;min-width:0}
.builder-section-body>.cd-builder{border:0;background:transparent;border-radius:0;padding:0;margin:0}
.builder-section-body>.notice{position:relative;margin:16px 0;padding-left:42px;line-height:1.55}
.builder-section-body>.notice:before{content:'!';position:absolute;left:14px;top:14px;width:17px;height:17px;border:1.5px solid currentColor;border-radius:50%;font-size:11px;font-weight:700;line-height:15px;text-align:center}
.builder-section-body>.notice:last-child{margin-bottom:0}
.builder-section-body .field{min-width:0}
.builder-section-body .builder-field-grid,.builder-section-body .commission-grid{align-items:start}
@media(max-width:700px){.builder-section-heading{padding:13px 12px;gap:9px}.builder-section-body{padding:16px 12px}.builder-section-preview{white-space:normal;overflow-wrap:anywhere}.builder-section-body .builder-parties,.builder-section-body .builder-field-grid,.builder-section-body .commission-grid{grid-template-columns:1fr}.builder-section-body .builder-party-arrow{margin-top:0;height:18px;transform:rotate(90deg)}}
