@model CharacterWorkspaceOperation @{var r=Model.Record.Relationship;var destructive=Model.Action is "archive" or "event-remove";var linked=Model.Action.StartsWith("event-")&&Model.Event?.ProtectedSource==true;}

@(Model.Action=="archive"?"Remove relationship":Model.Action=="event-remove"?"Remove one relationship event":Model.Action=="definition"?"Edit relationship definition":"Edit one relationship event")

@r.CharacterAName @(r.IsReciprocal?"↔":"→") @r.CharacterBName · @r.RelationshipTypeName · @r.RelationshipCategoryName

@if(Model.Action=="archive"){

This removes the underlying relationship definition from active Family, Story and Timeline views. It archives one canonical record; it does not permanently delete it.

@Model.Record.EventCount dependent scene events will be retained, including their source/history. Restore the definition through Archived Items to make them active again.

@(r.IsReciprocal?"Both directions of this reciprocal flag belong to this one record and will be removed together.":"This is a directional record.")

@if(Model.Record.OtherPairRecords>0){

@Model.Record.OtherPairRecords separately recorded relationship(s) between these characters will remain. They are independent authored records; review them separately.

} }else if(Model.Action=="event-remove"){

This permanently removes only event #@Model.EventID at scene #@Model.Event?.Record.SceneID. The relationship definition and other events remain. Its derived state will be recalculated from the remaining records.

} @if(linked){

This event has manuscript evidence, review provenance or source dependencies. Direct modification/removal is blocked so that evidence is not orphaned. Use its source/review workflow.

Open source scene} else if(!destructive){

@(Model.Action=="definition"?"The pair, type, direction, book and narrative start/end remain unchanged. Use the full Relationships Editor for structural changes.":"This changes one recorded development at its original scene, not the definition or other events.")

@if(Model.Action!="definition"||r.IsInitialRelationship){} } @if(destructive&&!linked){}
@if(!linked){}Full Relationships Editor