/* Live presence: topbar avatar cluster + "who's here" popover */
.ed-collab-wrap { position: relative; }

.ed-collab {
  display: inline-flex; align-items: center; padding: 3px 6px;
  border: 1px solid var(--line, #e6e1da); border-radius: 999px;
  background: var(--bg-1, #fff); cursor: pointer;
}
.ed-collab.on, .ed-collab:hover { border-color: var(--ink-3, #b7afa2); }
.ed-collab-av {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: 11px; font-weight: 700;
  border: 2px solid var(--bg-1, #fff);
}
.ed-collab-more { background: var(--bg-2, #efe9e1); color: var(--ink-2, #6b6257); }

.pres-backdrop { position: fixed; inset: 0; z-index: 40; }
.pres-pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 41;
  width: 340px; background: var(--bg-1, #fff);
  border: 1px solid var(--line, #e6e1da); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.14); overflow: hidden;
}
.pres-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-bottom: 1px solid var(--line, #e6e1da);
}
.pres-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint, #4bbf94); }
.pres-head-title { font-weight: 700; font-size: 14px; }
.pres-x {
  margin-left: auto; border: 0; background: 0; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--ink-3, #b7afa2);
}
.pres-list { max-height: 320px; overflow-y: auto; }
.pres-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.pres-av {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; flex: 0 0 auto;
}
.pres-row-body { min-width: 0; }
.pres-row-name { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.pres-you {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  color: var(--ink-3, #b7afa2); background: var(--bg-2, #efe9e1);
  padding: 1px 5px; border-radius: 4px;
}
.pres-row-doing { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.pres-doing-tag { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 5px; }
.pres-doing-tag.edit { color: #1FB295; background: #E0F1EC; }
.pres-doing-tag.view { color: var(--ink-2, #6b6257); background: var(--bg-2, #efe9e1); }
.pres-row-where { font-size: 12px; color: var(--ink-3, #b7afa2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pres-foot {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-top: 1px solid var(--line, #e6e1da);
  font-size: 12px; color: var(--ink-3, #b7afa2);
}
.pres-foot .ed-link { margin-left: auto; white-space: nowrap; }
