.legacy-workspace{margin:28px 0 36px;border-top:1px solid var(--border);padding-top:24px}
.legacy-heading,.legacy-card-heading,.legacy-card-footer{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap}
.legacy-heading{margin-bottom:14px}.legacy-heading h2{font-size:21px;line-height:1.4}.legacy-heading .actions{flex-shrink:0}
.legacy-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.legacy-tabs .btn{white-space:normal;text-align:left}
.legacy-filters{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;margin:0 0 20px;padding:14px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}
.legacy-filters .form-group{margin:0;flex:1;min-width:145px}.legacy-filters .form-group:first-child{flex:2;min-width:200px}.legacy-filters>.btn{min-height:38px}
.legacy-eyebrow{font-size:12px;color:var(--text-muted);margin:0 0 7px}.legacy-badges{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.legacy-badges .badge{text-transform:capitalize}
.legacy-description{margin:12px 0;color:var(--text-muted);white-space:pre-wrap;overflow-wrap:anywhere}.legacy-help{color:var(--text-muted);font-size:13px;line-height:1.6;margin:10px 0 14px}
.legacy-card-heading h3,.legacy-heading h2,.legacy-heading h3{overflow-wrap:anywhere}.legacy-card-footer{margin-top:16px;align-items:center}.legacy-card-footer small{color:var(--text-muted);font-size:12px}
.legacy-detail-actions{margin:16px 0 24px}.legacy-detail .actions{display:flex;flex-wrap:wrap;gap:8px}.legacy-subsection{border-top:1px solid var(--border);padding-top:20px;margin-top:22px}.legacy-subsection>h3{margin-bottom:12px}
.legacy-metadata{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;margin:18px 0}.legacy-metadata dt{font-size:12px;color:var(--text-muted);margin-bottom:4px}.legacy-metadata dd{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}
.legacy-introduction{white-space:pre-wrap;border-left:3px solid var(--primary);padding:8px 16px;margin:20px 0;line-height:1.7}
.legacy-markdown{line-height:1.7;overflow-wrap:anywhere;margin:20px 0}.legacy-markdown h1,.legacy-markdown h2,.legacy-markdown h3,.legacy-markdown h4{margin:20px 0 10px}.legacy-markdown p{margin:12px 0}.legacy-markdown ul,.legacy-markdown ol{padding-left:24px;margin:12px 0}.legacy-markdown blockquote{border-left:3px solid var(--border);padding-left:16px;color:var(--text-muted);margin:14px 0}.legacy-markdown pre,.legacy-history-entry pre{white-space:pre-wrap;background:var(--bg);padding:14px;border-radius:var(--radius);font-size:13px;overflow:auto}.legacy-markdown code{background:var(--bg);padding:2px 4px;border-radius:3px}.legacy-markdown hr{border:0;border-top:1px solid var(--border);margin:18px 0}
.legacy-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.legacy-editor-preview{padding:16px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}
.legacy-fieldset{border:1px solid var(--border);border-radius:var(--radius);padding:16px;margin:20px 0}.legacy-fieldset legend{padding:0 8px;font-size:14px}.legacy-check{display:flex;gap:10px;align-items:flex-start;line-height:1.5;margin:10px 0;font-size:14px;cursor:pointer}.legacy-check input{width:17px;height:17px;flex:0 0 17px;margin-top:2px;accent-color:var(--primary)}.legacy-linked-options{max-height:220px;overflow:auto;padding-right:10px}
.legacy-recipients,.legacy-history{list-style:none;padding:0}.legacy-recipients li,.legacy-history li{padding:10px 0;border-bottom:1px solid var(--border)}.legacy-recipients small,.legacy-history small{display:block;color:var(--text-muted);font-size:12px;margin-top:5px}.legacy-recipients .badge{margin-left:8px}.legacy-subsection summary{cursor:pointer;line-height:1.6;font-weight:600}.legacy-subsection p{margin:12px 0}.legacy-subsection>ul:not(.legacy-recipients):not(.legacy-history){padding-left:24px}
.legacy-history-entry{padding:14px 0;border-bottom:1px solid var(--border)}.legacy-history-entry h4{margin:10px 0}.legacy-history-entry summary{font-size:13px}.legacy-timeline{margin-left:8px;padding-left:24px;border-left:2px solid var(--border)}.legacy-timeline-item{position:relative}.legacy-timeline-item:before{content:'';position:absolute;left:-32px;top:26px;width:12px;height:12px;border-radius:50%;background:var(--primary);border:2px solid var(--bg)}.legacy-timeline-date{color:var(--primary);font-size:13px;margin-bottom:12px;font-weight:600}
.legacy-checklist{padding:20px 0}.legacy-checklist h3{margin-bottom:12px}.legacy-checklist ol{padding-left:28px}.legacy-checklist li{padding:8px 0}.legacy-checklist label{display:flex;gap:12px;align-items:flex-start;cursor:pointer;line-height:1.6}.legacy-checklist input{width:18px;height:18px;flex:0 0 18px;margin-top:3px;accent-color:var(--primary)}
.legacy-beneficiary-panel{border-top:1px solid var(--border);padding-top:16px;margin-top:16px}.legacy-beneficiary-panel>summary{cursor:pointer;font-size:14px;font-weight:600}.legacy-recipient-actions{margin:14px 0}.legacy-recipient-row{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--border)}.legacy-recipient-row small{display:block;color:var(--text-muted);font-size:12px;line-height:1.6;margin-top:3px}
.legacy-existing-wishes>summary{cursor:pointer;margin-bottom:16px;font-size:18px;font-weight:600}.legacy-existing-wishes{margin-top:20px}.legacy-detail .doc-preview-body video,.doc-preview-body video{width:100%;max-height:60vh}.doc-preview-body audio{width:100%;margin:24px 0}.doc-preview-body:has(audio){height:auto;min-height:180px}
@media(max-width:700px){.legacy-form-grid{grid-template-columns:1fr}.legacy-heading{align-items:stretch}.legacy-heading .actions{width:100%}.legacy-heading .actions .btn{flex:1}.legacy-filters .form-group,.legacy-filters .form-group:first-child{min-width:100%;width:100%}.legacy-filters>.btn{width:100%;justify-content:center}.legacy-tabs .btn{flex:1 1 calc(50% - 8px);justify-content:center}.legacy-timeline{margin-left:0;padding-left:16px}.legacy-timeline-item:before{left:-24px}.legacy-detail-actions .btn{flex:1 1 40%}.legacy-recipient-row .legacy-badges{width:100%}}

