<div class="pg-panel-body">
    {{#if preview}}<p class="pg-preview">Viewing as {{userName}} · Read-only</p>{{/if}}
    {{#if isList}}
    <header class="pg-panel-heading"><div><span class="pg-eyebrow">{{#if isContacts}}Connections{{else}}Holdings{{/if}}</span><h2>{{heading}}</h2><p>{{#if isContacts}}Your character's connections and shared contacts.{{else}}Owned, entrusted, and shared assets.{{/if}}</p></div><span class="pg-pin-count" title="Use an entry’s options to pin it, or drag it onto the wheel."><i class="fas fa-thumbtack"></i> {{pinCount}} / {{pinLimit}}</span></header>
    {{#if isContacts}}<nav class="pg-filters" aria-label="Filter contacts">{{#each filters}}<button type="button" data-action="filter" data-filter="{{id}}" aria-pressed="{{active}}">{{label}}</button>{{/each}}</nav>{{/if}}
    {{#if currentAsset}}<div class="pg-current"><span>Using: {{currentAsset.name}}</span>{{#unless preview}}<button type="button" data-action="clearAsset" aria-label="Clear current asset">Ã-</button>{{/unless}}</div>{{/if}}
    <div class="pg-list">{{#each entries}}
        <article class="pg-entry" data-entry-uuid="{{uuid}}">
            <button type="button" class="pg-entry-open" data-action="open" data-uuid="{{uuid}}" draggable="{{#if @root.preview}}false{{else}}true{{/if}}"><img src="{{image}}" alt="" draggable="false"><span><strong>{{name}}</strong><small>{{typeLabel}} · {{reason}}</small><span class="pg-entry-status">{{#if isPrimaryShip}}<em><i class="fas fa-shuttle-space"></i> Primary ship</em>{{/if}}{{#if isPrimaryFaction}}<em><i class="fas fa-flag"></i> Primary faction</em>{{/if}}{{#if canEdit}}<em>Full control</em>{{/if}}</span></span>{{#if pinned}}<i class="fas fa-thumbtack" title="Pinned to wheel"></i>{{/if}}</button>
            <button type="button" class="pg-entry-menu" data-action="options" data-uuid="{{uuid}}" aria-label="Options for {{name}}" title="Options for {{name}}" aria-haspopup="menu" aria-expanded="false"><i class="fas fa-ellipsis" aria-hidden="true"></i></button>
        </article>
    {{else}}<div class="pg-empty"><i class="fas fa-compass"></i><p>{{#if isContacts}}No visible contacts yet. Relationships of your linked character and GM assignments will appear here.{{else}}No holdings yet. Owned assets and GM assignments will appear here.{{/if}}</p></div>{{/each}}</div>
    {{/if}}
    {{#if isProfile}}
        {{#if selected}}<header class="pg-profile-heading"><img src="{{selected.image}}" alt=""><div><h2>{{selected.name}}</h2><p>{{selected.reason}}</p></div></header>
        <div class="pg-description">{{#if selected.description}}{{selected.description}}{{else}}No shared description yet.{{/if}}</div>
        {{else}}<div class="pg-empty">{{#if hasEntityRequest}}<h2>Entry unavailable</h2><p>This entry was removed or your access changed. Return to Contacts or Holdings for your current entries.</p>{{else}}<h2>Your campaign story</h2><p>Your GM can link your character's Nexus Person in Player Wheel - Setup. Your Actor sheet remains available directly from the wheel.</p>{{/if}}</div>{{/if}}
    {{/if}}
    {{#if message}}<p class="pg-message" role="status">{{message}}</p>{{/if}}
</div>
