/* nnaedou — Lot 7 Patrimoine partagé familial */
.heritage-family-workspace{margin:20px 0 10px;padding:20px;border:1px solid rgba(94,70,46,.16);border-radius:24px;background:rgba(255,250,241,.84)}
.heritage-workspace-head{display:flex;gap:18px;align-items:flex-start;justify-content:space-between;margin-bottom:16px}
.heritage-workspace-head h2{margin:4px 0 6px;font-size:clamp(1.45rem,4vw,2rem)}
.heritage-workspace-head p{margin:0;max-width:650px}
.heritage-share-invitations,.heritage-shared-workspace{display:grid;gap:12px}
.heritage-share-invite{display:flex;gap:14px;justify-content:space-between;align-items:center;padding:14px 16px;border-radius:18px;background:#fff;border:1px solid rgba(94,70,46,.12)}
.heritage-share-invite div:first-child{min-width:0}
.heritage-share-invite strong,.heritage-share-invite small{display:block}
.heritage-share-invite small{margin-top:3px;opacity:.7}
.heritage-share-invite p{margin:7px 0 0;font-size:.9rem}
.heritage-invite-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.heritage-workspace-empty{display:flex;flex-direction:column;gap:4px;padding:14px 0;color:inherit;opacity:.78}
.heritage-shared-card{align-items:center}
.heritage-shared-card .heritage-category-copy p{margin:6px 0 8px;font-size:.9rem;line-height:1.45}
.heritage-contribution-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.heritage-visibility-badge{display:inline-flex;align-items:center;padding:4px 9px;border-radius:999px;background:rgba(23,63,53,.08);color:#173f35;font-size:.74rem;font-weight:700}
.heritage-share-fields{margin:14px 0;padding:14px;border-radius:18px;background:rgba(23,63,53,.05)}
.heritage-member-picker{display:grid;gap:8px;margin-top:10px}
.heritage-member-choice{display:flex!important;align-items:center;gap:10px;padding:10px 12px!important;border-radius:14px;background:#fff;border:1px solid rgba(94,70,46,.12);cursor:pointer}
.heritage-member-choice input{width:19px;height:19px;margin:0}
.heritage-member-choice span{display:flex;flex:1;justify-content:space-between;gap:8px;align-items:center}
.heritage-member-choice small{opacity:.68}
.heritage-current-access{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}
.heritage-current-access .eyebrow{width:100%}
.heritage-access-chip{display:inline-flex;padding:5px 9px;border-radius:999px;background:#f3eadc;font-size:.75rem}
.heritage-access-chip.status-accepted{background:#e5efe9;color:#173f35}
.heritage-access-chip.status-revoked{opacity:.55;text-decoration:line-through}
.heritage-view-body{padding:14px 0;font-size:1rem;line-height:1.65;white-space:pre-wrap}
.heritage-view-notes{display:grid;gap:10px;margin:16px 0}
.heritage-note{padding:13px 14px;border-radius:16px;background:#f8f2e9}
.heritage-note strong,.heritage-note small{display:block}
.heritage-note small{margin:2px 0 7px;opacity:.65}
.heritage-note p{margin:0;white-space:pre-wrap}
.heritage-note-form{display:grid;gap:10px;padding-top:14px;border-top:1px solid rgba(94,70,46,.14)}
.heritage-share-actions{align-items:center}
.heritage-share-actions #heritage-archive{margin-right:auto}
@media(max-width:760px){
  .heritage-family-workspace{margin:16px -2px 6px;padding:16px;border-radius:20px}
  .heritage-workspace-head{display:block}
  .heritage-workspace-head .private-tag{display:inline-flex;margin-top:10px}
  .heritage-share-invite{display:block;padding:13px 14px}
  .heritage-invite-actions{justify-content:flex-start;margin-top:12px}
  .heritage-shared-card{grid-template-columns:auto 1fr!important}
  .heritage-shared-card .heritage-contribution-actions{grid-column:1/-1;justify-content:flex-start;width:100%;padding-top:2px}
  .heritage-member-choice span{align-items:flex-start;flex-direction:column;gap:2px}
  .heritage-share-dialog .modal-content,.heritage-view-dialog .modal-content{max-height:92dvh;overflow:auto}
  .heritage-share-actions{display:grid!important;grid-template-columns:1fr 1fr}
  .heritage-share-actions #heritage-archive{grid-column:1/-1;margin:0;justify-self:start}
  .heritage-share-actions [type="submit"]{grid-column:1/-1}
}