.legacy-recipient-selection,.legacy-recipient-results{list-style:none;padding:0;margin:12px 0}.legacy-recipient-selection{display:flex;gap:10px;flex-wrap:wrap}.legacy-recipient-selection[hidden],.legacy-recipient-results[hidden]{display:none}.legacy-recipient-chip{display:flex;align-items:center;justify-content:space-between;gap:10px;max-width:100%;min-width:0;padding:8px 8px 8px 12px;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg)}.legacy-recipient-chip>span{min-width:0}.legacy-recipient-name{font-weight:600;overflow-wrap:anywhere}.legacy-recipient-kind{display:inline-block;font-size:11px;padding:2px 7px;margin-left:8px;border:1px solid var(--border);border-radius:10px;color:var(--text-muted)}.legacy-recipient-chip small,.legacy-recipient-result small{display:block;color:var(--text-muted);font-size:12px;line-height:1.5;overflow-wrap:anywhere}.legacy-recipient-chip .btn{min-height:44px;min-width:44px;padding:6px;font-size:22px;flex-shrink:0}.legacy-recipient-results{border:1px solid var(--border);border-radius:var(--radius);max-height:300px;overflow:auto}.legacy-recipient-results li+li{border-top:1px solid var(--border)}.legacy-recipient-result{display:block;width:100%;min-height:44px;padding:12px;background:var(--surface);border:0;color:var(--text);font:inherit;text-align:left;cursor:pointer;white-space:normal;overflow-wrap:anywhere}.legacy-recipient-result:hover{background:var(--bg)}.legacy-recipient-result:focus-visible,.legacy-recipient-chip button:focus-visible{outline:2px solid var(--primary);outline-offset:-3px}
@media(max-width:700px){.legacy-recipient-chip{width:100%}.legacy-fieldset{min-width:0}}
