/* Entity headers: contacts beneath identity, overflow actions at the right. */
.pagehead:has(.entity-actions),.inventory-heading:has(.entity-actions){align-items:flex-start;flex-wrap:nowrap;gap:16px}
.pagehead:has(.entity-actions)>:first-child,.inventory-heading:has(.entity-actions)>:first-child{min-width:0;flex:1}
.entity-contact-heading,.profile-contact-heading{display:grid;gap:12px;min-width:0}
.entity-contact-actions,.profile-contact-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.entity-contact-action,.profile-contact-actions .profile-contact-action{
 display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;min-height:40px;box-sizing:border-box;
 padding:9px;border:1px solid var(--theme-border);border-radius:10px;color:var(--theme-muted-foreground);background:var(--theme-card);text-decoration:none;
}
.entity-contact-action svg,.profile-contact-actions .profile-contact-action svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.profile-contact-actions .profile-contact-action span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.entity-contact-action:hover,.profile-contact-actions .profile-contact-action:hover{background:var(--theme-muted);color:var(--theme-primary)}
.entity-actions{position:relative;flex:0 0 auto;margin:0;padding:0;border:0;background:none;z-index:15}
.entity-actions>summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;width:42px;height:42px;padding:0;border:1px solid var(--theme-border);border-radius:10px;color:var(--theme-foreground);background:var(--theme-card)}
.entity-actions>summary::-webkit-details-marker{display:none}
.entity-actions>summary svg{width:22px;height:22px;fill:currentColor;stroke:none}
.entity-actions[open]>summary,.entity-actions>summary:hover{background:var(--theme-muted);color:var(--theme-primary)}
.entity-actions .entity-actions-menu{position:absolute;right:0;top:calc(100% + 7px);display:flex;flex-direction:column;gap:3px;width:max-content;min-width:210px;max-width:min(330px,calc(100vw - 32px));padding:6px;margin:0;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-card);box-shadow:0 12px 35px #0002}
.entity-actions:not([open])>.entity-actions-menu{display:none}
.entity-actions .entity-actions-menu>:is(a,button){display:flex;align-items:center;justify-content:flex-start;gap:9px;width:100%;min-height:42px;box-sizing:border-box;padding:10px 12px;margin:0;border:0;border-radius:7px;background:transparent;color:var(--theme-foreground);font:500 14px/1.4 var(--theme-font-sans,Arial,sans-serif);text-align:left;text-decoration:none;white-space:normal;overflow-wrap:anywhere;box-shadow:none;cursor:pointer}
.entity-actions .entity-actions-menu>:is(a,button):hover{background:var(--theme-muted);color:var(--theme-primary)}
.entity-actions summary:focus-visible,.entity-actions-menu>:is(a,button):focus-visible,.entity-contact-action:focus-visible,.profile-contact-action:focus-visible{outline:2px solid var(--theme-primary);outline-offset:2px}
@media(max-width:760px){.entity-contact-action,.profile-contact-actions .profile-contact-action{width:44px;height:44px;min-height:44px}.entity-actions>summary{width:44px;height:44px}.entity-actions .entity-actions-menu>:is(a,button){min-height:44px}.pagehead:has(.entity-actions),.inventory-heading:has(.entity-actions){gap:10px}}
@media print{.entity-actions,.entity-contact-actions,.profile-contact-actions{display:none}}
