/* Relationship views inherit the owner workspace's parchment, orange and olive. */
.owner-workspace .ow-rel-directory{gap:16px;margin-bottom:16px}
.owner-workspace .ow-rel-intro{display:flex;justify-content:space-between;align-items:center;gap:20px}
.owner-workspace .ow-rel-intro>div{min-width:0}
.owner-workspace .ow-rel-intro h2{max-width:650px}
.owner-workspace .ow-rel-intro>.btn{flex:none}
.owner-workspace .ow-rel-stats .ow-stat{padding:18px 20px}
.owner-workspace .ow-rel-stats .ow-stat>strong{font-size:29px}
.owner-workspace .ow-rel-table-context{display:flex;justify-content:space-between;gap:16px;font-size:10px;color:var(--muted);margin-top:-6px}
.owner-workspace .ow-rel-table-context>span:first-child{color:var(--olive)}
.owner-workspace .ow-rel-views{display:flex;justify-content:space-between;align-items:center;gap:15px}
.owner-workspace .ow-rel-views>.ow-tabs{flex-wrap:wrap}
.owner-workspace .ow-rel-views>span{font-size:10px;color:var(--muted);white-space:nowrap}
.owner-workspace .ow-rel-applied{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 16px;background:var(--surface2);border:1px solid var(--border);border-left:3px solid var(--olive);border-radius:9px;font-size:11px;color:var(--muted)}
.owner-workspace .ow-rel-applied>div{display:flex;align-items:center;gap:8px 18px;flex-wrap:wrap}
.owner-workspace .ow-rel-applied strong{font-size:10px;font-weight:500;color:var(--text)}
.owner-workspace .ow-rel-applied .btn{font-size:10px;padding:5px 8px;min-height:29px;flex:none}
.owner-workspace .ow-rel-sources{display:grid;gap:19px;max-height:510px;overflow-y:auto;padding-right:3px}
.owner-workspace .ow-rel-source{display:block;width:100%;text-align:left;border:0;background:transparent;padding:0;color:var(--text)}
.owner-workspace .ow-rel-source:hover .ow-rel-source-top>span{text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:3px}
.owner-workspace .ow-rel-source-top{display:flex;justify-content:space-between;gap:18px;font-size:12px;line-height:1.5}
.owner-workspace .ow-rel-source-top>span{overflow-wrap:anywhere}
.owner-workspace .ow-rel-source-top>strong{font-size:14px;font-weight:500;white-space:nowrap}
.owner-workspace .ow-rel-source-top small{font-size:9px;font-weight:400;color:var(--muted)}
.owner-workspace .ow-rel-source .ow-track{display:block;margin-top:8px;height:5px}
.owner-workspace .ow-rel-source-sub{display:block;font-size:9px;color:var(--muted);margin-top:7px;line-height:1.65}
.owner-workspace .ow-rel-source-sub>span{margin:0 4px;color:var(--faint)}
.owner-workspace .ow-rel-outcome{padding:1px 0 0}
.owner-workspace .ow-rel-outcome>strong{display:block;font-size:48px;letter-spacing:-.05em;font-weight:400;color:var(--olive);line-height:1.2}
.owner-workspace .ow-rel-outcome>span{display:block;font-size:11px;color:var(--muted);margin-top:6px}
.owner-workspace .ow-rel-outcome .ow-progress{margin:18px 0}
.owner-workspace .ow-rel-facts{margin:0}
.owner-workspace .ow-rel-facts>div{display:flex;justify-content:space-between;align-items:baseline;gap:16px;border-bottom:1px solid var(--line);padding:10px 0;font-size:11px}
.owner-workspace .ow-rel-facts dt{color:var(--muted)}
.owner-workspace .ow-rel-facts dd{margin:0;font-variant-numeric:tabular-nums;font-size:12px;color:var(--text)}
.owner-workspace .ow-rel-insights .ow-card>.btn{margin-top:13px;font-size:10px}
.owner-workspace .ow-rel-insights .ow-two-col{align-items:start}
.owner-workspace .ow-rel-insights .ow-card>.ow-footnote{margin:13px 0 0}
.owner-workspace .ow-rel-legend{display:flex;align-items:center;gap:18px;flex-wrap:wrap;color:var(--muted);font-size:9px;margin:0 0 20px}
.owner-workspace .ow-rel-legend>span{display:flex;gap:7px;align-items:center}
.owner-workspace .ow-rel-legend i{width:7px;height:7px;border-radius:2px;background:var(--olive)}
.owner-workspace .ow-rel-legend>span:last-child i{background:var(--accent)}
.owner-workspace .ow-rel-trend{display:grid;gap:17px}
.owner-workspace .ow-rel-month{display:grid;grid-template-columns:64px 1fr;gap:14px;align-items:center}
.owner-workspace .ow-rel-month>span{font-size:10px;color:var(--muted)}
.owner-workspace .ow-rel-month-bars{display:grid;gap:4px}
.owner-workspace .ow-rel-month-bars>button,.owner-workspace .ow-rel-month-bars>div{border:0;background:transparent;display:flex;position:relative;align-items:center;width:100%;height:19px;padding:0 32px 0 0;text-align:right;color:var(--olive)}
.owner-workspace .ow-rel-month-bars>div{color:var(--accent)}
.owner-workspace .ow-rel-month-bars i{display:block;height:9px;background:currentColor;opacity:.75;border-radius:0 3px 3px 0}
.owner-workspace .ow-rel-month-bars strong{position:absolute;right:0;top:0;font-weight:500;font-size:10px;line-height:19px;font-variant-numeric:tabular-nums}
.owner-workspace .ow-rel-month-bars>button:hover i{opacity:1}
.owner-workspace .ow-rel-month-bars>button:hover strong{text-decoration:underline;text-underline-offset:2px}
.owner-workspace .ow-rel-mix{margin:6px 0 21px}
.owner-workspace .ow-rel-mix-row{display:flex;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line);padding:15px 0;font-size:12px}
.owner-workspace .ow-rel-mix-row>span{display:flex;gap:10px;align-items:center;color:var(--muted)}
.owner-workspace .ow-rel-mix-row>strong{font-weight:500;font-size:17px}
.owner-workspace .ow-rel-mix-row i{display:block;flex:none;width:8px;height:8px;border-radius:3px;background:var(--border)}
.owner-workspace .ow-rel-mix-row .ow-rel-mix-single{background:var(--olive)}
.owner-workspace .ow-rel-mix-row .ow-rel-mix-multiple{background:var(--accent)}
.owner-workspace .ow-rel-profile-head{gap:18px;margin-bottom:24px}
.owner-workspace .ow-rel-profile-head .ow-intro h2{font-size:26px}
.owner-workspace .ow-rel-profile-head .ow-stat:last-child>strong{font-size:24px;margin:11px 0}
.owner-workspace .ow-rel-separator{margin:0 6px;color:var(--faint)}
.owner-workspace .ow-rel-status{display:inline-flex;align-items:center;gap:7px;font-size:10px;white-space:nowrap;padding:7px 11px;background:var(--surface2);color:var(--muted);border:1px solid var(--border);border-radius:20px}
.owner-workspace .ow-rel-status:before{content:'';width:5px;height:5px;border:1px solid var(--faint);border-radius:50%}
.owner-workspace .ow-rel-status-booked{color:var(--olive)}
.owner-workspace .ow-rel-status-booked:before{background:var(--olive);border-color:var(--olive)}
.owner-workspace .ow-rel-provenance{display:flex;gap:15px;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted)}
.owner-workspace .ow-rel-provenance strong{font-weight:500;color:var(--text);margin-left:8px}
.owner-workspace .ow-rel-profile .lpage{grid-template-columns:minmax(240px,.85fr) minmax(0,2fr);gap:20px}
.owner-workspace .ow-rel-profile .ldcard{border-radius:13px;padding:20px;background:var(--surface);min-width:0}
.owner-workspace .ow-rel-profile .ldcard h3{font-size:14px;letter-spacing:-.02em;text-transform:none;color:var(--text);font-weight:500;margin-bottom:15px;flex-wrap:wrap;gap:6px}
.owner-workspace .ow-rel-profile .ldcard h3>a{font-size:10px;letter-spacing:0}
.owner-workspace .ow-rel-profile .lfield{padding:10px 0;font-size:12px;grid-template-columns:76px minmax(0,1fr)}
.owner-workspace .ow-rel-profile .lfield .k{font-size:10px;color:var(--muted)}
.owner-workspace .ow-rel-profile :is(.lfield .v input,.lnotes){background:var(--bg);color:var(--text);border-color:var(--border);font-size:12px}
.owner-workspace .ow-rel-profile .lnotes{padding:12px;min-height:110px;line-height:1.6}
.owner-workspace .ow-rel-profile .erow{padding:15px 18px;grid-template-columns:70px minmax(70px,1fr) auto minmax(40px,65px) minmax(74px,95px) 34px;gap:8px;font-size:11px}
.owner-workspace .ow-rel-profile .erow .tag2{font-size:9px;white-space:normal}
.owner-workspace .ow-rel-profile .erow .pm{font-size:11px}
.owner-workspace .ow-rel-profile .erow .pm.ow-rel-missing{font-size:9px;font-weight:400;color:var(--faint)}
.owner-workspace .ow-rel-profile .erow .op{font-size:10px}
.owner-workspace .ow-rel-profile .evlist .ev{padding:15px 18px;font-size:11px}
.owner-workspace .ow-rel-profile .evlist .addnote{padding:13px 18px}
.owner-workspace .ow-rel-profile .evlist .addnote input{font-size:11px}
.owner-workspace .ow-rel-profile .evlist .av{background:var(--surface2);color:var(--olive)}
@media(max-width:1150px){
  .owner-workspace .ow-rel-views{align-items:flex-start;flex-direction:column;gap:8px}
  .owner-workspace .ow-rel-profile .lpage{grid-template-columns:minmax(220px,.8fr) minmax(0,1.8fr)}
  .owner-workspace .ow-rel-profile .erow{grid-template-columns:65px minmax(60px,1fr) auto 80px 34px;padding:14px 12px}
  .owner-workspace .ow-rel-profile .erow .pr{display:none}
}
@media(max-width:900px){
  .owner-workspace .ow-rel-intro{align-items:flex-start;flex-direction:column;gap:12px}
  .owner-workspace .ow-rel-stats{gap:10px}
  .owner-workspace .ow-rel-stats .ow-stat{padding:15px}
  .owner-workspace .ow-rel-stats .ow-stat>strong{font-size:26px}
  .owner-workspace .ow-rel-profile .lpage{grid-template-columns:1fr}
  .owner-workspace .ow-rel-profile .erow .op{display:block}
  .owner-workspace .ow-rel-provenance{align-items:flex-start;flex-direction:column;gap:5px}
  .owner-workspace .ow-rel-table-context{flex-direction:column;gap:4px}
}
@media(max-width:639px){
  .owner-workspace .ow-rel-stats.four{grid-template-columns:repeat(2,minmax(0,1fr))}
  .owner-workspace .ow-rel-stats .ow-stat>span{font-size:10px}
  .owner-workspace .ow-rel-stats .ow-stat>strong{font-size:25px}
  .owner-workspace .ow-rel-stats .ow-stat>small{font-size:9px}
  .owner-workspace .ow-rel-profile-head .ow-stat:last-child>strong{font-size:19px;margin:12px 0}
  .owner-workspace .ow-rel-views>.ow-tabs{gap:4px}
  .owner-workspace .ow-rel-views>.ow-tabs button{padding:8px 9px;font-size:10px;min-height:35px}
  .owner-workspace .ow-rel-applied{align-items:flex-start;flex-direction:column;gap:9px}
  .owner-workspace .ow-rel-applied>div{align-items:flex-start;flex-direction:column;gap:5px}
  .owner-workspace .ow-rel-applied .btn{align-self:flex-end}
  .owner-workspace .ow-rel-profile .erow{grid-template-columns:1fr 1fr auto;gap:9px 12px;padding:15px 16px}
  .owner-workspace .ow-rel-profile .erow .pd{grid-column:1;font-size:10px}
  .owner-workspace .ow-rel-profile .erow .st{grid-column:1;grid-row:2}
  .owner-workspace .ow-rel-profile .erow .pm{grid-column:2;grid-row:2;text-align:left}
  .owner-workspace .ow-rel-profile .erow .op{grid-column:3;grid-row:1/3;align-self:stretch;display:flex;align-items:center;justify-content:flex-end;min-width:32px}
  .owner-workspace .ow-rel-profile .erow>span:nth-child(2){grid-column:2;grid-row:1}
  .owner-workspace .ow-rel-month{grid-template-columns:60px 1fr;gap:10px}
}
