.ent-chip{display:inline-flex;align-items:center;gap:6px;height:var(--ds-h-md);max-width:100%;padding:0 8px;border-radius:6px;background:var(--bg-hover);box-shadow:inset 0 0 0 1px var(--rp-line-btn,var(--border-default));color:var(--text);font-size:var(--ds-text-sm);font-weight:500;line-height:1;text-decoration:none;vertical-align:middle;white-space:nowrap;transition:background .12s}.ent-chip:hover{background:var(--bg-active);text-decoration:none}.ent-chip>span{min-width:0;overflow:hidden;text-overflow:ellipsis}.ent-chip svg{flex:none}.ent-chip.inl{height:var(--ds-h-pill);padding:0 6px;margin:0 1px;font-size:inherit;vertical-align:-5px}.ent-menu{position:fixed;z-index:160;width:300px;max-height:min(44vh,340px);display:flex;flex-direction:column;padding:4px;border-radius:12px;background:var(--bg-elevated,var(--bg-surface));box-shadow:var(--rp-sh-menu,0 8px 24px -16px rgba(0,0,0,.24),0 2px 8px -6px rgba(0,0,0,.18)),0 0 0 1px var(--border-default);animation:ent-pop .12s cubic-bezier(.16,1,.3,1)}.ent-menu.abs{position:absolute}@keyframes ent-pop{0%{opacity:0;transform:translateY(-2px) scale(.96)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.ent-menu{animation:none}}.ent-menu-list{overflow:auto;min-height:0}.ent-menu-t{padding:6px 8px 4px;font-size:var(--ds-text-xs);font-weight:500;color:var(--text-dim)}.ent-menu input.ent-find,input.ent-find{height:var(--ds-h-md);margin-bottom:4px;background:var(--bg-field,var(--bg-hover));box-shadow:inset 0 0 0 1px var(--rp-line-btn,var(--border-default));font:400 var(--ds-text-sm)/1 var(--font-ui);outline:0}.ent-menu input.ent-find,.ent-opt,input.ent-find{width:100%;padding:0 8px;border:0;border-radius:8px;color:var(--text)}.ent-opt{display:flex;align-items:center;gap:8px;min-height:var(--ds-h-md);background:none;font:400 var(--ds-text-sm)/1.2 var(--font-ui);text-align:left;cursor:pointer}.ent-opt.hi{background:var(--bg-hover)}.ent-opt .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ent-opt .ent-only,.ent-opt .ty{flex:none;font-size:var(--ds-text-xs);color:var(--text-dim)}.ent-opt .dot{width:8px;height:8px;border-radius:999px;flex:none}.ent-opt .ck{width:14px;height:14px;border-radius:4px;flex:none;display:inline-grid;place-items:center;box-shadow:inset 0 0 0 1px var(--border-strong);color:var(--text)}.ent-opt .ck.on{background:var(--bg-active);box-shadow:inset 0 0 0 1px var(--text-dim)}.ent-opt .ent-ag-av{width:16px;height:16px;border-radius:22%;flex:none;object-fit:cover}.ent-ag-badge{flex:none;height:var(--ds-h-xs);padding:0 6px;display:inline-flex;align-items:center;border-radius:6px;background:var(--accent-dim,var(--bg-hover));color:var(--accent-text,var(--text-dim));font-size:var(--ds-text-2xs,11px);font-weight:500}.ent-chip[data-entity-type=agent],a.entity-chip[data-entity-type=agent]{color:var(--accent-text,var(--text))!important;background:var(--accent-dim,var(--bg-hover))}.ent-none{padding:6px 8px;font-size:var(--ds-text-xs);color:var(--text-dim)}.ref-li{display:flex;align-items:center;gap:8px;min-height:var(--ds-h-md);padding:0 6px;border-radius:8px;font-size:var(--ds-text-sm);color:var(--text);text-decoration:none;min-width:0}.ref-li:hover{background:var(--bg-hover)}.ref-li .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ref-li .k{flex:none;font-size:var(--ds-text-xs);color:var(--text-muted)}.ref-li .x{flex:none;width:20px;height:20px;display:grid;place-items:center;border:0;border-radius:6px;background:none;color:var(--text-muted);opacity:0;cursor:pointer}.ref-li:hover .x{opacity:1}.ref-li .x:hover{background:var(--bg-active);color:var(--text)}.ref-sub{margin:6px 0 2px;font-size:var(--ds-text-xs);color:var(--text-muted)}.ref-sub:first-child{margin-top:0}.ref-anchor{position:relative;display:inline-flex}.tag-pill{display:inline-flex;align-items:center;gap:5px;height:var(--ds-h-pill);padding:0 8px;border-radius:999px;background:var(--bg-hover);color:var(--text);font-size:var(--ds-text-xs);font-weight:500;white-space:nowrap;max-width:160px}.tag-pill>i{width:7px;height:7px;border-radius:999px;flex:none}.tag-pill>span{min-width:0;overflow:hidden;text-overflow:ellipsis}.tag-pill>button{width:14px;height:14px;margin-right:-4px;display:grid;place-items:center;border:0;border-radius:4px;background:none;color:var(--text-muted);cursor:pointer}.tag-pill>button:hover{color:var(--text);background:var(--bg-active)}.tag-add{display:inline-flex;align-items:center;gap:var(--ds-space-1);height:var(--ds-h-sm);padding:0 var(--ds-space-2);border:0;border-radius:999px;background:none;color:var(--text-muted);font:500 var(--ds-text-sm)/1 var(--font-ui);cursor:pointer}.tag-add:hover{background:var(--bg-hover);color:var(--text)}@media (max-width:767px){.ent-menu.sheet{position:fixed;left:12px!important;right:12px!important;width:auto;top:auto!important;bottom:calc(12px + env(safe-area-inset-bottom))!important}.ent-menu:not(.sheet){max-width:calc(100vw - 24px)}}.dc-act .ref-anchor>button{width:var(--ds-h-md);height:var(--ds-h-md);display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:var(--ds-radius-btn-in);background:none;color:var(--text-dim);cursor:pointer;transition:background .12s,color .12s}.dc-act .ref-anchor>button:hover{background:var(--bg-hover);color:var(--text)}.comment-body a.entity-chip,[contenteditable] a.entity-chip{text-decoration:none!important;word-break:normal!important;overflow-wrap:normal!important;color:var(--text)!important}.rd-evrefs{margin:10px 0 2px}.rd-evrefs .dc{background:var(--bg-surface)}a.entity-chip[data-entity-type=recording]{--chip-c:#f0a35e}.comment-body a.entity-chip[data-entity-type=agent],[contenteditable] a.entity-chip[data-entity-type=agent]{color:var(--accent-text,var(--text))!important}.comment-body a.entity-chip[data-entity-type=user],[contenteditable] a.entity-chip[data-entity-type=user]{color:var(--mention-person,#59a8ed)!important}