#view-relationships{max-width:1440px;color:#17243e}
#view-relationships *{box-sizing:border-box}
#view-relationships button{cursor:pointer;border:1px solid #d8e0e7;border-radius:12px;padding:11px 16px;background:#fff;color:#253652;font:inherit;font-weight:700;transition:.18s ease}
#view-relationships button:hover{border-color:#6d98a1;transform:translateY(-1px)}
#view-relationships button:focus-visible,#view-relationships input:focus-visible,#view-relationships select:focus-visible,#view-relationships textarea:focus-visible{outline:3px solid #8dd4d9;outline-offset:2px}
#view-relationships button.primary-button{border-color:#405f98;background:#405f98;color:#fff;box-shadow:0 10px 26px #405f9826}
#view-relationships button:disabled{opacity:.55;cursor:wait;transform:none}
#view-relationships [hidden]{display:none!important}

.rel-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:40px;padding:26px 0 34px}
.rel-hero .eyebrow{margin:0 0 14px;color:#5f8d96;font-size:13px;font-weight:900;letter-spacing:.16em}
.rel-hero h2{margin:0;font-size:clamp(32px,4vw,54px);line-height:1.14;letter-spacing:-.045em;color:#17243e}
.rel-hero>div>p:last-child{max-width:690px;margin:18px 0 0;color:#6b7889;font-size:17px;line-height:1.7}
.rel-new-main{display:grid;grid-template-columns:auto 1fr;text-align:left;column-gap:10px;min-width:220px;padding:16px 20px!important}
.rel-new-main>span{grid-row:1/3;font-size:30px;font-weight:400;align-self:center}.rel-new-main b{font-size:18px}.rel-new-main small{font-size:12px;font-weight:500;opacity:.76}
.rel-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:hidden;margin-bottom:24px;border:1px solid #dfe5e8;border-radius:18px;background:#fff;box-shadow:0 10px 35px #17243e0b}
.rel-overview article{display:flex;align-items:center;justify-content:space-between;padding:22px 28px;border-right:1px solid #e5eaed}.rel-overview article:last-child{border:0}
.rel-overview span{color:#718092;font-size:14px}.rel-overview strong{font-size:31px;color:#263e65}
.rel-tabs{display:flex;gap:5px;border-bottom:1px solid #dce3e7;margin-bottom:18px;overflow:auto}
.rel-tabs button{flex:0 0 auto;border:0!important;border-radius:9px 9px 0 0!important;padding:13px 18px!important;color:#718092!important;background:transparent!important;box-shadow:none!important}
.rel-tabs button.is-active{color:#17243e!important;box-shadow:inset 0 -3px #68aeb5!important}
.rel-toolbar{display:flex;gap:10px;align-items:center;margin-bottom:12px}
.rel-search{position:relative;flex:1}.rel-search span{position:absolute;left:16px;top:50%;transform:translateY(-52%);font-size:25px;color:#7a8998}
.rel-search input{width:100%;min-height:50px;padding:12px 18px 12px 48px;border:1px solid #d7e0e5;border-radius:13px;background:#fff;font:inherit;color:#17243e}
.rel-toolbar>button{min-height:50px}.rel-toolbar>button.is-active{border-color:#5f949b;background:#edf8f8;color:#315e64}
.rel-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:12px 0 18px;padding:22px;border:1px solid #dce5e8;border-radius:16px;background:#f8faf9}
.rel-filter-heading{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between}.rel-filter-heading button{padding:6px 10px!important;border:0!important;background:transparent!important;color:#557780!important}
.rel-filters label,.rel-fields label,.rel-entity-dialog label{display:flex;flex-direction:column;gap:8px;color:#44556c;font-size:14px;font-weight:700}
.rel-filters input,.rel-filters select,.rel-fields input,.rel-fields select,.rel-fields textarea,.rel-entity-dialog input,.rel-entity-dialog select{width:100%;min-width:0;padding:12px 13px;border:1px solid #ccd7df;border-radius:9px;background:#fff;color:#17243e;font:inherit;font-weight:400}
.rel-management-tools{margin:4px 0 12px;color:#728090;font-size:13px}.rel-management-tools summary{cursor:pointer;width:max-content}.rel-management-tools div{display:flex;gap:8px;margin-top:10px}
#rel-message{min-height:24px;margin:8px 0;color:#3f7178;font-size:14px;font-weight:700}
.rel-list-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:18px 0 6px}.rel-list-heading h3{margin:0;font-size:22px}.rel-list-heading p{margin:5px 0 0;color:#7a8796;font-size:14px}
.rel-timeline{position:relative}.rel-timeline:before{content:"";position:absolute;left:38px;top:24px;bottom:24px;width:1px;background:#dce5e8}
.rel-card{position:relative;display:grid;grid-template-columns:76px minmax(0,1fr) auto;gap:22px;align-items:start;margin:12px 0;padding:22px;border:1px solid #dce4e8;border-radius:16px;background:#fff;box-shadow:0 9px 30px #1c2a4309;overflow-wrap:anywhere}
.rel-card:hover{border-color:#bdd0d4;box-shadow:0 12px 34px #1c2a4311}
.rel-date-block{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:70px;border:1px solid #dbe5e8;border-radius:14px;background:#f7faf9;color:#547983}.rel-date-block small{font-size:12px}.rel-date-block strong{font-size:27px;color:#1d3458}
.rel-card-title{display:flex;flex-direction:column;gap:8px}.rel-card-title h3{margin:0;font-size:20px;line-height:1.35}.rel-chip{display:inline-flex;margin:0 6px 0 0;padding:4px 8px;border-radius:999px;background:#eaf6f5;color:#3e7176;font-size:11px;font-weight:800}.rel-chip.is-draft{background:#fff3d9;color:#8b6517}
.rel-meta{margin:0!important;color:#7b8795!important;font-size:13px}.rel-summary-text{margin:13px 0!important;color:#44546a!important;line-height:1.65!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.rel-card-bottom{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;margin-top:15px}.rel-people{display:flex;align-items:center;color:#6b7888;font-size:13px}.rel-mini-avatar{display:grid;place-items:center;width:27px;height:27px;margin-right:-7px;border:2px solid #fff;border-radius:50%;background:#2f5b78;color:#fff;font-size:11px;font-weight:800}.rel-people>span:last-child{margin-left:14px}
.rel-next-action{display:flex;gap:8px;align-items:center;padding:7px 10px;border-radius:8px;background:#f3f7f5;color:#526574;font-size:12px}.rel-next-action b{color:#3c7778}
.rel-detail-button{align-self:center;white-space:nowrap;border:0!important;background:transparent!important;color:#3d6872!important}.rel-detail-button span{margin-left:6px}
.rel-empty{display:flex;min-height:260px;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:36px;text-align:center;border:1px dashed #cad6dc;border-radius:16px;background:#fff;color:#758291}.rel-empty strong{color:#283b58;font-size:18px}.rel-empty .primary-button{margin-top:12px}.rel-empty-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#eaf6f5;color:#4b858b;font-size:22px}
.rel-entity-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.rel-entity-card{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:18px;border:1px solid #dce4e8;border-radius:14px;background:#fff}.rel-entity-card h4,.rel-entity-card p{margin:0}.rel-entity-card p{margin-top:4px;color:#718092}.rel-entity-card>div:last-child{display:flex;gap:6px}.rel-avatar{display:grid;place-items:center;width:42px;height:42px;flex:0 0 auto;border-radius:13px;background:#284367;color:#fff;font-weight:800}
.rel-editor{max-width:1080px;margin:0 auto;padding:4px 0 32px}.rel-editor-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:8px 0 16px}.rel-editor-head p{margin:10px 0 3px;color:#768493;font-size:12px}.rel-editor-head h3{margin:0;font-size:28px}.rel-back-link{border:0!important;padding:0!important;background:transparent!important;color:#4d7580!important}.rel-save-pill{display:flex;align-items:center;gap:7px;padding:8px 12px;border-radius:999px;background:#eef5f3;color:#4a726f;font-size:12px;font-weight:700}.rel-save-pill i{width:7px;height:7px;border-radius:50%;background:#65a298}
.rel-progress{height:5px;margin:0 0 13px;overflow:hidden;border-radius:999px;background:#e5eaec}.rel-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#4c6fa7,#68aeb5);transition:width .2s}
.rel-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0 0 18px}.rel-steps button{display:flex;gap:8px;align-items:center;justify-content:center;padding:10px!important;border-color:transparent!important;background:#f4f6f6!important;color:#778493!important;font-size:13px}.rel-steps button>span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#e1e6e8;font-size:10px}.rel-steps button[aria-current=step]{background:#223755!important;color:#fff!important}.rel-steps button[aria-current=step]>span{background:#75bac0}.rel-steps button.is-done:not([aria-current=step])>span{background:#dff2ee;color:#34776f}
.rel-step-card{padding:30px;border:1px solid #dde5e8;border-radius:19px;background:#fff;box-shadow:0 12px 40px #17243e0b}.rel-step-heading{display:flex;gap:16px;align-items:flex-start;padding-bottom:24px;border-bottom:1px solid #e7ecee}.rel-step-heading>span{display:grid;place-items:center;width:46px;height:46px;flex:0 0 auto;border-radius:13px;background:#203957;color:#89d2d5;font-weight:900}.rel-step-heading small{color:#62949a;font-weight:800}.rel-step-heading h3{margin:4px 0 6px;font-size:25px}.rel-step-heading p{margin:0;color:#73808e;line-height:1.6}
.rel-quick-types{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0 14px}.rel-quick-types button{padding:8px 12px!important;border-radius:999px!important;font-size:13px}.rel-quick-types button[aria-pressed=true]{border-color:#4c8790!important;background:#e8f6f5!important;color:#376d73!important}
.rel-format-picker{padding:22px 0 6px;border-bottom:1px solid #e7ecee}.rel-format-picker h4{margin:0;font-size:16px}.rel-format-picker .rel-quick-types{margin:14px 0 16px}.rel-format-picker .rel-quick-types button{padding:11px 15px!important;border-radius:11px!important}.rel-format-picker .rel-quick-types button[aria-pressed=true]{box-shadow:inset 0 0 0 1px #4c8790}
.rel-note-field{display:flex;flex-direction:column;gap:9px;margin:24px 0;color:#30445e;font-weight:800}.rel-note-field>span{font-size:17px}.rel-note-field>small{color:#768696;font-size:13px;font-weight:500}.rel-note-field textarea{width:100%;min-height:190px;padding:17px;border:1px solid #ccd7df;border-radius:12px;background:#fff;color:#17243e;font:inherit;font-size:15px;font-weight:400;line-height:1.7;resize:vertical}.rel-note-field textarea::placeholder{color:#9aa6b0}.rel-legacy{margin-top:18px;padding:14px 0;border-top:1px solid #e5eaec;color:#677b87}.rel-legacy summary{cursor:pointer;font-size:13px;font-weight:700}
.rel-subsection{margin-top:20px}.rel-subsection h4{margin:0 0 14px}.rel-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.rel-fields textarea{min-height:100px;resize:vertical}.rel-required{display:inline-block;margin-left:6px;color:#bf554d;font-size:10px}.rel-optional{margin-top:22px;border-top:1px solid #e5eaec;padding-top:18px}.rel-optional>summary{cursor:pointer;color:#526b7b;font-weight:800}.rel-optional>.rel-fields{margin-top:18px}
.rel-person-picker{display:flex;gap:12px;align-items:flex-start;margin:24px 0}.rel-person-picker>div{flex:1}.rel-person-picker label{display:block;margin-bottom:8px;font-weight:800}.rel-person-picker input{width:100%;padding:13px;border:1px solid #ccd7df;border-radius:10px;font:inherit}.rel-person-picker>button{margin-top:27px}.rel-person-result{display:flex;align-items:center;gap:10px;margin-top:7px;padding:8px!important;text-align:left}.rel-person-result span:last-child{display:flex;flex-direction:column}.rel-person-result small{color:#7c8895}.rel-selected-people{padding:16px;border-radius:14px;background:#f5f8f7}.rel-selected-people h4{margin:0 0 10px}.rel-selected-people h4 span{color:#5e8b91;font-size:13px}.rel-selected-people article{display:flex;gap:10px;align-items:center;padding:9px 0;border-top:1px solid #e2e8e7}.rel-selected-people article>div{display:flex;flex:1;flex-direction:column}.rel-selected-people small{color:#758292}.rel-selected-people article>button{border:0!important;background:transparent!important;font-size:20px}
.rel-group{margin-top:25px}.rel-group-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.rel-group-heading h3{margin:0;font-size:18px}.rel-group-heading h3 span{color:#5d9297;font-size:13px}.rel-group-heading p{margin:6px 0 0;color:#7a8794;font-size:13px}.rel-add-button{white-space:nowrap}.rel-group fieldset{min-width:0;margin:14px 0;padding:18px;border:1px solid #dce4e8;border-radius:12px}.rel-group legend{padding:0 8px;color:#4b6477;font-weight:800}.rel-remove{margin-top:12px!important;padding:7px 9px!important;color:#a34f49!important}.rel-inline-empty{display:flex;flex-direction:column;align-items:center;gap:5px;margin-top:13px;padding:22px;border:1px dashed #d1dce0;border-radius:12px;color:#7b8793;text-align:center}.rel-inline-empty strong{color:#475b70}.rel-tip,.rel-finish-check{display:flex;flex-direction:column;gap:5px;margin-top:22px;padding:15px 17px;border-radius:12px;background:#eef6f4;color:#60747d}.rel-tip strong,.rel-finish-check strong{color:#356b6a}.rel-finish-check span{margin-top:4px}
.rel-editor-actions{position:sticky;z-index:3;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding:14px 0;background:#f5f6f3ee;backdrop-filter:blur(9px)}.rel-flow-actions{display:flex;gap:8px}
.rel-detail{padding:26px;border:1px solid #dce4e8;border-radius:16px;background:#fff}.rel-detail p{white-space:pre-wrap;color:#536178;line-height:1.7}.rel-detail-block{padding:14px 0;border-bottom:1px solid #e2e6ea}.rel-detail pre{white-space:pre-wrap;overflow-wrap:anywhere}
.rel-entity-dialog{width:min(560px,92vw);max-height:86vh;overflow:auto;padding:28px;border:0;border-radius:18px}.rel-entity-dialog::backdrop{background:#18253b99}.rel-entity-dialog label{margin:13px 0}
#view-relationships.rel-is-editing>.rel-hero,#view-relationships.rel-is-editing>.rel-overview,#view-relationships.rel-is-editing>.rel-tabs,#view-relationships.rel-is-editing>.rel-toolbar,#view-relationships.rel-is-editing>.rel-filters,#view-relationships.rel-is-editing>.rel-management-tools{display:none}
@media(max-width:760px){
  .rel-hero{align-items:stretch;flex-direction:column;gap:22px;padding-top:8px}.rel-hero h2{font-size:35px}.rel-hero>div>p:last-child{font-size:15px}.rel-new-main{width:100%}
  .rel-overview article{padding:16px 12px;flex-direction:column;gap:7px;text-align:center}.rel-overview strong{font-size:25px}.rel-overview span{font-size:11px}
  .rel-tabs{margin-left:-4px;margin-right:-4px}.rel-tabs button{padding:12px!important;font-size:13px}
  .rel-toolbar{align-items:stretch;flex-wrap:wrap}.rel-search{flex-basis:100%}.rel-toolbar>button{flex:1}
  .rel-filters,.rel-fields{grid-template-columns:1fr}.rel-filters{padding:17px}.rel-management-tools div{flex-wrap:wrap}
  .rel-list-heading{align-items:flex-start}.rel-list-heading p{font-size:12px}
  .rel-timeline:before{display:none}.rel-card{grid-template-columns:54px minmax(0,1fr);gap:13px;padding:15px}.rel-date-block{min-height:55px}.rel-date-block strong{font-size:21px}.rel-card-title h3{font-size:17px}.rel-detail-button{grid-column:2;justify-self:end;padding:6px!important}.rel-card-bottom{align-items:flex-start;flex-direction:column}.rel-next-action{align-items:flex-start;flex-direction:column;gap:2px}
  .rel-entity-grid{grid-template-columns:1fr}.rel-entity-card{grid-template-columns:auto 1fr}.rel-entity-card>div:last-child{grid-column:1/-1}
  .rel-editor-head{align-items:flex-start;flex-direction:column}.rel-editor-head h3{font-size:24px}.rel-save-pill{align-self:flex-start}
  .rel-steps{grid-template-columns:repeat(5,42px);justify-content:space-between;gap:2px}.rel-steps button{padding:7px!important}.rel-steps button b{display:none}
  .rel-step-card{padding:19px 15px}.rel-step-heading{gap:12px}.rel-step-heading>span{width:40px;height:40px}.rel-step-heading h3{font-size:21px}.rel-step-heading p{font-size:13px}
  .rel-person-picker{flex-direction:column}.rel-person-picker>button{width:100%;margin-top:0}.rel-group-heading{align-items:stretch;flex-direction:column}.rel-add-button{width:100%}.rel-group fieldset{padding:12px}
  .rel-editor-actions{align-items:stretch;flex-direction:column}.rel-editor-actions>div,.rel-flow-actions{display:flex}.rel-editor-actions button{flex:1}
  .rel-entity-dialog{padding:19px}.rel-detail{padding:17px}
}
